/* ═══════════════════════════════════════════════════════════
   STATE LICENSING REFERENCE — Design System v3.2 (Production)
   Production Enhancements Applied:
   1) Bulletproof reduced-motion (0.01ms preserves JS events)
   2) Smart focus-visible system (Removes mouse focus rings)
   3) Mathematical step connector geometry via calc()
   4) Strict transition properties (No 'all' layout thrashing)
   5) Removed !important traps (Handled via cascade/specificity)
   6) Baseline media & form normalization (img, input, dl)
   7) Defensive layouts (min-width: 0, overflow-wrap)
   8) WCAG AA Contrast fixes for micro-typography
   9) Modern typography APIs (text-wrap: balance/pretty)
   ═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  /* Sand palette — HSL-tuned for warmth */
  --sand-50:  hsl(48, 20%, 98%);
  --sand-100: hsl(45, 16%, 95%);
  --sand-200: hsl(42, 12%, 89%);
  --sand-300: hsl(40, 10%, 80%);
  --sand-400: hsl(38,  8%, 62%);
  --sand-500: hsl(36,  7%, 46%);
  --sand-600: hsl(34,  8%, 34%); /* WCAG AA Contrast Safe */
  --sand-700: hsl(32, 10%, 23%);
  --sand-800: hsl(30, 12%, 16%); /* WCAG AAA Contrast Safe */
  --sand-900: hsl(30, 14%, 10%);

  /* Accents */
  --terracotta:       hsl(18, 52%, 47%);
  --terracotta-light: hsl(18, 48%, 62%);
  --teal:             hsl(180, 50%, 26%); /* WCAG AA Safe for Links */
  --teal-hover:       hsl(180, 50%, 22%);
  --teal-light:       hsl(180, 30%, 96%);

  /* Semantic */
  --info-bg:     hsl(210, 60%, 97%);
  --info-edge:   hsl(210, 60%, 55%);
  --info-text:   hsl(210, 50%, 28%);
  --success-bg:  hsl(145, 50%, 96%);
  --success-edge:hsl(145, 50%, 38%);
  --success-text:hsl(145, 45%, 18%);
  --warn-bg:     hsl(40, 80%, 97%);
  --warn-edge:   hsl(38, 75%, 50%);
  --warn-text:   hsl(30, 55%, 22%);

  /* Typography */
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:  'DM Mono', 'SF Mono', 'Fira Code', monospace;

  /* Spatial grid — strict 4px/8px */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.5rem;
  --space-8:  3rem;
  --space-9:  4rem;
  --space-10: 6rem;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* Shadows — multi-stop ambient light */
  --shadow-xs: 0 1px 2px hsla(30, 14%, 10%, .04);
  --shadow-sm: 0 1px 3px hsla(30, 14%, 10%, .04),
               0 2px 8px hsla(30, 14%, 10%, .03);
  --shadow-md: 0 2px 4px hsla(30, 14%, 10%, .03),
               0 4px 16px hsla(30, 14%, 10%, .04),
               0 8px 32px hsla(30, 14%, 10%, .02);
  --shadow-lg: 0 4px 8px hsla(30, 14%, 10%, .03),
               0 8px 24px hsla(30, 14%, 10%, .05),
               0 16px 48px hsla(30, 14%, 10%, .03);

  /* Motion */
  --ease-out:    cubic-bezier(.2, 0, 0, 1);
  --ease-in:     cubic-bezier(.7, 0, 1, 1);
  --ease-micro:  cubic-bezier(.4, 0, .2, 1);
  --dur-fast:   120ms;
  --dur-normal: 180ms;
  --dur-slow:   280ms;

  /* Strokes */
  --border-subtle:  1px solid hsla(30, 14%, 10%, .06);
  --border-default: 1px solid hsla(30, 14%, 10%, .08);
  --border-strong:  1px solid hsla(30, 14%, 10%, .12);

  --content-width: 860px;
  --nav-height: 52px;

  /* Focus rings */
  --focus-ring: 0 0 0 3px hsla(180, 50%, 26%, .22);
  --focus-outline: 2px solid var(--teal);
}

