/* ==========================================================================
   style.css — Global Stylesheet
   US Government Benefits — Lean Architecture
   Target: Google PageSpeed Insights 100/100 | Core Web Vitals: All Green
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SELF-HOSTED FONTS  (font-display: swap — zero render-blocking)
   All files are local .woff2; zero external network calls.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS  (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette — WCAG AA compliant contrast ratios */
  --color-primary:       #003366; /* Navy — official gov authority */
  --color-primary-dark:  #002244;
  --color-primary-light: #1a5276;
  --color-accent:        #b22234; /* US-flag red */
  --color-accent-hover:  #8b1a27;
  --color-surface:       #ffffff;
  --color-surface-alt:   #f4f6f8;
  --color-border:        #d0d7de;
  --color-text:          #1a1a2e;
  --color-text-muted:    #4a5568;
  --color-text-inverse:  #ffffff;
  --color-bluf-bg:       #eaf4fb;
  --color-bluf-border:   #2980b9;
  --color-warning-bg:    #fffbeb;
  --color-warning-border:#d97706;
  --color-success-bg:    #f0fdf4;
  --color-success-border:#16a34a;

  /* Typography */
  --font-sans:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:   ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Type Scale (fluid, clamp-based — prevents CLS from font-size jumps) */
  --text-xs:   clamp(0.75rem,  1.5vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 1.8vw, 1rem);
  --text-base: clamp(1rem,     2vw,   1.125rem);
  --text-lg:   clamp(1.125rem, 2.2vw, 1.25rem);
  --text-xl:   clamp(1.25rem,  2.5vw, 1.5rem);
  --text-2xl:  clamp(1.5rem,   3vw,   1.875rem);
  --text-3xl:  clamp(1.875rem, 4vw,   2.25rem);
  --text-4xl:  clamp(2.25rem,  5vw,   3rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Layout */
  --max-width-content: 780px;
  --max-width-wide:    1200px;
  --header-height:     64px;

  /* Borders & Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   4. ZERO-CLS IMAGE ENGINE
   Explicit dimensions prevent layout shift. All images MUST carry
   width="" and height="" attributes in HTML. This CSS enforces the rule.
   -------------------------------------------------------------------------- */
img,
video,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
  /* height: auto preserves aspect ratio after explicit width/height attrs */
  height: auto;
}

/* Aspect-ratio placeholder — prevents CLS before image bytes arrive */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

/* Hero image: loaded eagerly, no lazy spinner needed */
.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

/* Lazy images: fade in once loaded to avoid jarring pop-in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity var(--transition-normal);
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   5. LAYOUT CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--content {
  max-width: var(--max-width-content);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--space-6); }
}

@media (min-width: 1024px) {
  .container { padding-inline: var(--space-8); }
}

/* --------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--color-primary);
  border-bottom: 3px solid var(--color-accent);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text-inverse);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-logo__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background-color: rgba(255,255,255,.12);
  color: var(--color-text-inverse);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text-inverse);
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--color-primary-dark);
    padding: var(--space-4);
    gap: var(--space-1);
    border-bottom: 3px solid var(--color-accent);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-16);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.7);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  max-width: 700px;
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  max-width: 580px;
  margin-bottom: var(--space-8);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   8. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-inverse);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  border-color: rgba(255,255,255,.6);
  color: var(--color-text-inverse);
}

.btn--outline:hover {
  background-color: rgba(255,255,255,.1);
  border-color: var(--color-text-inverse);
}

.btn--secondary {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-surface-alt);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   9. BLUF SUMMARY  (Bottom Line Up Front — Google SGE Optimization)
   Placed immediately after H1. Answers the query in ≤ 3 sentences.
   -------------------------------------------------------------------------- */
.bluf-summary {
  background-color: var(--color-bluf-bg);
  border-left: 4px solid var(--color-bluf-border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5) var(--space-6);
  margin-block: var(--space-6);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
}

.bluf-summary__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-bluf-border);
  margin-bottom: var(--space-3);
}

.bluf-summary p {
  margin-bottom: var(--space-3);
}

.bluf-summary p:last-child {
  margin-bottom: 0;
}

