/* ==========================================================================
   Intima Life Hub — design system
   Readability first: ~18px body text, generous spacing, strong contrast,
   color always paired with a text label and an icon.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400-italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/lexend-600.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/lexend-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (text-safe shades meet WCAG AA on white and on their tints) */
  --navy: #0b1f44;
  --navy-2: #13306b;
  --ink: #1b2433;
  --muted: #475066;
  --line: #dfe4ee;
  --line-strong: #b9c2d3;
  --page: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f9;

  --teal: #0f766e;        /* Healthcare services */
  --teal-vivid: #14b8a6;
  --teal-tint: #e3f6f3;

  --blue: #1d4ed8;        /* Medicare */
  --blue-vivid: #3b82f6;
  --blue-tint: #e7effe;

  --purple: #6d28d9;      /* Medicaid & TennCare */
  --purple-vivid: #8b5cf6;
  --purple-tint: #f1eafe;

  --amber: #f59e0b;       /* Dental — always used with dark text */
  --amber-soft: #fcd34d;
  --amber-ink: #3d2400;
  --amber-text: #8a3c06;
  --amber-tint: #fef4d6;

  --rose: #be185d;        /* Older adults & caregivers */
  --rose-vivid: #ec4899;
  --rose-tint: #fde8f1;

  --green: #15803d;
  --green-tint: #e5f6eb;
  --red: #b42318;
  --red-tint: #fdecea;

  --focus: #ffcf33;

  /* Section accent (overridden per page theme) */
  --accent: var(--teal);
  --accent-vivid: var(--teal-vivid);
  --accent-tint: var(--teal-tint);

  /* Type */
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Verdana, system-ui, -apple-system, sans-serif;
  --font-head: "Lexend", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --text: 1.125rem;          /* 18px body */
  --leading: 1.65;
  --measure: 68ch;

  /* Shape & space */
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 68, .06), 0 2px 8px rgba(11, 31, 68, .06);
  --shadow: 0 2px 6px rgba(11, 31, 68, .06), 0 12px 32px rgba(11, 31, 68, .10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 68, .18);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
}

.theme-services  { --accent: var(--teal);   --accent-vivid: var(--teal-vivid);   --accent-tint: var(--teal-tint); }
.theme-medicare  { --accent: var(--blue);   --accent-vivid: var(--blue-vivid);   --accent-tint: var(--blue-tint); }
.theme-tenncare  { --accent: var(--purple); --accent-vivid: var(--purple-vivid); --accent-tint: var(--purple-tint); }
.theme-dental    { --accent: var(--amber-text); --accent-vivid: var(--amber);    --accent-tint: var(--amber-tint); }
.theme-care      { --accent: var(--rose);   --accent-vivid: var(--rose-vivid);   --accent-tint: var(--rose-tint); }
.theme-neutral   { --accent: var(--navy-2); --accent-vivid: var(--blue-vivid);   --accent-tint: var(--surface-2); }

/* Text size preference (set by the A / A+ / A++ control) */
html { font-size: 100%; }
html[data-text="large"] { font-size: 112.5%; }
html[data-text="xlarge"] { font-size: 125%; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text);
  line-height: var(--leading);
  color: var(--ink);
  background: var(--page);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.22;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p, ul, ol, dl { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .45em; }
li::marker { color: var(--accent); }
strong { font-weight: 700; color: var(--navy); }
.on-dark strong, .band strong { color: #fff; }
a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-thickness: 3px; }
hr { border: 0; border-top: 2px solid var(--line); margin: 2.5rem 0; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
small { font-size: .95rem; }

/* Focus: thick, two-tone ring that shows on light and dark surfaces */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--focus);
  border-radius: 6px;
}
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 0 0 12px 12px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.prose > * + h2 { margin-top: 2.2rem; }
.prose > * + h3 { margin-top: 1.8rem; }
.lead { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); color: var(--ink); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 44px; height: 44px; }
.icon-bubble {
  display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: var(--accent-tint); color: var(--accent);
}
.icon-bubble .icon { width: 30px; height: 30px; }