/* ── RESET & BASELINE NORMALIZATION ─────────────────────── */
*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  min-width: 0; /* PROD: Strict flex/grid blowout protection */
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* PROD: Prevents anchor links (#faq) from jumping underneath the sticky header */
  scroll-padding-top: calc(var(--nav-height) + var(--space-4));
  /* Prevents iOS orientation zoom bugs */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--sand-50);
  color: var(--sand-800);
  line-height: 1.65;
  font-weight: 400;
  font-optical-sizing: auto;
}

/* Rendering performance & Modern Typography APIs */
h1, h2, h3, h4, .site-nav-brand, .fact-value {
  text-rendering: optimizeLegibility;
  text-wrap: balance; /* Prevents 1-word typographic widows dynamically */
}
p, li, dd {
  text-wrap: pretty;
}

/* Baseline visual element normalization */
img, svg, video, canvas, picture, iframe {
  display: block; max-width: 100%; height: auto;
}

/* Baseline form element normalization */
button, input, textarea, select {
  font: inherit; color: inherit; border: none; background: transparent;
}

::selection {
  background: hsla(180, 50%, 26%, .18);
  color: var(--sand-900);
}

/* ── LINK SYSTEM & FOCUS MANAGEMENT ─────────────────────── */
a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) {
  a:hover { color: var(--teal-hover); text-decoration: underline; text-underline-offset: 2px; }
}

