/* ==========================================================================
   State Financial Literacy Policy Tracker, The Economic Blindspot
   Brand tokens, type, header, and footer match economicblindspot.com
   (navy EB monogram, warm paper, hairline rules, red kicker rules, Geist).
   Mobile first. The print styles are at the bottom.
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  src: url('../../assets/fonts/geist-latin.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Brand, same values as economicblindspot.com */
  --paper:     #f3f2ef;
  --surface:   #ffffff;
  --rule:      #e0ded7;
  --rule-soft: #eae8e2;
  --ink:       #10131a;
  --ink-2:     #4a5160;
  --ink-3:     #656c7a;
  --navy:      #062755;
  --navy-2:    #0a3872;
  --red:       #c8322f;   /* brand accent: kicker rules, "not covered" verdicts, discrepancy notes */

  /* Tier colors: one navy ramp, darkest = strongest. Tiers always show a number and label too. */
  --tier-1: #062755;
  --tier-2: #2c5d9f;
  --tier-3: #7fa0cc;
  --tier-4: #c7d4e6;
  --tier-5: #e2e0d9;

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --r: 3px;
  --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(52px, 7vw, 96px);
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 84px; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.panel-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 500;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r); font-size: 13px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); }
.rule-top { border-top: 1px solid var(--rule); }

/* ---------- type ---------- */
.kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--red); flex: none; }

h1, h2, h3 { font-weight: 650; line-height: 1.08; letter-spacing: -0.038em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); text-wrap: balance; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.2; letter-spacing: -0.02em; }
p + p { margin-top: 1em; }

.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 56ch; }
.prose p, .prose li { color: var(--ink-2); max-width: 64ch; }
.prose p + p { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 14px; }
.prose h3 { margin: 26px 0 8px; }
.prose ul, .prose ol { margin-top: 12px; padding-left: 20px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 8px; }
.prose strong { color: var(--ink); }
.meta, .small { font-size: 13px; color: var(--ink-3); }
.meta { letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }

.sec-head { margin-bottom: clamp(26px, 4vw, 40px); max-width: 760px; }
.sec-head h2 { margin: 14px 0 12px; }

.load-error {
  border: 1px solid var(--red); background: var(--surface); padding: 14px 16px; border-radius: var(--r);
  font-weight: 500; margin-top: 18px;
}
.offline-note {
  background: var(--navy); color: rgba(255,255,255,.88); font-size: 13px; text-align: center;
  padding: 8px var(--gut); border-bottom: 2px solid var(--red);
}
.print-only { display: none; }

