/* =========================================================
   US SALARY TOOLS — DESIGN SYSTEM
   A financial-reference aesthetic: editorial serif headlines,
   a cool paper background (not warm cream), navy + aged-gold
   ink, and a signature "ledger" result card styled after a
   pay stub — dotted leader rows, tabular numbers, a perforated
   tear-edge. Everything else stays quiet and disciplined.
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Color */
  --color-navy: #0B2545;
  --color-navy-deep: #071A34;
  --color-navy-light: #14345E;
  --color-bg: #F6F7FA;
  --color-surface: #FFFFFF;
  --color-text: #1E2A3A;
  --color-text-muted: #5B6B7C;
  --color-border: #DDE3EA;
  --color-border-strong: #C4CDD8;
  --color-gold: #B87F26;
  --color-gold-ink: #8A5F19;
  --color-gold-soft: #F5E8CE;
  --color-green: #1B7A5E;
  --color-green-soft: #E6F3EE;
  --color-error: #B3261E;
  --color-error-soft: #FBEAE9;

  /* Type */
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Radius / shadow / motion */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 1px rgba(11, 37, 69, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08), 0 2px 6px rgba(11, 37, 69, 0.05);
  --transition: 160ms ease;

  --container-width: 1200px;
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2rem; }        /* 32px mobile */
h2 { font-size: 1.5rem; }      /* 24px mobile */
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }   /* 44px desktop */
  h2 { font-size: 1.9rem; }    /* ~30px */
  h3 { font-size: 1.4rem; }
}

p { color: var(--color-text); }
.text-muted { color: var(--color-text-muted); }

a.link {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}
a.link:hover { text-decoration-color: var(--color-gold); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

section { padding: var(--sp-7) 0; }
.section-alt { background: var(--color-surface); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-ink);
  margin-bottom: var(--sp-2);
}

/* ---------- 4. Focus & accessibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-3);
  top: -100px;
  background: var(--color-navy);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--sp-3); }

/* ---------- 5. Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  border-bottom: 1px solid rgba(184, 127, 38, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
  }
  .nav-desktop a {
    color: #E7ECF3;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: var(--sp-2) 0;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition), color var(--transition);
  }
  .nav-desktop a:hover,
  .nav-desktop a[aria-current="page"] {
    color: #fff;
    border-bottom-color: var(--color-gold);
  }
}

/* Calculators dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #E7ECF3;
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--sp-2) 0;
}
.nav-dropdown__trigger:hover { color: #fff; }
.nav-dropdown__chevron { transition: transform var(--transition); }
.nav-dropdown[data-open="true"] .nav-dropdown__chevron { transform: rotate(180deg); }

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + var(--sp-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 260px;
  padding: var(--sp-2);
  display: none;
}
.nav-dropdown[data-open="true"] .nav-dropdown__panel { display: block; }
.nav-dropdown__panel a {
  display: block;
  padding: var(--sp-3);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
}
.nav-dropdown__panel a:hover { background: var(--color-bg); color: var(--color-navy); }

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  color: #fff;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none;
  background: var(--color-navy-deep);
  border-top: 1px solid rgba(184,127,38,0.25);
}
.nav-mobile[data-open="true"] { display: block; }
.nav-mobile__list { padding: var(--sp-3) 0; }
.nav-mobile a {
  display: block;
  color: #E7ECF3;
  text-decoration: none;
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.98rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile a:active { background: rgba(255,255,255,0.05); }

@media (min-width: 1024px) { .nav-mobile { display: none !important; } }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-navy);
  color: #fff;
}
.btn-primary:hover { background: var(--color-navy-light); }

.btn-gold {
  background: var(--color-gold);
  color: #fff;
}
.btn-gold:hover { background: var(--color-gold-ink); }

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover { border-color: var(--color-navy); background: var(--color-bg); }

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 8px 14px;
  font-size: 0.9rem;
}
.btn-ghost:hover { color: var(--color-navy); background: var(--color-bg); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- 6b. Segmented toggle (e.g. "Calculate from: Annual / Hourly") ---------- */
.calc-toggle {
  display: inline-flex;
  gap: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: var(--sp-5);
  max-width: 100%;
}
.toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.toggle-btn[aria-pressed="true"] {
  background: var(--color-navy);
  color: #fff;
}