/* 
  Smart Focus System:
  Removes default outline for mouse clickers, but keeps the 
  high-visibility custom outline for keyboard/tab navigation.
*/
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Tailored focus states for buttons to prevent double outlines */
a:focus-visible,
.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.back-to-top:focus-visible,
.site-nav-links a:focus-visible,
.state-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ── REDUCED MOTION (JS-Safe) ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  /* PROD: 0.01ms ensures JS 'transitionend' events still fire properly without moving */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── SKIP LINK ──────────────────────────────────────────── */
.skip-link {
  position: absolute; top: 0; left: var(--space-4);
  background: var(--sand-900); color: #fff;
  padding: var(--space-2) var(--space-4);
  z-index: 1000; font-size: .85rem; font-weight: 500;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  /* GPU Accelerated transform replaces CPU layout-thrashing 'top: -100%' */
  transform: translateY(-100%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { 
  transform: translateY(0); color: #fff; text-decoration: none; 
}

/* ── STICKY NAV ─────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: hsla(30, 14%, 10%, .96);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid hsla(0, 0%, 100%, .06);
  padding: 0 var(--space-7);
  height: var(--nav-height); display: flex; align-items: center;
  /* Hardware acceleration keeps the backdrop blur from causing scroll jank on iOS */
  transform: translateZ(0); 
}

.site-nav-inner {
  max-width: var(--content-width); width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.site-nav-brand {
  font-family: var(--serif); font-size: .88rem; font-weight: 500;
  color: var(--sand-300); text-decoration: none; letter-spacing: -.015em;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav-brand:hover { color: #fff; text-decoration: none; }

.site-nav-links {
  display: flex; align-items: center; gap: var(--space-5); list-style: none;
}
.site-nav-links a {
  font-size: .72rem; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--sand-400);
  text-decoration: none; padding: var(--space-2) 0; /* Expanded touch target */
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav-links a:hover { color: #fff; text-decoration: none; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  padding: var(--space-8) var(--space-7) var(--space-6);
  border-bottom: var(--border-subtle);
}
.hero-inner { max-width: var(--content-width); margin: 0 auto; }

.hero-breadcrumb {
  font-family: var(--mono); font-size: .68rem; font-weight: 400;
  color: var(--sand-600); /* Upgraded for WCAG AA Contrast */
  letter-spacing: .03em; margin-bottom: var(--space-4);
}
.hero-breadcrumb a { color: var(--teal); text-decoration: none; }
.hero-breadcrumb a:hover { text-decoration: underline; }
.bc-sep { color: var(--sand-400); margin: 0 .15em; }

.hero h1 {
  font-family: var(--serif); font-size: 2.1rem; font-weight: 600;
  letter-spacing: -.03em; line-height: 1.15; color: var(--sand-900);
  margin-bottom: .5rem; overflow-wrap: break-word;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--sand-600); }

.hero-sub {
  font-size: .92rem; color: var(--sand-700); line-height: 1.55;
  max-width: 600px;
}

.hero-meta {
  display: flex; gap: var(--space-4); margin-top: var(--space-4); flex-wrap: wrap;
}
.hero-meta span {
  font-family: var(--mono); font-size: .62rem; font-weight: 400;
  color: var(--sand-600); /* Upgraded for WCAG AA Contrast */
  letter-spacing: .02em;
}
.meta-dot { color: var(--sand-300); }

/* ── CTA BAR ────────────────────────────────────────────── */
.cta-bar {
  display: flex; gap: .65rem; margin-top: var(--space-5); flex-wrap: wrap;
}
.cta-bar-bottom {
  margin-top: var(--space-8); padding-top: var(--space-6);
  border-top: var(--border-subtle);
}

.cta-primary, .cta-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .75rem 1.4rem; min-height: 44px; /* WCAG Target safety */
  font-family: var(--sans); font-size: .84rem; font-weight: 500;
  border-radius: var(--radius-md); cursor: pointer;
  text-decoration: none; user-select: none;
  /* PROD: Exact transition bindings (Never use `all`) */
  transition:
    transform var(--dur-normal) var(--ease-out),
    box-shadow var(--dur-normal) var(--ease-out),
    background-color var(--dur-normal) var(--ease-out),
    border-color var(--dur-normal) var(--ease-out),
    color var(--dur-normal) var(--ease-out);
}

.cta-primary { background: var(--sand-900); color: var(--sand-50); border: 1px solid var(--sand-900); }
.cta-secondary { background: transparent; color: var(--sand-700); border: var(--border-strong); }

@media (hover: hover) {
  .cta-primary:hover {
    background: var(--sand-800); color: #fff; text-decoration: none;
    transform: translateY(-1px); box-shadow: var(--shadow-sm);
  }
  .cta-secondary:hover {
    border-color: var(--sand-600); color: var(--sand-900); text-decoration: none;
    transform: translateY(-1px);
  }
}
.cta-primary:active, .cta-secondary:active { transform: translateY(0) scale(0.98); }

.cta-arrow { font-size: 1rem; line-height: 1; }

/* ── MAIN CONTENT ───────────────────────────────────────── */
main {
  max-width: var(--content-width); margin: 0 auto;
  padding: 0 var(--space-7) var(--space-9);
}

/* ── FACTS GRID ─────────────────────────────────────────── */
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: hsla(30, 14%, 10%, .08); border-radius: var(--radius-lg);
  overflow: hidden; margin: var(--space-8) 0 var(--space-7);
  box-shadow: var(--shadow-sm);
}

.fact { background: #fff; padding: var(--space-5); }
.fact-label {
  font-family: var(--mono); font-size: .58rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--sand-600); /* Upgraded for WCAG AA */
  margin-bottom: .45rem;
}
.fact-value {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -.02em; color: var(--sand-900); line-height: 1.2;
  overflow-wrap: break-word; /* Prevents long numbers/text from blowing out grid */
}
.fact-note {
  font-size: .72rem; color: var(--sand-600); margin-top: .25rem; line-height: 1.4;
}

/* ── SECTIONS ───────────────────────────────────────────── */
.section { margin-top: var(--space-8); }
.section-label {
  font-family: var(--mono); font-size: .58rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--sand-600); /* Upgraded for WCAG AA */
  margin-bottom: .5rem;
}
.section h2 {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  letter-spacing: -.02em; margin-bottom: var(--space-5); line-height: 1.3;
  color: var(--sand-900);
}
.body-text { font-size: .88rem; color: var(--sand-700); line-height: 1.65; }

/* ── BOARD CARD ─────────────────────────────────────────── */
.board-card {
  background: #fff; border: var(--border-default);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.board-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: var(--space-5); flex-wrap: wrap; gap: .75rem;
}
.board-card h2 {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  letter-spacing: -.01em; margin-bottom: 0;
}
.board-badge {
  font-family: var(--mono); font-size: .58rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: var(--radius-full);
  background: var(--teal-light); color: var(--teal);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.board-field-label {
  font-family: var(--mono); font-size: .58rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--sand-600); /* Upgraded for WCAG AA */
  margin-bottom: .3rem;
}
.board-field-value { 
  font-size: .85rem; color: var(--sand-700); line-height: 1.55; 
  overflow-wrap: anywhere; word-break: break-word; /* Defensive layout logic for ugly government URLs */
}
.board-field-value a { color: var(--teal); text-decoration: none; }
.board-field-value a:hover { text-decoration: underline; }

