/* SnapEligibility — Apple-inspired redesign 2026-05 */
/* Fonts loaded via <link> in HTML head (Playfair Display + Schibsted Grotesk —
 * the only 2 fonts on this site). Removed a duplicate @import. */

/* ---------- z-index bands (single source of truth) ----------
 * Use these values when adding new layered elements. Don't invent new numbers.
 *
 *   Skip-link (top, must always be visible on focus): 9999  (.skip-link:focus)
 *   Modal / full overlay (reserved):                 1500-2000
 *   Sticky header:                                   1000  (header)
 *   Mega-dropdown menus (escape header stacking):    1100  (.dropdown)
 *   Mobile drawer (inside header context):           100   (.nav-links @media)
 *   In-page popover (autocomplete, suggestions):     50    (.state-suggestions)
 *   Inline element stacking (progress line/dot):     1-2
 *
 * Note: header at 1000 establishes a stacking context, so the mobile drawer's
 * z:100 is local to the header — not competing with the body-level skip-link.
 * --------------------------------------------------------------- */

:root {
  accent-color: #1e70b7;
  --primary: #5663c7;           /* periwinkle indigo (recolored from government blue 2026-06-05) */
  --primary-dark: #3f4aa3; /* AA-compliant: ~6:1 vs white for body links */
  --primary-soft: #ecedfb;
  --fed-blue: #353b86;          /* deep periwinkle — header + footer bar */
  --logo-accent: #ff9776;       /* light coral — logo "Checklist" word + accents on the dark bar */
  --accent-red: #d81365;              /* VA-banner red — accent (trust dots, footer link) */
  --accent-red-dark: #9b0d48;         /* AA-compliant dark red for text on white */
  --accent: #d81365;            /* alias for legacy --accent references */
  --accent-dark: #9b0d48;       /* alias of --accent-red-dark for CRF parity */
  --accent-soft: #fdd8e8;       /* light tint of #d81365 for card-top gradient */
  /* Brand green = positive action (logo accent, hero painted word, primary CTA, "eligible").
     Two shades for contrast: --green on light bg (AA 5:1 on white), --green-bright on the dark header. */
  --green: #15803d;
  --green-dark: #116531;        /* primary-button hover */
  --green-bright: #4ade80;      /* "Eligibility" on the fed-blue header (AA 6.7:1) */

  --ink: #0a0a0b;
  --ink-2: #1d1d1f;
  --ink-3: #424245;
  --ink-4: #535357; /* WCAG AAA: 7.66:1 on #fff, 7.22:1 on --bg (was #6e6e73, 5.07:1 — AA only). */
  --ink-5: #535357; /* WCAG AAA: 7.66:1 on white (was #6e6e73 ~5:1, AA only). */
  --ink-6: #d2d2d7;

  --bg: #F9F8F7;            /* Propel off-white — never pure white */
  --bg-soft: #fbfbfd;
  --bg-medium: #f5f5f7;
  --bg-dark: #161617;
  --bg-darker: #000000;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);

  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;

  /* Font stacks — Playfair Display (serif display) + Schibsted Grotesk (sans body).
     The only 2 fonts on this site. */
  --font-display: 'Playfair Display', ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
  --font-body:    'Schibsted Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Button + interactive timing (Propel pattern) */
  --anim-duration--actions: 0.2s;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-btn: 12px;            /* Propel button radius mobile */
  --r-btn-lg: 15px;         /* Propel button radius desktop */

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-lg: 0 24px 60px -16px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-glass: 0 8px 32px rgba(0,0,0,0.12);

  --container: 1080px;
  --container-narrow: 720px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- merged from the former pastel :root block (single source of truth) --- */
  /* Pastel section blocks — Propel-model palette (replaces v8 muted pastels)
     Note: --block-rose holds the Propel "peach" #FFE5DD — same color, kept under the
     existing rose token name so we don't break existing .section--block-rose users. */
  --block-mint:     #DCF2CB;
  --block-cream:    #FFF0BA;
  --block-lavender: #EBE4FF;
  --block-rose:     #FFE5DD;
  --block-sky:      #E0EDFF;
  --block-sage:     #D7EDE4;
  --block-apricot:  #FCE6CE;
  --block-lilac:    #F1E2F8;
  --block-sage-deep: #3f8f6b;   /* darker tone of sage — by-state cell hover accent */
  --block-lavender-deep: #4f3d99;   /* darker tone of lavender — other-benefits card hover fill */
  --secondary:      #353b86;
  --white: #fff;   /* tokenized white for portable per-site recoloring */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* sticky header is 64px desktop; 80 gives 16px breathing room */
  scrollbar-gutter: stable;
  scrollbar-color: var(--primary) var(--bg-medium);
}
html::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track { background: var(--bg-medium); }
html::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 6px; border: 2px solid var(--bg-medium); }
html::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

body {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;            /* Propel: Polymath 400 */
  line-height: 1.5;
  color: var(--ink);           /* darker near-black, matches reference image */
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Force lining figures everywhere: Playfair Display defaults to old-style (text)
     figures where digits sit at different heights (8 ascends, 3 descends) — looks
     staggered in numbers like "138%". lining-nums = uniform cap-height. This is NOT
     tabular-nums (which spaced commas in Schibsted); spacing is unaffected. */
  font-variant-numeric: lining-nums;
}

p { line-height: 1.5; letter-spacing: 0; }

/* Containers */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* Breadcrumb trail (WCAG 2.4.8 Location). Links use --primary-dark for AAA 7:1. */
.breadcrumb { font-size: 14px; padding-top: 16px; }
.breadcrumb .container { padding-top: 0; padding-bottom: 0; }
.breadcrumb a { color: var(--primary-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--ink-3); }
.breadcrumb__sep { color: var(--ink-4); margin: 0 4px; }

/* Headings — Playfair Display 700, normal tracking, generous leading */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: 0;           /* normal — was -0.015em (too tight, letters cramming) */
  font-weight: 600;            /* Propel Grenette semibold */
  line-height: 1.1;
}

/* Header — sticky, semi-opaque (no backdrop-filter so dropdowns escape stacking context) */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(249, 248, 247, 0.96);   /* matches --bg #F9F8F7 */
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-links {
  flex: 1;
  margin-left: 64px;
  justify-content: space-between;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
  line-height: 1;
}
@media (hover: hover) {
  .logo:hover { opacity: 0.85; }
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(30, 112, 183, 0.18));
}
.logo-text {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--primary);
}
.logo-accent { color: var(--logo-accent); }
.logo-text .logo-accent { -webkit-text-fill-color: var(--logo-accent); background: none; color: var(--logo-accent); }
/* Mobile header fit (porting-safe): the search + hamburger buttons must NEVER shrink below
   their 44px tap target (WCAG 2.5.5), the logo may shrink, and the wordmark steps down so
   logo + 2 buttons fit on narrow phones (was a hard 26px with no <768px rule -> overflow at
   ~320-360px). */
.nav-search-btn-mobile, .nav-mobile-toggle { flex-shrink: 0; }
.logo { min-width: 0; }
.logo-text { white-space: nowrap; }

@media (max-width: 480px) { .logo-text { font-size: 21px; } }
@media (max-width: 380px) { .logo-text { font-size: 18px; } }
.accent { color: var(--primary); }   /* two-color word-painting in headings/heroes — periwinkle (brand). Pink is reserved for the // section eyebrows. */
.nav-link {
  color: var(--ink-3);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}
