/* =========================================================
   # DEBUGGING:
========================================================= */

/*
* {
  outline: 1px solid red !important;
}
*/

/* =========================================================
   # BASE SETTINGS
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #222;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f1f1f;
  text-wrap: balance;
}

h1 { font-size: clamp(1.8rem, 3vw + 1rem, 2.4rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.8rem, 2rem); }
h3 { font-size: clamp(1.2rem, 2vw + 0.6rem, 1.6rem); }
h4 { font-size: clamp(1rem, 1.8vw + 0.5rem, 1.3rem); }

p {
  line-height: 1.6;
  color: #333;
}

a {
  color: #1f1f1f;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

a:hover {
  opacity: 0.8;
}

.subpage-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* =========================================================
   # SUBPAGE TOPBAR
========================================================= */

.subpage-topbar {
  background: #2b2b2b;
  color: #fff;
  width: 100%;
}

.subpage-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(6px, 0.6vw + 4px, 9px) clamp(12px, 2vw, 20px);
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.subpage-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.subpage-logo-svg {
  width: clamp(80px, 8vw, 110px);
  height: auto;
  color: #fff;
  display: block;
  transition: transform 0.4s ease, color 0.4s ease;
}

.subpage-logo img:hover {
  opacity: 0.85;
}

.subpage-nav {
  display: flex;
  gap: clamp(10px, 1.5vw, 20px);
  align-items: center;
}

.subpage-nav a {
  color: #fff;
  font-size: clamp(12px, 1vw + 0.25rem, 14px);
  font-weight: 600;
  transition: opacity 0.25s ease, border-bottom 0.25s ease;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.subpage-nav a:hover {
  opacity: 0.85;
}

.subpage-nav a.active {
  border-bottom: 2px solid #fff;
}

/* =========================================================
   # SUBPAGE CONTENT
========================================================= */

.subpage-main {
  background: #fff;
  color: #222;
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.subpage-main h2 {
  text-align: left;
  color: #1f1f1f;
  margin-bottom: 20px;
}

.subpage-main p {
  margin-bottom: 1rem;
}

.subpage-main h4 {
  margin-top: 24px;
  color: #1f1f1f;
}

/* =========================================================
   # SUBPAGE FOOTER
========================================================= */

.subpage-footer {
  color: #fff;
  text-align: center;
  padding-bottom: 2px;
  font-size: clamp(11px, 1vw + 0.3rem, 14px);
  line-height: 1.4;
}

.subpage-footer a {
  color: #fff;
  text-decoration: none;
}

.subpage-footer a:hover {
  opacity: 0.85;
}

/* =========================================================
   # RESPONSIVE
========================================================= */

@media (max-width: 600px) {
  .subpage-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .subpage-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .subpage-logo img {
    height: 38px;
  }

  .subpage-main {
    padding: 40px 15px;
  }
}