/* Fix specificity trap cleanly without !important */
.board-field-value .phone-link {
  font-family: var(--mono); font-size: .95rem; font-weight: 500;
  color: var(--sand-900); text-decoration: none; letter-spacing: -.01em;
}
.board-field-value .phone-link:hover { color: var(--teal); }

/* ── LICENSE TYPES ──────────────────────────────────────── */
.types-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.type-card {
  background: #fff; border: var(--border-default);
  border-radius: var(--radius-md); padding: var(--space-5);
  transition: box-shadow var(--dur-normal) var(--ease-out), transform var(--dur-normal) var(--ease-out);
}
@media (hover: hover) { 
  .type-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } 
}
.type-card h3 {
  font-family: var(--serif); font-size: .92rem; font-weight: 600;
  margin-bottom: .35rem; color: var(--sand-900);
}
.type-card p { font-size: .82rem; color: var(--sand-700); line-height: 1.6; }

/* ── STEPS (Numbered Timeline) ──────────────────────────── */
.steps { counter-reset: step; padding-left: .25rem; }

.step {
  display: flex; gap: var(--space-5); position: relative;
  padding-bottom: var(--space-5);
}
.step:last-child { padding-bottom: 0; }

.step-marker {
  position: relative;
  flex-shrink: 0;
  align-self: stretch; /* Stretches to row height to support the pseudo line */
  width: 1.75rem;
}
.step-marker::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem;
  background: var(--sand-900); color: var(--sand-50);
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  border-radius: 50%;
  position: relative; z-index: 2;
}

/* PROD: Mathematically perfect connector line geometry. 
   Calculates the gap to visually touch the next step natively. */
.step:not(:last-child) .step-marker::after {
  content: '';
  position: absolute;
  /* (1.75rem / 2) = 0.875rem. Subtract half the 1px width to perfectly sub-pixel center. */
  left: calc(0.875rem - 0.5px); 
  top: 1.75rem;                      /* Starts exactly at bottom of circle */
  bottom: calc(-1 * var(--space-5)); /* Stretches through the exact padding gap perfectly */
  width: 1px;
  background: var(--sand-200);
  z-index: 1;
}

.step-body { padding-top: 0.15rem; }
.step-body h3 {
  font-size: .9rem; font-weight: 600; margin-bottom: .3rem;
  letter-spacing: -.01em; color: var(--sand-900);
}
.step-body p { font-size: .82rem; color: var(--sand-700); line-height: 1.6; overflow-wrap: break-word; }
.step-body a { color: var(--teal); font-weight: 500; }

/* ── CHECKLIST ──────────────────────────────────────────── */
.checklist { list-style: none; }
.checklist li {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .85rem 0; border-bottom: var(--border-subtle);
  font-size: .85rem;
}
.checklist li:last-child { border-bottom: none; }

.check-icon {
  flex-shrink: 0; width: 1.15rem; height: 1.15rem; margin-top: .15rem;
  border: 1.5px solid var(--sand-200); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: .6rem; font-weight: 800;
  transition: border-color var(--dur-fast), color var(--dur-fast), background-color var(--dur-fast);
}
@media (hover: hover) {
  .checklist li:hover .check-icon {
    border-color: var(--success-edge); color: var(--success-edge); background: var(--success-bg);
  }
}

.check-text strong { display: block; color: var(--sand-800); font-weight: 500; }
.check-text span { color: var(--sand-600); font-size: .78rem; display: block; margin-top: 0.15rem; }
.check-text a { color: var(--teal); }

/* ── CALLOUTS ───────────────────────────────────────────── */
.callout {
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
  font-size: .84rem; line-height: 1.6; overflow-wrap: break-word; margin-bottom: var(--space-3);
}
.callout strong { font-weight: 600; display: inline-block; margin-bottom: 0.2rem; }
.callout a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