/* ---------- Utility bar & header ---------- */
.utility-bar { background: var(--navy); color: #e7ecf7; font-size: 1rem; }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; min-height: 48px; padding-top: 4px; padding-bottom: 4px; }
.utility-bar p { margin: 0; }
.utility-bar a { color: #fff; }
.utility-links { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.text-size { display: inline-flex; align-items: center; gap: 6px; }
.text-size-label { margin-right: 2px; }
.text-size button {
  min-width: 44px; min-height: 40px; border-radius: 10px; border: 2px solid rgba(255,255,255,.35);
  background: transparent; color: #fff; font: 700 1rem/1 var(--font-body); cursor: pointer;
}
.text-size button[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.text-size button:hover { border-color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(11, 31, 68, .05);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(10px); } }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 48px; height: 48px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand-tag { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--muted); letter-spacing: 0; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.primary-nav li { margin: 0; }
.primary-nav a {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px;
  border-radius: 12px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 1.02rem;
  position: relative;
}
.primary-nav a .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--teal)); flex: none; }
.primary-nav a:hover { background: var(--surface-2); }
.primary-nav a[aria-current="page"] { background: var(--surface-2); }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 4px; border-radius: 4px; background: var(--dot, var(--teal));
}
.nav-mobile-extra { display: none; }
.primary-nav a { white-space: nowrap; }

/* Desktop: brand + actions on the first row, main navigation on its own row */
@media (min-width: 1181px) {
  .site-header { position: relative; }
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  .primary-nav { order: 3; flex-basis: 100%; border-top: 1px solid var(--line); margin: 6px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter); }
  .primary-nav ul { justify-content: space-between; }
  html { scroll-padding-top: 24px; }
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.search-toggle, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 48px; padding: 0 14px; border-radius: 14px;
  background: var(--surface-2); border: 2px solid transparent; color: var(--navy);
  font: 700 1rem var(--font-body); cursor: pointer;
}
.search-toggle:hover, .menu-toggle:hover { border-color: var(--line-strong); }
.menu-toggle { display: none; }

.header-search { border-top: 1px solid var(--line); background: var(--surface); }
.header-search[hidden] { display: none; }
.header-search form { display: flex; gap: 10px; padding: 14px 0; flex-wrap: wrap; align-items: flex-end; }
.header-search .field { flex: 1 1 280px; margin: 0; }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow-y: auto; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 4px; }
  .primary-nav a { min-height: 56px; font-size: 1.1rem; padding: 10px 14px; }
  .primary-nav a[aria-current="page"]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 5px; height: auto; }
  .nav-mobile-extra { display: block; }
  .header-actions .btn-cta-label { display: none; }
}
@media (max-width: 560px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 42px; height: 42px; }
  .header-actions .btn-explore { display: none; }
  .search-toggle .label, .menu-toggle .label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .utility-links > a { display: none; }
  .utility-bar .container { gap: 4px 12px; }
  .text-size-label { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-border: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-border);
  font: 700 1.08rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  text-align: center;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11,31,68,.18); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.3em; height: 1.3em; }
