/* ==========================================================================
   NoSuchProvider.org — design system
   Tone: authoritative & trustworthy (civic / public-record)
   Palette: deep navy + slate + white, single warning-amber accent
   No external dependencies (works offline / by double-click on Windows).
   ========================================================================== */

:root {
  /* Brand / civic palette */
  --navy-900: #0a1f38;
  --navy-800: #0c2845;
  --navy-700: #103257;
  --navy-600: #16447a;
  --navy-500: #1d5aa0;

  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #5b6b7f;  /* a11y: darkened from #64748b so muted text meets AA on white & slate-50 */
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --amber-800: #92400e;
  --amber-600: #b45309;
  --amber-500: #d97706;
  --amber-400: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;

  --green-700: #15803d;
  --green-100: #dcfce7;
  --red-700:   #b91c1c;
  --red-100:   #fee2e2;

  --white: #ffffff;
  --ink: #0f172a;

  /* Semantic tokens */
  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --bg-deep: var(--navy-800);
  --text: var(--ink);
  --text-muted: var(--slate-600);
  --text-on-dark: #eef3fb;
  --text-on-dark-muted: #c3d3ea;
  --accent: var(--amber-500);
  --accent-strong: var(--amber-600);
  --link: var(--navy-600);
  --border: var(--slate-200);

  /* Typography */
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;

  /* Spacing / layout */
  --maxw: 1120px;
  --maxw-prose: 720px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 56, .06), 0 1px 3px rgba(10, 31, 56, .08);
  --shadow-md: 0 4px 12px rgba(10, 31, 56, .10);
  --shadow-lg: 0 12px 32px rgba(10, 31, 56, .16);
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.18; color: var(--navy-800); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5em; }
h3 { font-size: 1.3rem; margin-top: 2em; }
h4 { font-size: 1.08rem; margin-top: 1.6em; color: var(--slate-700); }
p { margin: 0 0 1.1em; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }
strong { font-weight: 700; color: var(--navy-800); }
ul, ol { padding-left: 1.3em; }
li { margin: .4em 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--slate-100); padding: .1em .35em; border-radius: 4px; }

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: .7em 1.1em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* a11y: navy ring on light backgrounds (amber-400 was only ~2.1:1 on white). Dark
   surfaces get the amber+white-halo ring below; amber surfaces get a navy ring. */
:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 2px; border-radius: 3px; }

/* ----------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.prose { max-width: var(--maxw-prose); }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section--deep { background: var(--bg-deep); color: var(--text-on-dark); }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep a { color: #bcd4f2; }
.lead { font-size: 1.2rem; color: var(--slate-700); line-height: 1.6; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 700;
  color: var(--accent-strong); font-family: var(--font-sans); margin: 0 0 .6em;
}
.center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* --------------------------------------------------------------- topbar */
.topbar { background: #06162b; color: #b9cae3; font-size: .8rem; border-bottom: 1px solid rgba(125,170,230,.10); }
.topbar .container { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding-block: .45rem; flex-wrap: wrap; }
.topbar a { color: #fff; }

/* --------------------------------------------------- header/nav (dark "legal-tech") */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(10,31,56,.94), rgba(7,21,40,.90));
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(125,170,230,.18);
  box-shadow: 0 8px 28px rgba(3,12,24,.38);
}
.site-header::after {  /* thin amber accent line */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,.85), transparent); opacity: .7;
}
.nav { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }

/* --- the NSP mark: a "live-detection" badge --- */
.brand__mark {
  position: relative; width: 44px; height: 44px; flex: none; border-radius: 13px; overflow: hidden;
  background: radial-gradient(130% 130% at 28% 18%, #3a7cc4 0%, #1a4f8c 42%, #0a2540 100%);
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 800; font-size: .95rem; letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  box-shadow: inset 0 0 0 1px rgba(150,190,240,.4), inset 0 1px 1px rgba(255,255,255,.25),
              0 3px 10px rgba(3,12,24,.55), 0 0 20px rgba(46,111,179,.35);
  transition: box-shadow .2s ease, transform .2s ease;
}
.brand__mark::before {  /* scanning shine sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.22) 50%, transparent 62%);
  transform: translateX(-130%); animation: brandSweep 5s ease-in-out infinite;
}
.brand__mark::after {   /* amber "live" detection dot */
  content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber-400); box-shadow: 0 0 8px 1px rgba(245,158,11,.85);
}
.brand:hover .brand__mark {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.55), inset 0 1px 1px rgba(255,255,255,.3),
              0 4px 14px rgba(3,12,24,.6), 0 0 26px rgba(46,111,179,.55);
}
@keyframes brandSweep { 0%, 55% { transform: translateX(-130%); } 78%, 100% { transform: translateX(130%); } }