@media (hover: hover) {
  .nav-link:hover {
    background: var(--primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .nav-link:hover::after { transform: scaleX(1); }
  .nav-item:hover .nav-link::after { transform: scaleX(1); }
}

/* Calculators nav dropdown — JS-injected via /js/nav-dropdown.js. Wraps the
   "Calculators" / "Calculadoras" nav-link in a hover/click dropdown. */

/* EN | ES language toggle — sits at far right of .nav-links, compact + restrained */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lang-toggle__link {
  color: var(--ink-4);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  /* WCAG 2.5.5 — 44px tap target (text stays small; the hit area grows). */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.lang-toggle__link.lang-toggle__active {
  color: var(--ink);
}
.lang-toggle__sep {
  color: var(--ink-6);
  font-weight: 400;
}
@media (hover: hover) {
  .lang-toggle__link:hover {
    color: var(--primary);
    background: var(--primary-soft);
  }
}
@media (max-width: 720px) {
  .lang-toggle { margin-left: 12px; font-size: 13px; }
}
@media (hover: hover) {
  .nav-item:hover .nav-link {
  background: var(--primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
}

.nav-link .caret {
  color: var(--primary);
  opacity: 1;
  transition: transform 0.25s var(--ease), color 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  position: relative;
  top: 1px;
}
.nav-link .caret svg { width: 17px; height: 17px; display: block; }
@media (hover: hover) {
  .nav-link:hover .caret, .nav-item:hover .nav-link .caret {
  -webkit-text-fill-color: var(--primary-dark);
  color: var(--primary-dark);
}
}

.nav-item { position: relative; }
/* Narrow hover bridge that ONLY covers the nav-item's own width, not the
   wider dropdown — prevents adjacent nav-items from re-triggering hover and
   causing flicker. */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  pointer-events: none;
}
@media (hover: hover) {
  .nav-item:hover::after { pointer-events: auto; }
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  min-width: 320px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 24px 64px -16px rgba(0,0,0,0.22), 0 8px 16px -8px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease) 0.05s, transform 0.22s var(--ease) 0.05s, visibility 0s linear 0.23s;
  z-index: 1100;
}
@media (hover: hover) {
  .nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.nav-item-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s var(--ease), transform 0.22s var(--ease), visibility 0s;
}
}
/* Touch / no-hover: nav-item-open is the click-toggle state. Always applies. */
.nav-item.nav-item-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s var(--ease), transform 0.22s var(--ease), visibility 0s;
}
/* Reset button defaults so .nav-link-dropdown rendered as <button> matches
   the prior <a> styling (no border, no background, inherit text). */
button.nav-link-dropdown {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
}

.dropdown-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 8px 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--green);
}
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.dropdown-grid a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  font-weight: 500;
}
@media (hover: hover) {
  .dropdown-grid a:hover { background: var(--bg-medium); color: var(--primary); }
}

.dropdown-list { display: flex; flex-direction: column; gap: 2px; }
/* Multi-column variant for Calculators dropdown (13 items — too tall as single col) */

/* 5-column grouped variant for Calculators dropdown (items grouped by
   category — single 2-col list was too tall; this organizes by intent).
   Uses a fixed 5-column grid on desktop and explicit-width parent so the
   .dropdown container expands to fit; auto-collapses to 2 cols below
   920px and 1 col on mobile drawer. */
.dropdown-grouped {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px 16px;
  width: 860px;
  max-width: calc(100vw - 32px);
  padding: 4px;
}
/* Desktop: page-center the wide grouped mega-menu under the (far-left) Calculators
   trigger using the viewport as the anchor. Scoped to >=769px so the mobile drawer's
   static positioning is untouched. The open/close states supply translateX(-50%). */

/* display:contents promotes the wrapper's two groups ("Your EBT & payments" +
   "Other programs") into their own grid columns, so the menu is a full 5 columns. */
.dropdown-col { display: contents; }
.dropdown-group { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dropdown-group .dropdown-group-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.25;
  color: var(--primary-dark);
  margin: 0 10px 8px;
  padding: 0 0 6px;
  /* Reserve a 2-line text height so the green underline sits on the SAME row across
     all 4 columns, whether the heading is one line ("Eligibility") or two
     ("Your benefit & deductions"). 2×1.25em + 6px pad + 2px border ≈ 41px. */
  min-height: 41px;
  border-bottom: 2px solid var(--green);
}
@media (max-width: 920px) {
  .dropdown-grouped {
    grid-template-columns: repeat(2, 1fr);
    width: auto;
    min-width: 460px;
  }
}
@media (max-width: 540px) {
  .dropdown-grouped {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}
.dropdown-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
@media (hover: hover) {
  .dropdown-list a:hover { background: var(--bg-medium); }
  .dropdown-list a:hover .dd-title { color: var(--primary-dark); }
  .dropdown-list a:hover .dd-desc { color: var(--primary-dark); }
}

.dd-title { font-size: 14px; font-weight: 600; color: var(--ink); transition: color 0.15s; }
.dd-desc { font-size: 12px; color: var(--ink-4); transition: color 0.15s; }
.dropdown-all {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark); /* AA contrast on white */
  text-decoration: none;
  border-top: 1px solid var(--border);
  text-align: center;
}
@media (hover: hover) {
  .dropdown-all:hover { color: var(--primary-dark); }
}

/* ============ Colored fed-blue site header (white-on-blue nav, 2026-06) ============
   The header bar is fed-blue on every screen; the DESKTOP nav inverts to white.
   The <=768px mobile drawer keeps its white background + dark text (existing rules),
   so the white inversion is scoped to >=769px and never touches the drawer. */
header {
  background: var(--fed-blue);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.logo-text { color: var(--white); }
.logo-text .logo-accent { color: var(--logo-accent); -webkit-text-fill-color: var(--logo-accent); }
@media (min-width: 769px) {
  .nav-item:first-child .dropdown:has(.dropdown-grouped) { position: fixed; top: 64px; left: 50%; }

  .nav-link, button.nav-link-dropdown { color: var(--white); }
  .nav-link .caret { color: var(--white); }
  .nav-link::after { background: var(--green-bright); }   /* green hover underline pops on the blue header */
  .nav-search-btn { color: var(--white); }
  .lang-toggle__link { color: rgba(255, 255, 255, 0.80); }   /* AAA 7:1 on the dark drawer */
  .lang-toggle__link.lang-toggle__active { color: var(--white); }
  .lang-toggle__sep { color: rgba(255, 255, 255, 0.38); }
}
@media (min-width: 769px) and (hover: hover) {
  .nav-link:hover, .nav-item:hover .nav-link,
  .nav-link:hover .caret, .nav-item:hover .nav-link .caret {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    background: none;
  }
  .lang-toggle__link:hover { color: var(--white); background: rgba(255, 255, 255, 0.14); }
}

/* Mobile-only search button — hidden on desktop, shown in @media below */
.nav-search-btn-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--white);                 /* white magnifier on the dark blue header */
  cursor: pointer;
  border-radius: 8px;
}
.nav-search-btn-mobile:hover { background: rgba(255, 255, 255, 0.14); }
.nav-search-btn-mobile svg { width: 22px; height: 22px; }

/* Mobile nav — hamburger drawer */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
}
.nav-mobile-toggle .nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);            /* white hamburger bars on the dark blue header */
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav.nav-open .nav-mobile-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.nav-open .nav-mobile-toggle .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-mobile-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  /* Group search + hamburger together at the right: search takes the auto gap from the
     logo, hamburger sits right beside it with a small fixed gap (both 44px tap targets). */
  .nav-search-btn-mobile { display: inline-flex; width: 44px; padding: 0; margin-left: auto; }
  .nav-mobile-toggle { display: flex; margin-left: 4px; }
  .nav-links button.nav-search-btn:not(.nav-search-btn-mobile) { display: none !important; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    background: var(--white);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.18), 0 4px 8px -4px rgba(0, 0, 0, 0.06);
    padding: 12px 0 20px;
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    z-index: 100;
  }
  .nav.nav-open .nav-links { display: flex; }
  /* Uniform top-level title style for ALL nav items (Calculators, Deadlines, By state, Guides, About) */
  /* Bumped to .nav-links .nav-link (0,2,0) per CRF spec to win against any stale inline-critical (0,1,0) */
  .nav-links .nav-link, .nav-item > .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;          /* WCAG 2.5.5 — full-height drawer tap target */
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    padding: 6px 24px 6px;
    width: 100%;
    text-align: left;          /* all drawer titles left-aligned at 24px (consistent + clear of the Ask bubble) */
    text-transform: none;
    letter-spacing: -0.015em;
    pointer-events: auto;
  }
  .nav-item { width: 100%; }
  .nav-link .caret { display: none; }
  /* EN|ES toggle: left-align in the drawer (was centered, crowding the Ask bubble) */
  .nav-links .lang-toggle { align-self: flex-start; margin-left: 18px; margin-top: 8px; }
  .nav-links .lang-toggle__link { min-height: 44px; display: inline-flex; align-items: center; }  /* WCAG 2.5.5 */
  .nav-links .lang-toggle__link:first-child { margin-left: 0; padding-left: 0; }

  /* In mobile drawer, expand dropdowns inline below the section title */
  .nav-item .dropdown,
  .nav-item.nav-item-open .dropdown {
    display: block;
    position: static;
    left: auto;
    box-shadow: none;
    background: transparent;
    padding: 0 24px 2px;
    opacity: 1;
    visibility: visible;
    transform: none;          /* override desktop translateX(-50%) — was clipping items off the left */
    width: auto;
    min-width: 0;
  }
  .nav-item .dropdown::before { display: none; }
  .dropdown-eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-dark); border-bottom: 2px solid var(--green); padding: 0 0 6px; margin: 8px 0 8px; }
  /* Divider lines between mobile-drawer dropdown entries */
   .dropdown-list a, .dropdown-grid a {
    border-bottom: 1px solid rgba(30, 112, 183, 0.10);
  }
   .dropdown-list a:last-child { border-bottom: 0; }
  .dropdown-grid a:nth-last-child(-n+2) { border-bottom: 0; }
  .dropdown-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .dropdown-grid a { padding: 14px 14px; font-size: 14px; } /* WCAG 2.5.5 — 44px target */
  .dropdown-list a { padding: 14px 0; } /* WCAG 2.5.5 — 44px target */
  .dropdown-list .dd-title { font-size: 15px; font-weight: 500; }
  .dropdown-list .dd-desc { font-size: 12px; }
  /* Grouped mega-menu: collapse to single column inside mobile drawer.
     Resets the desktop ≤920px (2-col, 460px min-width) rule that would
     overflow the drawer on phones. */
  .nav-item .dropdown-grouped {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    gap: 8px;
    padding: 0;
  }
  .nav-item .dropdown-group .dropdown-group-label {
    padding-top: 8px;
    padding-bottom: 4px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    margin-left: 0;    /* align group titles with the item names (was inset 10px) */
    margin-right: 0;
    min-height: 0;     /* mobile is a stacked accordion — no 2-line reservation needed */
  }
  .nav-item .dropdown-group:first-child .dropdown-group-label {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
  }
}