.btn-accent { --btn-bg: var(--accent); }
.btn-teal { --btn-bg: var(--teal); }
.btn-blue { --btn-bg: var(--blue); }
.btn-purple { --btn-bg: var(--purple); }
.btn-rose { --btn-bg: var(--rose); }
.btn-amber { --btn-bg: var(--amber); --btn-fg: var(--amber-ink); }
.btn-amber:hover { color: var(--amber-ink); }
.btn-explore { background: linear-gradient(120deg, var(--teal) 0%, var(--blue) 55%, var(--purple) 100%); border: 0; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-border: var(--line-strong); }
.btn-ghost:hover { --btn-fg: var(--navy); background: var(--surface-2); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn-white:hover { --btn-fg: var(--navy); }
.btn-outline-white { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255,255,255,.7); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); text-decoration: none; }
.link-arrow:hover { color: var(--navy); text-decoration: underline; }
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }
.ext::after { content: ""; }
a .ext-icon { width: .9em; height: .9em; vertical-align: -0.05em; margin-left: .2em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 480px at 92% -10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(20, 184, 166, .22), transparent 60%),
    radial-gradient(600px 380px at 55% 120%, rgba(245, 158, 11, .16), transparent 60%),
    linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
  padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 1.6rem; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(11,31,68,.16)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--navy); font-weight: 700; font-size: 1rem; box-shadow: var(--shadow-sm);
}
.eyebrow .icon { color: var(--accent); }
.gradient-text {
  background: linear-gradient(100deg, var(--teal) 0%, var(--blue) 45%, var(--purple) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (forced-colors: active) { .gradient-text { color: CanvasText; background: none; } }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; padding: 0; list-style: none; color: var(--muted); font-size: 1rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.trust-row .icon { color: var(--green); }

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(700px 360px at 100% 0%, color-mix(in srgb, var(--accent-vivid) 30%, transparent), transparent 65%),
    radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--accent-vivid) 16%, transparent), transparent 65%),
    linear-gradient(180deg, var(--accent-tint), #fff);
  padding: clamp(32px, 5vw, 72px) 0 clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.page-hero .hero-badge {
  width: clamp(120px, 16vw, 200px); aspect-ratio: 1; border-radius: 36% 64% 58% 42% / 44% 40% 60% 56%;
  background: linear-gradient(140deg, var(--accent-vivid), var(--accent));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg);
}
.theme-dental .page-hero .hero-badge { color: var(--amber-ink); background: linear-gradient(140deg, var(--amber-soft), var(--amber)); }
.page-hero .hero-badge .icon { width: 46%; height: 46%; stroke-width: 1.6; }
.breadcrumb { font-size: 1rem; margin-bottom: 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; color: var(--muted); }
.breadcrumb a { color: var(--navy); }
.program-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; background: #fff; color: var(--accent); border: 2px solid currentColor;
  margin-bottom: 12px;
}
.theme-dental .program-chip { color: var(--amber-text); }
@media (max-width: 760px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero .hero-badge { display: none; }
  .hero-art { max-width: 460px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: clamp(32px, 4vw, 56px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tint { background: var(--accent-tint); }
.section-head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.kicker { display: inline-block; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; margin-bottom: 8px; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.sticky-side { position: sticky; top: 110px; }
@media (max-width: 960px) { .sticky-side { position: static; } }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-sm);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .4em; }
.card-accent { border-top: 6px solid var(--accent); }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-link .link-arrow { margin-top: auto; padding-top: 14px; }

/* Program path cards (color-coded with label + icon) */
.path-card {
  --c: var(--teal); --c-tint: var(--teal-tint); --c-fg: #fff;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink);
  background: var(--surface); border-radius: var(--r-lg); padding: 26px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden; isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 100%;
}
.path-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; z-index: -1;
  background: linear-gradient(135deg, var(--c-tint), #fff 85%);
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.path-card .path-icon {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: var(--c); color: var(--c-fg); box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 35%, transparent);
}
.path-card .path-icon .icon { width: 32px; height: 32px; }
.path-card .tag { align-self: flex-start; font-size: .9rem; font-weight: 700; color: var(--c-text, var(--c)); background: #fff; border: 2px solid currentColor; padding: 2px 12px; border-radius: 999px; }
.path-card h3 { margin: 4px 0 0; }
.path-card p { margin: 0; color: var(--muted); }
.path-card .link-arrow { color: var(--c-text, var(--c)); margin-top: auto; padding-top: 8px; }
.c-teal   { --c: var(--teal); --c-tint: var(--teal-tint); }
.c-blue   { --c: var(--blue); --c-tint: var(--blue-tint); }
.c-purple { --c: var(--purple); --c-tint: var(--purple-tint); }
.c-amber  { --c: var(--amber); --c-tint: var(--amber-tint); --c-fg: var(--amber-ink); --c-text: var(--amber-text); }
.c-rose   { --c: var(--rose); --c-tint: var(--rose-tint); }
.c-navy   { --c: var(--navy-2); --c-tint: var(--surface-2); }
.c-explore { --c: var(--blue); --c-tint: #eef0ff; }
.c-explore .path-icon { background: linear-gradient(135deg, var(--teal), var(--blue) 55%, var(--purple)); }

/* Info/feature list */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 36px; margin-bottom: .7em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat;
}
.x-list { list-style: none; padding: 0; }
.x-list li { position: relative; padding-left: 36px; margin-bottom: .7em; }
.x-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--red-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.step-list { list-style: none; padding: 0; counter-reset: step; }
.step-list > li { counter-increment: step; position: relative; padding-left: 60px; margin-bottom: 1.4em; min-height: 44px; }
.step-list > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1.15rem var(--font-head); color: #fff; background: var(--accent);
}
.theme-dental .step-list > li::before { color: var(--amber-ink); background: var(--amber); }
.step-list h3, .step-list h4 { margin-bottom: .25em; }

/* Callouts */
.callout {
  --c: var(--blue); --c-tint: var(--blue-tint);
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r);
  background: var(--c-tint); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); border-left: 6px solid var(--c);
  margin: 0 0 1.5rem;
}
.callout > .icon { color: var(--c); width: 28px; height: 28px; margin-top: 2px; }
.callout > div > :last-child { margin-bottom: 0; }
.callout h3, .callout h4 { margin-bottom: .3em; font-size: 1.2rem; }
.callout-info { --c: var(--blue); --c-tint: var(--blue-tint); }
.callout-note { --c: var(--navy-2); --c-tint: var(--surface-2); }
.callout-warn { --c: #b45309; --c-tint: var(--amber-tint); }
.callout-success { --c: var(--green); --c-tint: var(--green-tint); }
.callout-error { --c: var(--red); --c-tint: var(--red-tint); }
.callout-purple { --c: var(--purple); --c-tint: var(--purple-tint); }
.callout-teal { --c: var(--teal); --c-tint: var(--teal-tint); }
.callout-rose { --c: var(--rose); --c-tint: var(--rose-tint); }

/* Source note: shown beside important program information */
.source-note {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start;
  margin: 14px 0 0; padding: 10px 14px; border-radius: 12px;
  background: var(--surface-2); color: var(--muted); font-size: .98rem; line-height: 1.45;
}
.source-note .icon { color: var(--navy-2); margin-top: 2px; }
.source-note > span + span { grid-column: 2; }
.card h3 > .icon, .card h2 > .icon { color: var(--accent); }
.source-note a { color: var(--navy-2); font-weight: 700; }
.source-note time { white-space: nowrap; }

/* Help lines */
.help-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.help-line:last-child { border-bottom: 0; }
.help-line .icon-bubble { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.help-line .icon-bubble .icon { width: 24px; height: 24px; }
.help-line h3, .help-line h4 { font-size: 1.1rem; margin: 0 0 2px; }
.help-line p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.tel { font-weight: 700; font-size: 1.15rem; white-space: nowrap; color: var(--navy); }

/* ---------- Comparison tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.table-wrap:focus-visible { box-shadow: 0 0 0 7px var(--focus); }
table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
caption { text-align: left; padding: 16px 18px 6px; font-weight: 700; color: var(--navy); font-family: var(--font-head); font-size: 1.1rem; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); color: var(--navy); font-weight: 700; position: sticky; top: 0; }
tbody th { font-weight: 700; color: var(--navy); background: #fbfcfe; }
tbody tr:last-child > * { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare-table th[scope="col"] .col-chip { display: inline-flex; align-items: center; gap: 8px; }
.col-medicare { box-shadow: inset 0 5px 0 var(--blue); }
.col-tenncare { box-shadow: inset 0 5px 0 var(--purple); }
.col-dental { box-shadow: inset 0 5px 0 var(--amber); }
.col-market { box-shadow: inset 0 5px 0 var(--teal); }

/* Stacked tables on small screens */
@media (max-width: 720px) {
  .stack-table thead { display: none; }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table th, .stack-table td { display: block; width: 100%; }
  .stack-table tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  .stack-table tbody th { background: transparent; padding-bottom: 4px; font-size: 1.12rem; }
  .stack-table td { border: 0; padding: 6px 18px; }
  .stack-table td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--navy); font-size: .95rem; }
}