.callout-default { background: var(--sand-100); border-left: 3px solid var(--sand-300); color: var(--sand-800); }
.callout-warm    { background: var(--sand-100); border-left: 3px solid var(--terracotta-light); color: var(--sand-800); }
.callout-info    { background: var(--info-bg);  border-left: 3px solid var(--info-edge);  color: var(--info-text); }
.callout-success { background: var(--success-bg); border-left: 3px solid var(--success-edge); color: var(--success-text); }
.callout-warn    { background: var(--warn-bg);  border-left: 3px solid var(--warn-edge);  color: var(--warn-text); }

/* ── SOURCE BAR ─────────────────────────────────────────── */
.source-bar {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .02em;
  color: var(--sand-600); padding: .65rem var(--space-4);
  background: #fff; border: var(--border-subtle);
  border-radius: var(--radius-sm); margin-top: .5rem;
  overflow-wrap: anywhere; word-break: break-word;
}
.source-bar a { color: var(--teal); text-decoration: none; }
.source-bar a:hover { text-decoration: underline; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item { border-bottom: var(--border-subtle); padding: var(--space-4) 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: .88rem; font-weight: 600; color: var(--sand-900);
  margin-bottom: .35rem; letter-spacing: -.01em; font-family: var(--sans);
}
.faq-item p { font-size: .82rem; color: var(--sand-700); line-height: 1.6; overflow-wrap: break-word; }
.faq-item a { color: var(--teal); }

/* ── BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: var(--space-6); right: var(--space-6);
  width: 2.75rem; height: 2.75rem; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: var(--sand-900); color: var(--sand-50);
  border-radius: 50%; font-size: 1rem; text-decoration: none;
  /* PROD: Hardware paint without 'Phantom Focus' bugs */
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity var(--dur-slow) var(--ease-out),
              visibility var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { 
  opacity: 1; visibility: visible; pointer-events: auto; 
  transform: translateY(0) scale(1); 
}
@media (hover: hover) { .back-to-top:hover { background: var(--teal); color: #fff; } }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--sand-900); color: var(--sand-400);
  padding: var(--space-9) var(--space-7) var(--space-7);
  margin-top: var(--space-9);
}
.footer-inner { max-width: var(--content-width); margin: 0 auto; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid hsla(0, 0%, 100%, .08);
}

.footer-brand {
  font-family: var(--serif); font-size: 1rem; font-weight: 600;
  color: var(--sand-200); margin-bottom: var(--space-2);
}
.footer-tagline { font-size: .78rem; line-height: 1.6; color: var(--sand-400); max-width: 360px; }

.footer-col-title {
  font-family: var(--mono); font-size: .58rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--sand-500); margin-bottom: var(--space-3);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a {
  font-size: .82rem; color: var(--sand-400); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
  padding: 0.15rem 0; display: inline-block; /* Expand touch area */
}
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom { padding-top: var(--space-5); }
.footer-disclaimer { font-size: .72rem; line-height: 1.65; color: var(--sand-500); margin-bottom: var(--space-3); }
.footer-disclaimer strong { color: var(--sand-400); }
.footer-copyright { font-family: var(--mono); font-size: .62rem; color: var(--sand-600); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: var(--space-6) var(--space-5) var(--space-5); }
  .hero h1 { font-size: 1.6rem; }
  main { padding: 0 var(--space-5) var(--space-7); }
  .section { margin-top: var(--space-7); }
  .section h2 { margin-bottom: var(--space-4); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: 1fr; }
  .board-card-header { align-items: flex-start; }
  .board-badge { margin-top: .2rem; }
  footer { padding: var(--space-8) var(--space-5) var(--space-6); margin-top: var(--space-8); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); padding-bottom: var(--space-5); }
  .cta-bar { flex-direction: column; }
  .cta-primary, .cta-secondary { justify-content: center; width: 100%; }
  .site-nav { padding: 0 var(--space-4); }
  .site-nav-links { gap: var(--space-3); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.35rem; }
  main { padding: 0 var(--space-4) var(--space-6); }
  .section { margin-top: var(--space-6); }
  .fact-value { font-size: 1.1rem; }
  .facts-grid { grid-template-columns: 1fr; margin: var(--space-6) 0 var(--space-5); } /* Stack completely on tiny phones */
  .fact { padding: var(--space-4); }
  .fact-note { font-size: .7rem; }
  .board-card { padding: var(--space-4); }
  .board-badge { font-size: .55rem; letter-spacing: .03em; }
  .section h2 { font-size: 1.08rem; margin-bottom: var(--space-4); }
  footer { padding: var(--space-7) var(--space-4) var(--space-5); margin-top: var(--space-7); }
  .footer-tagline { font-size: .74rem; line-height: 1.5; }
  .footer-links li { margin-bottom: var(--space-1); }
  .footer-bottom { padding-top: var(--space-4); }
  .footer-disclaimer { font-size: .68rem; line-height: 1.55; margin-bottom: var(--space-2); }
  .back-to-top { bottom: var(--space-5); right: var(--space-5); }
}