/* ---------- 7. Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 640px) {
  .form-grid--2col { grid-template-columns: 1fr 1fr; }
}

.input-group { display: flex; flex-direction: column; gap: 6px; }

.input-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
}

.input-group .helper-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap__prefix {
  position: absolute;
  left: 14px;
  color: var(--color-text-muted);
  font-weight: 600;
  pointer-events: none;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-group input.has-prefix { padding-left: 30px; }

.input-group input:focus,
.input-group select:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.1);
  outline: none;
}

.input-group input[aria-invalid="true"],
.input-group select[aria-invalid="true"] {
  border-color: var(--color-error);
  background: var(--color-error-soft);
}

.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-error);
  font-weight: 500;
}
.field-error.is-visible { display: flex; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* ---------- 8. Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-5);
}
@media (min-width: 768px) { .card { padding: var(--sp-6); } }

.card--calculator { padding: var(--sp-5); }
@media (min-width: 768px) { .card--calculator { padding: var(--sp-7); } }

/* ---------- 9. Signature element: the Ledger result card ---------- */
.ledger {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-top: var(--sp-6);
}
.ledger:not([hidden]) {
  animation: ledgerReveal 420ms ease forwards;
}

@keyframes ledgerReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ledger__tear {
  height: 14px;
  background-image: radial-gradient(circle at 10px 0, transparent 7px, var(--color-bg) 7.5px);
  background-size: 20px 14px;
  background-repeat: repeat-x;
  background-color: var(--color-navy);
}

.ledger__head {
  background: var(--color-navy);
  color: #fff;
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.ledger__head-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
}

.ledger__body { padding: var(--sp-5); }
@media (min-width: 768px) { .ledger__body { padding: var(--sp-6); } }

.ledger__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px dotted var(--color-border-strong);
}
.ledger__row:last-child { border-bottom: none; }

.ledger__label {
  color: var(--color-text-muted);
  font-size: 0.94rem;
}
.ledger__value {
  font-weight: 700;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-navy);
  white-space: nowrap;
}

.ledger__row--primary {
  background: var(--color-green-soft);
  margin: 0 calc(var(--sp-5) * -1);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: none;
  border-radius: var(--radius-sm);
}
.ledger__row--primary .ledger__label { color: var(--color-green); font-weight: 600; }
.ledger__row--primary .ledger__value { color: var(--color-green); font-size: 1.4rem; }

.ledger__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.ledger__empty {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
}

/* ---------- 10. Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.badge-estimate {
  background: var(--color-gold-soft);
  color: var(--color-gold-ink);
}
.badge-free {
  background: var(--color-green-soft);
  color: var(--color-green);
}

/* ---------- 11. Breadcrumb ---------- */
.breadcrumb {
  padding: var(--sp-4) 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-navy); text-decoration: underline; }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--color-border-strong);
}
.breadcrumb li[aria-current="page"] { color: var(--color-navy); font-weight: 600; }

/* ---------- 12. Hero ---------- */
.hero {
  background: var(--color-navy);
  color: #fff;
  padding: var(--sp-7) 0;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}