.brand__name { font-family: var(--font-serif); font-weight: 700; color: #fff; font-size: 1.16rem; line-height: 1.05; letter-spacing: .01em; }
.brand__name small { display: block; font-family: var(--font-sans); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-400); margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: .5rem .85rem; border-radius: 8px; text-decoration: none; color: #cdd9ec;
  font-weight: 600; font-size: .93rem; letter-spacing: .01em; transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav__links a[aria-current="page"] { color: #fff; background: rgba(245,158,11,.16); box-shadow: inset 0 -2px 0 0 var(--amber-500); }
.nav__toggle { display: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: .5rem .7rem; cursor: pointer; font-size: 1.15rem; color: #fff; }

/* a11y: "Health Plans" is now a real <button> — match the nav-link look. */
.nav__links .nav__menu-btn {
  display: block; padding: .5rem .85rem; border-radius: 8px; cursor: pointer;
  background: none; border: 0; font-family: var(--font-sans); font-weight: 600;
  font-size: .93rem; letter-spacing: .01em; color: #cdd9ec; text-align: left;
  transition: color .15s ease, background .15s ease;
}
.nav__links .nav__menu-btn:hover { background: rgba(255,255,255,.09); color: #fff; }

/* plan dropdown — elevated dark card */
.nav__has-menu { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: linear-gradient(180deg, #0e2a4a, #0b2340);
  border: 1px solid rgba(125,170,230,.22); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(3,12,24,.5); padding: .45rem; list-style: none; margin: 0; display: none;
}
.nav__menu.open { display: block; }
.nav__menu a { display: block; padding: .55rem .75rem; border-radius: 8px; color: #dbe6f5; }
.nav__menu a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav__menu .muted { color: #9fb4d4; font-size: .82rem; padding: .45rem .75rem; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent; transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber-500); color: #2a1602; }
.btn--primary:hover { background: var(--amber-400); color: #2a1602; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: #fff; color: var(--navy-700); border-color: var(--slate-300); }
.btn--outline:hover { border-color: var(--navy-600); color: var(--navy-800); }

/* --------------------------------------------------------------- hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 80% -10%, var(--navy-600), var(--navy-900)); color: var(--text-on-dark); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.15)); pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero__lead { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--text-on-dark); max-width: 46ch; margin-top: .6em; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 1.2rem; }

/* --------------------------------------------------------------- grid + cards */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card--accent { border-top: 4px solid var(--amber-500); }
.card__num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 800; color: var(--navy-600); line-height: 1; }
.card__icon { font-size: 1.6rem; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 1rem; }
.stat__big { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--navy-700); }
.section--deep .stat__big { color: #fff; }
.stat__label { font-size: .9rem; color: var(--text-muted); }
.section--deep .stat__label { color: var(--text-on-dark-muted); }

/* --------------------------------------------------------------- callouts */
.callout { border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.6em 0; border: 1px solid var(--border); background: var(--slate-50); }
.callout__title { font-weight: 800; font-family: var(--font-sans); margin: 0 0 .3em; display: flex; align-items: center; gap: .5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--info { background: #eef5ff; border-color: #cfe0fa; }
.callout--info .callout__title { color: var(--navy-700); }
.callout--warn { background: var(--amber-50); border-color: var(--amber-100); }
.callout--warn .callout__title { color: var(--amber-600); }
.callout--legal { background: var(--slate-50); border-left: 4px solid var(--slate-400); }
.callout--legal .callout__title { color: var(--slate-700); }

/* verified / source badges */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; letter-spacing: .02em; }
.badge--verified { background: var(--green-100); color: #166534; }
.badge--alleged { background: var(--amber-100); color: var(--amber-800); }
.badge--law { background: #e0e7ff; color: #3730a3; }

/* source citation line */
.source { font-size: .85rem; color: var(--slate-500); border-top: 1px dotted var(--slate-300); padding-top: .5rem; margin-top: .8rem; }
.source a { color: var(--slate-600); }

/* --------------------------------------------------------------- ghost loop diagram */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; align-items: stretch; counter-reset: step; }
@media (max-width: 760px) { .loop { grid-template-columns: 1fr; } }
.loop__step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-sm); }
.loop__step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 14px; width: 30px; height: 30px; background: var(--navy-700); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.loop__step h3, .loop__step h4 { margin: .4em 0 .3em; font-size: 1.08rem; color: var(--navy-800); }
.loop__step p { font-size: .92rem; margin: 0; color: var(--text-muted); }
.loop__arrow { text-align: center; color: var(--amber-500); font-weight: 800; }
.loop__back { text-align: center; font-size: .9rem; color: var(--amber-600); font-weight: 700; margin-top: 1rem; }

/* --------------------------------------------------------------- glossary term + audio box */
.term {
  font: inherit; cursor: pointer; color: var(--navy-700); font-weight: 700;
  background: linear-gradient(transparent 62%, var(--amber-100) 62%);
  border: 0; border-bottom: 2px dotted var(--amber-500); padding: 0 .05em; border-radius: 2px;
  display: inline; -webkit-appearance: none; appearance: none;
}
.term::after { content: "\1F50A"; font-size: .72em; margin-left: .25em; opacity: .75; }
.term:hover { background: linear-gradient(transparent 55%, var(--amber-100) 55%); color: var(--navy-800); }

/* audio box (popover) */
.audiobox {
  position: fixed; z-index: 300; max-width: min(420px, calc(100vw - 2rem));
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 1rem 1.1rem; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.audiobox.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.audiobox__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.audiobox__term { font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; color: var(--navy-800); margin: 0; flex: 1; }
.audiobox__close { background: none; border: 0; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--slate-600); border-radius: 8px; min-width: 44px; min-height: 44px; display: grid; place-items: center; flex: none; }
.audiobox__close:hover { background: var(--slate-100); color: var(--navy-800); }
.audiobox__controls { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.audiobox__play { display: inline-flex; align-items: center; gap: .5rem; background: var(--amber-500); color: #2a1602; border: 0; border-radius: 999px; padding: .5rem 1.1rem; min-height: 44px; font-weight: 700; cursor: pointer; }
.audiobox__play:hover { background: var(--amber-400); }
.audiobox__bar { flex: 1; height: 6px; background: var(--slate-200); border-radius: 999px; overflow: hidden; }
.audiobox__bar > span { display: block; height: 100%; width: 0; background: var(--navy-500); transition: width .2s linear; }
.audiobox__def { font-size: .96rem; color: var(--slate-700); margin: 0; max-height: 40vh; overflow: auto; }
.audiobox__src { font-size: .78rem; color: var(--slate-500); margin-top: .6rem; }
.audiobox__hint { font-size: .78rem; color: var(--slate-600); margin-top: .4rem; }
.audiobox__backdrop { position: fixed; inset: 0; z-index: 290; background: transparent; display: none; }
.audiobox__backdrop.open { display: block; }

/* Bottom "Close" button — an unmistakable second exit (important on mobile). */
.audiobox__close-btn {
  display: block; width: 100%; margin-top: 1rem; padding: .85rem 1rem; min-height: 48px;
  background: var(--navy-700); color: #fff; border: 0; border-radius: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem; cursor: pointer;
}
.audiobox__close-btn:hover { background: var(--navy-800); }

/* Mobile bottom sheet: full-width, anchored to the bottom, scrollable. */
.audiobox.is-sheet {
  left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: 100%;
  border-radius: 18px 18px 0 0; border-bottom: 0;
  padding: 1.1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  box-shadow: 0 -8px 32px rgba(10, 31, 56, .28);
}
.audiobox.is-sheet::before {            /* grab-handle affordance */
  content: ""; display: block; width: 40px; height: 4px; border-radius: 999px;
  background: var(--slate-300); margin: -.2rem auto .8rem;
}
.audiobox.is-sheet .audiobox__def { max-height: none; }
.audiobox.is-sheet .audiobox__term { font-size: 1.15rem; }
@media (max-width: 600px) {
  .audiobox__backdrop.open { background: rgba(10, 31, 56, .45); }  /* dim scrim on phones */
}

/* --------------------------------------------------------------- injunction / legal document styling */
.legaldoc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.2rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm); }
.legaldoc__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; padding: 1.2rem; background: var(--slate-50); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 2rem; }
.legaldoc__meta dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); font-weight: 700; }
.legaldoc__meta dd { margin: .15em 0 0; font-weight: 600; color: var(--navy-800); }
.provision { counter-increment: prov; position: relative; padding: 1rem 1rem 1rem 3.2rem; border: 1px solid var(--border); border-radius: var(--radius); margin: .8rem 0; background: #fff; }
.provision::before { content: counter(prov, upper-alpha); position: absolute; left: 0; top: 0; width: 2.6rem; height: 100%; display: grid; place-items: start center; padding-top: 1rem; font-family: var(--font-serif); font-weight: 800; color: var(--amber-600); background: var(--amber-50); border-right: 1px solid var(--amber-100); border-radius: var(--radius) 0 0 var(--radius); }
.provisions { counter-reset: prov; }
.provision h3, .provision h4 { margin: 0 0 .3em; font-size: 1.08rem; color: var(--navy-800); }
.provision p { margin: 0; color: var(--slate-700); font-size: .96rem; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0; border-left: 3px solid var(--slate-200); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--amber-500); }
.timeline .when { font-weight: 800; color: var(--navy-700); font-family: var(--font-serif); }
.timeline .what { color: var(--slate-700); }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--border); }
table.data th { background: var(--slate-50); color: var(--navy-800); font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }

/* org structure */
.orgchart { display: grid; gap: .6rem; justify-items: center; }
.org-node { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem 1.1rem; box-shadow: var(--shadow-sm); text-align: center; min-width: 220px; }
.org-node strong { display: block; color: var(--navy-800); }
.org-node span { font-size: .82rem; color: var(--text-muted); }
.org-node--parent { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.org-node--parent strong { color: #fff; }
.org-node--parent span { color: var(--text-on-dark-muted); }
.org-line { width: 2px; height: 18px; background: var(--slate-300); }
.org-children { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; width: 100%; }

/* --------------------------------------------------------------- news list */
.news { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.news li { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; background: #fff; }
.news .news__date { font-size: .8rem; color: var(--slate-500); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.news .news__title { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: var(--navy-800); margin: .2em 0; }
.news .news__src { font-size: .85rem; color: var(--slate-500); }

/* --------------------------------------------------------------- footer */
.site-footer {
  position: relative; background: linear-gradient(180deg, #0a1f38, #06162b);
  color: #c3d3ea; padding-block: 3rem 2rem; margin-top: 4rem; font-size: .95rem;
  border-top: 1px solid rgba(125,170,230,.18);
}
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, rgba(245,158,11,.6), transparent); opacity: .6; }
.site-footer a { color: #eef3fb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--amber-400); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 1080px) and (min-width: 761px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--font-sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .8em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .4em 0; }
.footer-grid p { color: #c3d3ea; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.5rem; font-size: .82rem; color: #aebfd8; }
.disclaimer { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-size: .85rem; line-height: 1.6; color: #c3d3ea; }

/* --------------------------------------------------------------- utilities */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.pill-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.divider-label { display: flex; align-items: center; gap: 1rem; color: var(--slate-500); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin: 2rem 0; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

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

/* ----------------------------------------------------------------- print */
@media print {
  .site-header, .topbar, .site-footer, .nav__toggle, .audiobox, .hero__cta, .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section { padding-block: 1rem; }
  a { color: #000; text-decoration: underline; }
  .term { background: none; border: 0; color: #000; font-weight: 700; }
  .term::after { content: ""; }
}

/* ----------------------------------------------------------------- responsive nav */
@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: linear-gradient(180deg, #0c2845, #0a1f38); border-bottom: 1px solid rgba(125,170,230,.2);
    box-shadow: 0 16px 40px rgba(3,12,24,.5); padding: .6rem; gap: .12rem; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__has-menu { position: static; }
  .nav__menu { position: static; background: transparent; box-shadow: none; border: 0; padding-left: 1rem; min-width: 0; }
  .nav__menu.open { display: block; }
}

/* ============================================================ countdown banner */
/* A deliberately "Clear and Conspicuous" notice — size, color, contrast, location. */
.notice-banner {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: #2a1602;
  border-top: 3px solid var(--amber-600);
  border-bottom: 3px solid var(--amber-600);
}
.notice-banner .container { display: flex; align-items: center; gap: 1.2rem; padding-block: 1rem; flex-wrap: wrap; }
.notice-banner__count {
  font-family: var(--font-serif); font-weight: 800; line-height: 1;
  font-size: clamp(2.4rem, 7vw, 3.6rem); color: #7a3d02;
  display: flex; align-items: baseline; gap: .4rem; flex: none;
}
.notice-banner__count small { font-size: .9rem; font-weight: 700; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .08em; }
.notice-banner__text { flex: 1 1 280px; min-width: 240px; }
.notice-banner__text strong { color: #5c2d00; }
.notice-banner__label { text-transform: uppercase; letter-spacing: .07em; font-size: .8rem; font-weight: 800; color: var(--navy-900); margin: 0 0 .3rem; }
/* clickable term must stay readable on the amber banner (no amber-on-amber) */
.notice-banner .term { color: var(--navy-900); background: none; border-bottom: 2px dotted var(--navy-700); }
.notice-banner .term:hover { color: #000; background: rgba(255, 255, 255, .35); }
.notice-banner .term::after { opacity: .85; }
.notice-banner__lead { font-weight: 800; font-size: 1.08rem; margin: 0 0 .15rem; }
.notice-banner__sub { font-size: .9rem; margin: 0; color: #5c2d00; }
.notice-banner__cta {
  flex: none; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--navy-800); color: #fff; text-decoration: none; font-weight: 700;
  padding: .8rem 1.3rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.notice-banner__cta:hover { background: var(--navy-900); color: #fff; }
.notice-banner__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red-700); display: inline-block; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(185,28,28,.55); } 70% { box-shadow: 0 0 0 10px rgba(185,28,28,0); } 100% { box-shadow: 0 0 0 0 rgba(185,28,28,0); } }
@media (prefers-reduced-motion: reduce) { .notice-banner__dot { animation: none; } }
@media (max-width: 620px) { .notice-banner__cta { width: 100%; justify-content: center; } }

/* ============================================================ story timeline */
.story-intro { background: var(--slate-50); border: 1px solid var(--border); border-left: 4px solid var(--navy-600); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.story-tl { list-style: none; padding: 0; margin: 2rem 0; }
.story-tl > li {
  position: relative; padding: 0 0 1.6rem 2rem; border-left: 3px solid var(--slate-200);
}
.story-tl > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.story-tl > li::before {
  content: ""; position: absolute; left: -10px; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; border: 4px solid var(--navy-600);
}
/* a11y (1.4.1): key events differ by SIZE + FILL, not color alone. */
.story-tl > li.is-key::before { border-color: var(--amber-600); background: var(--amber-100); width: 21px; height: 21px; left: -12px; }
.story-tl__head { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin-bottom: .35rem; }
.story-tl__date { font-family: var(--font-serif); font-weight: 800; color: var(--navy-800); font-size: 1.05rem; }
.story-tl__chip { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .55rem; border-radius: 999px; }
.chip--healthnet { background: #e0e7ff; color: #3730a3; }
.chip--dentaquest { background: #cffafe; color: #155e75; }
.chip--clinic { background: var(--slate-100); color: var(--slate-700); }
.chip--letter { background: var(--amber-100); color: var(--amber-800); }
.chip--text { background: var(--green-100); color: var(--green-700); }
.story-tl__dur { margin-left: auto; font-family: var(--font-mono); font-size: .82rem; font-weight: 700; color: var(--slate-600); background: var(--slate-100); padding: .15rem .5rem; border-radius: 6px; }
.story-tl__body { color: var(--slate-700); }
.story-tl__body p { margin: 0 0 .5rem; }
.story-tl__quote { border-left: 3px solid var(--amber-400); margin: .5rem 0; padding: .3rem 0 .3rem .8rem; color: var(--navy-800); font-style: italic; }

/* ============================================================ accessibility */
/* Screen-reader-only utility (visible to assistive tech, hidden visually). */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.visually-hidden:focus { position: static !important; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; }

/* High-contrast clickable audio terms on DARK sections (hero / section--deep).
   On dark navy the default navy term text was unreadable — make it white with a
   clearly visible amber underline + highlight. */
.hero .term,
.section--deep .term {
  color: #ffffff;
  background: linear-gradient(transparent 58%, rgba(245, 158, 11, .60) 58%);
  border-bottom: 2px dotted var(--amber-400);
}
.hero .term:hover,
.section--deep .term:hover,
.hero .term:focus-visible,
.section--deep .term:focus-visible {
  color: #ffffff;
  background: linear-gradient(transparent 50%, rgba(245, 158, 11, .85) 50%);
}
.hero .term::after,
.section--deep .term::after { opacity: 1; }

/* Bold text must stay visible on dark backgrounds. The global <strong> color is
   dark navy, which renders invisible "blue-on-blue" on the hero/deep/footer. */
.hero strong,
.section--deep strong,
.site-footer strong { color: #ffffff; }
/* …except inside light cards or callouts that sit on those dark sections, where dark bold is correct. */
.hero .card strong, .section--deep .card strong,
.hero .callout strong, .section--deep .callout strong { color: var(--navy-800); }

/* Cards & callouts always have a light background — even on hero/deep sections —
   so their text/headings/links must stay dark (not inherit the section's light colors). */
.hero .card, .section--deep .card,
.hero .callout, .section--deep .callout { color: var(--text); }
.hero .card h2, .hero .card h3, .hero .card h4,
.section--deep .card h2, .section--deep .card h3, .section--deep .card h4,
.hero .callout h2, .hero .callout h3, .hero .callout h4,
.section--deep .callout h2, .section--deep .callout h3, .section--deep .callout h4 { color: var(--navy-800); }
.hero .card a, .section--deep .card a,
.hero .callout a, .section--deep .callout a { color: var(--link); }

/* Make focus rings unmistakable on dark backgrounds too (white halo + amber).
   Includes the dark site chrome (header, topbar, footer, dropdown) so the navy
   light-mode ring never lands navy-on-navy. */
.hero :focus-visible,
.section--deep :focus-visible,
.site-header :focus-visible,
.topbar :focus-visible,
.site-footer :focus-visible,
.nav__menu :focus-visible,
.audiobox :focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .55);
  border-radius: 3px;
}

/* a11y: amber surfaces (primary buttons, the notice banner) need a dark, non-amber ring. */
.btn--primary:focus-visible,
.notice-banner :focus-visible {
  outline: 3px solid var(--navy-900);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .6);
  border-radius: 3px;
}

/* a11y: the skip-link target shouldn't flash a ring when focused programmatically. */
main:focus { outline: none; }

/* a11y: Windows High Contrast / forced-colors — always render a system focus ring. */
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
}

/* Honor OS "increase contrast" preference. */
@media (prefers-contrast: more) {
  .term { border-bottom-width: 3px; color: var(--navy-800); }
  .hero .term, .section--deep .term { color: #fff; border-bottom-width: 3px; }
  .source, .audiobox__src, .audiobox__hint, .news__date, .news__src, .legaldoc__meta dt, .stat__label, .text-muted {
    color: var(--slate-700) !important;
  }
  a { text-decoration: underline; }
}

/* ==========================================================================
   v2 — "elite" enhancement layer (appended)
   Pure polish on top of the base system: richer depth, refined surfaces,
   professional micro-interactions, and subtle scroll-reveal motion.
   Rules:
   - Content is untouched (no markup/text changes; CSS + enhance.js only).
   - Everything degrades gracefully (no-JS = fully visible) and honors
     prefers-reduced-motion + print.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-card: 0 1px 2px rgba(10, 31, 56, .05), 0 6px 16px -6px rgba(10, 31, 56, .10);
  --shadow-hover: 0 14px 34px -10px rgba(10, 31, 56, .24), 0 2px 6px rgba(10, 31, 56, .06);
  --amber-200: #fde68a;
}

::selection { background: var(--amber-100); color: var(--navy-900); }

/* offset in-page anchor targets so they don't land under the sticky header */
:where(section, [id]) { scroll-margin-top: 5rem; }

/* nicer thin scrollbars where we scroll */
.table-wrap, .audiobox__def, .nav__links { scrollbar-width: thin; scrollbar-color: var(--slate-300) transparent; }
.table-wrap::-webkit-scrollbar, .audiobox__def::-webkit-scrollbar { height: 8px; width: 8px; }
.table-wrap::-webkit-scrollbar-thumb, .audiobox__def::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 999px; }
.table-wrap::-webkit-scrollbar-track, .audiobox__def::-webkit-scrollbar-track { background: transparent; }

/* typography niceties (progressive; ignored where unsupported) */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, .lead { text-wrap: pretty; }
.stat__big, .notice-banner__count, .card__num, .story-tl__dur, table.data td { font-variant-numeric: tabular-nums; }

/* eyebrow gets a small leading accent rule */
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; }
.eyebrow::before { content: ""; width: 1.7rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); flex: none; }

/* ----------------------------------------------------------- sticky header lift */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(3, 12, 24, .55); }
.site-header.is-scrolled .nav { padding-block: .45rem; }
.nav { transition: padding .25s ease; }

/* ----------------------------------------------------------------- buttons */
.btn { position: relative; overflow: hidden; transition: transform .15s var(--ease-out), box-shadow .22s ease, background .15s ease, border-color .15s ease; }
.btn--primary { background: linear-gradient(180deg, var(--amber-400), var(--amber-500)); color: #2a1602; box-shadow: 0 2px 8px rgba(217, 119, 6, .28); }
.btn--primary:hover { background: linear-gradient(180deg, #fbbf24, var(--amber-500)); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217, 119, 6, .40); }
.btn--ghost:hover { transform: translateY(-1px); }
.btn--outline:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn--primary::before {
  content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg); transition: left .55s var(--ease-out); pointer-events: none;
}
.btn--primary:hover::before { left: 130%; }

/* ----------------------------------------------------------------- cards */
.card {
  background: linear-gradient(180deg, #ffffff, #fcfdff);
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease-out), box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--slate-300); }
/* accent cards: gradient top bar instead of a flat border */
.card--accent { position: relative; border-top: 1px solid var(--border); overflow: hidden; }
.card--accent::after {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px;
  background: linear-gradient(90deg, var(--amber-600), var(--amber-400) 55%, var(--amber-500));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
/* keep non-interactive plan-grid "coming soon" cards calm */
a.card:active { transform: translateY(-1px); }

/* ----------------------------------------------------------------- callouts */
.callout { position: relative; box-shadow: 0 1px 2px rgba(10, 31, 56, .05); }
.callout--info { border-left: 4px solid var(--navy-500); }
.callout--warn { border-left: 4px solid var(--amber-500); }
.callout__title { letter-spacing: -.005em; }

/* ----------------------------------------------------------------- hero */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 90% at 75% 0%, #000 35%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 75% 0%, #000 35%, transparent 75%);
}

/* ----------------------------------------------------------------- tables */
table.data tbody tr { transition: background .15s ease; }
table.data tbody tr:nth-child(even) { background: rgba(241, 245, 249, .55); }
table.data tbody tr:hover { background: var(--amber-50); }

/* ----------------------------------------------------------------- loop diagram */
.loop__step { transition: transform .2s var(--ease-out), box-shadow .2s ease, border-color .2s ease; }
.loop__step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.loop__step::before { box-shadow: 0 2px 8px rgba(16, 50, 87, .35); background: linear-gradient(180deg, var(--navy-600), var(--navy-700)); }
@media (min-width: 761px) {
  .loop__step:not(:last-child)::after {
    content: ""; position: absolute; right: -.62rem; top: calc(50% - 5px);
    border-left: 7px solid var(--amber-600); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
    opacity: .75;
  }
}

/* ----------------------------------------------------------------- provisions / news / org */
.provision { transition: transform .18s var(--ease-out), box-shadow .2s ease, border-color .2s ease; }
.provision:hover { transform: translateX(3px); box-shadow: var(--shadow-card); border-color: var(--amber-200); }
.news li { transition: transform .2s var(--ease-out), box-shadow .2s ease, border-color .2s ease; }
.news li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.org-node { transition: transform .2s var(--ease-out), box-shadow .2s ease; }
.org-node:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ----------------------------------------------------------------- story timeline */
.story-tl > li::before { transition: box-shadow .2s ease; }
.story-tl > li.is-key::before { box-shadow: 0 0 0 5px rgba(245, 158, 11, .15); }
.story-tl__quote { background: linear-gradient(90deg, rgba(245, 158, 11, .06), transparent 60%); border-radius: 0 6px 6px 0; }

/* ----------------------------------------------------------------- legaldoc / meta */
.legaldoc { transition: box-shadow .25s ease; }
.legaldoc__meta div { transition: transform .15s var(--ease-out); }

/* ----------------------------------------------------------------- notice banner sheen */
.notice-banner { position: relative; overflow: hidden; }
.notice-banner .container { position: relative; z-index: 1; }
.notice-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .28) 50%, transparent 58%);
  transform: translateX(-100%); animation: nspBannerSheen 8s ease-in-out 1.5s 3;
}
@keyframes nspBannerSheen { 0%, 72% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ==========================================================================
   scroll reveal — subtle, professional. Gated by html.nsp-reveal, which
   enhance.js adds in <head> (before first paint) ONLY when motion is allowed
   and IntersectionObserver exists. With JS off / reduced motion / on print,
   nothing is hidden. Keep this selector list in sync with enhance.js.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.nsp-reveal :is(
    .section:not(.hero) .container > .eyebrow,
    .section:not(.hero) .container > h2,
    .section:not(.hero) .container > h3,
    .section:not(.hero) .container > p,
    .grid > *,
    .loop__step,
    .stats > .stat,
    .provision,
    .news > li,
    .orgchart > *,
    .story-tl > li,
    .legaldoc,
    .table-wrap,
    .timeline,
    .callout:not(.exhibit__body .callout)
  ) {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  }
  html.nsp-reveal .hero .hero__badge { animation: nspUp .6s both .05s; }
  html.nsp-reveal .hero h1 { animation: nspUp .6s both .13s; }
  html.nsp-reveal .hero .hero__lead { animation: nspUp .6s both .22s; }
  html.nsp-reveal .hero .hero__cta { animation: nspUp .6s both .30s; }
}
.is-visible { opacity: 1 !important; transform: none !important; }
@keyframes nspUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* never let reveal hide content on print */
@media print {
  html.nsp-reveal :is(
    .section:not(.hero) .container > .eyebrow,
    .section:not(.hero) .container > h2,
    .section:not(.hero) .container > h3,
    .section:not(.hero) .container > p,
    .grid > *, .loop__step, .stats > .stat, .provision, .news > li,
    .orgchart > *, .story-tl > li, .legaldoc, .table-wrap, .timeline,
    .callout:not(.exhibit__body .callout)
  ),
  html.nsp-reveal .hero .hero__badge, html.nsp-reveal .hero h1,
  html.nsp-reveal .hero .hero__lead, html.nsp-reveal .hero .hero__cta {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
}

/* ----------------------------------------------------------- mobile refinements */
@media (max-width: 880px) {
  .nav__links a { min-height: 44px; display: flex; align-items: center; }
  .nav__menu a { min-height: 40px; display: flex; align-items: center; }
}
@media (max-width: 600px) {
  .card { padding: 1.25rem; }
  .hero .container { padding-block: clamp(2.4rem, 9vw, 3.4rem); }
  .btn { width: auto; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .story-tl__dur { margin-left: 0; }
}
@media (max-width: 430px) {
  .stats { grid-template-columns: 1fr; }
}

/* ============================================================ grievance form */
/* footer correction/removal CTA (appears in every footer) */
.footer-cta {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(125, 170, 230, .18);
  border-left: 3px solid var(--amber-400); border-radius: var(--radius);
  padding: .85rem 1.15rem; margin: 0 0 1.5rem; font-size: .9rem; color: #c3d3ea;
}
.footer-cta a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-cta a:hover { text-decoration: underline; text-decoration-color: var(--amber-400); }

/* form card + fields */
.form-card {
  background: linear-gradient(180deg, #ffffff, #fcfdff); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.2rem, 4vw, 2.2rem); box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--navy-800); font-size: .95rem; }
.field .req { color: var(--red-700); margin-left: .15em; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%; min-height: 44px;
  border: 1.5px solid var(--slate-500); border-radius: 10px; padding: .7rem .85rem;  /* a11y: slate-300 border was ~1.5:1 */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-500); }  /* a11y: was slate-400 (~2.5:1) */
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate-600); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(29, 90, 160, .30);
}
/* a11y: keyboard focus gets a real outline (so it survives forced-colors / outline:none above). */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--navy-700); outline-offset: 1px;
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid {
  border-color: var(--red-700); box-shadow: 0 0 0 3px rgba(185, 28, 28, .12);
}
.field textarea { resize: vertical; min-height: 9.5rem; }
.field__hint { font-size: .82rem; color: var(--slate-500); margin: 0; }

.check { display: flex; gap: .65rem; align-items: flex-start; margin: 1.3rem 0 0; font-size: .92rem; color: var(--slate-700); line-height: 1.5; }
.check input { margin: .2rem 0 0; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--navy-600); }
.check strong { color: var(--navy-800); }

.turnstile-holder:not(:empty) { margin-top: 1.4rem; }
.form-actions { margin-top: 1.5rem; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; pointer-events: none; }

/* live region stays in the DOM (never `hidden`) so updates are announced;
   it collapses to nothing visually while empty */
.form-status { margin: 0; font-weight: 600; font-size: .95rem; }
.form-status:not(:empty) { margin-top: 1.1rem; padding: .85rem 1.05rem; border-radius: 10px; }
.form-status:empty { padding: 0; line-height: 0; font-size: 0; }
.form-status--ok { background: var(--green-100); color: var(--green-700); border: 1px solid #bbf7d0; }
.form-status--err { background: var(--red-100); color: var(--red-700); border: 1px solid #fecaca; }

/* no-JS error banner — revealed only when the server redirect targets it */
.form-error-banner {
  display: none; margin-bottom: 1.3rem; padding: .85rem 1.05rem; border-radius: 10px;
  background: var(--red-100); color: var(--red-700); border: 1px solid #fecaca; font-size: .95rem;
}
.form-error-banner strong { color: var(--red-700); }
#submit-error:target { display: block; }

.form-success { text-align: center; }
.form-success__icon { font-size: 2.6rem; display: block; margin-bottom: .3rem; }
.form-success h1, .form-success h2 { color: var(--navy-800); }
.form-success h1:focus, .form-success h2:focus { outline: none; }

/* honeypot: visually & programmatically out of the way, but not display:none */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   exhibit cards — anchored evidence cards + jump-nav (timeline directory audit)
   No-JS baseline: plain headings, every card fully open, nothing hidden.
   exhibits.js upgrades headers to real <button aria-expanded> toggles; the
   default state follows the viewport (<=760px collapsed, wider open). Anchor
   targets (#exhibit-N) sit on the always-visible card, so deep links resolve
   even while a card is collapsed; the JS then opens it.
   ========================================================================== */
.exhibit-nav {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--navy-500);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.6em 0;
  box-shadow: 0 1px 2px rgba(10, 31, 56, .05);
}
.exhibit-nav__label { margin: 0 0 .5em; font-weight: 800; font-family: var(--font-sans); color: var(--navy-700); }
.exhibit-nav__list { margin: 0; padding-left: 1.4rem; }
.exhibit-nav__list li { margin: .35em 0; }
.exhibit-nav__list a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.exhibit-nav__list a:hover { color: var(--accent-strong); }

.exhibit {
  background: linear-gradient(180deg, #ffffff, #fcfdff);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); margin: 1rem 0;
}
.exhibit:target { border-color: var(--amber-500); box-shadow: 0 0 0 3px var(--amber-100), var(--shadow-card); }
.exhibit__head { margin: 0; font-size: 1.05rem; line-height: 1.45; padding: .95rem 1.15rem; }
.exhibit__head, .exhibit__toggle { display: flex; align-items: baseline; gap: .7rem; }
.exhibit__head--btn { padding: 0; }
.exhibit__toggle {
  width: 100%; text-align: left; font: inherit; color: inherit;
  background: none; border: 0; cursor: pointer; padding: .95rem 1.15rem;
}
.exhibit__toggle:focus-visible { outline: 3px solid var(--navy-600); outline-offset: -3px; border-radius: var(--radius); }
.exhibit__label {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber-800); background: var(--amber-50);
  border: 1px solid var(--amber-100); border-radius: 999px; padding: .12rem .6rem; flex: none;
}
.exhibit__take { font-family: var(--font-serif); font-weight: 800; color: var(--navy-800); flex: 1; }
.exhibit__toggle:hover .exhibit__take { color: var(--navy-600); }
.exhibit__chevron { display: none; color: var(--slate-500); flex: none; align-self: center; }
.exhibits-js .exhibit__chevron { display: inline-flex; }
.exhibit__chevron svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .exhibit__chevron svg { transition: transform .25s var(--ease-out); }
}
.exhibit__toggle[aria-expanded="true"] .exhibit__chevron svg { transform: rotate(180deg); }
.exhibit__body { padding: 0 1.15rem 1.15rem; border-top: 1px dashed var(--border); }
.exhibit__body > h4:first-child { margin-top: 1.1rem; }
/* Collapse states (JS-applied only). Where supported, hidden="until-found"
   keeps collapsed text reachable by find-in-page (content-visibility), and
   the beforematch event re-opens the card. */
.exhibit__body[hidden] { display: none; }
.exhibit__body[hidden="until-found"] { display: block; content-visibility: hidden; padding: 0; border-top: 0; }

/* inline SVG line icons (evidence-file style; stroke inherits the title color) */
.callout__icon { display: inline-flex; flex: none; }
.callout__icon svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the same line icons inside card/loop icon slots (replaces emoji glyphs;
   sized by the slot's font-size, colored navy to read as diagram marks) */
.card__icon svg { display: inline-block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--navy-600); }

/* success/gratitude callout — replaces the green inline-style recipes
   (healthnet.html, knox-keene.html); migrate during Phase 3, text untouched */
.callout--success { background: var(--green-100); border-color: #bbf7d0; border-left: 4px solid var(--green-700); }
.callout--success .callout__title { color: var(--green-700); }

/* emphasized warn callout — replaces the prominent-warning inline-style
   recipes (ghost-hunt.html, why-this-exists.html) */
.callout--emphasis { border-width: 2px; border-left-width: 6px; }
.callout--emphasis .callout__title { font-size: 1.12rem; }

/* CTA callout — flex layout with a trailing button (replaces inline styles) */
.callout--cta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; border-left-color: var(--amber-500); margin-top: 1.4rem; }
.callout--cta__body { flex: 1 1 260px; min-width: 240px; }
.callout--cta__body p { margin: 0; }
.callout--cta .callout__title { margin: 0 0 .2rem; }
.callout--cta .btn { flex: none; }
.callout--cta > .callout__icon { color: var(--amber-600); align-self: center; }
.callout--cta > .callout__icon svg { width: 2rem; height: 2rem; stroke-width: 1.6; }