/* HERO — Apple-style: massive type, full bleed, generous space */
.hero {
  padding: 32px 24px 32px;
  text-align: center;
  background: var(--bg);
  position: relative;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 14px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .gradient {
  background: var(--primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--ink-3);
  max-width: 580px;
  margin: 0 auto 8px;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.45;
}
.hero .meta {
  font-size: 13px;
  color: var(--ink-5);
  margin-top: 18px;
  letter-spacing: 0.01em;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
/* Buttons — Propel model: 12/15px radius, 0.02rem tracking, color-only hover, no scale/shadow theatrics */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02rem;
  text-decoration: none;
  transition: background-color var(--anim-duration--actions) ease-in-out,
              color var(--anim-duration--actions) ease-in-out,
              border-color var(--anim-duration--actions) ease-in-out;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) {
  .btn {
    padding: 12px 25px;
    font-size: 18px;
    border-radius: var(--r-btn-lg);
  }
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--primary-dark);
  }
}

.btn-secondary {
  background: transparent;
  color: #0f0f10;
  border: 1.5px solid #0f0f10;
}
@media (hover: hover) {
  .btn-secondary:hover {
    background: #404043;
    border-color: #404043;
    color: var(--white);
  }
}


/* Reveal animation (Intersection Observer adds .in-view).
   No will-change — promoting 99 elements to GPU layers backfires on memory.
   Mobile + reduced-motion: skip animation entirely. */

/* Calculator — the hero "product" */

.calc {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: visible;
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.calc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  border-radius: var(--r-lg);
  pointer-events: none;
}

.calc h2 {
  font-size: 28px;
  margin-bottom: 28px;
  letter-spacing: -0.025em;
  font-weight: 600;
}
/* Kill native number spinners everywhere — replaced by the .num-stepper control */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Modern − / + number stepper (Option B) */
.num-stepper {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.num-stepper .num-step-btn {
  flex: 0 0 44px;
  border: 0;
  background: var(--primary);   /* tokenized (was #4a90d9); hover darkens to --primary-dark */
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.num-stepper .num-step-btn svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .num-stepper .num-step-btn:hover { background: var(--primary-dark); color: var(--white); }
}
.num-stepper .num-step-btn:active { background: var(--primary-dark); }
.num-stepper input[type="number"] {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-weight: 700;
  color: var(--ink);   /* set values render near-black; placeholders stay grey via ::placeholder */
  border: 0 !important;
  border-left: 1px solid var(--border) !important;
  border-right: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--white);
}
.num-stepper input[type="number"]:focus { outline: none; box-shadow: none !important; }
.num-stepper:focus-within { box-shadow: 0 0 0 2px var(--primary-soft); border-color: var(--primary); }

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 20px;
  cursor: pointer;
}
.toggle input { width: 18px; height: 18px; cursor: pointer; }


/* Results — big numbers, dramatic */
/* Dead .results block removed (was overridden by the rule below at the
   "Results panel" section). Kept .results h3 since it's still used. */
.results h3 {
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--ink-4);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* SECTIONS — full-bleed alternating */
.section {
  padding: 64px 24px;
}
.section.alt { background: var(--bg-medium); }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: "// ";
  color: var(--accent);
}
.section h2 {
  font-size: clamp(36px, 5.2vw, 60px);
  margin-bottom: 20px;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.2;
}

.section h3 { font-size: 22px; margin: 28px 0 10px; font-weight: 600; }
.section p { margin-bottom: 14px; color: var(--ink-3); }
.section ul { margin: 14px 0 18px 22px; }
.section li { margin-bottom: 8px; color: var(--ink-3); }
.section a:not(.card):not(.btn):not(.state-list a):not(.state-cell):not(.article-card) { color: var(--primary-dark); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
@media (hover: hover) {
  .section a:not(.card):not(.btn):not(.state-list a):not(.state-cell):not(.article-card):hover { color: var(--primary-dark); }
}
/* Card-style links must NEVER get the inline-link underline border (that drew a dark
   line along the bottom of the Other-benefits / state / change cards). Durable reset
   for every card-grid pattern so it can't recur.
   🔒 LOCK: :not(.state-cell) is REQUIRED. .state-cell is a flex pill that centers its
   label with symmetric padding (6px top/bottom); zeroing padding-bottom here pushes the
   text low (top margin > bottom). Do NOT drop the :not(.state-cell) guards. */
.section .alt-grid a, .section .card-grid a:not(.state-cell), .section .changes-grid a,
.alt-grid a, .card-grid a:not(.state-cell), .changes-grid a {
  border-bottom: 0 !important;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  /* .section + footer padding live in the consolidated mobile-polish block below
     (40px 18px / 32px 18px 32px) — kept there to avoid two competing declarations. */
  .calc { padding: 24px 18px; }
  .hero { padding: 18px 18px 18px; }   /* horizontal matches .section (18px) at 768px */
  .section h2 { margin-bottom: 16px; }
  .section h3 { margin: 22px 0 8px; }
  .calc h2 { font-size: 22px; margin-bottom: 18px; }
  /* tighten card grids */
  .card-grid { gap: 12px; }
}

/* Cards — Apple-quality */
/* Category headings inside the articles section */

.card {
  background: var(--bg);
  border-radius: 24px;
  padding: 18px 28px 18px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  height: 135px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 2;
}
.card:has(> .card-tag) { height: 160px; }
.card::after {
  content: "→";
  position: absolute;
  right: 22px;
  bottom: 22px;
  font-size: 18px;
  color: var(--ink-5);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
  font-weight: 400;
}
@media (hover: hover) {
  .card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}
}

@media (hover: hover) {
  .card:hover::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary);
}
}

@media (hover: hover) {
  .card:hover .card-title { color: var(--primary-dark); }
}