.bluf-summary strong {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   10. ARTICLE TYPOGRAPHY
   -------------------------------------------------------------------------- */
.article-body {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.article-body h1 { font-size: var(--text-3xl); margin-top: 0; }
.article-body h2 { font-size: var(--text-2xl); }
.article-body h3 { font-size: var(--text-xl); }
.article-body h4 { font-size: var(--text-lg); }

.article-body p {
  margin-bottom: var(--space-5);
}

.article-body a {
  color: var(--color-primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.article-body a:hover {
  color: var(--color-primary);
}

.article-body ul,
.article-body ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}

.article-body li {
  margin-bottom: var(--space-2);
}

.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-6);
  margin-block: var(--space-6);
  background-color: var(--color-surface-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.article-body blockquote cite {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.15em 0.4em;
}

.article-body pre {
  background-color: #1e2a3a;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  overflow-x: auto;
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE TABLE WRAPPER  (zero-CLS, mobile scroll indicator)
   -------------------------------------------------------------------------- */
.table-wrapper {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Visual scroll indicator — only visible when content overflows */
.table-wrapper::after {
  content: "← Scroll →";
  display: none;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Show indicator only on small screens where overflow is likely */
@media (max-width: 767px) {
  .table-wrapper::after {
    display: block;
  }
}

.table-wrapper table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background-color: var(--color-surface);
}

.table-wrapper thead {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.table-wrapper thead th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.table-wrapper tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast);
}

.table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.table-wrapper tbody tr:nth-child(even) {
  background-color: var(--color-surface-alt);
}

.table-wrapper tbody tr:hover {
  background-color: #e8f0fe;
}

.table-wrapper td {
  padding: var(--space-3) var(--space-4);
  vertical-align: top;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. BENEFIT CARDS  (Homepage grid)
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-block: var(--space-8);
}

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__img-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface-alt);
  /* Explicit aspect ratio prevents CLS before image loads */
  aspect-ratio: 16 / 9;
}

.card__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card:hover .card__img-wrapper img {
  transform: scale(1.03);
}

.card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

.card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-4);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-light);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.card__link:hover {
  color: var(--color-primary);
  gap: var(--space-2);
}

/* --------------------------------------------------------------------------
   13. CALLOUT / ALERT BOXES
   -------------------------------------------------------------------------- */
.callout {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  margin-block: var(--space-6);
  border: 1px solid transparent;
}

.callout__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.callout__content p:last-child { margin-bottom: 0; }

.callout--info {
  background-color: var(--color-bluf-bg);
  border-color: var(--color-bluf-border);
}

.callout--warning {
  background-color: var(--color-warning-bg);
  border-color: var(--color-warning-border);
}

.callout--success {
  background-color: var(--color-success-bg);
  border-color: var(--color-success-border);
}

/* --------------------------------------------------------------------------
   14. FAQ SECTION  (People Also Ask / FAQ Schema)
   -------------------------------------------------------------------------- */
.faq-list {
  list-style: none;
  padding: 0;
  margin-block: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--color-surface-alt);
}

.faq-question[aria-expanded="true"] {
  background-color: var(--color-surface-alt);
}

.faq-question__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.faq-question[aria-expanded="true"] .faq-question__chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  display: none;
}

.faq-answer.is-open {
  display: block;
}

.faq-answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   15. BREADCRUMB
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--space-1);
  color: var(--color-border);
}

.breadcrumb a {
  color: var(--color-primary-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   16. ARTICLE META  (Author, Date, Reading Time)
   -------------------------------------------------------------------------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.article-meta__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-text);
}

.article-meta__author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.article-meta__divider {
  color: var(--color-border);
}

/* --------------------------------------------------------------------------
   17. TABLE OF CONTENTS
   -------------------------------------------------------------------------- */
.toc {
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-block: var(--space-6);
}

.toc__title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.toc__list {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}

.toc__list li {
  counter-increment: toc;
  margin-bottom: var(--space-2);
}

.toc__list a {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.toc__list a::before {
  content: counter(toc) ".";
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  min-width: 1.5em;
}

.toc__list a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary-dark);
  color: rgba(255,255,255,.75);
  padding-block: var(--space-12);
  margin-top: var(--space-16);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.site-footer__col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}

.site-footer__links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__links a:hover {
  color: var(--color-text-inverse);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
}

.site-footer__disclaimer {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.45);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  background-color: rgba(255,255,255,.04);
}

/* --------------------------------------------------------------------------
   19. SKIP LINK  (Accessibility — WCAG 2.1 AA)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   20. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.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;
}

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.font-bold    { font-weight: 700; }
.font-semibold{ font-weight: 600; }
.text-muted   { color: var(--color-text-muted); }
.text-accent  { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }

.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mt-4  { margin-top: var(--space-4); }
.mb-4  { margin-bottom: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mb-8  { margin-bottom: var(--space-8); }

.section {
  padding-block: var(--space-16);
}

.section--alt {
  background-color: var(--color-surface-alt);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.section__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   21. PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .hero__cta-group,
  .toc { display: none !important; }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }

  .article-body h2,
  .article-body h3 { page-break-after: avoid; }

  .table-wrapper { overflow: visible; }
  .table-wrapper table { min-width: unset; }
}