/* ── DIRECTORY INDEX ────────────────────────────────────── */
.index-hero { padding: var(--space-9) var(--space-7) var(--space-6); }
.index-hero-inner { max-width: var(--content-width); margin: 0 auto; }
.index-hero h1 {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600;
  letter-spacing: -.03em; line-height: 1.1; color: var(--sand-900);
  margin-bottom: .5rem; text-wrap: balance;
}
.index-hero h1 em { font-style: italic; font-weight: 300; color: var(--sand-600); }
.index-hero p { font-size: .92rem; color: var(--sand-700); line-height: 1.55; max-width: 600px; }

.states-grid {
  max-width: var(--content-width); margin: 0 auto;
  padding: 0 var(--space-7) var(--space-9);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.state-card {
  display: block; background: #fff; border: var(--border-default); border-radius: var(--radius-lg);
  padding: var(--space-5); text-decoration: none;
  transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out), border-color var(--dur-normal) var(--ease-out);
}
@media (hover: hover) {
  .state-card:hover { border-color: var(--sand-400); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
}
.state-card h3 { font-family: var(--serif); font-size: .95rem; font-weight: 600; color: var(--sand-900); margin-bottom: .25rem; }
.state-card .card-credential { font-size: .78rem; color: var(--sand-600); margin-bottom: .65rem; }
.state-card .card-meta { font-family: var(--mono); font-size: .65rem; color: var(--sand-500); }

.filter-bar { max-width: var(--content-width); margin: 0 auto; padding: var(--space-4) var(--space-7) var(--space-5); }
.filter-bar input[type="text"] {
  width: 100%; padding: .7rem var(--space-4); font-family: var(--sans); font-size: .88rem;
  background: #fff; border: var(--border-default); border-radius: var(--radius-md);
  outline: none; transition: border-color var(--dur-fast) var(--ease-out);
}
.filter-bar input[type="text"]:focus { border-color: var(--teal); }

/* ── PRINT COMPLIANCE (No !important tags) ──────────────── */
@media print {
  @page { margin: 1.5cm; }
  
  /* Selectively hide interactive UI using standard cascade specificity */
  .site-nav, .back-to-top, .cta-bar, .skip-link, .filter-bar { 
    display: none; 
  }
  
  body { 
    background: #fff; 
    font-size: 11pt; 
    color: #000; 
  }
  
  main, .hero, .states-grid { 
    padding: 0; 
  }
  
  /* Flatten shadows for ink saving */
  .facts-grid, .board-card, .type-card, .callout, .step, .fact, .faq-item {
    box-shadow: none;
    border: 1px solid #ccc;
    background: transparent;
  }
  
  /* Prevent awkward page breaks mid-card */
  .board-card, .type-card, .callout, .step, .fact, .faq-item {
    page-break-inside: avoid; 
    break-inside: avoid;
  }
  h2, h3, .section-label { 
    page-break-after: avoid; 
    break-after: avoid; 
  }
  
  /* Expand link URLs automatically so readers can type them from paper */
  .board-field-value a[href^="http"]::after,
  .source-bar a[href^="http"]::after,
  .callout a[href^="http"]::after,
  .step-body a[href^="http"]::after {
    content: " (" attr(href) ")"; 
    font-family: var(--mono); 
    font-size: 0.85em; 
    color: #444; 
    overflow-wrap: break-word; 
    word-break: break-all;
  }

  footer { 
    background: #fff; 
    color: #333; 
    border-top: 1px solid #ccc; 
    margin-top: 2rem; 
    padding: 1rem 0; 
  }
  
  .footer-grid { 
    display: none; 
  }
}