.card .card-title {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .card-desc {
  color: var(--ink-4);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  margin: 0;
  padding-right: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

/* Article hub — categorized grid of small white cards on pastel category blocks.
   SNAP-original component (no cross-site code). Each category = one pastel .section--block-*
   with a pink "// Category" .section-eyebrow + this grid. Cards grow to fit; rows equalize. */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 🔒 LOCKED 2026-06-04 (Vincent) — guide-card format is FINAL. Do NOT change:
   fixed height, box-sizing, equal 20px top/bottom padding, the 3-col equal-width
   grid, or the 6-line title+desc rule in js/card-uniform.js. Every card EXACTLY the
   same size. Only the `height` value is tunable on Vincent's explicit request. */
.article-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px 22px;
  box-sizing: border-box;        /* height includes the 20px top/bottom padding */
  height: 180px;                 /* 🔒 FIXED so every card is the EXACT same size; js/card-uniform.js
                                    balances title+desc to a constant 6 lines that fill this box */
  overflow: hidden;              /* safety: clip if a title wraps to an unexpected extra line */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* title + desc top-aligned; equal 20px top/bottom padding */
  gap: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
@media (hover: hover) {
  .article-card:hover { box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.16); }
}
.article-card .ac-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.article-card .ac-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Guide-category "Show more" — a category with >6 cards collapses to its first 6 */
.article-grid.is-collapsed .ac-extra { display: none; }
.show-more {
  display: block;
  margin: 22px auto 0;
  background: none;
  border: 0;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.01em;
  cursor: pointer;
}
.show-more:hover { color: var(--green-dark); text-decoration: underline; }
.show-more .sm-arrow { font-weight: 700; }

/* Affiliate panel — premium feel */

/* FAQ — card-style accordion */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--bg);
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s var(--ease);
}
@media (hover: hover) {
  .faq details:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}
}

.faq details[open] {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.faq summary {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  position: relative;
  padding-right: 36px;
  min-height: 44px;   /* WCAG 2.5.5 tap target — a single-line summary is otherwise ~28px */
}
.faq summary::-webkit-details-marker { display: none; }
/* Propel-style +/- toggle: horizontal bar (always) + vertical bar (rotates to merge on open). */
.faq summary::before {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 16px;
  height: 2.5px;
  margin-top: -1.25px;
  background: var(--ink);
  border-radius: 2px;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 10.75px;
  top: 50%;
  width: 2.5px;
  height: 16px;
  margin-top: -8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(90deg);
}
.faq details p { margin-top: 14px; color: var(--ink); font-size: 18px; line-height: 1.55; }

/* Light footer rules removed — overridden by dark footer below */

/* State list — refined chip-style grid */
/* Flexbox layout: items wrap to fixed-fraction widths; last incomplete row
   auto-centers via justify-content. Works for 51 (50 states + DC) or any
   future count without per-row positioning rules. */
.state-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.state-list li {
  flex: 0 0 calc((100% - 5 * 5px) / 6);
  min-width: 0;
}
@media (max-width: 900px) {
  .state-list li { flex-basis: calc((100% - 3 * 5px) / 4); }
}
@media (max-width: 600px) { .nav { padding-left: 16px; padding-right: 16px; } 
  .state-list li { flex-basis: calc((100% - 2 * 5px) / 3); }
  /* Some mobile browsers retain default ul padding-inline-start: 40px despite
     the padding: 0 shorthand reset. Force centering with !important so the
     grid doesn't render offset-right within its container. */
  .state-list {
    margin: 16px 0 !important;
    padding: 0 !important;
    padding-inline-start: 0 !important;
    padding-inline-end: 0 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
    width: 100%;
  }
}
@media (max-width: 420px) {
  .state-list li { flex-basis: calc((100% - 5px) / 2); }
}
.state-list a {
  display: block;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
  overflow: visible;
}
@media (hover: hover) {
  .state-list a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
}

/* Article body — generous reading space */
article.container-narrow {
  padding-top: 96px;
  padding-bottom: 96px;
}

article h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: 0;
  font-weight: 700;
  max-width: 760px;
}

article p, article li {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 16px;
}
article ul, article ol { margin: 14px 0 22px 24px; }
article li { margin-bottom: 8px; }
article h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
article h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
}
article a {
  color: var(--primary-dark); /* AA contrast: was --primary (3.74:1, fails AA) */
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
@media (hover: hover) {
  article a:hover { color: var(--secondary); }
}

article strong { color: var(--ink); font-weight: 600; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--bg-medium);
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: -0.005em;
}
td { color: var(--ink-2); }
@media (hover: hover) {
  table tr:hover td { background: var(--bg-soft); }
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 32px;
  row-gap: 8px;
  padding: 24px 20px 24px;
  background: transparent;
  margin: 0;
}
.trust-item {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.trust-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Stats row (Apple-style numbers) */
/* removed dead .stats block */
/* ---------------- Multi-step calculator ---------------- */

/* Invisible 44x44 tap target around the 32x32 visual dot (WCAG 2.5.5). */

@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* State quick chips */
.state-typeahead{ position: relative; }
.state-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 12px 32px -8px rgba(0, 0, 0, 0.18), 0 4px 8px -4px rgba(0, 0, 0, 0.06);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  padding: 4px 0;
}
.state-suggestions.show { display: block; }
.state-suggestion {
  padding: 12px 18px;
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  letter-spacing: -0.01em;
}
.state-suggestion:last-child { border-bottom: none; }
@media (hover: hover) {
  .state-suggestion:hover{
  background: var(--bg-medium);
  color: var(--primary-dark);
}
}

.state-suggestion .match { font-weight: 700; color: var(--ink); }
@media (hover: hover) {
  .state-suggestion:hover .match { color: var(--primary-dark); }
}

.state-chip {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 980px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
  font-family: inherit;
  min-height: 44px;
}
@media (hover: hover) {
  .state-chip:hover { border-color: var(--primary); color: var(--primary); }
}

.state-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Step nav buttons */

/* Results panel — premium */
.results {
  margin-top: 32px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

/* Email reminder card */

@keyframes fadeOut { to { opacity: 0; } }

 /* WCAG 2.5.5 */

/* ---------------- Professional dark footer ---------------- */
footer {
  background: var(--secondary);
  padding: 54px 24px 54px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  border-top: none;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  max-width: var(--container);
  margin: 0 auto 36px;
  justify-content: initial;
  flex-wrap: initial;
}
@media (max-width: 900px) { footer .footer-grid { grid-template-columns: repeat(3, 1fr); } }


.footer-col h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.18s var(--ease);
  display: inline-block;
}
@media (hover: hover) {
  .footer-col a:hover {
  color: var(--white);
}
}

footer .disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-top: 4px;
  max-width: none;
  text-align: center;
}

footer .disclaimer a { color: var(--logo-accent); text-decoration: underline; }

/* ---------------- 1099 vs W-2 comparison ---------------- */

/* State comparison tool — extra classes */

/* ---------------- Affiliate cards (branded) ---------------- */

@media (hover: hover) {
  footer .disclaimer a:hover { color: var(--white); }
}

/* removed dead .brand-mark */

/* ---------------- Affiliate Brand Card (inline, featured) ---------------- */
/* Used inside articles to give every affiliate mention a branded visual card.
   Border color comes from --brand-color set inline per brand. */

/* ---------------- 1099 vs W-2 comparison grid ---------------- */

/* ---------------- Hero badge / How-it-works / Features / Deadlines ---------------- */

/* Pass-23: removed pill background + border to stop users mistaking the
   badge for a button. Clarity heatmap showed 12.5% of homepage clicks
   landing here on what is purely decorative copy. Now reads as plain
   eyebrow text — same dot indicator, no clickable affordance. */

.trust-item:first-child .dot { animation: hero-badge-pulse 1.6s ease-in-out infinite; }
@keyframes hero-badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.4); opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .trust-item:first-child .dot { animation: none; }
}

/* How-it-works steps */

/* Features grid */

/* Deadline cards */

/* Pass-23b/c: bridge from deadline cards → calculator. Real users
   (Clarity heatmap) prefer "View deadlines" over "Run the calculator"
   on the homepage by ~6:1. Adding an inline CTA right after the
   deadline cards captures users who came here for dates and might
   want the dollar number too. Pass-23c: tightened layout per user
   feedback — center everything, use site font, breathing room. */

/* Reduce-motion respect */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  
  html { scroll-behavior: auto; }
}

/* ========== Accessibility additions ========== */