/* ---------- buttons ---------- */
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
  padding: 12px 20px; min-height: 44px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover, .button:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-ghost, .button-secondary { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-ghost:hover, .button-secondary:hover { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-onnavy { background: #fff; color: var(--navy); border-color: #fff; }
.btn-onnavy:hover { background: rgba(255,255,255,.88); color: var(--navy); border-color: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 2px solid rgba(6,39,85,.25); }
.text-link:hover { border-bottom-color: var(--navy); }

/* ---------- header: same markup and values as economicblindspot.com ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100; height: 64px; display: flex; align-items: center;
  background: rgba(243,242,239,.88);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 30px; height: 30px; border-radius: 2px; background: var(--navy); flex: none; }
.brand-name { font-size: 11.5px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 13px; border-radius: var(--r); text-decoration: none;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(6,39,85,.06); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav a.active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; background: var(--red); }
.burger { display: none; padding: 8px; border-radius: var(--r); }
.burger:hover { background: rgba(6,39,85,.06); }

@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gut) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--rule-soft); border-radius: 0; font-size: 15px; }
  .nav a:hover { background: none; }
  .nav a.active::after { left: 0; right: auto; width: 20px; bottom: 8px; }
  .burger { display: grid; place-items: center; }
}

/* ---------- tracker tabs: the second row under the site header ---------- */
.subnav { background: var(--surface); border-bottom: 1px solid var(--rule); }
.subnav-in { display: flex; align-items: center; gap: 18px; min-height: 48px; }
.subnav-label {
  flex: none; display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
}
.subnav-label::before { content: ''; width: 18px; height: 2px; background: var(--red); }
.subnav-tabs {
  display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin-right: calc(var(--gut) * -1); padding-right: var(--gut);
}
.subnav-tabs::-webkit-scrollbar { display: none; }
.subnav-tabs a {
  position: relative; flex: none; padding: 14px 11px; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
}
.subnav-tabs a:hover { color: var(--navy); }
.subnav-tabs a.active { color: var(--ink); font-weight: 600; }
.subnav-tabs a.active::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 0; height: 2px; background: var(--red); }
@media (max-width: 760px) {
  .subnav-label { display: none; }
  .subnav-in { min-height: 44px; }
  .subnav-tabs { margin-left: -11px; }
  .subnav-tabs a { padding: 12px 11px; }
}

/* ---------- page heads and hero ---------- */
.page-head { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(30px, 4.5vw, 52px); border-bottom: 1px solid var(--rule); }
.page-head h1 { margin: 14px 0 16px; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-head .meta { margin-top: 16px; }

.hero { padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(44px, 6vw, 84px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.35fr .85fr; gap: clamp(32px, 5vw, 72px); } }
.hero h1 { margin: 16px 0 20px; }
.hero .lede { margin-bottom: 26px; }
.hero .meta { margin-top: 20px; }

.hero-card {
  background: var(--navy); color: #fff; border-radius: var(--r); padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 22px 60px -28px rgba(6,39,85,.55); position: relative; overflow: hidden;
}
.hero-card::before { content: ''; position: absolute; left: clamp(24px, 3.5vw, 36px); top: 0; width: 26px; height: 3px; background: var(--red); }
.hero-card-label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero-card-number { display: block; font-size: clamp(4rem, 11vw, 6.5rem); font-weight: 650; letter-spacing: -0.05em; line-height: .95; margin: 14px 0 8px; font-variant-numeric: tabular-nums; }
.hero-card-text { font-size: 1.05rem; color: #fff; max-width: 26ch; }
.hero-card-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-card-split b { display: block; font-size: 1.7rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.hero-card-split span { display: block; font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 6px; line-height: 1.35; }

/* ---------- stat row ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: clamp(16px, 2.4vw, 24px); display: flex; flex-direction: column; gap: 8px; }
.stat-number { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-text { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.stat .chip { margin-top: auto; }
.stat-footnote { margin-top: 12px; }

/* ---------- tier chips and state tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.25; color: var(--ink); vertical-align: middle; }
.chip-swatch { width: 12px; height: 12px; border-radius: 2px; flex: none; box-shadow: inset 0 0 0 1px rgba(16,19,26,.18); }
.chip-num { font-weight: 650; white-space: nowrap; }
.chip-label { color: var(--ink-2); }
.tier-1 .chip-swatch, .tier-1 .state-tag-dot { background: var(--tier-1); }
.tier-2 .chip-swatch, .tier-2 .state-tag-dot { background: var(--tier-2); }
.tier-3 .chip-swatch, .tier-3 .state-tag-dot { background: var(--tier-3); }
.tier-4 .chip-swatch, .tier-4 .state-tag-dot { background: var(--tier-4); }
.tier-5 .chip-swatch, .tier-5 .state-tag-dot { background: var(--tier-5); }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.state-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; min-height: 30px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.state-tag:hover { border-color: var(--navy); color: var(--navy); }
.state-tag-dot { width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(16,19,26,.2); }

/* ---------- unconfirmed: striped, dashed, and labeled, never color alone ---------- */
.chip-unconfirmed .chip-swatch { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.9) 0 2px, transparent 2px 5px); }
.chip-flag {
  font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  border: 1px dashed var(--red); color: var(--red); border-radius: 999px; padding: 0 7px;
}
.state-tag.is-unconfirmed { border-style: dashed; border-color: #b3b0a8; }
.state-tag.is-unconfirmed .state-tag-dot { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.9) 0 2px, transparent 2px 4px); }
.unconfirmed-note {
  border: 1px dashed var(--red); background: rgba(200,50,47,.04); border-radius: var(--r);
  padding: 10px 12px; margin-top: 12px; font-size: 14px; color: var(--ink-2);
}
.unconfirmed-note strong { color: var(--red); }
.field-flag {
  display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  border: 1px dashed #b3b0a8; color: var(--ink-3); border-radius: 999px; padding: 0 7px; vertical-align: middle;
}
.tooltip-flag { display: block; font-style: normal; font-size: 12px; color: #ffd9d8; margin-top: 3px; }

/* ---------- map ---------- */
.map-wrap { position: relative; margin: 8px 0 18px; }
.map { display: block; width: 100%; height: auto; }
.map-state path, .map-state rect, .map-callout rect {
  fill: #d8d6cf; stroke: var(--paper); stroke-width: 1; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; transition: fill .15s;
}
.map-callout line { stroke: #9a9ea8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-state.tier-1 path, .map-state.tier-1 rect, .map-callout.tier-1 rect { fill: var(--tier-1); }
.map-state.tier-2 path, .map-state.tier-2 rect, .map-callout.tier-2 rect { fill: var(--tier-2); }
.map-state.tier-3 path, .map-state.tier-3 rect, .map-callout.tier-3 rect { fill: var(--tier-3); }
.map-state.tier-4 path, .map-state.tier-4 rect, .map-callout.tier-4 rect { fill: var(--tier-4); }
.map-state.tier-5 path, .map-state.tier-5 rect, .map-callout.tier-5 rect { fill: var(--tier-5); stroke: #a7a59d; }
.stripe-base.tier-1 { fill: var(--tier-1); } .stripe-base.tier-2 { fill: var(--tier-2); }
.stripe-base.tier-3 { fill: var(--tier-3); } .stripe-base.tier-4 { fill: var(--tier-4); } .stripe-base.tier-5 { fill: var(--tier-5); }
.stripe-line { fill: var(--paper); }
.map-state.is-unconfirmed.tier-1 path, .map-callout.is-unconfirmed.tier-1 rect { fill: url(#stripe-1); }
.map-state.is-unconfirmed.tier-2 path, .map-callout.is-unconfirmed.tier-2 rect { fill: url(#stripe-2); }
.map-state.is-unconfirmed.tier-3 path, .map-callout.is-unconfirmed.tier-3 rect { fill: url(#stripe-3); }
.map-state.is-unconfirmed.tier-4 path, .map-callout.is-unconfirmed.tier-4 rect { fill: url(#stripe-4); }
.map-state.is-unconfirmed.tier-5 path, .map-callout.is-unconfirmed.tier-5 rect { fill: url(#stripe-5); }
.map-label.is-unconfirmed { fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.map-state:hover path, .map-state:hover rect, .map-callout:hover rect,
.map-state.is-hover path, .map-state.is-hover rect, .map-callout.is-hover rect { stroke: var(--red); stroke-width: 2.5; }
.map-state:focus { outline: none; }
.map-state:focus-visible path, .map-state:focus-visible rect { stroke: var(--red); stroke-width: 4; }
.map-label { font-family: var(--sans); font-size: 12px; font-weight: 650; text-anchor: middle; pointer-events: none; fill: var(--ink); letter-spacing: .02em; }
.map-label.tier-1, .map-label.tier-2 { fill: #fff; }
.map-label-tier { font-weight: 450; }
@media (max-width: 640px) { .map-labels { display: none; } }

.map-tooltip {
  position: absolute; z-index: 5; pointer-events: none; width: max-content; max-width: 16rem;
  background: var(--navy); color: #fff; padding: 8px 11px; border-radius: var(--r);
  font-size: 13px; line-height: 1.35; transform: translate(-50%, calc(-100% - 12px));
  box-shadow: 0 12px 30px -14px rgba(6,39,85,.6); border-top: 2px solid var(--red);
}
.map-tooltip strong { display: block; font-size: 14px; }

.legend { display: grid; gap: 8px; margin-bottom: 28px; }
.legend li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
@media (min-width: 760px) { .legend { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 10px 18px; } }
.legend-count { color: var(--ink-3); font-size: 13px; margin-left: 4px; }

.az-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 28px 0 10px; }
.az-head h3 { font-size: 1.15rem; }
.state-list { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
@media (min-width: 600px) { .state-list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
@media (min-width: 980px) { .state-list { grid-template-columns: 1fr 1fr 1fr; } }
.state-list li { border-bottom: 1px solid var(--rule-soft); }
.state-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 2px; min-height: 46px; color: var(--ink); text-decoration: none;
}
.state-list a:hover .state-name { color: var(--navy); text-decoration: underline; }
.state-name { font-weight: 550; }
.state-list .chip-label { display: none; }
@media (min-width: 1100px) { .state-list .chip-label { display: inline; font-size: 12px; } }

/* ---------- tier cards (five kinds of rules) ---------- */
.tier-cards { display: grid; gap: 14px; }
@media (min-width: 760px) { .tier-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tier-cards { grid-template-columns: repeat(3, 1fr); } }
.tier-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 20px 20px 22px; border-top: 5px solid var(--tier-5); display: flex; flex-direction: column; gap: 10px;
}
.tier-card.tier-1 { border-top-color: var(--tier-1); }
.tier-card.tier-2 { border-top-color: var(--tier-2); }
.tier-card.tier-3 { border-top-color: var(--tier-3); }
.tier-card.tier-4 { border-top-color: var(--tier-4); }
.tier-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier-card-count { font-size: 2rem; font-weight: 650; letter-spacing: -0.04em; color: var(--navy); line-height: 1; }
.tier-card p { font-size: 14.5px; color: var(--ink-2); }
.tier-card .tag-list { margin-top: 4px; }

/* ---------- year rows (what's coming, timeline) ---------- */
.years { border-top: 1px solid var(--rule); }
.year-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); align-items: start; }
.year-label b { display: block; white-space: nowrap; font-size: 1.2rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.year-label span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.year-row.is-past .year-label b { color: var(--ink-3); }
.year-row.is-now { background: linear-gradient(90deg, rgba(200,50,47,.06), transparent 60%); }
.year-row.is-now .year-label span { color: var(--red); }

/* ---------- navy call to action band ---------- */
.band { background: var(--navy); color: rgba(255,255,255,.8); }
.band .kicker { color: rgba(255,255,255,.75); }
.band h2 { color: #fff; margin: 14px 0 12px; }
.band p { max-width: 56ch; }
.band-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1.3fr .7fr; } .band .btn-row { justify-content: flex-end; } }
.band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- cards, forms ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
select, input[type="text"], input[type="search"] {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 10px 12px; min-height: 46px; border: 1px solid #c9c6bd; border-radius: var(--r); background: var(--surface);
}
select:focus-visible, input:focus-visible { border-color: var(--navy); outline: 2px solid rgba(6,39,85,.25); outline-offset: 0; }

.checker-form { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 760px) { .checker-form { grid-template-columns: 2fr 1fr auto; align-items: end; } }

.verdict { border-left: 5px solid var(--ink-3); background: var(--paper); padding: 18px 18px 18px 20px; border-radius: 0 var(--r) var(--r) 0; }
.verdict > * + * { margin-top: 12px; }
.verdict-covered { border-left-color: var(--tier-1); }
.verdict-embedded { border-left-color: var(--tier-3); }
.verdict-misses, .verdict-not-covered, .verdict-not-yet { border-left-color: var(--red); }
.verdict-kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.verdict-headline { font-size: clamp(1.4rem, 3.2vw, 1.9rem); letter-spacing: -0.03em; }
.verdict-misses .verdict-headline, .verdict-not-covered .verdict-headline, .verdict-not-yet .verdict-headline { color: var(--red); }
.verdict-meta { font-size: 13px; color: var(--ink-3); }

.action { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--navy); border-radius: var(--r); padding: 12px 14px; font-size: 15px; }
.action strong { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 4px; }

.share { margin-top: 16px; }
.share-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.share-row { display: flex; gap: 8px; }
.share-row input { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink-2); }
.copy-status { display: block; font-size: 13px; color: var(--ink-3); min-height: 1.4em; margin-top: 4px; }

.rules-list { counter-reset: rule; display: grid; gap: 12px; }
.rules-list li { counter-increment: rule; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 15px; color: var(--ink-2); }
.rules-list li::before {
  content: counter(rule); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 650;
}
.rules-list strong { color: var(--ink); }
.plain-list li::before { content: ''; width: 10px; height: 10px; border-radius: 2px; background: var(--red); margin: 7px 0 0 10px; }
.sec-gap { margin-top: 14px; }
.sec-gap-lg { margin-top: 28px; }

/* ---------- state panel ---------- */
.panel { border: 0; padding: 0; margin: 0; color: var(--ink); background: var(--paper); width: 100%; max-width: 100%; height: 100%; max-height: 100%; }
.panel::backdrop { background: rgba(6,20,45,.55); }
@media (min-width: 760px) { .panel { margin: 0 0 0 auto; width: 36rem; box-shadow: -18px 0 50px -20px rgba(6,39,85,.5); } }
.panel-inner { padding: 0 clamp(18px, 3vw, 30px) 44px; }
.panel-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 1; background: var(--paper); padding: 12px 0; border-bottom: 1px solid var(--rule); margin-bottom: 20px;
}
.panel-brand { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.panel-brand img { width: 22px; height: 22px; border-radius: 2px; }
.panel h2 { font-size: clamp(2rem, 6vw, 2.6rem); margin: 10px 0 8px; }
.panel h2:focus { outline: none; }
.panel-headline { font-size: 1.15rem; font-weight: 550; line-height: 1.4; letter-spacing: -0.01em; }
.panel h3 { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 10px; }
.panel h3::before { content: ''; width: 18px; height: 2px; background: var(--red); }
.panel-answer { font-size: 1.05rem; margin-bottom: 14px; }

.facts div { border-bottom: 1px solid var(--rule-soft); padding: 9px 0; }
@media (min-width: 480px) { .facts div { display: grid; grid-template-columns: 10.5rem 1fr; gap: 14px; } }
.facts dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.facts dd { font-size: 15px; }

.discrepancy { font-size: 13.5px; border-left: 3px solid var(--red); background: rgba(200,50,47,.05); padding: 10px 12px; margin-top: 14px; border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2); }
.discrepancy strong { color: var(--red); }

.bills li { border-bottom: 1px solid var(--rule-soft); padding: 10px 0; font-size: 15px; }
.bill-id { font-weight: 650; margin-right: 8px; }

.badge {
  display: inline-block; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid var(--ink-2); color: var(--ink-2); border-radius: 999px; padding: 1px 8px; vertical-align: middle; white-space: nowrap;
}
.badge-pending, .badge-watch { border-color: var(--navy); color: var(--navy); }
.badge-dead { border-color: #b3b0a8; color: var(--ink-3); }
.badge-needs-recheck, .badge-unverified { border-color: var(--red); color: var(--red); }
.badge-verified { border-color: var(--navy); color: #fff; background: var(--navy); }
.badge-status-confirmed-implementing { border-color: var(--navy); color: #fff; background: var(--navy); }
.badge-status-planning { border-color: var(--tier-2); color: var(--tier-2); }
.badge-status-no-response, .badge-status-unconfirmed { border-color: #b3b0a8; color: var(--ink-3); }

.source-list { display: grid; gap: 6px; margin: 6px 0 10px; font-size: 14.5px; }
.source-list li { padding-left: 14px; position: relative; }
.source-list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 2px; background: var(--red); }
.source-kind { color: var(--ink-3); font-size: 13px; }
.panel-links { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 22px; }

/* ---------- change log ---------- */
.changelog { border-top: 1px solid var(--rule); }
.changelog li { border-bottom: 1px solid var(--rule-soft); padding: 16px 0; display: grid; gap: 4px; }
@media (min-width: 760px) { .changelog li { grid-template-columns: 11rem 1fr; column-gap: 24px; } .changelog li > :not(time) { grid-column: 2; } }
.changelog time { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.changelog strong { font-size: 1.05rem; font-weight: 600; }
.changelog p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 11px 13px; border-bottom: 1px solid var(--rule-soft); }
thead th { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: #faf9f7; white-space: nowrap; border-bottom: 1px solid var(--rule); }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
th button { font-weight: 600; letter-spacing: inherit; text-transform: inherit; color: inherit; }
th button:hover { color: var(--navy); }
.sort-arrow { display: inline-block; width: 1em; }
.table-caption { caption-side: top; text-align: left; padding: 10px 13px; font-size: 13px; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.counts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; font-size: 14px; }
.big-count { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 650; letter-spacing: -0.035em; color: var(--navy); margin: 10px 0; }
.table-tools { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 760px) { .table-tools { grid-template-columns: minmax(0, 24rem) 1fr; align-items: end; } }
.district-cta { margin-top: 22px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-row button {
  padding: 7px 12px; min-height: 38px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
  font-size: 13px; font-weight: 550; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px;
}
.filter-row button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- NY page ---------- */
.timeline { display: grid; gap: 10px; margin: 16px 0 24px; }
@media (min-width: 560px) { .timeline { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); } }
.timeline li { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--navy); border-radius: var(--r); padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.timeline strong { display: block; font-size: 1.35rem; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
.explainer h2 { margin-top: 36px; }
.explainer h2:first-child { margin-top: 0; }

/* ---------- rankings ---------- */
.podium { display: grid; gap: 14px; }
@media (min-width: 760px) { .podium { grid-template-columns: repeat(3, 1fr); } }
.podium-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; position: relative; text-decoration: none; color: var(--ink); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.podium-card:hover { border-color: var(--navy); color: var(--ink); transform: translateY(-2px); }
.podium-rank { font-size: 3.2rem; font-weight: 650; letter-spacing: -0.05em; line-height: .9; color: var(--navy); }
.podium-rank small { font-size: 1rem; letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.podium-card h3 { font-size: 1.5rem; }
.podium-card p { font-size: 14.5px; color: var(--ink-2); }

.two-col { display: grid; gap: 18px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 24px; } }

.rank-cell { font-weight: 650; font-size: 1.05rem; color: var(--navy); }
.rank-tie { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 3px; }

.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 8.5rem 1fr 5.5rem; gap: 12px; align-items: center; font-size: 14px; }
@media (max-width: 520px) { .year-row { grid-template-columns: 1fr; gap: 8px; } .bar-row { grid-template-columns: 6.5rem 1fr 4.6rem; gap: 8px; font-size: 13px; } }
.bar-row a { color: var(--ink); font-weight: 550; text-decoration: none; }
.bar-row a:hover { color: var(--navy); text-decoration: underline; }
.bar-track { height: 14px; background: var(--rule-soft); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--navy); border-radius: 2px; }
.bar-fill.is-low { background: var(--red); }
.bar-value { font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-2); }

/* ---------- compare ---------- */
.compare-controls { display: grid; gap: 12px; }
@media (min-width: 760px) { .compare-controls { grid-template-columns: repeat(3, 1fr); } }
.quick-picks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.compare-table { min-width: 640px; }
.compare-table thead th { text-transform: none; letter-spacing: -0.01em; font-size: 1.15rem; color: var(--ink); font-weight: 650; white-space: normal; }
.compare-table tbody th { width: 11rem; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); position: sticky; left: 0; background: var(--surface); }
.compare-table td { min-width: 12rem; }
.compare-table .headline-cell { font-weight: 550; color: var(--ink); }
.compare-cards { display: grid; gap: 14px; }
@media (max-width: 759px) { .compare-wide { display: none; } }
@media (min-width: 760px) { .compare-cards { display: none; } }

/* ---------- about / what is this ---------- */
.about-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .about-grid { grid-template-columns: 15rem 1fr; gap: 64px; align-items: start; } }
.toc { position: sticky; top: 88px; display: none; }
@media (min-width: 980px) { .toc { display: block; } }
.toc p { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--rule); font-size: 14px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--navy); border-left-color: var(--red); }
.about-block { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.about-block:last-child { border-bottom: 0; margin-bottom: 0; }
.big-question { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 550; letter-spacing: -0.025em; line-height: 1.3; color: var(--ink); max-width: 40ch; }

.glossary { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; margin-top: 18px; }
@media (min-width: 760px) { .glossary { grid-template-columns: 1fr 1fr; } }
.glossary div { background: var(--surface); padding: 16px 18px; }
.glossary dt { font-weight: 650; margin-bottom: 4px; }
.glossary dd { font-size: 14.5px; color: var(--ink-2); }

.difference { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px; margin-top: 14px; }
.difference h3 { margin: 0; }
.difference p { font-size: 15px; color: var(--ink-2); }
.versus { display: grid; gap: 10px; }
@media (min-width: 640px) { .versus { grid-template-columns: 1fr 1fr; } }
.versus > div { border-top: 2px solid var(--rule); padding-top: 10px; }
.versus b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 600; font-size: 1.02rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--navy); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding-bottom: 16px; color: var(--ink-2); max-width: 64ch; }

.tier-defs li { border-top: 1px solid var(--rule); padding: 16px 0; }
.tier-defs p { margin-top: 6px; color: var(--ink-2); }

/* ---------- footer (matches economicblindspot.com) ---------- */
.ftr { background: var(--navy); color: rgba(255,255,255,.72); padding-block: clamp(48px, 6vw, 72px); margin-top: 0; }
.ftr a { color: rgba(255,255,255,.78); text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr-top { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
@media (min-width: 760px) { .ftr-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; } }
.ftr-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ftr-brand img { width: 34px; height: 34px; border-radius: 2px; }
.ftr-brand span { font-size: 11.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: #fff; }
.ftr p { font-size: 14px; max-width: 42ch; }
.ftr h2 { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.ftr ul { display: grid; gap: 9px; }
.ftr ul a { font-size: 14px; }
.ftr-legal { border-top: 1px solid rgba(255,255,255,.16); padding-top: 24px; display: grid; gap: 14px; }
.ftr-legal p { font-size: 12.5px; line-height: 1.65; max-width: 80ch; color: rgba(255,255,255,.62); }
.ftr-legal b { color: rgba(255,255,255,.92); font-weight: 600; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.legal-links a { text-decoration: underline; text-underline-offset: 2px; }
.ftr-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,.55); }

/* ---------- print: a clean page, no nav, map, or footer ---------- */
@media print {
  @page { margin: 0.5in; }
  body { background: #fff; font-size: 10pt; line-height: 1.4; }
  .hdr, .subnav, .skip, .ftr, .map-section, .stats, .band, .no-print, .share, .panel-top button, .panel-links,
  .table-tools, .filter-row, .quick-picks, .compare-controls, .toc, .offline-note, .hero-card { display: none !important; }
  .print-only { display: block; font-size: 8.5pt; color: #555; margin-bottom: 8px; }
  a { color: var(--ink); }
  .source-list a::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; word-break: break-all; }
  .section, .hero, .page-head { padding-block: 10px; }
  .wrap { max-width: none; padding: 0; }
  h1 { font-size: 22pt; } h2 { font-size: 15pt; } h3 { font-size: 11pt; }
  .lede { font-size: 11pt; }
  .table-scroll { overflow: visible; border: 0; }
  table { font-size: 8pt; line-height: 1.25; }
  th, td { padding: 3px 5px; font-size: 8pt; white-space: normal; }
  thead th { color: var(--ink); border-bottom: 1.5px solid var(--ink); background: #fff; }
  .sort-arrow, .table-caption { display: none; }
  .badge { font-size: 6.5pt; padding: 0 4px; }
  .big-count { font-size: 13pt; margin: 4px 0; }
  .timeline { display: flex; gap: 6px; margin: 6px 0; }
  .timeline li { padding: 3px 8px; flex: 1; }
  .timeline strong { display: inline; font-size: 10pt; margin-right: 6px; }
  .explainer h2 { margin-top: 10px; }
  tr, li { break-inside: avoid; }

  body.panel-open { overflow: visible; }
  body.panel-open > *:not(#state-panel) { display: none !important; }
  .panel { position: static; width: auto; height: auto; max-height: none; overflow: visible; box-shadow: none; background: #fff; }
  .panel::backdrop { display: none; }
  .panel-inner { padding: 0; }
  .panel-top { position: static; border: 0; margin: 0; padding: 0; }
  .panel h2 { font-size: 20pt; }
  .panel h3 { margin: 8px 0 4px; padding-top: 6px; }
  .facts div { padding: 2px 0; }
  .chip-swatch, .state-tag-dot, .timeline li, .verdict, .badge-verified { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* lists inside prose that have their own styling */
.prose ul.tier-defs, .prose ul.source-list, .prose .tag-list { list-style: none; padding-left: 0; }
.prose .tier-defs li { margin-top: 0; }

/* Labels on striped (unconfirmed) states: dark text with a paper halo so they read on stripes. */
.map .map-label.is-unconfirmed { fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
