:root {
  --paper: #fffcef;
  --paper-dot: #ece5c7;
  --card: #ffffff;
  --ink: #141414;
  --ink-2: #333333;
  --muted: #5f5f5f;
  --faint: #8a8a8a;

  --yellow: #fff346;
  --green: #86ff46;
  --blue: #4647ff;
  --red: #ff4d46;
  --yellow-soft: #fff9bf;
  --green-soft: #e2ffd2;
  --blue-soft: #e4e4ff;
  --red-soft: #ffe1df;
  --gray-soft: #f1efe6;

  --line: 2.5px solid var(--ink);
  --line-thin: 1.5px solid var(--ink);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);

  --font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
}
main { flex: 1; }
main:focus, main:focus-visible { outline: none; }
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--blue); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: 0.1px; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); border: var(--line); padding: 8px 14px; border-radius: 999px; z-index: 50; font-weight: 700; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.site-header { background: var(--card); border-bottom: var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 58px; width: auto; display: block; transition: transform 0.15s ease; }
.brand:hover img { transform: rotate(-2deg) scale(1.03); }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border: var(--line); border-radius: 999px; background: var(--card);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.nav a:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-sm); }
.nav a[aria-current='page'] { background: var(--yellow); box-shadow: var(--shadow-sm); }

.live-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--faint); border: 1.5px solid var(--ink); flex-shrink: 0; }
.live-dot.on { background: var(--green); animation: pulse 2s ease-in-out infinite; }
.live-dot.off { background: var(--red); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(134, 255, 70, 0.7); } 50% { box-shadow: 0 0 0 6px rgba(134, 255, 70, 0); } }

.card { background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 18px 20px; }
.section { margin-top: 28px; }
.page-head { padding: 28px 0 8px; }
.page-head p.lede { margin-top: 8px; color: var(--ink-2); max-width: 60ch; font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border: var(--line); border-radius: 999px; background: var(--card); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }
.btn-yellow { background: var(--yellow); }
.btn-ghost { box-shadow: none; }
.btn[disabled] { opacity: 0.5; cursor: default; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border: var(--line-thin); border-radius: 999px;
  background: var(--card); font-weight: 600; font-size: 0.9rem; cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--yellow-soft); }
.chip[aria-pressed='true'] { background: var(--yellow); border-width: 2.5px; padding: 4px 12px; box-shadow: var(--shadow-sm); }
.chip .count { font-size: 0.75rem; background: var(--ink); color: var(--card); border-radius: 999px; padding: 0 7px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: var(--line-thin); border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; background: var(--card); white-space: nowrap;
}
.tag-yellow { background: var(--yellow); }
.tag-green { background: var(--green-soft); }
.tag-blue { background: var(--blue-soft); }
.tag-red { background: var(--red-soft); }
.tag-ink { background: var(--ink); color: var(--card); }