/* Global focus ring for keyboard nav (was missing on buttons/pills/links). */
*:focus-visible {
  outline: 3px solid var(--primary-dark, var(--primary-dark));   /* AAA 2.4.13: thick, 8.58:1 indicator */
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-to-main link — visually hidden (screen-reader-only) until keyboard-
 * focused. Standard clip pattern that survives any positioning context (the
 * previous `position: absolute; top: -40px` was leaking visible inside the
 * sticky header where `position: absolute` resolved to a different ancestor). */
.skip-link {
  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:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: var(--primary, var(--primary));
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  clip: auto;
  z-index: 9999; /* top band — see header comment */
}

/* Mobile table overflow — wraps wide bracket / comparison tables. */

/* Print stylesheet — hide nav, ads, footer, sticky header.
   Articles get printed/saved-as-PDF; let the body content stand alone. */
@media print {
  header, .nav-mobile-toggle, .dropdown, footer, .skip-link, #snap-search-modal {
    display: none !important;
  }
  body { font-size: 11pt; line-height: 1.5; color: #000; background: var(--white); }
  a { color: #000; text-decoration: underline; }
  article a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .container, .container-narrow { max-width: 100% !important; padding: 0 !important; }
  h1, h2, h3 { page-break-after: avoid; }
  pre, blockquote, table { page-break-inside: avoid; }
}

/* WCAG 2.2 SC 2.4.11 — Focus Not Obscured (Min). The sticky header is ~64px
   tall; without scroll-margin, Tab-focusing an element near the top of the
   viewport hides its focus ring entirely behind the header.
   Use :focus (not :focus-visible) so click-focused targets also scroll into
   view — Chrome/Safari don't trigger :focus-visible on click. scroll-padding-top
   on html is set above (line 52); this complements it for programmatic focus. */
:focus { scroll-margin-top: 80px; }

/* ---------- Search button (header) — bare icon, brand-color underline on hover ---------- */
/* Source-order wins over .nav-link without !important since this rule appears later. */
.nav-search-btn {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.15s var(--ease), color 0.15s var(--ease);
}
@media (hover: hover) {
  .nav-search-btn:hover {
    border-bottom-color: var(--primary);
    color: var(--primary);
    background: transparent;
  }
}

/* By-state dark preview section (homepage) — snapeligibility 2026-05-23.
   Dark background, dark-gray tile buttons, navy hover (--primary). */

/* CRF-port additions (2026-05-27) */

/* Accessible aria-live hide — visibility-only, NOT display:none, so screen readers still announce */
.calc-result.hidden {
  display: block !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Renewal-calc result-row scoped 15px override (CRF parity — no-op on vet if class unused) */

/* Dark-mode @media coverage (PHASE 4 prep) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --bg-soft: #161617;
    --bg-medium: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #e5e5ea;
    --ink-3: #c7c7cc;
    --ink-4: #8e8e93;
    --border: rgba(255,255,255,0.12);
  }
  body, header { background: var(--bg); color: var(--ink-2); }
  .card, .faq details, .calc, .state-suggestions { background: var(--bg-soft); }
  
}

/* ===========================================================
 * v8 fusion deltas (added 2026-05-30 per project_snap_site_v8_design_fusion_plan)
 * - Playfair Display serif headline font
 * - Pastel section blocks (mint / cream / lavender / rose)
 * - Calculator-result mockup card for hero
 * - Split hero layout (text left, mockup right)
 * =========================================================== */



/* Headline slab applied selectively — body, nav, cards, buttons keep sans */
.hero h1,
.section h2,
.section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  font-style: normal;
}
.hero h1 { font-weight: 600; letter-spacing: 0; line-height: 1.1; }

/* Split-hero layout (delta #3 — calc-result mockup right column on desktop) */
.hero--split {
  display: block;
  text-align: left;
}
.hero--split .hero-inner {
  /* Hero band intentionally breaks wider than the body --container (1080) so the
     sample card can be larger; sections below stay at standard width. */
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 32px;
}

/* Match the regular .hero mobile padding so the split hero (used on every by-state page)
   scales its horizontal padding the same way: 24 -> 18 (<=768) -> 14 (<=480). */
@media (max-width: 768px) { .hero--split .hero-inner { padding: 18px 18px 18px; } }
@media (max-width: 480px) { .hero--split .hero-inner { padding: 14px 14px 14px; } }
.hero--split h1 {
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  font-size: clamp(38px, 5.2vw, 60px);    /* Playfair Display 700 */
  margin-bottom: 20px;
  text-align: left;
  max-width: none;
}
.hero--split .hero-sub {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 580px;
}
.hero--split .cta-row {
  justify-content: flex-start;
  margin-top: 28px;
}
.hero--split .trust-strip {
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 28px;
  max-width: var(--container);
  margin: 4px auto 0;
  padding: 8px 24px;
}

/* Trust chips relocated under the hero CTA, as bigger pills (benefitsusa-style,
   where hesitation actually happens). Left-aligned in the hero column. */
.hero--split .trust-strip--hero {
  justify-content: flex-start;
  column-gap: 8px;
  row-gap: 8px;
  max-width: none;        /* let the 4 chosen pills sit on one line within the column */
  margin: 22px 0 0;
  padding: 0;
}
.trust-strip--hero .trust-item {
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.trust-strip--hero .trust-item .dot { margin-right: 5px; }
/* Secondary action demoted from a button to a quiet text link beside the CTA. */
.hero--split .cta-row { align-items: center; }
.hero-textlink {
  display: inline-flex;
  align-items: center;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 6px 4px;
}
.hero-textlink:hover { text-decoration: underline; }

/* Calculator-result mockup card (used on the 50+50 state pages — keep as-is) */
.calc-result-mockup {
  background: var(--white);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  max-width: 420px;
  margin: 32px auto 0;
}
@media (min-width: 901px) {
  .hero--split .hero-inner {
    display: grid;
    grid-template-columns: 1fr 0.95fr;   /* card column widened (was 1.1 / 0.9) */
    gap: 48px;
    align-items: center;
  }

  .calc-result-mockup { margin: 0; max-width: none; }
}
.mockup-eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mockup-verdict {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.mockup-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--bg-medium);
  font-size: 14px;
  color: var(--ink-3);
}
.mockup-row span:last-child { color: var(--primary); font-weight: 500; }

/* Rich homepage variant — fed-blue header strip + animated benefit bars (--rich only) */
.calc-result-mockup--rich { padding: 0; overflow: hidden; }
/* Larger homepage card (state-page cards use the base .calc-result-mockup and are untouched) */
.calc-result-mockup--rich .mockup-strip { padding: 16px 26px; }
.calc-result-mockup--rich .mockup-strip-title { font-size: 16px; }
.calc-result-mockup--rich .mockup-body { padding: 28px 26px; }
.calc-result-mockup--rich .mockup-amount { font-size: 40px; margin-bottom: 6px; }
.calc-result-mockup--rich .mockup-amount-unit { font-size: 19px; }
.calc-result-mockup--rich .mockup-meta { font-size: 14px; margin-bottom: 22px; }
.calc-result-mockup--rich .mockup-bars { gap: 18px; }
.calc-result-mockup--rich .mockup-bar-label { font-size: 14px; }
.calc-result-mockup--rich .mockup-bar-track { height: 10px; margin: 8px 0 4px; }
.calc-result-mockup--rich .mockup-tests { font-size: 13px; margin-top: 18px; padding-top: 16px; }
/* Real CTA at the bottom of the card (a sample preview that invites the real check) */
.mockup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 22px 0 4px;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 14px;
}
.mockup-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--fed-blue);
  color: var(--white);
  padding: 14px 22px;
}
.mockup-strip-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.mockup-strip-title::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green-bright);              /* live-result status dot */
}
.mockup-strip-tag { font-size: 12px; color: rgba(255, 255, 255, 0.62); }
.mockup-body { padding: 22px; }
.mockup-amount {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.mockup-amount-unit { font-size: 18px; font-weight: 600; color: var(--ink-4); }
.mockup-meta { font-size: 13px; color: var(--ink-4); margin-bottom: 18px; }
.mockup-bars { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.mockup-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-3);
}
.mockup-bar-label b { color: var(--ink); font-weight: 700; }
.mockup-bar-track {
  height: 8px;
  background: var(--bg-medium);
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0 4px;
}
.mockup-bar-fill {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 99px;
  /* 🔒 LOCKED (2026-06-03): 1.2s ease-out — matches benefitsusa.org's
     transition-duration:1.2s. Keep duration + easing in sync with the $556 count-up
     in js/mockup-countup.js (DURATION=1200, easeOutCubic). Do NOT change the speed. */
  animation: mockupBarGrow 1.2s ease-out both;
}
/* 🔒 LOCKED: second bar staggered 0.2s so the two don't fill in lockstep. */
.mockup-bar:nth-child(2) .mockup-bar-fill { animation-delay: 0.2s; }
.mockup-bar-fill--blue { background: var(--primary); }
.mockup-bar-fill--green { background: #16a34a; }
.mockup-bar-note { font-size: 12px; color: var(--ink-4); }
.mockup-tests {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--bg-medium);
  line-height: 1.5;
}
@keyframes mockupBarGrow { from { width: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mockup-bar-fill { animation: none; }
}

/* Pastel section blocks (delta #2 — replace flat alternation with color rhythm) */
.section--block-mint,
.section--block-cream,
.section--block-lavender,
.section--block-rose,
.section--block-sky,
.section--block-apricot,
.section--block-lilac,
.section--block-sage {
  border-radius: 24px;
  margin: 32px auto;
  max-width: calc(var(--container) + 48px);
  padding: 40px 32px;
}
/* Pastel boxes whose first content is a heading inherit .section h2/h3 margin-top,
   making the top gap bigger than the bottom. Zero it so top == bottom (the block's 40px
   padding). Homepage sections start with a .section-eyebrow (not a heading) -> untouched. */
[class*="section--block-"] > :is(h2, h3):first-child,
[class*="section--block-"] > .container > :is(h2, h3):first-child,
[class*="section--block-"] > .container-narrow > :is(h2, h3):first-child { margin-top: 0; }
[class*="section--block-"] > p:last-child,
[class*="section--block-"] > .container > p:last-child,
[class*="section--block-"] > .container-narrow > p:last-child { margin-bottom: 0; }
.section--block-sage     { background: var(--block-sage); }
.section--block-mint     { background: var(--block-mint); }
.section--block-cream    { background: var(--block-cream); }
.section--block-lavender { background: var(--block-lavender); }
.section--block-rose     { background: var(--block-rose); }
.section--block-sky      { background: var(--block-sky); }
.section--block-apricot  { background: var(--block-apricot); }
.section--block-lilac    { background: var(--block-lilac); }

/* On dark/pastel blocks the section-eyebrow stays accent color */
.section--block-mint .section-eyebrow::before,
.section--block-cream .section-eyebrow::before,
.section--block-lavender .section-eyebrow::before,
.section--block-rose .section-eyebrow::before,
.section--block-apricot .section-eyebrow::before,
.section--block-lilac .section-eyebrow::before,
.section--block-sky .section-eyebrow::before {
  color: var(--accent);
}

/* Mandatory non-affiliation disclaimer styling */
.footer-disclaimer {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  max-width: 800px;
  margin: 8px auto 0;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.footer-copy {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);   /* AA: 5.53:1 on the federal-blue footer (was 0.5 = 4.14:1) */
  padding: 16px 20px 16px;
}

/* SnapEligibility quick-check form (chunk 2 — calculator JS wiring) */
.check-form {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  margin: 32px auto;
  max-width: 580px;
  box-shadow: 0 4px 18px rgba(30, 112, 183, 0.08);
}
/* Tighten the homepage eligibility form padding on small screens (mirrors .calc). */

.check-row { margin-bottom: 18px; }
.check-row label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.check-row select,
.check-row input[type="number"],
.check-row input[type="text"],
.check-row input[type="date"],
.check-row input[type="month"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  background: var(--white);
  color: var(--ink);
}
/* WCAG 2.5.5 — 44px tap height for the main form controls on touch screens. */

.check-row select:focus,
.check-row input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.check-row input::placeholder { color: var(--ink-5); opacity: 1; }

/* Typeahead state combobox — bold-letter match highlighting per UX 2026-05-31.
   Replaces native <select> on all calc + homepage state pickers. */
.combobox-wrap {
  position: relative;
  width: 100%;
}
.combobox-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  background: var(--white);
  color: var(--ink);
}
.combobox-input::placeholder { color: var(--ink-5); opacity: 1; }
.combobox-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.combobox-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 50;
}
.combobox-list[hidden] { display: none; }
.combobox-list__item {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  user-select: none;
}
.combobox-list__item.is-active,
.combobox-list__item:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.combobox-list__item strong {
  font-weight: 700;
  color: var(--primary);
}
.combobox-list__item.is-active strong {
  color: var(--primary-dark);
}
.combobox-list__empty {
  padding: 10px 14px;
  color: var(--ink-4);
  font-size: 14px;
  font-style: italic;
}
.snap-result { margin-top: 20px; min-height: 28px; }
.snap-hint {
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  padding: 14px 18px;
  border-radius: 12px;
}
.snap-verdict {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.2;
}
.snap-verdict--ok { color: var(--primary); }
.snap-verdict--no { color: var(--accent-dark); }
.snap-verdict--warn { color: var(--warning); }
.snap-amount {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 10px;
  line-height: 1.2;
}
/* Canonical headline result figure — the big $ number calc JS injects into #result.
 * Single source of truth (replaces a font-size:32px inline style duplicated across
 * 6 calc JS files). Distinct from .snap-amount (15px result sentences). 32px ==
 * .mockup-amount so the hero preview matches the real result. */