.hero h1 { color: #fff; }
.hero p.lede {
  color: #C9D3E0;
  font-size: 1.05rem;
  max-width: 60ch;
  margin-top: var(--sp-3);
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.hero__badge {
  font-size: 0.8rem;
  color: #E7ECF3;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- 13. Grids: popular calculators / options / steps ---------- */
.grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.calc-tile {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.calc-tile:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.calc-tile__icon {
  width: 40px; height: 40px;
  color: var(--color-navy);
  margin-bottom: var(--sp-3);
}
.calc-tile h3 { margin-bottom: 6px; font-size: 1.1rem; }
.calc-tile p { color: var(--color-text-muted); font-size: 0.92rem; }

/* How it works — a real sequence, so numbered ledger entries are earned here */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px dotted var(--color-border-strong);
}
.step:last-child { border-bottom: none; }
.step__num {
  counter-increment: step;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-gold);
  min-width: 2.2ch;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.02rem; margin-bottom: 4px; }
.step p { color: var(--color-text-muted); font-size: 0.92rem; }

/* ---------- 14. FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  background: none;
  border: none;
  text-align: left;
  padding: var(--sp-4) 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-navy);
}
.faq-item__icon {
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[data-open="true"] .faq-item__icon { transform: rotate(45deg); }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}
.faq-item[data-open="true"] .faq-item__a { max-height: 600px; }
.faq-item__a-inner { padding: 0 0 var(--sp-4); color: var(--color-text-muted); }

/* ---------- 15. Ad placeholder (AdSense-ready, no fake ads) ---------- */
.ad-placeholder {
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(45deg, #FBFCFD, #FBFCFD 10px, #F2F4F7 10px, #F2F4F7 20px);
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  margin: var(--sp-6) 0;
}

/* ---------- 16. Disclaimer callout ---------- */
.callout {
  border-left: 4px solid var(--color-gold);
  background: var(--color-gold-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.9rem;
  color: #5A4519;
}
.callout--error {
  border-left-color: var(--color-error);
  background: var(--color-error-soft);
  color: #7A241E;
}
.callout strong { color: inherit; }

/* ---------- 16b. Data tables (Methodology page) ---------- */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
.data-table caption { text-align: left; padding: var(--sp-3) var(--sp-4); font-weight: 700; color: var(--color-navy); background: var(--color-bg); }
.data-table th, .data-table td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--color-border); font-variant-numeric: tabular-nums; }
.data-table thead th { background: var(--color-navy); color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table tbody tr:nth-child(even) { background: var(--color-bg); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ---------- 17. Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4);
  z-index: 300;
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-navy-deep);
  color: #E7ECF3;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--sp-4) var(--sp-5);
  display: none;
  gap: var(--sp-4);
  flex-direction: column;
}
.cookie-banner[data-visible="true"] { display: flex; }
.cookie-banner p { font-size: 0.86rem; color: #C9D3E0; }
.cookie-banner__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
@media (min-width: 640px) {
  .cookie-banner { flex-direction: row; align-items: center; }
}

/* ---------- 18. Footer ---------- */
.site-footer {
  background: var(--color-navy-deep);
  color: #B9C3D2;
  padding: var(--sp-7) 0 var(--sp-5);
  margin-top: var(--sp-8);
}
.footer-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.footer-grid ul li { margin-bottom: var(--sp-2); }
.footer-grid a { color: #B9C3D2; text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { color: #8FA0B8; font-size: 0.88rem; margin-top: var(--sp-3); max-width: 42ch; }

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  font-size: 0.8rem;
  color: #8FA0B8;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  font-size: 0.8rem;
  color: #8FA0B8;
}

/* ---------- 19. Utility ---------- */
.mt-0{margin-top:0} .mt-2{margin-top:var(--sp-2)} .mt-3{margin-top:var(--sp-3)} .mt-4{margin-top:var(--sp-4)} .mt-5{margin-top:var(--sp-5)} .mt-6{margin-top:var(--sp-6)}
.mb-0{margin-bottom:0} .mb-2{margin-bottom:var(--sp-2)} .mb-3{margin-bottom:var(--sp-3)} .mb-4{margin-bottom:var(--sp-4)} .mb-5{margin-bottom:var(--sp-5)} .mb-6{margin-bottom:var(--sp-6)}
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.max-w-prose { max-width: 68ch; }
.hidden { display: none !important; }

/* ---------- 20. 404 page ---------- */
.error-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}
.error-page__code {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-gold);
  font-weight: 700;
}