.party { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.party::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--faint); flex-shrink: 0; }
.party--D::before { background: var(--blue); }
.party--R::before { background: var(--red); }
.party--I::before { background: var(--yellow); }
.party--L::before { background: #ffc233; }
.party--G::before { background: var(--green); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: var(--line); border-radius: var(--radius-sm); background: var(--yellow-soft); font-size: 0.93rem; }
.notice strong { font-family: var(--font-display); font-weight: 600; }
.notice-icon { font-family: var(--font-display); font-weight: 700; background: var(--ink); color: var(--yellow); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; font-size: 0.85rem; margin-top: 1px; }
.notice-info { background: var(--blue-soft); }
.notice-info .notice-icon { color: var(--card); }
.error-card { padding: 22px; text-align: center; }
.error-card h2 { margin-bottom: 6px; }
.error-card .btn { margin-top: 14px; }

.skeleton { background: linear-gradient(90deg, #eee9d6 25%, #f7f3e4 50%, #eee9d6 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.silhouette { width: 100%; height: 100%; display: block; background: var(--card); }
.silhouette path { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linejoin: round; }

.credit { display: block; font-size: 0.68rem; line-height: 1.3; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.credit:empty { display: none; }
.credit a { color: inherit; text-decoration-thickness: 1px; }
.credit--long { font-size: 0.8rem; max-width: 56ch; margin: -2px auto 0; text-align: center; }

.check { display: block; width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend img { width: 34px; height: auto; }

.live-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 0 18px; }
.live-hero .lede { margin-top: 8px; max-width: 58ch; color: var(--ink-2); }
.conn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: var(--line); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-sm); }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.feed-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.feed-tools select { padding: 6px 12px; border: var(--line-thin); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 0.9rem; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 15px 18px; background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.item.is-new { animation: arrive 1.8s ease-out; }
@keyframes arrive { 0% { background: var(--yellow); transform: translateY(-8px); opacity: 0; } 15% { opacity: 1; transform: none; } 100% { background: var(--card); } }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.src { font-weight: 700; color: var(--ink); padding: 1px 9px; border: var(--line-thin); border-radius: 999px; background: var(--card); }
.src--vote { background: var(--yellow); }
.src--executive { background: var(--blue-soft); }
.src--whitehouse { background: var(--blue-soft); }
.src--bill { background: var(--green-soft); }
.item h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.06rem; line-height: 1.35; }
.item h3 a { text-decoration: none; }
.item h3 a:hover { text-decoration: underline; }
.item p.summary { margin-top: 5px; color: var(--ink-2); font-size: 0.93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.thumb { width: 104px; height: 78px; object-fit: cover; border: var(--line-thin); border-radius: var(--radius-sm); background: var(--gray-soft); }

.tally { margin-top: 10px; }
.tally-bar { display: flex; height: 14px; border: var(--line-thin); border-radius: 999px; overflow: hidden; background: var(--gray-soft); }
.tally-bar span { display: block; height: 100%; }
.tally-bar .y { background: var(--green); }
.tally-bar .n { background: var(--red); border-left: 1.5px solid var(--ink); }
.tally-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 0.84rem; color: var(--ink-2); }
.tally-legend b { font-variant-numeric: tabular-nums; }
.result { font-family: var(--font-display); font-weight: 600; padding: 1px 10px; border: var(--line-thin); border-radius: 999px; font-size: 0.8rem; color: var(--ink); }
.result.pass { background: var(--green); }
.result.fail { background: var(--red); }

.new-pill { position: sticky; top: 88px; z-index: 5; display: flex; justify-content: center; height: 0; overflow: visible; }
.new-pill .btn { background: var(--yellow); transform: translateY(-6px); }
.feed-more { display: flex; justify-content: center; margin: 22px 0 8px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.side { display: grid; gap: 20px; position: sticky; top: 96px; }
.side h2 { font-size: 1.2rem; margin-bottom: 10px; }
.countdown { padding: 18px 20px; background: var(--yellow); }
.countdown .days { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; }
.countdown .days small { font-size: 1.1rem; font-weight: 600; margin-left: 6px; }
.countdown p { margin-top: 6px; font-weight: 600; }
.countdown .btn { margin-top: 12px; font-size: 0.92rem; padding: 7px 14px; }
.mini-votes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-votes li { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1.5px dashed #d8d2b8; }
.mini-votes li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-votes a { font-weight: 700; text-decoration: none; line-height: 1.3; }
.mini-votes a:hover { text-decoration: underline; }
.mini-votes .meta { font-size: 0.8rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.source-list { margin: 0; padding-left: 18px; font-size: 0.9rem; color: var(--ink-2); }
.source-list li + li { margin-top: 3px; }

.cand-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 24px; align-items: end; padding: 28px 0 18px; }
.cand-head .lede { margin-top: 8px; color: var(--ink-2); max-width: 52ch; }
.filters { padding: 16px 18px; display: grid; gap: 10px; }
.filters label { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.filters select, .filters input {
  width: 100%; min-width: 0; padding: 8px 12px; border: var(--line); border-radius: var(--radius-sm); background: var(--card);
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
}
.filters select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 11px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
.filters input::placeholder { color: var(--faint); font-weight: 500; }

.tabs { display: flex; gap: 0; margin: 6px 0 16px; border: var(--line); border-radius: 999px; width: fit-content; background: var(--card); overflow: hidden; box-shadow: var(--shadow-sm); }
.tabs button { border: 0; background: transparent; padding: 8px 18px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer; }
.tabs button + button { border-left: var(--line); }
.tabs button[aria-selected='true'] { background: var(--yellow); }
.results-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin: 12px 0; font-size: 0.9rem; color: var(--muted); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--ink); }

.ptable-wrap { border: var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable thead th { background: var(--card); text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; padding: 12px 16px; border-bottom: var(--line); }
.ptable thead th:first-child { border-right: var(--line); width: 200px; }
.ptable tr.group th { background: var(--yellow); text-align: left; padding: 9px 16px; border-bottom: var(--line); border-top: var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.ptable tbody tr.group:first-child th { border-top: 0; }
.ptable tr.group .group-sub { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; margin-left: 8px; color: var(--ink-2); }
.ptable td { padding: 14px 16px; border-bottom: var(--line-thin); vertical-align: middle; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable td.c-person { border-right: var(--line); text-align: center; }
.prow { cursor: pointer; transition: background 0.1s ease; }
.prow:hover { background: #fffde0; }
.person-link { display: grid; justify-items: center; gap: 8px; text-decoration: none; }
.person-link:hover .pname { text-decoration: underline; }
.photo { width: 104px; aspect-ratio: 1 / 1; border: var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); display: block; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.pname { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.15; }
.c-aff .sub { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--ink-2); }
.c-aff .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.c-age { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; width: 80px; }
.c-county { font-size: 0.95rem; }
.c-county .dist { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.c-county .hl { background: var(--yellow); padding: 0 4px; border-radius: 4px; font-weight: 700; }
tr.more-row td { text-align: center; background: var(--gray-soft); padding: 10px; }
tr.more-row button { background: none; border: 0; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 0.9rem; }
tr.is-hidden { display: none; }
tr.dim td { opacity: 0.78; }
.skel-row td { height: 132px; }

.back { margin-top: 22px; }
.person-hero { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 18px 0 8px; }
.big-photo { display: block; width: min(300px, 72vw); aspect-ratio: 1 / 1; border: 3.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 6px 6px 0 var(--ink); }
.big-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.person-name { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 600; line-height: 1.05; }
.person-hero .chips { justify-content: center; }
.person-hero .chip { cursor: default; }
.person-hero .chip:hover { background: var(--card); }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.contact a { font-size: 0.9rem; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 16px 18px; }
.stat .label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.stat .value { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.1; margin-top: 4px; }
.stat .note { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.stand-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.stand-head p { margin-top: 6px; color: var(--ink-2); max-width: 64ch; }
.legend-card { padding: 12px 16px; margin-bottom: 16px; }

.issue-table { border: var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.issue-row + .issue-row { border-top: var(--line); }
.issue-row > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 170px; cursor: pointer; }
.issue-row > summary::-webkit-details-marker { display: none; }
.issue-main { padding: 18px 22px; border-right: var(--line); display: grid; gap: 6px; align-content: center; }
.issue-main h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.issue-main h3::after { content: '+'; font-size: 1.1rem; font-weight: 700; width: 24px; height: 24px; border: var(--line-thin); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.issue-row[open] .issue-main h3::after { content: '-'; background: var(--yellow); }
.issue-main .latest { font-size: 0.93rem; color: var(--ink-2); }
.issue-main .latest b { color: var(--ink); }
.issue-main .counts { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.issue-check { display: grid; justify-items: center; align-content: center; gap: 4px; padding: 14px; }
.issue-check img { width: 118px; }
.issue-check span { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.issue-row > summary:hover .issue-main { background: #fffde0; }
.issue-votes { list-style: none; margin: 0; padding: 0; border-top: var(--line-thin); background: #fffdf4; }
.issue-votes li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 22px; }
.issue-votes li + li { border-top: 1.5px dashed #d8d2b8; }
.issue-votes img { width: 58px; }
.issue-votes .v-title { font-weight: 700; line-height: 1.3; }
.issue-votes .v-title a { text-decoration: none; }
.issue-votes .v-title a:hover { text-decoration: underline; }
.issue-votes .v-meta { font-size: 0.83rem; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.issue-votes .show-all { display: block; text-align: center; grid-template-columns: none; }

.race-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.race-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; border: var(--line-thin); border-radius: var(--radius-sm); }
.race-list a { font-weight: 700; }
.research { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.vote-head { padding: 22px 0 6px; display: grid; gap: 12px; }
.vote-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.vote-result { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.vote-result .big { font-family: var(--font-display); font-weight: 700; font-size: 2rem; padding: 4px 18px; border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.vote-result .big.pass { background: var(--green); }
.vote-result .big.fail { background: var(--red); }
.btable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.btable th, .btable td { padding: 10px 14px; text-align: right; border-bottom: var(--line-thin); }
.btable th:first-child, .btable td:first-child { text-align: left; }
.btable thead th { font-family: var(--font-display); font-weight: 600; background: var(--yellow); border-bottom: var(--line); }
.btable tr:last-child td { border-bottom: 0; }
.member-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.member-tools select, .member-tools input { padding: 7px 12px; border: var(--line); border-radius: var(--radius-sm); background: var(--card); font-weight: 600; }
.member-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.member-grid li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: var(--card); border: var(--line-thin); border-radius: var(--radius-sm); }
.member-grid img { width: 42px; flex-shrink: 0; }
.member-grid .who { line-height: 1.25; min-width: 0; }
.member-grid .who a, .member-grid .who span.name { font-weight: 700; }
.member-grid .who small { display: block; color: var(--muted); }

.prose { max-width: 72ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.about-grid .card h2 { margin-bottom: 10px; }
.status-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.status-table th, .status-table td { text-align: left; padding: 9px 12px; border-bottom: var(--line-thin); vertical-align: top; }
.status-table thead th { font-family: var(--font-display); font-weight: 600; background: var(--yellow); border-bottom: var(--line); }
.status-table tr:last-child td { border-bottom: 0; }
.ok-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); margin-right: 6px; background: var(--faint); vertical-align: -1px; }
.ok-dot.ok { background: var(--green); }
.ok-dot.bad { background: var(--red); }
.table-scroll { overflow-x: auto; }

.site-footer { margin-top: 56px; border-top: var(--line); background: var(--card); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 24px 16px 28px; font-size: 0.88rem; color: var(--ink-2); }
.footer-inner strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; }
.footer-inner p + p { margin-top: 6px; }

@media (max-width: 980px) {
  .live-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); order: -1; }
  .side .sources-card { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .side .mini-votes-card { display: none; }
  .countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 14px 16px; }
  .countdown h2 { width: 100%; margin-bottom: 0; }
  .countdown .btn { margin-top: 4px; }
  .cand-head { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 20px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .item { grid-template-columns: minmax(0, 1fr); }
  .thumb { display: none; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 64px; }
  .brand img { height: 44px; }
  .nav { gap: 5px; }
  .nav a { padding: 5px 10px; font-size: 0.92rem; }
  .nav a .nav-text-long { display: none; }
  .ptable thead th { font-size: 0.98rem; padding: 10px 8px; }
  .ptable thead th:first-child { width: 112px; }
  .ptable td { padding: 10px 8px; font-size: 0.86rem; }
  .ptable tr.group th { padding: 8px 10px; font-size: 0.98rem; }
  .ptable tr.group .group-sub { display: block; margin: 2px 0 0; }
  .photo { width: 76px; }
  .pname { font-size: 0.98rem; }
  .c-age { font-size: 1.2rem; width: 44px; }
  .c-county .dist { font-size: 0.98rem; }
  .c-aff .tags .tag { font-size: 0.72rem; padding: 1px 7px; }
  .issue-row > summary { grid-template-columns: minmax(0, 1fr) 104px; }
  .issue-main { padding: 14px; }
  .issue-check img { width: 78px; }
  .issue-votes li { padding: 10px 14px; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
  .issue-votes img { width: 44px; }
  .stats { gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat .value { font-size: 1.5rem; }
  .filters label { grid-template-columns: 64px minmax(0, 1fr); font-size: 1.02rem; }
  .countdown .days { font-size: 2.6rem; }
  .tabs button { padding: 7px 13px; font-size: 0.92rem; }
}