.snap-figure {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0;
  line-height: 1.2;
}
.snap-meta {
  font-size: 13px;
  color: var(--ink-4);
  margin-bottom: 12px;
}
.snap-tag {
  display: inline-block;
  background: var(--block-mint);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.snap-note {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 12px 0 0;
  padding: 12px 16px;
  background: rgba(30, 112, 183, 0.04);
  border-radius: 8px;
}
.snap-note a { color: var(--primary-dark); }

/* Propel type-scale enforcement (2026-05-31) — headings/display = semibold (600), tight leading (1.1).
   Placed last to override scattered .hero h1 700/1.2 declarations. */
h1, h2, h3, h4, .hero h1 { font-weight: 600; line-height: 1.1; }
/* Other-benefits cards: icon + title sit on one row, both ink/black */
.alt-ico { display: block; width: 26px; height: 26px; color: var(--ink); margin-bottom: 0; flex: none; }
.alt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
/* 🔒 LOCKED 2026-06-01: benefit-card layout is FINAL — icon+title row and paragraph
   positions are top-aligned and must not be restyled. Only content + icons change, never where
   the title/paragraph sit. Same lock as the .changes-grid cards below. */
.alt-grid > a { display: flex; flex-direction: column; justify-content: flex-start; transition: box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease); }   /* top-align: title+text start at the same top padding across the row (matches .changes-grid) */
@media (hover: hover) {
  .alt-grid > a:hover { background: var(--block-lavender-deep) !important; box-shadow: 0 6px 16px rgba(79,61,153,0.30); }
  .alt-grid > a:hover .alt-head h3,
  .alt-grid > a:hover p,
  .alt-grid > a:hover .alt-ico { color: var(--white) !important; }
}
/* 🔒 LOCKED 2026-06-01: "What changed" card layout is FINAL — title + paragraph
   positions are top-aligned and must not be restyled. Only the COPY inside the cards changes
   (data-driven via the content updater). Do not touch this rule or the card markup structure. */
.changes-grid > .change-card { display: flex; flex-direction: column; justify-content: flex-start; }   /* top-align: every card's title starts at the same top padding across the row */
/* drop the trailing .section p margin so cards end cleanly at the same bottom padding */
.changes-grid > .change-card p, .alt-grid > a p { margin-bottom: 0; }
.alt-head h3 { font-size: 18px; margin: 0; color: var(--ink); line-height: 1.2; }

/* ============ Mobile polish (2026-05-31) — tighter margins, no content bleed ============ */
@media (max-width: 768px) {
  .container, .container-narrow { padding-left: 18px; padding-right: 18px; }
  .section { padding: 40px 18px; }
  .section--block-mint, .section--block-cream, .section--block-lavender,
  .section--block-rose, .section--block-sky, .section--block-apricot,
  .section--block-lilac, .section--block-sage { padding: 28px 18px; margin: 16px auto; border-radius: 18px; }
  /* prevent wide tables / long strings bleeding past the viewport edge (#117) */
  article table, .section table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  img, table, pre, .calc-result-mockup { max-width: 100%; }
  h1, h2, h3, p, li, .card-title, .dd-title { overflow-wrap: break-word; }
  /* footer: reduce oversized top gap (#120) */
  footer { padding: 32px 18px 32px; }
  /* center single-column card grids on phones (#119). .card-grid is flexbox, so it
     centers via justify-content (not justify-items, which is a grid-only property). */
  .alt-grid, .changes-grid { justify-items: center; }
  .card-grid { justify-content: center; }
  .alt-grid > a, .changes-grid > div, .card-grid > .state-cell { width: 100%; max-width: 440px; }
  /* mobile nav drawer: nav-item containers flush; About (direct .nav-link) keeps its 24px inset */
  .nav-links .nav-item { padding-left: 0; }
}
@media (max-width: 480px) {
  .container, .container-narrow { padding-left: 14px; padding-right: 14px; }
  .section { padding: 32px 14px; }
  .hero { padding: 14px 14px 14px; }   /* horizontal matches .section (14px) at 480px */
  footer { padding: 32px 14px 32px; }  /* horizontal matches the 14px container inset at 480px */
}

