/* Typefaces (self-hosted, SIL Open Font License): Public Sans — the U.S. government's typeface — for text,
   Source Serif 4 for headings, so pages read like a public report. */
@font-face { font-family: 'Public Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/public-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/public-sans-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 500; font-display: swap; src: url(/fonts/public-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url(/fonts/public-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 700; font-display: swap; src: url(/fonts/public-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-display: swap; src: url(/fonts/source-serif-4-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 600 700; font-display: swap; src: url(/fonts/source-serif-4-latin-600-normal.woff2) format('woff2'); }

/* Palette deliberately avoids red and blue (political associations).
   Neutral charcoal + bronze; source labels use purple, green, bronze, black, gray. */
:root {
  --sans: 'Public Sans', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #1F2328;
  --ink-2: #3D4248;
  --ink-3: #565C63;
  --line: #D9D6CF;
  --line-soft: #E4E7E4;
  --accent: #2B3440;        /* charcoal: buttons, links */
  --accent-dark: #11161C;
  --bronze: #7E5300;        /* highlight accent */
  --bronze-soft: #F3EBDD;
  --side-bg: #F1F2EF;       /* both sides of an argument get the same treatment */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--bronze); }
h1, h2, h3 { font-family: var(--serif); margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 21px; }
.brand .accent { color: var(--bronze); }
.brand:hover { color: var(--ink); }
.main-nav { position: relative; font-size: 15px; font-weight: 500; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 22px; }
.nav-list > li { position: relative; }
.main-nav a, .drop-btn { text-decoration: none; padding: 10px 0; color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }
.main-nav a:hover, .drop-btn:hover { color: var(--bronze); }
.main-nav a[aria-current="page"], .has-drop.current > .drop-btn { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--bronze); }
.drop-btn { font: inherit; background: none; border: 0; cursor: pointer; gap: 6px; }
.drop-btn::after { content: ''; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.has-drop.open > .drop-btn::after { transform: rotate(-135deg) translateY(-1px); }
.drop { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: -12px; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 8px 24px rgba(20,22,25,.12); display: none; z-index: 50; }
.has-drop.open > .drop { display: block; }
@media (hover: hover) { .has-drop:hover > .drop, .has-drop:focus-within > .drop { display: block; } }
.drop a { display: flex; padding: 8px 12px; min-height: 40px; border-radius: 3px; width: 100%; }
.drop a:hover { background: var(--side-bg); color: var(--ink); }
.drop a[aria-current="page"] { box-shadow: none; background: var(--bronze-soft); }
.nav-toggle { display: none; font: inherit; font-weight: 600; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .header-row { flex-wrap: nowrap; align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .nav-list { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; gap: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 12px 32px rgba(20,22,25,.16); z-index: 60; }
  .nav-list.open { display: flex; }
  .nav-list > li > a { display: flex; padding: 10px 12px; border-radius: 3px; }
  .main-nav a[aria-current="page"], .has-drop.current > .drop-btn { box-shadow: none; }
  .main-nav a[aria-current="page"] { background: var(--bronze-soft); }
  .nav-list > li + li { border-top: 1px solid var(--line-soft, #ECEDEA); }
  .drop-btn { pointer-events: none; padding: 10px 12px 2px; min-height: 0; font-size: 12px; font-weight: 700; color: var(--ink-3, #565C63); }
  .drop-btn::after { display: none; }
  .drop, .has-drop:hover > .drop, .has-drop:focus-within > .drop { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 6px; min-width: 0; }
}

/* Layout */
.main { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 4px; }
.stack-xs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.section-head h2 { font-size: 26px; }
.more { font-weight: 600; font-size: 15px; }
.muted { font-size: 14px; color: var(--ink-3); }
.muted-lg { font-size: 15px; color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.h-sm { font-size: 22px; }
.h-md { font-size: 24px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--bronze); }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.hero h1 { font-size: 44px; line-height: 1.1; }
@media (max-width: 600px) { .hero h1 { font-size: 32px; } }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.btn { font: inherit; font-size: 16px; border: 0; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 3px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid #BFC1BC; }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink-3); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card { flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card.tradeoff { flex-basis: 480px; gap: 14px; }
.card.tradeoff h3 { font-size: 20px; }

/* Two sides: identical styling on purpose */
.sides { display: flex; flex-wrap: wrap; gap: 12px; flex: 1 1 auto; }
.side { flex: 1 1 200px; min-width: 0; border-radius: 3px; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--side-bg); border-top: 3px solid var(--ink-3); }
.side.big { flex-basis: 320px; padding: 20px; }
.side.big p { font-size: 15px; line-height: 1.55; }
.side-label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.side-stat { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.15; }
.side-body { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.side-src { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--ink-3); }
.side-src a { color: inherit; }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel.grow { flex: 999 1 560px; }
.panel.side-panel { flex: 1 1 320px; }
.panel.col3 { flex: 1 1 340px; }
.panel.debate { padding: 28px; }

/* Bar chart */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.bar-label { flex: 0 0 210px; font-size: 14px; font-weight: 500; }
.bar-track-wrap { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar-track { flex: 1 1 auto; height: 24px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.bar { height: 100%; background: #B9A27A; border-radius: 4px; min-width: 2%; }
.bar.dc { background: var(--accent); }
.bar-val { flex: 0 0 64px; text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tables */
.scroll-x { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; }
.noise thead th { padding: 8px 6px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-weight: 600; }
.noise tbody th, .noise td { padding: 9px 6px; border-bottom: 1px solid var(--line-soft); }
.noise tbody th { font-weight: 500; }
.noise tr.hi th { font-weight: 700; color: var(--ink); }
.noise tr.hi { background: var(--bronze-soft); }
.table-box { border: 1px solid var(--line-soft); border-radius: 3px; }
.tracker { min-width: 920px; }
.tracker thead tr { background: var(--bg); color: var(--ink-3); }
.tracker thead th { padding: 10px 12px; font-weight: 600; }
.tracker tbody th, .tracker td { padding: 11px 12px; border-top: 1px solid var(--line-soft); }
.tracker tbody th { font-weight: 600; }

/* Lists */
.list-item { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.flex-between { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
.item-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); text-decoration: none; }
a.item-title:hover { color: var(--bronze); }
.tag { flex: 0 0 auto; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 3px; background: var(--side-bg); color: var(--ink-2); border: 1px solid var(--line); }
.event { flex-direction: row; align-items: center; gap: 14px; }
.date-chip { flex: 0 0 56px; height: 56px; border-radius: 3px; background: var(--bronze-soft); color: #6B4500; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.date-chip span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.date-chip b { font-size: 20px; line-height: 1; }

/* Tracker tiles and status pills */
.tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.tile { flex: 1 1 150px; min-width: 0; border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.tile b { font-family: var(--serif); font-size: 26px; }
.tile span:last-child { font-size: 13px; color: var(--ink-3); }
.dot { width: 10px; height: 10px; border-radius: 999px; }
.s-operating { background: #2E6B3F; } .s-building { background: #8A5A00; } .s-proposed { background: #5B3A8C; } .s-stopped { background: #1F2328; } .s-closed { background: #9AA0A6; }
.pill { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 3px; }
.p-operating { background: #E1EEE3; color: #245533; }
.p-building { background: #F3EBDD; color: #6B4500; }
.p-proposed { background: #ECE6F4; color: #4A2F75; }
.p-stopped { background: #1F2328; color: #FFFFFF; }
.p-closed { background: #E6E7E8; color: #3D4248; }

/* Opinion */
.op-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 3px; background: var(--ink); color: #FFFFFF; }
.op-title { font-size: 18px; font-weight: 600; line-height: 1.35; text-decoration: none; color: var(--ink); }
.op-title:hover { color: var(--bronze); }

/* Footer */
.site-footer { background: var(--ink); color: #DADBD8; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; padding-top: 36px; padding-bottom: 36px; }
.footer-text { flex: 1 1 360px; }
.footer-text p { font-size: 14px; line-height: 1.6; }
.footer-title { font-family: var(--serif); font-weight: 700; font-size: 18px; color: #FFFFFF; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; }
.footer-nav a { color: #DADBD8; padding: 10px 0; }
.footer-nav a:hover { color: #FFFFFF; }

/* Facts page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); text-decoration: none; font-size: 14px; font-weight: 600; }
.jump a:hover { border-color: var(--bronze); color: var(--ink); }
.topic { scroll-margin-top: 16px; }
.context { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 820px; }
.figures { display: flex; flex-wrap: wrap; gap: 12px; }
.figure { flex: 1 1 200px; min-width: 0; border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.figure b { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.figure span { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.uncertain { font-size: 14px; line-height: 1.55; color: var(--ink-2); padding: 12px 14px; background: var(--bg); border-radius: 3px; }
.claims { display: flex; flex-wrap: wrap; gap: 16px; }
.claim { flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.claim-text { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.35; }
.claim p:last-child { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.verdict { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 3px; }
.v-depends { background: #E6E7E8; color: #2B3440; }
.v-contested { background: #F3EBDD; color: #6B4500; }
.v-partly { background: #E1EEE3; color: #245533; }

/* Source-type labels (no red or blue) */
.src-tag { display: inline-block; vertical-align: 1px; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 2px; border: 1px solid currentColor; background: transparent; white-space: nowrap; }
.t-gov { color: #5B3A8C; }   /* purple */
.t-acad { color: #2E6B3F; }  /* green */
.t-ind { color: #7E5300; }   /* bronze */
.t-adv { color: #1F2328; }   /* black */
.t-news { color: #565C63; }  /* gray */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.legend-title { font-size: 13px; font-weight: 600; color: var(--ink-3); }

/* Slogan beside the logo */
.brand-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.slogan { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--bronze); padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.3; }
@media (max-width: 600px) { .slogan { font-size: 14px; border-left: 0; padding-left: 0; flex-basis: 100%; } }

/* Sources & methodology page */
.standards { margin: 0; padding: 0; list-style: none; counter-reset: std; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.standards li { counter-increment: std; position: relative; padding: 16px 16px 16px 60px; background: var(--side-bg); border-radius: 3px; }
.standards li::before { content: counter(std); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-family: var(--serif); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.standards h3 { font-size: 17px; margin-bottom: 4px; }
.standards p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.types { display: flex; flex-direction: column; gap: 12px; }
.type-row { display: flex; gap: 14px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.type-row .src-tag { flex: 0 0 104px; text-align: center; }
.type-row p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 600px) { .type-row { flex-direction: column; gap: 6px; } .type-row .src-tag { flex-basis: auto; } }
.steps, .plain-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 900px; }
.biblio-group { margin-top: 8px; }
.biblio { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.biblio li { font-size: 14px; line-height: 1.6; padding-left: 28px; text-indent: -28px; }
.biblio .used { display: block; text-indent: 0; font-size: 13px; color: var(--ink-3); }

/* Standards strip near the top of content pages */
.standards-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--bronze); border-radius: 3px; font-size: 14px; color: var(--ink-2); }
.standards-strip b { color: var(--ink); }

/* About page */
.narrow { max-width: 860px; }
.letter { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 32px; display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.letter p:nth-child(3) { font-weight: 600; color: var(--ink); }
.signature { display: flex; flex-direction: column; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.sig-name { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); }
.sig-title { font-size: 14px; color: var(--ink-3); }
@media (max-width: 600px) { .letter { padding: 22px; font-size: 17px; } }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field-row .field { flex: 1 1 260px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid #BFC1BC; border-radius: 3px; padding: 10px 12px; min-height: 44px; width: 100%; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--bronze); outline-offset: 1px; border-color: var(--bronze); }
.word-count { font-size: 13px; color: var(--ink-3); align-self: flex-end; }
.word-count.over { color: var(--ink); font-weight: 700; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.form-status { font-size: 14px; color: var(--ink-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Founder note on home page */
.founder-note { display: flex; flex-direction: column; gap: 10px; }
.founder-note blockquote { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.founder-note .sig { font-size: 14px; color: var(--ink-3); }

/* Tracker page */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.filters .field { flex: 1 1 200px; }
.filters .field:first-child { flex-basis: 280px; }
.filters select, .filters input { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid #BFC1BC; border-radius: 3px; padding: 10px 12px; min-height: 44px; width: 100%; }
.filters #count { flex: 1 1 100%; }
.tracker-full { min-width: 1240px; }
.tracker td, .tracker tbody th { vertical-align: top; }
.sort { font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.sort::after { content: " ↕"; color: var(--ink-3); font-weight: 400; }
th[aria-sort="ascending"] .sort::after { content: " ↑"; color: var(--ink); }
th[aria-sort="descending"] .sort::after { content: " ↓"; color: var(--ink); }
.row-name { display: block; }
.row-note { display: block; font-weight: 400; margin-top: 4px; max-width: 260px; }
.row-sources { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 220px; }
.nd { color: var(--ink-3); }
.pending { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; border: 1px dashed var(--ink-3); color: var(--ink-2); white-space: nowrap; }

/* Tracker detail levels and paging */
.t-comm { color: #4F5B1E; }  /* olive: community-built data */
.count-line { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.detail-badge { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.detail-badge .dots { color: var(--bronze); letter-spacing: 1px; font-size: 11px; }
.pager { display: flex; justify-content: center; }
.steps ul { margin: 8px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }

/* Tracker map */
.dc-map { width: 100%; height: 560px; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); background: #EEF0EC; }
@media (max-width: 700px) { .dc-map { height: 70vh; } }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 12px; height: 12px; border-radius: 99px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); display: inline-block; }
.maplibregl-popup-content { font-family: var(--sans); padding: 14px 16px; border-radius: 3px; max-width: 300px; }
.pop { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.pop h3 { font-size: 16px; color: var(--ink); line-height: 1.3; padding-right: 14px; }
.pop dl { display: grid; grid-template-columns: 78px 1fr; gap: 3px 8px; margin: 0; }
.pop dt { color: var(--ink-3); }
.pop dd { margin: 0; color: var(--ink); }
.pop .pop-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pop button { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; min-height: 32px; }

/* First-visit welcome note */
.welcome { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--bronze); border-radius: 3px; box-shadow: 0 12px 32px rgba(20, 22, 25, 0.18); padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 8px; transform: translateY(16px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.welcome.in { transform: translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .welcome { transition: none; } }
@media (max-width: 600px) { .welcome { right: 16px; left: 16px; bottom: 16px; width: auto; } }
.welcome-eyebrow { font-size: 12px; font-weight: 700; color: var(--bronze); padding-right: 36px; }
.welcome blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
.welcome-sig { font-size: 13px; color: var(--ink-3); }
.welcome-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 3px; color: var(--ink-3); cursor: pointer; }
.welcome-close:hover { color: var(--ink); background: var(--side-bg); }

/* Data charts (Facts, Sources, Home) */
.chart { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 3px; display: flex; flex-direction: column; gap: 12px; }
.chart-title { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); }
.chart-note { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.chart-src { font-size: 12px; color: var(--ink-3); }
.chart-src a { color: inherit; }

/* Horizontal bars */
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 64px; align-items: center; gap: 10px; }
.hbar-label { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.hbar-track { height: 22px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: #2B3440; border-radius: 0 4px 4px 0; min-width: 4px; }
.hbar-fill-alt { background: repeating-linear-gradient(135deg, #8A5A00 0 3px, #C9A86A 3px 7px); }
.hbar-val { font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 600px) { .hbar { grid-template-columns: 1fr 56px; } .hbar-label { grid-column: 1 / -1; } }

/* Range chart (electricity) */
.range-chart { display: flex; flex-direction: column; gap: 14px; }
.rc-row, .rc-axis { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; }
.rc-label { font-size: 14px; color: var(--ink-2); }
.rc-track { position: relative; height: 22px; background: var(--line-soft); border-radius: 4px; }
.rc-bar { position: absolute; top: 0; bottom: 0; background: #2B3440; border-radius: 0 4px 4px 0; }
.rc-band { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, #8A5A00 0 3px, #C9A86A 3px 7px); border-radius: 4px; opacity: 0.9; }
.rc-tick { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.rc-val { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.rc-val-under { top: auto; bottom: -22px; transform: none; margin-left: 0; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: normal; }
.rc-note { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 12px; color: var(--ink-2); margin-top: -6px; }
@media (max-width: 600px) { .rc-note { grid-template-columns: 70px 1fr; } }
.rc-ticks { background: none; height: 16px; border-top: 1px solid var(--line); border-radius: 0; }
.rc-ticks span { position: absolute; top: 2px; font-size: 12px; color: var(--ink-3); transform: translateX(-50%); }
.rc-ticks span:first-child { transform: none; }
@media (max-width: 600px) { .rc-row, .rc-axis { grid-template-columns: 70px 1fr; } }

/* Stacked bar (jobs) */
.stackbar { display: flex; gap: 2px; height: 28px; }
.stack-seg { display: block; height: 100%; }
.stack-seg:first-child { border-radius: 4px 0 0 4px; }
.stack-seg:last-child { border-radius: 0 4px 4px 0; }
.seg-a { background: #2B3440; }
.seg-b { background: #B9A27A; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--ink-2); }
.stack-legend span { display: inline-flex; align-items: center; gap: 8px; }
.stack-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.stack-legend b { color: var(--ink); }

/* Vertical decibel ruler (noise) */
.ruler { position: relative; display: grid; grid-template-columns: 34px 22px 1fr; gap: 0 12px; height: 380px; margin: 10px 0 4px; }
.ruler-scale, .ruler-bar, .ruler-labels { position: relative; height: 100%; }
.ruler-scale span { position: absolute; right: 0; transform: translateY(50%); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ruler-bar { background: var(--line-soft); border-radius: 4px; }
.ruler-band { position: absolute; left: 0; right: 0; background: #2B3440; border-radius: 3px; }
.ruler-band-soft { background: repeating-linear-gradient(135deg, #8A5A00 0 3px, #C9A86A 3px 7px); }
.ruler-line { position: absolute; left: -6px; right: -6px; height: 3px; transform: translateY(50%); background: #8A5A00; border-radius: 2px; }
.ruler-line-soft { background: #6B4500; }
.rl { position: absolute; left: 0; right: 0; transform: translateY(50%); font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.rl b { color: var(--ink); margin-right: 4px; }

/* Area-scaled squares (land) */
.squares { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px; }
.sq-item { display: flex; align-items: flex-end; gap: 12px; }
.sq { display: block; background: #2B3440; border-radius: 3px; }
.sq-big { background: #B9A27A; }
.sq-label { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.sq-label b { color: var(--ink); font-size: 15px; }
.hbar-fill.t-gov { background: #5B3A8C; } .hbar-fill.t-acad { background: #2E6B3F; } .hbar-fill.t-ind { background: #7E5300; } .hbar-fill.t-adv { background: #1F2328; } .hbar-fill.t-news { background: #565C63; } .hbar-fill.t-comm { background: #4F5B1E; }
.dotmap-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); border-radius: 3px; padding: 12px; background: var(--bg); }
.dotmap-link:hover { border-color: var(--bronze); color: var(--ink); }
.dotmap { width: 100%; height: auto; display: block; }
.dotmap-cta { font-size: 13px; font-weight: 600; }

/* Update cadence notes */
.cadence { font-size: 12px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 8px; }
.update-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); background: var(--bronze-soft); border: 1px solid #E2D2B2; padding: 8px 14px; border-radius: 999px; }
.update-badge svg { color: var(--bronze); }
.schedule { min-width: 760px; }
.schedule thead th { padding: 10px 12px; font-weight: 600; color: var(--ink-3); background: var(--bg); }
.schedule tbody th, .schedule td { padding: 10px 12px; border-top: 1px solid var(--line-soft); font-size: 14px; vertical-align: top; }
.schedule tbody th { font-weight: 600; }
.tracker-full { min-width: 1440px; }
.row-contacts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; min-width: 190px; }
.row-contacts li { display: flex; flex-direction: column; gap: 2px; }
.row-contacts a { word-break: break-all; font-weight: 600; }
.contact-src { font-size: 12px; color: var(--ink-3); }

/* Home card titles link to the Facts page */
.card-link { color: var(--ink); text-decoration: none; }
.card-link:hover, .card-link:focus-visible { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }
.card-arrow { color: var(--bronze); font-weight: 600; }

/* Mini charts inside home cards */
.mini { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--bg); border-radius: 3px; }
.mini-row { display: grid; grid-template-columns: 84px 1fr 70px; align-items: center; gap: 8px; }
.mini-label { font-size: 12px; color: var(--ink-3); }
.mini-val { font-size: 12px; font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.mini-track { position: relative; height: 10px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.mini-fill { display: block; height: 100%; background: #2B3440; border-radius: 0 3px 3px 0; min-width: 3px; }
.mini-band { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, #8A5A00 0 2px, #C9A86A 2px 5px); border-radius: 3px; }
.mini-band-dark { background: #2B3440; }
.mini-tick { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--ink); }
.mini-stack { height: 12px; }
.mini-cap { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.mini-key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 4px 0 6px; vertical-align: 0; }
.mini-key:first-child { margin-left: 0; }
.mini-key-line { width: 3px; height: 11px; background: #8A5A00; border-radius: 1px; }
.mini-ruler { position: relative; height: 12px; background: var(--line-soft); border-radius: 3px; margin-top: 4px; }
.mini-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: #8A5A00; border-radius: 1px; }
.mini-mark-2 { background: #6B4500; }
.mini-scale { position: relative; height: 14px; }
.mini-scale span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.mini-scale span:first-child { transform: none; }
.mini-scale span:last-child { transform: translateX(-100%); }

/* Document Library */
.lib-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-chip { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 14px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.lib-chip span { color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.lib-chip:hover { border-color: var(--bronze); }
.lib-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lib-chip[aria-pressed="true"] span { color: #D5D7D3; }
.lib-list { display: flex; flex-direction: column; gap: 28px; }
.lib-group { display: flex; flex-direction: column; }
.lib-group > h2 { padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.lib-item { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 16px; }
.lib-item:target { background: var(--bronze-soft); padding-left: 12px; padding-right: 12px; border-radius: 3px; }
.lib-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--ink-3); }
.lib-warn { color: #6B4500; background: var(--bronze-soft); padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.lib-item h3 { font-size: 18px; line-height: 1.35; }
.lib-item h3 a { color: var(--ink); text-decoration: none; }
.lib-item h3 a:hover { color: var(--bronze); text-decoration: underline; }
.lib-pub { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.lib-note { font-size: 15px; color: var(--ink-2); max-width: 75ch; }
.lib-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 600; }
.lib-links a { color: var(--ink); }
.lib-links a.lib-orig { color: var(--bronze); }
.lib-used { font-size: 13px; color: var(--ink-3); }
.lib-used a { color: var(--ink-2); }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; }
.lib-docs-link { font-size: 14px; font-weight: 600; }

/* News, Legislation, Calendar, Opinion */
.feed { display: flex; flex-direction: column; }
.feed-item { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 16px; }
.feed-item:last-child { border-bottom: 0; }
.feed-item:target { background: var(--bronze-soft); padding-left: 12px; padding-right: 12px; border-radius: 3px; }
.feed-item h3 { font-size: 18px; line-height: 1.35; }
.feed-item p { font-size: 15px; color: var(--ink-2); max-width: 78ch; }
.feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--ink-3); }
.feed-meta time, .feed-meta .juris, .feed-meta .kind { font-weight: 700; color: var(--ink-2); }
.topic { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 3px; background: var(--side-bg); color: var(--ink-2); text-decoration: none; }
.topic:hover { background: var(--bronze-soft); }
.feed-src { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px !important; }
.feed-src .src a { color: var(--ink); }
.leg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 16px; }
.status { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 3px; background: var(--side-bg); color: var(--ink); display: inline-flex; flex-direction: column; text-align: right; }
.status small { font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.cal-item { flex-direction: row; gap: 14px; align-items: flex-start; }
.date-chip.approx b { color: var(--ink-3); }
.feed .month { margin-top: 18px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.feed .month:first-child { margin-top: 0; }
.pair { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.pair:last-child { border-bottom: 0; }
.op-side { display: flex; flex-direction: column; gap: 8px; }
.op-side .op-title { font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--ink); }
.op-side p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 600px) { .status { text-align: left; } }
.op-stance { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: -2px; }
.batch-head { margin-top: 22px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.batch-head:first-child { margin-top: 0; }
.batch-note { font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.batch-note p { font-size: 14px !important; }
.batch-note summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 32px; display: flex; align-items: center; }
.batch-note ul { margin: 4px 0 0; padding-left: 20px; font-size: 13.5px; }

/* Privacy, Terms */
.prose { display: flex; flex-direction: column; gap: 12px; }
.prose h2 { margin-top: 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }

/* Tracker: reported (not yet confirmed) values, images */
.reported, .reported a { font-style: italic; }
.reported .small { font-style: italic; }
.photo-cell { width: 96px; }
.thumb-btn { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; background: none; cursor: zoom-in; }
.thumb-btn img { display: block; width: 80px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-soft); background: var(--bg); }
.thumb-btn:focus-visible img { outline: 3px solid var(--bronze); outline-offset: 2px; }
.thumb-kind { font-size: 11px; color: var(--ink-3); }
.photo-dlg { max-width: min(960px, 94vw); width: 100%; padding: 12px; border: 0; border-radius: 3px; background: var(--surface); color: var(--ink); }
.photo-dlg::backdrop { background: rgba(20, 22, 25, 0.72); }
.photo-dlg img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: #111; border-radius: 4px; }
.photo-close { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.photo-close button { font: inherit; font-size: 14px; padding: 6px 12px; min-height: 36px; border: 1px solid var(--line-soft); border-radius: 3px; background: var(--surface); color: var(--ink); cursor: pointer; }
.photo-cap { display: flex; flex-direction: column; gap: 4px; padding: 10px 2px 2px; line-height: 1.5; }
.pop-img { display: block; width: 100%; height: auto; max-height: 140px; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.pop-note { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }

/* Wide tables: "Scroll for more columns »" above the table's right edge, plus a fade at that edge */
.scroll-hint-wrap { position: relative; }
.scroll-hint-bar { display: none; justify-content: flex-end; margin-bottom: 8px; }
.scroll-fade { display: none; }
.scroll-hint-wrap.has-more .scroll-hint-bar { display: flex; }
.scroll-hint-wrap.has-more .scroll-fade { display: block; }
.scroll-fade { position: absolute; right: 0; bottom: 0; top: 44px; width: 28px; pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--surface)); border-radius: 0 8px 8px 0; }
.scroll-hint { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 12px; min-height: 32px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; }
.scroll-hint span { font-size: 16px; line-height: 1; }
.scroll-hint:hover { background: var(--bronze); }
.scroll-hint:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; }

/* Key for italic (reported) figures, shown just above Tracker tables */
.italics-key { font-size: 14px; line-height: 1.5; color: var(--ink-2, #3d4652); margin: 4px 0 10px; padding: 8px 12px;
  border-left: 3px solid var(--bronze); background: var(--bg); border-radius: 0 6px 6px 0; }

/* Section and topic icons: one family of simple line icons beside headings */
.with-icon { display: flex; align-items: center; gap: 10px; }
p.eyebrow.with-icon { display: inline-flex; gap: 8px; }
a.card-link.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.h-icon { flex: none; fill: none; stroke: var(--bronze); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Tracker coverage note */
.coverage p { max-width: 75ch; line-height: 1.6; }
.coverage-more summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.cov-table { min-width: 520px; }
.cov-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Facts: context box (locations and public views) */
.ctx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.ctx-card { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ctx-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.55; }
.ctx-table { width: 100%; }
.ctx-table th { text-align: left; font-weight: 500; }
.ctx-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctx-panel { scroll-margin-top: 16px; }


/* ===== Public record style (0.32.00): rules instead of boxes, report headings ===== */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
.brand { font-weight: 600; }
.site-header { border-bottom: 2px solid var(--ink); }
.hero { max-width: 820px; padding-top: 16px; }
.hero h1 { font-size: 52px; line-height: 1.08; }
@media (max-width: 600px) { .hero h1 { font-size: 34px; } }
.hero .lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.btn { border-radius: 2px; }
.eyebrow { font-size: 14px; letter-spacing: 0; }
.side-label { font-size: 14px; font-weight: 600; }
.section-head h2 { font-size: 30px; }
.card.tradeoff h3 { font-size: 24px; }
/* Sections are separated by a rule, not boxed */
.card, .panel { background: transparent; border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding: 20px 0 0; box-shadow: none; }
.panel.debate { padding: 20px 0 0; }
.standards-strip { background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
/* Opposing views face each other across one line, with identical treatment */
.sides { gap: 0; }
.side { background: transparent; border-top: 0; border-radius: 0; padding: 4px 20px 4px 0; }
.side + .side { border-left: 1px solid var(--line); padding-left: 20px; }
@media (max-width: 560px) { .side + .side { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 4px; } }
.side-stat { font-size: 30px; font-weight: 600; }
.side.big .side-stat { font-size: 32px; }
.side-body { font-size: 15px; }
.mini { background: transparent; padding: 0; border-radius: 0; }
.mini-track, .mini-ruler, .mini-fill, .mini-band { border-radius: 0; }
.drop, .nav-list { border-radius: 4px; }
.stack-xs > .tag { align-self: flex-start; margin-top: 4px; }
@media (max-width: 600px) { .section-head h2 { font-size: 25px; } .card.tradeoff h3 { font-size: 21px; } }

/* ===== Opening band (0.32.01): deep green behind each page's title, full width ===== */
:root { --band: #26332D; --band-ink: #EEF2EC; --band-muted: #C9D3CC; --band-gold: #E8C98A; }
.hero { max-width: none; background: var(--band); color: var(--band-ink); margin-top: -40px; padding: 52px 0 44px;
        box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.hero > * { max-width: 820px; }
.hero h1, .hero h2, .hero h3, .hero b, .hero strong { color: #FFFFFF; }
.hero .lede, .hero p, .hero .muted, .hero .muted-lg, .hero .small, .hero .count-line { color: var(--band-muted); }
.hero a { color: #FFFFFF; }
.hero a:hover { color: var(--band-gold); }
.hero .eyebrow, .hero .h-icon { color: var(--band-gold); }
.hero .btn-primary { background: var(--band-gold); color: #1F2328; }
.hero .btn-primary:hover { background: #F2D9A6; color: #1F2328; }
.hero .btn-secondary { background: transparent; color: #FFFFFF; border-color: #8FA096; }
.hero .btn-secondary:hover { color: #FFFFFF; border-color: #FFFFFF; }
.card.tradeoff { border-top: 3px solid var(--band); }
.hero .jump a { background: transparent; color: #FFFFFF; border-color: #5E6F66; }
.hero .jump a:hover { border-color: #FFFFFF; color: #FFFFFF; }
.hero .legend-title { color: var(--band-muted); }
.hero .t-gov { color: #CDBBF0; } .hero .t-acad { color: #A5D8B3; } .hero .t-ind { color: #E8C98A; }
.hero .t-adv { color: #FFFFFF; } .hero .t-news { color: #C9D3CC; } .hero .t-comm { color: #D4DE9C; }
.hero .update-badge { background: rgba(255,255,255,.08); color: #FFFFFF; border-color: #5E6F66; }
.hero .update-badge svg { color: var(--band-gold); }

/* ===== News at a glance (0.33.00): sources cited and what the stories report ===== */
.news-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
@media (max-width: 760px) { .news-stats { grid-template-columns: 1fr; } }
.ns-panel { border-top: 1px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ns-big { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.ns-chart { width: 100%; max-width: 420px; height: auto; margin: 4px 0; }
.ns-chart rect { fill: var(--band); }
.ns-chart text { font-size: 9px; fill: var(--ink-3); font-family: var(--sans); }
.ns-chart text.v { font-size: 11px; font-weight: 600; fill: var(--ink); }
.ob-bar { display: flex; height: 16px; gap: 2px; margin: 6px 0 2px; }
.ob-seg { display: block; min-width: 3px; }
.ob-forward { background: var(--band); }
.ob-limits { background: #A5762B; }
.ob-neither { background: #CDD2CD; }
.ob-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.ob-key { display: inline-block; width: 11px; height: 11px; margin-right: 8px; vertical-align: -1px; }
.ob-how summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); }
.ob-how p { font-size: 14px; color: var(--ink-2); margin-top: 8px; max-width: 70ch; }
.ob-how { scroll-margin-top: 16px; }
a.outcome { align-self: flex-start; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; background: transparent !important; }
a.outcome:hover { color: var(--ink); text-decoration: underline; }
a.outcome .ob-key { width: 9px; height: 9px; margin-right: 6px; }
.ns-groups { display: flex; flex-direction: column; gap: 28px; }
.ns-group { border-top: 1px solid var(--ink); padding-top: 16px; }
.ns-list { list-style: none; margin: 12px 0 0; padding: 0; columns: 2 320px; column-gap: 40px; }
.ns-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.ns-stories { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.ns-stories a { font-size: 13.5px; color: var(--ink-2); }
.ratios { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.ratios > div { display: flex; flex-direction: column; gap: 4px; }
.source-note { padding: 10px 14px; background: var(--bronze-soft); font-size: 15px; }
.ns-list li a { font-weight: 600; }
.ns-search { border-top: 1px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ns-search .q-go { flex: 0 0 auto; display: flex; align-items: flex-end; }
/* Home: monthly poll and news trends side by side */
.home-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.home-duo > .poll-card { padding-left: 32px; border-left: 1px solid var(--line); }
.home-duo > .trends { border-top: 1px solid var(--ink); padding: 20px 32px 0 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.home-duo:has(> .poll-card[hidden]) { grid-template-columns: 1fr; }
.home-duo:has(> .poll-card[hidden]) > .trends { padding-right: 0; }
@media (max-width: 860px) {
  .home-duo { grid-template-columns: 1fr; gap: 32px; }
  .home-duo > .poll-card { padding-left: 0; border-left: 0; }
  .home-duo > .trends { padding-right: 0; }
}
.trends .news-stats { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.trends .ns-panel { border-top: 0; padding-top: 0; gap: 6px; }
.trends .ns-panel h2 { font-size: 17px; }
.trends .ns-big { font-size: 34px; }
.trends .ratios { gap: 4px 20px; }
.trends .ns-panel > p.small { font-size: 12.5px; }
.trends .ns-chart { max-width: 260px; }
.trends .ob-list { font-size: 13.5px; }
.trends .ob-how { display: none; }
@media (max-width: 1100px) and (min-width: 861px) { .trends .news-stats { grid-template-columns: 1fr; } }
.trends .section-head h2 { font-size: 24px; }
.trends .ns-panel:first-child > p.small { display: none; }
@media (max-width: 600px) { .trends .news-stats { grid-template-columns: 1fr; } }
.ob-pie-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 4px 0 6px; }
.ob-pie { width: 120px; height: 120px; flex: 0 0 auto; }
.trends .ob-pie { width: 96px; height: 96px; }

/* ===== Home: newsletters first (0.36.00) ===== */
.hero-subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 980px !important; margin-top: 6px; }
@media (max-width: 760px) { .hero-subs { grid-template-columns: 1fr; } }
.hero a.hero-sub { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border: 1px solid #5E6F66; border-radius: 6px;
  background: rgba(255,255,255,.04); text-decoration: none; color: var(--band-muted); min-width: 0; }
.hero a.hero-sub:hover, .hero a.hero-sub:focus-visible { border-color: var(--band-gold); background: rgba(255,255,255,.08); color: var(--band-muted); }
.hero-sub b { font-size: 17px; }
.hero-sub span { font-size: 15px; line-height: 1.45; }
.hero-sub .hero-sub-cta { margin-top: auto; padding-top: 6px; color: var(--band-gold); font-weight: 600; }

/* ===== Breathing room (0.36.00): more space between sections and between side-by-side blocks ===== */
.main { gap: 72px; }
.row { gap: 40px; }
.cards { gap: 44px 32px; }
.stack { gap: 20px; }
.panel { gap: 18px; }
.home-duo + .standards-strip { margin-top: -24px; }
@media (max-width: 600px) { .main { gap: 48px; } .row { gap: 32px; } .cards { gap: 32px; } }
/* ===== Home trends hub (0.36.00) ===== */
.trends-hub { display: flex; flex-direction: column; gap: 22px; }
.trend-block { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.trend-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .trend-pair { grid-template-columns: 1fr; gap: 32px; } }
.trend-h { font-size: 20px; }
.tbars { display: flex; flex-direction: column; gap: 8px; }
.tbar { display: grid; grid-template-columns: 44px 1fr 48px; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.tbar-tall { grid-template-columns: 150px 1fr 90px; }
.tbar-label { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
a.tbar-label:hover { color: var(--bronze); text-decoration: underline; }
.tbar-track { display: flex; height: 18px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tbar-tall .tbar-track { height: 26px; }
.tbar-track > span { display: block; height: 100%; }
.tbar-val { font-size: 14px; text-align: right; color: var(--ink-2); }
.tbar-note { margin: -4px 0 6px 160px; }
@media (max-width: 600px) { .tbar-tall { grid-template-columns: 1fr 70px; } .tbar-tall .tbar-label { grid-column: 1 / -1; } .tbar-note { margin-left: 0; } }
.tkey { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.tkey i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.poll-card { max-width: 760px; }
.trend-wide { border-top: 0; padding-top: 0; }
.tbars .tbar-track { background: transparent; box-shadow: inset 0 -1px 0 var(--line); }
.tbars .tbar-track > span + span { border-left: 1px solid var(--surface, #fff); }

/* ===== Facts: one page per issue (0.36.00) ===== */
.issue-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
a.issue-card { display: flex; flex-direction: column; gap: 10px; padding: 20px 0 0; border-top: 3px solid var(--band); color: var(--ink); text-decoration: none; min-width: 0; }
a.issue-card:hover h3, a.issue-card:focus-visible h3 { color: var(--bronze); }
a.issue-card h3 { font-size: 22px; }
a.issue-card p { color: var(--ink-2); line-height: 1.5; margin: 0; }
.figures.figures-sm { gap: 10px; }
.figures.figures-sm .figure { padding: 10px 12px; }
.figures.figures-sm .figure b { font-size: 20px; }
.figures.figures-sm .figure span { font-size: 13px; }
.okey { display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: 0; }
.topic-related .list-item .small:first-child { display: block; }