/* ---------- Accordions (native details) ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: border-color .15s ease;
}
.accordion details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; justify-content: space-between;
  padding: 18px 22px; min-height: 64px; font: 600 1.15rem/1.35 var(--font-head); color: var(--navy); border-radius: var(--r);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/20px no-repeat;
  transition: transform .2s ease;
}
.accordion details[open] summary::after { transform: rotate(180deg); }
.accordion summary:hover { background: #fafbfe; }
.accordion .accordion-body { padding: 0 22px 20px; }
.accordion .accordion-body > :last-child { margin-bottom: 0; }
.accordion .tagline { display: block; font: 400 .95rem var(--font-body); color: var(--muted); margin-top: 2px; }
.accordion-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 22px; }
.field > label, .field > .label, fieldset > legend {
  display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 1.08rem;
}
.field .hint { display: block; color: var(--muted); font-size: 1rem; margin: -2px 0 8px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 12px;
  border: 2px solid var(--line-strong); background: #fff; color: var(--ink);
  font: 400 1.1rem/1.4 var(--font-body);
}
textarea { min-height: 140px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6b7488; }
input:hover, select:hover, textarea:hover { border-color: #8d97ab; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--navy); }
[aria-invalid="true"] { border-color: var(--red) !important; background: #fffafa; }
.error-msg { display: flex; gap: 8px; align-items: flex-start; color: var(--red); font-weight: 700; margin-top: 8px; font-size: 1rem; }
.error-msg[hidden] { display: none; }
.error-summary { border: 3px solid var(--red); border-radius: var(--r); padding: 18px 22px; background: var(--red-tint); margin-bottom: 24px; }
.error-summary h2 { font-size: 1.3rem; color: var(--red); }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--red); font-weight: 700; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.choice {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; min-height: 60px;
  border: 2px solid var(--line-strong); border-radius: 14px; background: #fff; cursor: pointer; font-size: 1.06rem; line-height: 1.4;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice:hover { border-color: var(--navy-2); }
.choice input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border: 2px solid var(--navy-2); background: #fff; display: grid; place-items: center; cursor: pointer; }
.choice input[type="radio"] { border-radius: 50%; }
.choice input[type="checkbox"] { border-radius: 7px; }
.choice input:checked { background: var(--navy-2); }
.choice input[type="radio"]:checked { box-shadow: inset 0 0 0 5px #fff; }
.choice input[type="checkbox"]:checked::after { content: ""; width: 14px; height: 8px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: translateY(-2px) rotate(-45deg); }
.choice:has(input:checked) { border-color: var(--navy-2); background: var(--blue-tint); }
.choice:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 7px var(--focus); }
.choice input:focus-visible { box-shadow: none; outline: none; }
.choice .choice-text strong { display: block; }
.choice .choice-text span { color: var(--muted); font-size: .98rem; }
@media (forced-colors: active) { .choice input:checked { background: Highlight; } }

/* Filter chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--line-strong); background: #fff; color: var(--navy); font: 700 1rem var(--font-body); cursor: pointer;
}
.chip:hover { border-color: var(--navy-2); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .count { font-weight: 400; opacity: .85; }

.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 20px; }
.toolbar .field { flex: 1 1 320px; margin: 0; }
.search-input-wrap { position: relative; }
.search-input-wrap .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input-wrap input { padding-left: 50px; }
.results-status { font-weight: 700; color: var(--navy); margin: 0 0 16px; }

/* Empty / loading / error states */
.state {
  text-align: center; padding: 40px 24px; border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: #fff;
}
.state .icon-bubble { margin-bottom: 12px; }
.state h3 { margin-bottom: .3em; }
.state p { color: var(--muted); max-width: 52ch; margin-left: auto; margin-right: auto; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--blue); animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-hidden { display: none !important; }
mark { background: #fff1a8; color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- Journeys / "What do you need help with?" ---------- */
.helper {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 36px);
}
.journey-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
@media (max-width: 1024px) { .journey-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .journey-tabs { grid-template-columns: 1fr; } }
:where(.journey-tab) { --c: var(--teal); --c-tint: var(--teal-tint); }
.journey-tab {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 72px; padding: 12px 16px;
  border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer;
  font: 700 1.05rem/1.3 var(--font-body); color: var(--navy);
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.journey-tab .ji { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--c-tint); color: var(--c); flex: none; }
.journey-tab .ji .icon { width: 24px; height: 24px; }
.journey-tab:hover { border-color: var(--c); transform: translateY(-2px); }
.journey-tab[aria-selected="true"] { border-color: var(--c); background: var(--c-tint); box-shadow: inset 0 0 0 1px var(--c); }
.journey-tab.c-amber .ji { color: var(--amber-text); }
.journey-panel { border-radius: var(--r); padding: clamp(18px, 2.5vw, 28px); background: linear-gradient(180deg, var(--page), #fff); border: 1px solid var(--line); }
.journey-panel[hidden] { display: none; }
.journey-panel h3 { display: flex; align-items: center; gap: 10px; }
.journey-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 18px 0 0; counter-reset: js; }
@media (max-width: 860px) { .journey-steps { grid-template-columns: 1fr; } }
.journey-steps li { counter-increment: js; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 18px 18px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.journey-steps li::before { content: "Step " counter(js); font-weight: 700; font-size: .92rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.journey-steps h4 { margin: 0; }
.journey-steps p { margin: 0; color: var(--muted); }
.journey-steps .link-arrow { margin-top: auto; padding-top: 6px; color: var(--navy-2); }

/* ---------- Stats / numbers ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font: 700 clamp(2rem, 1.5rem + 2vw, 2.8rem)/1.1 var(--font-head); color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); }

/* Big feature band */
.band {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(245, 158, 11, .35), transparent 60%),
    radial-gradient(520px 300px at 0% 100%, rgba(20, 184, 166, .45), transparent 60%),
    linear-gradient(120deg, #0b1f44 0%, #1d3fa8 50%, #5b21b6 100%);
  box-shadow: var(--shadow-lg);
}
.band h2, .band h3 { color: #fff; }
.band p { color: #e9eefb; }
.band a:not(.btn) { color: #fff; }
.band-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }
.band .check-list li::before { background-color: rgba(255,255,255,.95); }

/* Part cards (Medicare A/B/C/D etc.) */
.part-card { border-radius: var(--r-lg); padding: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.part-card .part-letter {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 14px;
  font: 700 1.9rem var(--font-head); color: #fff; background: linear-gradient(140deg, var(--accent-vivid), var(--accent));
}
.part-card h3 { margin-bottom: .2em; }
.part-card .part-sub { color: var(--accent); font-weight: 700; margin-bottom: .6em; display: block; }

/* Timeline (enrollment periods) */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: linear-gradient(var(--accent-vivid), var(--accent)); opacity: .35; }
.timeline > li { position: relative; padding-left: 64px; margin-bottom: 22px; }
.timeline > li > .t-dot { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-tint); }
.timeline > li > .t-dot .icon { width: 22px; height: 22px; }
.timeline .when { display: inline-block; font-weight: 700; color: var(--accent); background: var(--accent-tint); border-radius: 999px; padding: 2px 12px; margin-bottom: 6px; }
.timeline h3 { margin-bottom: .25em; }
.timeline p { margin-bottom: .4em; }

/* Glossary */
.glossary-letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.glossary-list { display: grid; gap: 12px; }
.term { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.term dt { font: 600 1.18rem var(--font-head); color: var(--navy); margin-bottom: 4px; }
.term dd { margin: 0; }
.term .term-tag { display: inline-block; margin-left: 8px; font: 700 .85rem var(--font-body); padding: 2px 10px; border-radius: 999px; vertical-align: middle; }
.tag-medicare { background: var(--blue-tint); color: var(--blue); }
.tag-tenncare { background: var(--purple-tint); color: var(--purple); }
.tag-dental { background: var(--amber-tint); color: var(--amber-text); }
.tag-general { background: var(--teal-tint); color: var(--teal); }
.tag-care { background: var(--rose-tint); color: var(--rose); }

/* Article cards */
.article-card { display: flex; flex-direction: column; gap: 8px; }
.article-card .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .98rem; }
.label-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; padding: 3px 12px; border-radius: 999px; }

/* Checklists (printable) */
.checklist-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow-sm); }
.checklist-card ul { list-style: none; padding: 0; }
.checklist-card li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.checklist-card li:last-child { border-bottom: 0; }
.checklist-card li .box { flex: none; width: 24px; height: 24px; border: 2px solid var(--navy-2); border-radius: 6px; margin-top: 3px; }

/* ---------- Navigator (Explore Your Options) ---------- */
.navigator { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.nav-progress { padding: 20px clamp(18px, 3vw, 32px) 0; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.progress-track { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--blue), var(--purple)); transition: width .3s ease; }
.nav-body { padding: clamp(18px, 3vw, 32px); }
.nav-step h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.nav-step:focus { outline: none; }
.why-box { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 14px 16px; margin: 0 0 22px; color: var(--ink); font-size: 1.02rem; }
.why-box .icon { color: var(--navy-2); margin-top: 3px; }
.why-box p { margin: 0; }
.nav-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 18px clamp(18px, 3vw, 32px); background: #fbfcfe; }
.nav-actions .btn-row { margin-left: auto; }
.income-field { max-width: 360px; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--navy); }
.money-input input { padding-left: 34px; }