/* Compact by-state cells (homepage by-state section) — name only, small footprint */
.state-cell {
  flex: 0 0 calc((100% - 5 * 12px) / 6);   /* exactly 6 per row; last row centers via container */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;           /* grows to 2 lines for long names (e.g. "Virginia Occidental") */
  line-height: 1.2;
  text-align: center;
  /* 🔒 LOCK: padding MUST stay symmetric top=bottom (and !important) so the flex-centered
     state label never drifts. A stray .card-grid a reset once zeroed padding-bottom and
     pushed every state name low. !important here makes that regression impossible regardless
     of any future collateral selector. Do not change to asymmetric values. */
  padding: 6px 10px !important;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 0 0 1.5px transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}
@media (max-width: 760px) { .state-cell { flex-basis: calc((100% - 2 * 12px) / 3); } }
@media (max-width: 460px) { .state-cell { flex-basis: calc((100% - 12px) / 2); } }
@media (hover: hover) {
  .state-cell:hover { background: var(--primary); color: var(--white); box-shadow: 0 6px 16px rgba(30,112,183,0.30); }
}

/* ── Cookie consent banner ───────────────────────────────────────────────────
   Bottom bar (Manage preferences / Reject / Accept all) + Manage-preferences
   panel. Analytics (GA4 + Clarity via analytics.js) only loads on opt-in. */
.cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: var(--fed-blue);
  color: var(--white);
  box-shadow: 0 -6px 24px rgba(16, 58, 94, 0.28);
  border-top: 3px solid var(--green);
  animation: ccUp 0.28s ease-out;
}
@keyframes ccUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cc-banner { animation: none; } }
.cc-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 18px 28px;
  flex-wrap: wrap;
}
.cc-text {
  margin: 0;
  flex: 1 1 380px;
  font-size: 14px;
  line-height: 1.5;
  color: #eaf1f8;
}
.cc-text strong { color: var(--white); }
.cc-text a { color: var(--green-bright); text-decoration: underline; }
.cc-text a:hover { color: var(--white); }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* On narrow phones the 380px flex-basis kept the text from shrinking, crowding/clipping the
   action buttons. Stack the notice text above a full-width action row instead. */

.cc-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cc-btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.cc-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.cc-btn--solid { background: var(--white); color: var(--fed-blue); }
.cc-btn--solid:hover { background: var(--green-bright); color: var(--fed-blue); }
/* Manage-preferences panel */
.cc-pref-rows { flex: 1 1 100%; display: flex; flex-direction: column; gap: 12px; margin: 4px 0 6px; }
.cc-pref-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.cc-pref-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cc-pref-txt { display: flex; flex-direction: column; gap: 3px; }
.cc-pref-txt strong { font-size: 14px; color: var(--white); }
.cc-pref-txt span { font-size: 12.5px; color: #cfe0f0; line-height: 1.45; }
.cc-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: #cfe0f0; white-space: nowrap; padding-top: 2px;
}
/* toggle switch */
.cc-switch { position: relative; width: 44px; height: 24px; flex: 0 0 auto; cursor: pointer; }
.cc-toggle { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-slider {
  position: absolute; inset: 0; background: rgba(255, 255, 255, 0.28);
  border-radius: 999px; transition: background 0.15s;
}
.cc-slider::before {
  content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
  background: var(--white); border-radius: 50%; transition: transform 0.15s;
}
.cc-toggle:checked + .cc-slider { background: var(--green-bright); }
.cc-toggle:checked + .cc-slider::before { transform: translateX(20px); }
.cc-toggle:focus-visible + .cc-slider { outline: 2px solid var(--white); outline-offset: 2px; }
/* footer reopen link */
.cc-settings-link {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer; text-decoration: underline;
  opacity: 0.85;
}
.cc-settings-link:hover { opacity: 1; }


/* ── Benefit phase-out visualizer (chart + income slider) ─────────────────── */
.po-chart { margin: 8px 0 4px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 12px 10px 4px; }
.po-chart svg { display: block; }
.po-slider { margin: 14px 0 4px; }
.po-slider label { display: block; font-size: 14px; font-weight: 600; color: var(--fed-blue); margin-bottom: 8px; }
.po-slider input[type="range"] { width: 100%; accent-color: var(--green); height: 24px; cursor: pointer; }

/* Inline checkbox row (e.g. vehicle-asset "only car" toggle) */
.check-row--inline label { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; cursor: pointer; line-height: 1.4; }
.check-row--inline input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); flex: 0 0 auto; cursor: pointer; }
/* Inline checkbox label used in the exemption checkers (one per line). */
.check-inline { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; font-size: 14px; line-height: 1.4; cursor: pointer; padding: 3px 0; }
.check-inline input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); flex: 0 0 auto; cursor: pointer; }

/* Inline radio label used in the utility-allowance picker (one per line). Base lives here
   (was inline on each <label>); the media query only adds the 44px mobile tap target. */
.radio-inline { display: flex; align-items: flex-start; gap: 6px; font-weight: 400; font-size: 14px; line-height: 1.4; cursor: pointer; }
.radio-inline input[type="radio"] { margin-top: 3px; accent-color: var(--green); flex: 0 0 auto; cursor: pointer; }


/* Momentum scrolling for horizontally-scrollable table wrappers on iOS Safari
   (harmless/ignored on modern browsers; smooths older iOS). Targets the inline
   overflow-x wrappers used across by-state, resources, and comparison tables. */
[style*="overflow-x:auto"], [style*="overflow-x: auto"] { -webkit-overflow-scrolling: touch; }

/* Two-up checkbox grid (eligibility checker exemptions, WIC categories). Columns
   live here — not inline — so mobile can collapse to one column and grow the
   tap targets to the 44px WCAG 2.5.5 minimum. */
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 12px; }
/* 44px tap targets from <=640px (matches .check-inline/.radio-inline), not just the 1-col
   <=520px layout — the 2-col 521-640px range is still touch and needs the AAA target. */

@media (max-width: 520px) { footer .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }  .checkbox-grid { grid-template-columns: 1fr; } }

/* ── EBT perks hub (filterable directory) ─────────────────────────────────── */
.perk-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.perk-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.perk-chip { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--white); color: var(--ink-3); cursor: pointer; transition: all .15s; }
.perk-chip:hover { border-color: var(--primary); color: var(--primary); }
.perk-chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.perk-search { font: inherit; font-size: 15px; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; min-width: 220px; flex: 0 1 280px; }
.perk-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(30,112,183,.16); }
/* min(100%, 300px) keeps the 300px floor on roomy screens but collapses to the available
   width on phones narrower than 300px+padding — no horizontal overflow at any viewport. */
