/*
 * SB 258: Preliminary Municipalities. The palette follows the portal: sage, slate, and sand.
 * A dark chip marks a created preliminary municipality, amber a request in process, and grey a request that ended or was not processed.
 * Each color also has a word, so color is never the only signal.
 */

@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f6f2ea;
  --card: #ffffff;
  --ink: #1f2b30;
  --muted: #56656a;
  --line: #ddd5c6;
  --sage: #4f7a5c;
  --sage-dark: #36593f;
  --sage-tint: #e3ede5;
  --slate: #3c5566;
  --slate-tint: #e3eaf0;
  --sand: #eadfc9;
  --sand-tint: #f4ecdc;
  --amber: #a86a12;
  --amber-ink: #7a4e0c;
  --amber-tint: #fbebcc;
  --red: #a63b26;
  --red-tint: #f8e1da;
  --grey: #6d777b;
  --grey-tint: #e8eaea;
  --link: #2f5d74;
  --focus: #1f2b30;
  --radius: 16px;
  --display: "Bricolage Grotesque", "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* A link to an anchor stops the target below the sticky nav. This rule is on the targets, not on html, so a focus move into the stuck nav does not scroll the page. */
main, main [id] { scroll-margin-top: 72px; }
html:not(.js) .js-only { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.01em; margin-bottom: 8px; }
h3 { font-size: 20px; margin-bottom: 6px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; }
button { font: inherit; }
/* A dark ring with a light halo shows on the paper, on the cards, and on the green buttons. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
/* The same content width as the portal landing page. */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 2000; background: #fff; padding: 12px 16px; border-radius: 8px; }
.offscreen { position: absolute; left: -10000px; top: 0; width: 900px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.cite { font-size: 14px; color: var(--muted); }
.cite a { color: var(--muted); }
.news { display: inline-block; font-size: 12px; font-weight: 700; color: var(--amber-ink); background: var(--amber-tint); border-radius: 999px; padding: 0 8px; margin-left: 4px; vertical-align: 1px; }

/* ---------- Hero and section nav ---------- */
.hero { background: linear-gradient(180deg, #e4ecee 0%, var(--paper) 100%); }
.hero .wrap { padding-top: 34px; padding-bottom: 26px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 6px; }
.eyebrow a { color: var(--muted); text-decoration: none; display: inline-block; padding: 12px 0; }
.eyebrow a:hover { text-decoration: underline; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pill-draft { background: var(--amber-tint); color: var(--amber-ink); }
.pill-live { background: var(--sage-tint); color: #2c5a3a; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.025em; margin: 0 0 12px; }
/* Text spans the full content width of the page (Erik, 2026-10-26). */
.lead { font-size: clamp(19px, 2.2vw, 22px); color: #2f3f45; }
.secnav { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.secnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.secnav a { display: block; padding: 13px 14px 11px; color: var(--link); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.secnav a:hover { color: var(--ink); }
.secnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sage); }
/* On a phone the four links wrap into two rows, so each one stays in view. */
@media (max-width: 520px) { .secnav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: visible; } .secnav a { min-height: 44px; padding: 10px 8px; text-align: center; } main, main [id] { scroll-margin-top: 124px; } }

/* ---------- Bands and cards ---------- */
.band { padding-top: 40px; padding-bottom: 8px; }
.band-tint { background: var(--sand-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 32px; padding-bottom: 32px; margin-top: 32px; }
.sub-h { margin: 22px 0 8px; }
.intro { color: #34444a; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }

/* Big numbers in the hero */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font: 700 clamp(30px, 4vw, 40px)/1 var(--display); margin-bottom: 6px; }
.stat span { font-size: 16px; color: var(--muted); line-height: 1.3; display: block; }
@media (max-width: 560px) { .stats { grid-template-columns: minmax(0, 1fr); } .stat { display: flex; gap: 14px; align-items: baseline; } .stat b { flex: none; min-width: 2.6em; } }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: step; display: grid; gap: 12px; }
.steps > li { counter-increment: step; position: relative; padding: 16px 18px 14px 66px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.steps > li::before { content: counter(step); position: absolute; left: 16px; top: 15px; width: 34px; height: 34px; border-radius: 50%; background: var(--slate); color: #fff; font: 700 17px/34px var(--display); text-align: center; }
.steps h3 { font-size: 19px; }
.steps p { margin-bottom: 4px; }
.steps p:not(.cite) + p:not(.cite) { margin-top: 10px; }
.steps .owner::before { background: var(--amber); }

/* Board table */
table.data { width: 100%; border-collapse: collapse; background: var(--card); font-size: 16px; }
table.data caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--sand-tint); font-size: 14px; }
table.data tbody th { font-weight: 700; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.scroll table.data { border-radius: 14px; }

/* On a phone, a table with the class "stack" shows each row as a card. Each cell names its column with data-label. */
@media (max-width: 640px) {
  .scroll { overflow: visible; border: 0; border-radius: 0; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack { background: transparent; }
  table.stack tr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; margin-bottom: 10px; }
  table.stack th, table.stack td { border: 0; padding: 4px 0; }
  table.stack tbody th { font-size: 18px; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
  table.stack td[colspan] { display: block; }
}

/* Checked and not checked */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.mark { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 15px; margin-top: 1px; }
.mark-part { background: var(--amber-tint); color: var(--amber-ink); }
.mark-none { background: var(--red-tint); color: var(--red); }
.mark-yes { background: var(--sage-tint); color: var(--sage-dark); }

/* The fairness box */
.fair { background: var(--sage-tint); border: 1px solid #c4d6c8; border-radius: var(--radius); padding: 20px 22px; }
.fair ul { columns: 2; column-gap: 28px; padding-left: 20px; margin-bottom: 0; }
.fair li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 640px) { .fair ul { columns: 1; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 12px; background: var(--sage); color: #fff; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: var(--sage-dark); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--sand-tint); }
.btn-small { min-height: 44px; padding: 8px 14px; font-size: 15px; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- History: the 10 days ---------- */
.days { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.day { background: var(--card); border: 1.5px solid var(--slate); border-radius: 10px; min-height: 64px; padding: 6px 4px; text-align: center; font-size: 13px; line-height: 1.15; color: var(--muted); }
.day b { display: block; font: 700 20px/1.1 var(--display); color: var(--ink); }
.day.hit { background: var(--slate); color: #dbe5ea; }
.day.hit b { color: #fff; }
.day .dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--focus-light, #f3d98b); margin: 4px auto 0; }
.day-notes { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.day-notes li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.day-notes time { font-weight: 700; }
@media (max-width: 700px) { .days { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* History: the Senate seats */
.seats { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: center; }
.seats svg { width: 100%; height: auto; display: block; }
.seat-yes { fill: var(--sage); }
.seat-no { fill: var(--red); }
/* An absent senator is an empty seat. */
.seat-out { fill: none; stroke: #6d777b; stroke-width: 2; }
.seat-key { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; font-size: 15px; }
.seat-key i { display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.key-yes { background: var(--sage); } .key-no { background: var(--red); } .key-out { border: 2px solid #6d777b; }
@media (max-width: 700px) { .seats { grid-template-columns: minmax(0, 1fr); } }

/* History: the timeline */
.timeline { list-style: none; margin: 18px 0 0; padding: 0 0 0 26px; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 12px; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: var(--slate); border: 3px solid var(--paper); }
.timeline li.k-request::before { background: var(--amber); }
.timeline li.k-court::before { background: var(--grey); }
.timeline li.k-county::before { background: var(--sage); }
.timeline li.future::before { background: var(--paper); box-shadow: inset 0 0 0 2px var(--slate); }
.timeline time { display: block; font-weight: 700; font-size: 15px; }
.timeline .kind { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.timeline li.future { color: #3d4c52; }
.timeline li.today { padding-bottom: 18px; }
.timeline li.today::before { background: #e8b04b; border-color: #e8b04b; width: 19px; height: 19px; left: -37px; top: 1px; }
.timeline li.today strong { font-family: var(--display); font-size: 18px; }

/* Status chips */
.chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.chip-made { background: var(--slate); color: #fff; }
.chip-open { background: var(--amber-tint); color: var(--amber-ink); }
.chip-ended { background: var(--grey-tint); color: #4b5559; }
.chip-held { background: #fff; color: #4b5559; box-shadow: inset 0 0 0 1.5px #6d777b; }
.counts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.count { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 16px; }
.count b { font: 700 24px var(--display); margin-right: 6px; }

/* ---------- Toolkit ---------- */
.dates { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dates li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.dates li.soon { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.dates time { font: 700 20px var(--display); }
.dates .when { font-size: 14px; color: var(--muted); }
.dates .soon-tag { align-self: flex-start; font-size: 12.5px; font-weight: 700; background: var(--amber-tint); color: var(--amber-ink); border-radius: 999px; padding: 1px 9px; }
.dates p { font-size: 16px; margin: 0; }
.dates .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .dates { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .dates { grid-template-columns: minmax(0, 1fr); } }

.check fieldset { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 12px 16px 14px; margin: 0 0 10px; }
/* A float keeps a long legend inside its card when it wraps. */
.check legend { float: left; width: 100%; padding: 0; font-weight: 700; font-size: 17px; }
.check .opts { clear: both; padding-top: 4px; }
.check .opts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.check label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-right: 6px; cursor: pointer; }
.check input[type="radio"] { width: 20px; height: 20px; accent-color: var(--slate); }
.check .hint { display: block; font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.result { border-radius: 14px; padding: 14px 16px; background: var(--slate-tint); font-weight: 600; margin-top: 4px; }
/* Both results use the same neutral color. The check reports a fact, not a good or bad outcome. */
.result.r-yes, .result.r-no { background: var(--slate-tint); color: var(--ink); }
.classlist { columns: 3; column-gap: 24px; padding-left: 0; list-style: none; font-size: 15.5px; }
.classlist li { break-inside: avoid; padding: 2px 0; }
.classlist .no { color: var(--muted); }
@media (max-width: 640px) { .classlist { columns: 2; } }

.dl { display: flex; flex-direction: column; gap: 8px; }
.dl h3 { margin-bottom: 0; }
.dl p { margin: 0; font-size: 16px; }
.dl .fmt { font-size: 13px; font-weight: 700; color: var(--slate); }
.dl .actions { margin-top: auto; padding-top: 8px; }

.qbank details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.qbank summary { cursor: pointer; padding: 14px 18px; min-height: 44px; font-weight: 700; font-size: 18px; list-style-position: inside; }
.qbank summary span { font-weight: 400; color: var(--muted); font-size: 15px; margin-left: 6px; }
.qbank .qbody { padding: 0 18px 16px; }
.qbank ol { padding-left: 22px; }
.qbank li { margin-bottom: 6px; }

.letter { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; font-size: 17px; white-space: pre-wrap; }
.copied { margin-left: 10px; color: var(--sage-dark); font-weight: 700; font-size: 15px; }

.reslist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.reslist li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.reslist b { font-size: 17px; }
.reslist a { display: inline-block; padding: 10px 0; }

/* ---------- Pictures and chapters ---------- */
.art { width: 100%; height: auto; display: block; border-radius: 14px; }
/* :where() gives this rule no weight, so a text class such as .t-stamp can set its own font. */
:where(.art text) { font-family: "Source Sans 3", system-ui, sans-serif; }
.t-h { font: 700 18px var(--display); fill: var(--ink); }
.t-sq { font: 600 12.5px "Source Sans 3", system-ui, sans-serif; fill: var(--ink); }
.t-li { font: 600 14px "Source Sans 3", system-ui, sans-serif; fill: var(--ink); }
.t-sign { font-family: "Source Sans 3", system-ui, sans-serif; font-weight: 700; fill: #fff; letter-spacing: 0.04em; }
.t-big { font: 700 19px "Source Sans 3", system-ui, sans-serif; fill: var(--ink); }
.t-map { font: 700 19px "Source Sans 3", system-ui, sans-serif; fill: var(--ink); }
/* White text on a dark shape. The extra class makes this rule win over every text class. */
.art .t-white { fill: #fff; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px; align-items: center; }
.hero-art .art { box-shadow: 0 1px 0 var(--line); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 520px; } }

.kicker { font-size: 14px; font-weight: 700; color: var(--slate); margin: 0 0 4px; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 14px; margin-bottom: 18px; }
@media (max-width: 860px) { .chapter { grid-template-columns: minmax(0, 1fr); } }
/* Chapter 1: the picture of a vote and a checklist. Below 960 pixels the wide picture text gets too small, so the page shows the two panels one above the other. */
.ch1-art { margin: 18px 0 14px; }
.ch1-narrow { display: none; }
@media (max-width: 960px) { .ch1-wide { display: none; } .ch1-narrow { display: block; max-width: 360px; margin-inline: auto; } .ch1-narrow .t-sq { font-size: 13.5px; } }
/* Chapter 1: the five county stops, side by side. */
table.stops th[scope="row"] { width: 18%; white-space: nowrap; }
table.stops td { width: 41%; }
table.stops .cite { display: block; margin-top: 4px; }
.stopnum { display: inline-block; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 14px/26px var(--display); text-align: center; vertical-align: 1px; }
@media (max-width: 640px) { table.stops th[scope="row"], table.stops td { width: 100%; white-space: normal; } }

/* The board: each seat changes its class with the stage buttons. */
.seat .seat-home, .seat .seat-vote { display: none; }
.seat-owner .seat-body, .seat-resident .seat-body { fill: var(--slate); }
.seat-owner .seat-back, .seat-resident .seat-back { fill: #6d8696; }
.seat-county .seat-body { fill: var(--sage); }
.seat-county .seat-back { fill: #7fa48a; }
.seat-elected .seat-body { fill: var(--amber); }
.seat-elected .seat-back { fill: #c9954a; }
.seat-resident .seat-home, .seat-elected .seat-vote { display: inline; }
.stages { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.stages button { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--slate); background: var(--card); color: var(--ink); font-weight: 700; cursor: pointer; }
.stages button[aria-pressed="true"] { background: var(--slate); color: #fff; }
.board-key { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.board-key i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.sk-owner { background: var(--slate); } .sk-county { background: var(--sage); } .sk-elected { background: var(--amber); }
.stage-text { font-weight: 600; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }

/* The clipboard around the two lists. */
.clipboard { position: relative; background: #8a6a3c; border-radius: 18px; padding: 34px 16px 16px; margin-top: 14px; }
.clipboard::before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 120px; height: 34px; border-radius: 10px; background: #9aa3a7; box-shadow: inset 0 -6px 0 #6b7478; }
.clipboard .paper { background: #fff; border-radius: 6px; padding: 18px 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 700px) { .clipboard .paper { grid-template-columns: minmax(0, 1fr); } }

/* The two clocks and the three results. */
.clocks { background: var(--slate-tint); border-radius: var(--radius); padding: 20px; }
.clocks-row { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
@media (max-width: 560px) { .clocks-row { flex-direction: column; gap: 10px; } }
.clock { text-align: center; }
.hourglass { width: 64px; height: auto; display: block; margin: 0 auto 6px; }
.clock b { display: block; font: 700 20px var(--display); }
.clock span { font-size: 15px; color: var(--muted); }
.clocks .or { font: 700 18px var(--display); color: var(--muted); }
.results { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.results li { background: var(--card); border: 1.5px solid var(--slate); border-radius: 12px; padding: 12px 14px; text-align: center; }
.results b { display: block; font: 700 18px var(--display); }
@media (max-width: 640px) { .results { grid-template-columns: minmax(0, 1fr); } }
.clocks-lead { text-align: center; font-weight: 700; margin-bottom: 14px; }

/* The map key. */
.map-key { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.map-key .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 6px; vertical-align: -2px; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9c2b4; }
.dot-made { background: var(--slate); } .dot-open { background: var(--amber); } .dot-ended { background: #5f696d; }
.dot-held { background: #fff; border-color: #56656a !important; }
.dot-hatch { border-radius: 3px !important; background: repeating-linear-gradient(45deg, #e8eaea 0 3px, #b7bdbf 3px 5px); }

/* ---------- Why repeal it ---------- */
/* The court case: one card for each claim, and the words of the constitution in a quote style. */
.claims { list-style: none; padding: 0; margin: 12px 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 16px; }
.claims .card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; }
.claims h4 { font-size: 18px; margin: 0; }
.claims p { margin: 0; font-size: 16.5px; }
.const { border-left: 4px solid var(--sage); margin: 0; padding: 2px 0 2px 12px; font-style: italic; color: #2f3f45; }
.const p { margin: 0; }
.claims .p5 { background: var(--sand-tint); border-radius: 8px; padding: 8px 10px; }
/* A cite in a card keeps the small size of every other cite. */
.claims .cite, .flaw .cite { font-size: 14px; }
/* The three concerns of the brief of the counties. */
.brief-points { margin: 6px 0 14px; padding-left: 20px; }
.brief-points li { margin: 0 0 10px; }
.t-vote { font: 700 30px var(--display); fill: var(--ink); }
.t-stamp { font: 700 28px var(--display); fill: #2c7a4e; }
.t-tiny { font: 700 11px "Source Sans 3", system-ui, sans-serif; letter-spacing: 0.04em; fill: var(--ink); }
.t-note { font: 700 14px "Source Sans 3", system-ui, sans-serif; fill: #3a2c12; }
.art .t-red { fill: #a63b26; }
.t-road { font: 700 30px var(--display); fill: var(--ink); }
.t-result { font: 700 46px var(--display); }
.t-pass { fill: #2c7a4e; } .t-fail { fill: var(--amber-ink); }
.votes-art { margin-top: 18px; }
.votes-art .art { box-shadow: 0 1px 0 var(--line); }
/* A phone gets the map without labels, the list of votes under it, and the road signs one above the other. */
.vm-narrow, .rs-narrow, .votes-list { display: none; }
.votes-list { list-style: none; padding: 0; margin: 10px 0 0; }
.votes-list li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 17px; }
.votes-list b { margin-right: 8px; }
@media (max-width: 600px) { .vm-wide, .rs-wide { display: none; } .vm-narrow, .rs-narrow, .votes-list { display: block; } .vm-narrow, .rs-narrow { max-width: 340px; } .rs-narrow { margin-inline: auto; } }
.pad-link { display: inline-block; padding: 10px 0; }
.flaws { list-style: none; padding: 0; margin: 16px 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.flaw { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
/* The picture comes after the heading in the code, so heading navigation finds each card. On screen it shows first. */
.flaw .art { border-radius: 10px; order: -1; }
.flaw h3 { font-size: 19px; margin-top: 6px; }
.flaw p { margin: 0; font-size: 16.5px; }
.flaw .ex { color: var(--muted); }
.homes-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.homes .win { fill: #56656a; stroke: #3c5566; stroke-width: 1.2; transition: fill 0.2s; }
.homes .win.lit { fill: #f4c95d; }
@media (prefers-reduced-motion: reduce) { .homes .win { transition: none; } }
.share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 18px 0; align-items: start; }
@media (max-width: 760px) { .share { grid-template-columns: minmax(0, 1fr); } }
.share-field label { display: block; font-weight: 700; margin-bottom: 4px; }
.share-row { display: flex; align-items: center; gap: 14px; }
.share-row input { flex: 1; min-height: 44px; accent-color: var(--slate); }
.share-row output { font: 700 28px var(--display); min-width: 3.2em; text-align: right; }
.share .hint { display: block; font-size: 15px; color: var(--muted); }
.meters { display: grid; gap: 12px; }
.meter { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.meter-h { margin: 0; font-weight: 700; font-size: 15.5px; }
.meter-n { margin: 2px 0 8px; }
.meter-n b { font: 700 34px var(--display); margin-right: 10px; }
.meter-n span { color: var(--muted); font-size: 15px; }
.bar { position: relative; height: 16px; border-radius: 8px; background: var(--sand-tint); border: 1px solid var(--line); }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--amber); }
.bar-mark { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 2.5px dashed var(--ink); }

/* ---------- The document viewer ---------- */
.fillform { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.fillform .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 860px) { .fillform .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .fillform .row { grid-template-columns: minmax(0, 1fr); } }
.fillform label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.fillform input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: 400 16px "Source Sans 3", system-ui, sans-serif; color: var(--ink); background: #fff; }
.fillform input:focus { border-color: var(--slate); }
.fillform .hint { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.fillform .foot-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 12px; font-size: 14.5px; color: var(--muted); }

/* The tabs wrap to a second line on a phone, so each tab stays in view. */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 6px; border-bottom: 2px solid var(--line); margin-top: 8px; padding: 4px 2px 0; }
.tabs button { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 8px 8px 0 0; background: none; color: var(--link); font-weight: 700; font-size: 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -4px 0 var(--sage); }
.panel { padding-top: 16px; }
html:not(.js) .panel { border-top: 1px solid var(--line); margin-top: 18px; }
.panel-h { font-size: 22px; }
html.js .panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.panel-note { color: var(--muted); font-size: 15.5px; margin: 0 0 8px; }
.panel-actions { margin: 0 0 12px; }
.doc { background: #fff; border: 1px solid #d7d0c2; border-radius: 6px; box-shadow: 0 2px 0 #e9e2d4; padding: 34px 40px; max-height: 760px; overflow: auto; font: 400 17px/1.55 Georgia, "Times New Roman", serif; color: #1f2b30; }
.doc h4 { font: 700 26px/1.2 Georgia, "Times New Roman", serif; margin: 0 0 12px; }
.doc h5 { font: 700 19px/1.25 Georgia, "Times New Roman", serif; margin: 22px 0 8px; }
.doc p { margin: 0 0 12px; overflow-wrap: anywhere; }
.doc table { border-collapse: collapse; margin-top: 8px; }
.doc th, .doc td { border: 1px solid #c9c2b4; padding: 6px 14px; text-align: left; }
.doc .prompt { color: var(--slate); font-style: italic; }
.doc .fill { background: #fff3c4; border-radius: 3px; padding: 0 2px; }
.doc .fill.filled { background: #e3ede5; }
.doc .box, .doc .ask { border-radius: 8px; padding: 10px 14px; margin-top: 12px; }
.doc .box { background: var(--sage-tint); } .doc .ask { background: var(--sand-tint); }
.doc .foot { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 14px; }
.doc .sub { color: var(--muted); }
@media (max-width: 640px) { .doc { padding: 20px 18px; font-size: 16px; } }

/* ---------- Sources and footer ---------- */
.sources { margin-top: 36px; }
.sources summary { cursor: pointer; font: 700 20px var(--display); padding: 10px 0; min-height: 44px; }
.why li { border-top: 0; padding: 6px 0; }
.sources ul { font-size: 15.5px; padding-left: 20px; }
.sources li { margin-bottom: 6px; }
.foot { margin-top: 40px; border-top: 1px solid var(--line); background: #efe9dd; padding: 22px 0 30px; font-size: 15px; color: var(--muted); }

@media print {
  /* The stacked picture fits on one printed page. */
  .ch1-narrow { max-width: 330px; break-inside: avoid; }
  .claims .card, .flaw { break-inside: avoid; }
  #court h3 { break-after: avoid; }
  .secnav, #wg-bar, .actions, .btn, .stages { display: none !important; }
  body { background: #fff; }
  .doc { max-height: none !important; overflow: visible !important; }
  /* The Print button copies one document into #print-root. Only that copy prints. */
  body.printing-doc > *:not(#print-root) { display: none !important; }
  #print-root .doc { border: 0; box-shadow: none; padding: 0; }
  .doc .fill, .doc .fill.filled { background: none; }
  @page { margin: 0.5in; }
  #print-root .doc-summary { font-size: 10.5pt; line-height: 1.35; }
  #print-root .doc-summary h4 { font-size: 20pt; }
  #print-root .doc-summary h5 { font-size: 12.5pt; margin: 10pt 0 4pt; }
}
.result .fail-line { display: block; font-weight: 400; margin-top: 4px; }