.result-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 20px; }
:where(.result-head) { --c: var(--teal); --c-tint: var(--teal-tint); }
.result-head { display: flex; gap: 16px; align-items: center; padding: 20px 24px; background: linear-gradient(135deg, var(--c-tint), #fff); border-bottom: 1px solid var(--line); border-top: 6px solid var(--c); }
.result-head .path-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: var(--c-fg, #fff); flex: none; }
.result-head h3 { margin: 0; }
.result-head .tag { font-weight: 700; color: var(--c-text, var(--c)); font-size: .95rem; }
.result-body { padding: 20px 24px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
@media (max-width: 760px) { .result-grid { grid-template-columns: 1fr; } }
.result-grid h4 { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 1.08rem; }
.result-grid h4 .icon { color: var(--navy-2); }
.result-grid ul { margin: 0 0 6px; }
.why-shown { background: var(--green-tint); border-radius: 12px; padding: 10px 14px; margin: 0 0 6px; font-size: 1.02rem; }

/* ---------- Charts ---------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(18px, 2.6vw, 32px); }
.chart-card h3 { margin-bottom: .2em; }
.chart-sub { color: var(--muted); margin-bottom: 14px; }
.chart-type { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: .9rem; color: var(--navy-2); background: var(--surface-2); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }
.chart-box { position: relative; width: 100%; }
.chart-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-box .axis text, .chart-box text { font-family: var(--font-body); fill: #3b4458; }
.chart-box .gridline { stroke: #e3e8f1; stroke-width: 1; }
.chart-box .axis-line { stroke: #9aa4b8; stroke-width: 1.5; }
.chart-tooltip {
  position: absolute; pointer-events: none; z-index: 5; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 12px;
  font-size: 1rem; line-height: 1.35; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap;
}
.chart-tooltip[hidden] { display: none; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 12px 0 0; }
.chart-legend li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 1.02rem; }
.swatch { width: 18px; height: 18px; border-radius: 5px; flex: none; border: 1px solid rgba(0,0,0,.15); }
.chart-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 18px 0 0; font-size: 1rem; }
.chart-facts div { padding: 10px 0; border-top: 1px solid var(--line); }
.chart-facts dt { font-weight: 700; color: var(--navy); }
.chart-facts dd { margin: 0; color: var(--ink); }
@media (max-width: 760px) { .chart-facts { grid-template-columns: 1fr; } }
.plain-language { background: var(--teal-tint); border-radius: 14px; padding: 14px 18px; margin-top: 16px; }
.plain-language strong { color: var(--teal); }
.data-table-toggle { margin-top: 16px; }
.data-table-toggle summary { cursor: pointer; font-weight: 700; color: var(--navy-2); min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; }
.data-table-toggle .table-wrap { max-height: 420px; overflow: auto; margin-top: 10px; }
.placeholder-chart { display: grid; place-items: center; min-height: 260px; border: 2px dashed var(--line-strong); border-radius: var(--r); background: repeating-linear-gradient(-45deg, #fafbfe, #fafbfe 12px, #f2f5fb 12px, #f2f5fb 24px); text-align: center; padding: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #dbe3f3; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.footer-top { padding: 56px 0 32px; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top li { margin-bottom: 10px; }
.footer-top li a { text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.footer-top li a:hover { text-decoration: underline; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-tag { color: #b9c5de; }
.footer-brand p { color: #c7d1e6; margin-top: 14px; max-width: 46ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 22px 0 32px; font-size: 1rem; color: #b9c5de; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.footer-bottom p { margin: 0; }
.footer-disclaimer { background: #071634; color: #c7d1e6; font-size: 1rem; }
.footer-disclaimer .container { padding-top: 22px; padding-bottom: 22px; display: flex; gap: 14px; align-items: flex-start; }
.footer-disclaimer p { margin: 0; max-width: 110ch; }
.color-key { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 16px 0 0; }
.color-key li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .98rem; color: #dbe3f3; }
.color-key .swatch { border-color: rgba(255,255,255,.4); }

.back-to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; border: 3px solid #fff; box-shadow: var(--shadow); cursor: pointer;
}
.back-to-top[hidden] { display: none; }

/* ---------- Decorative ---------- */
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: .5; }
.wave-divider { display: block; width: 100%; height: 48px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.pill-row li { margin: 0; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.toc h2 { font-size: 1.1rem; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--navy); }

/* ---------- Motion & contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .btn:hover, .card-link:hover, .path-card:hover, .journey-tab:hover { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #2d3446; --line: #9aa4b8; --line-strong: #5d6880; }
  .card, .path-card { border-width: 2px; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; font-size: 12pt; color: #000; }
  .utility-bar, .site-header, .site-footer, .back-to-top, .no-print, .nav-actions, .journey-tabs, .header-search, .footer-disclaimer { display: none !important; }
  .hero, .page-hero { background: none !important; padding: 0 0 12pt; border: 0; }
  .card, .result-card, .checklist-card, .chart-card { box-shadow: none; break-inside: avoid; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; word-break: break-all; }
  body.print-one main > * { display: none !important; }
  body.print-one .print-target { display: block !important; }
  body.print-one .print-target-wrap { display: block !important; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