.perk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.perk-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; }
.perk-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.perk-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-dark); white-space: nowrap; }
.perk-badge--food { background: #eaf7ee; color: var(--green-dark); }
.perk-badge--museums { background: #f3eafc; color: #7c3aed; }
.perk-badge--parks { background: #eafaf1; color: #137a52; }
.perk-badge--transit { background: #fef0e6; color: #c2410c; }
.perk-badge--money { background: #fdeef4; color: var(--accent-dark); }
.perk-badge--education { background: #eef2ff; color: #4338ca; }
.perk-badge--health { background: #fff4e6; color: var(--warning); }
.perk-scope { font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.perk-name { font-family: var(--font-display); font-size: 20px; margin: 0 0 8px; color: var(--ink); }
.perk-benefit { font-size: 15px; color: var(--ink-2); margin: 0 0 12px; }
.perk-meta { margin: 0 0 14px; font-size: 13.5px; }
.perk-meta dt { font-weight: 700; color: var(--ink-4); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; margin-top: 8px; }
.perk-meta dd { margin: 2px 0 0; color: var(--ink-3); }
.perk-link { margin-top: auto; font-weight: 600; color: var(--primary); text-decoration: none; }
.perk-link:hover { text-decoration: underline; }
.perk-empty { text-align: center; color: var(--ink-4); padding: 32px 0; }


/* ── Junk-food restriction tracker table ──────────────────────────────────── */
.jf-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border-radius: 12px; overflow: hidden; }
.jf-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-4); padding: 12px 14px; border-bottom: 2px solid var(--border); background: var(--bg-soft, #f8fafc); }
.jf-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--ink-2); vertical-align: top; }
.jf-table tr:last-child td { border-bottom: 0; }
.jf-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.jf-badge--ok { background: #eafaf1; color: #137a52; }
.jf-badge--warn { background: #fef0e6; color: #c2410c; }
.jf-badge--muted { background: var(--bg-medium); color: var(--ink-4); }

/* Comparison table (SNAP vs WIC vs TANF) — row-header cells + even columns */
.cmp-table { min-width: 640px; }
/* Reset at <=640px (not 480px) — between 481-639px the 640px floor forced needless
   horizontal scroll on mid-size tablets/phones in portrait. */

.cmp-table thead th { font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 800; }
.cmp-table tbody th { font-size: 13px; text-transform: none; letter-spacing: 0; width: 140px; vertical-align: top; }
.cmp-table td { width: 28%; }

/* ── Result action buttons (print / copy) under a calculator result ───────── */
.result-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.result-action-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px;
  font-weight: 600; color: var(--primary); background: var(--white); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 8px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.result-action-btn:hover { border-color: var(--primary); background: var(--primary-soft); }
.result-action-btn svg { flex: 0 0 auto; }
/* WCAG 2.5.5 — give the small pill buttons a 44px tap target on touch screens. */


/* ── Print stylesheet: a calculator result becomes a clean printable summary ── */
@media print {
  header, footer, .nav, .nav-mobile-toggle, .cc-banner,
  #snap-search-modal, .no-print, .result-actions, .lang-toggle,
  .section--block-rose, .section-eyebrow { display: none !important; }
  body { background: var(--white) !important; color: #000 !important; }
  .hero { padding: 0 0 12px !important; }
  main { padding: 0 !important; }
  .snap-result, .snap-verdict { box-shadow: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}

/* ── Interactive state tile-grid map ──────────────────────────────────────── */
/* Vertical padding only — horizontal padding inside an overflow-x:auto box gets eaten on
   the scroll (right edge clips) on narrow phones; keep top/bottom room for focus rings. */
.state-map-wrap { overflow-x: auto; max-width: 100%; padding: 4px 0; }
/* min-width 560px keeps each of the 11 tiles >=44px ( (560-60gap)/11 = 45px ) so they meet
   the WCAG 2.5.5 (AAA) tap-target minimum; on narrower phones the .state-map-wrap scrolls. */
.state-map { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; max-width: 760px; min-width: 560px; margin: 0 auto; }
.state-map-wrap::-webkit-scrollbar { height: 6px; } .state-map-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.state-tile { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary-dark); border-radius: 7px;
  font-weight: 700; font-size: clamp(10px, 1.4vw, 14px); text-decoration: none;
  transition: background .12s, color .12s, transform .12s; }
.state-tile:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
/* Keep the global :focus-visible outline for keyboard users (WCAG 2.4.7) — only mirror the hover fill. */
.state-tile:focus-visible { background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* ── Printable per-state flyers ───────────────────────────────────────────── */
.flyer-body { background: var(--bg-medium, #eef2f6); }
.flyer { max-width: 820px; margin: 0 auto; padding: 24px 16px 48px; }
.flyer-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.flyer-sheet { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 36px 40px; box-shadow: 0 4px 20px rgba(16,58,94,.08); }
.flyer-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--green); padding-bottom: 10px; margin-bottom: 18px; }
.flyer-date { font-size: 12px; color: var(--ink-4); }
.flyer-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; margin: 0 0 22px; color: var(--fed-blue); }
.flyer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.flyer-h2 { font-family: var(--font-body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary-dark); margin: 0 0 10px; }
.flyer-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.flyer-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--ink-4); padding: 4px 6px; border-bottom: 1.5px solid var(--border); }
.flyer-table td { padding: 5px 6px; border-bottom: 1px solid var(--border); }
.flyer-table td:last-child { font-weight: 700; color: var(--primary); text-align: right; }
.flyer-small { font-size: 12px; color: var(--ink-4); margin: 6px 0 0; }
.flyer-apply { margin-top: 22px; background: var(--primary-soft); border-radius: 10px; padding: 16px 18px; }
.flyer-apply p { margin: 0; font-size: 14px; }
.flyer-full { font-size: 13px; font-weight: 600; color: var(--primary-dark); margin: 20px 0 4px; }
.flyer-src { font-size: 12px; color: var(--ink-4); margin: 8px 0 0; }
.flyer-disc { font-size: 11px; color: var(--ink-4); margin: 10px 0 0; line-height: 1.5; }
@media (max-width: 560px) { .article-grid { grid-template-columns: 1fr; } 
  .cc-text { flex-basis: 100%; }
  .cc-actions { width: 100%; }
 .perk-controls { flex-direction: column; align-items: stretch; } .perk-search { flex: 1 1 auto; min-width: 0; }  .flyer-grid { grid-template-columns: 1fr; gap: 18px; } .flyer-sheet { padding: 24px 20px; } }
@media print {
  .flyer-body { background: var(--white); }
  .flyer-bar, .cc-banner { display: none !important; }
  .flyer { padding: 0; max-width: 100%; }
  .flyer-sheet { border: 0; box-shadow: none; padding: 0; }
}

/* Flyer logo: dark on the light flyer background (default .logo-text is white for the dark header) */
.flyer .logo-text { color: var(--fed-blue); }

/* ── Benefits routing screener result cards ───────────────────────────────── */
.screener-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-top: 12px; }
.screener-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.screener-card__head strong { font-family: var(--font-display); font-size: 18px; color: var(--ink); }

/* Flyer wordmark accent: green-dark (the global header rule paints it bright-green for the dark header) */
.flyer .logo-text .logo-accent { color: var(--green-dark); -webkit-text-fill-color: var(--green-dark); }

/* ── Audit a11y polish: eyebrow contrast on pastel blocks + footer tap targets ─ */
/* 🔒 LOCKED 2026-06-04 (Vincent) — category eyebrows are the BRIGHT accent (#d81365 = var(--accent))
   on pastel blocks, matching the "//" marker. They were bright originally; an AA pass mid-2026 wrongly
   darkened them to --accent-dark (#9b0d48) and Vincent reverted it. DO NOT re-darken to accent-dark
   "for contrast" — these are short decorative uppercase labels; brand consistency is the deliberate
   choice over the stricter AA target. See feedback_snap_category_eyebrow_color_locked. */
.section[class*="--block-"] .section-eyebrow,
.section--block-mint .section-eyebrow,
.section--block-apricot .section-eyebrow,
.section--block-sky .section-eyebrow,
.section--block-lavender .section-eyebrow,
.section--block-lilac .section-eyebrow,
.section--block-rose .section-eyebrow,
.section--block-sage .section-eyebrow,
.section--block-cream .section-eyebrow { color: var(--accent); }
/* Footer links: meet WCAG 2.5.5 (24px) tap target. */
footer .footer-col li a { display: inline-block; padding: 4px 0; line-height: 1.5; }
/* WCAG 2.5.5 — roomier footer link tap targets on mobile. */
@media (max-width: 768px) { footer .footer-col li a { padding: 12px 0; min-height: 44px; } }
@media (max-width: 640px) {
  article.container-narrow {
    padding-top: 64px;
    padding-bottom: 64px;
  }
 .check-form { padding: 22px 16px; } 
  .check-row select,
  .check-row input[type="number"],
  .check-row input[type="text"],
  .check-row input[type="date"],
  .check-row input[type="month"],
  .combobox-input { min-height: 44px; }

  .cc-inner { padding: 14px 16px; gap: 12px; }
  .cc-actions { width: 100%; }
  .cc-btn { flex: 1 1 auto; text-align: center; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
 .check-inline { min-height: 44px; align-items: center; }  .radio-inline { min-height: 44px; align-items: center; }  .checkbox-grid label { min-height: 44px; align-items: center; }  .cmp-table { min-width: 0; } 
  .perk-chip, .result-action-btn, .show-more { min-height: 44px; }
  .perk-chip { display: inline-flex; align-items: center; }
  .check-row--inline label { min-height: 44px; align-items: center; }
 .combobox-list__item { min-height: 44px; padding: 12px 14px; display: flex; align-items: center; } }
