@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("/assets/fonts/big-shoulders-display.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/public-sans.woff2") format("woff2"); }

/* Tokens. Paper and ink from a printed ballot. Marigold marks time that is
   running out, and nothing else. No party colors anywhere, results included. */
:root {
  --paper: #ECEFE9; --panel: #F7F8F4; --ink: #13201B; --muted: #4B5852;
  --rule: #C5CDC6; --track: #D9E0D9; --signal: #FFB81C; --signal-ink: #13201B;
  --board: #0C1613; --flap: #16231E; --flap-hi: #1F2F29; --flap-lo: #111C18; --flap-ink: #FFC23D; --board-muted: #A7B6AF;
  --wash: rgba(255, 184, 28, .24);
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --text: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --map: #CCD5CD; --ctl: #6F7B75; --cov: #EBC35F;
  --measure: 66ch; --bar: 3.75rem; --head: 3.75rem; --focus: #1B1C1A;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
  --shadow: 0 1px 0 rgba(27, 28, 26, .04), 0 14px 34px -22px rgba(27, 28, 26, .45);
  --shadow-hi: 0 2px 0 rgba(27, 28, 26, .05), 0 20px 40px -22px rgba(27, 28, 26, .55);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1916; --panel: #13211D; --ink: #E8EEE9; --muted: #A1B0A9;
    --rule: #2A3C36; --track: #21322C; --signal: #FFC23D; --signal-ink: #0F1916;
    --wash: rgba(255, 194, 61, .16); --focus: #FFC23D; color-scheme: dark; --map: #2C413A;
    --board: #09110F; --ctl: #7F918A; --cov: #D5A83C;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"); --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 36px -22px rgba(0, 0, 0, .9); --shadow-hi: 0 2px 0 rgba(0, 0, 0, .35), 0 22px 44px -22px rgba(0, 0, 0, 1);
  }
}
:root[data-theme="dark"] {
  --paper: #0F1916; --panel: #13211D; --ink: #E8EEE9; --muted: #A1B0A9;
  --rule: #2A3C36; --track: #21322C; --signal: #FFC23D; --signal-ink: #0F1916;
  --wash: rgba(255, 194, 61, .16); --focus: #FFC23D; color-scheme: dark; --map: #2C413A;
  --board: #09110F; --ctl: #7F918A; --cov: #D5A83C;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"); --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 36px -22px rgba(0, 0, 0, .9); --shadow-hi: 0 2px 0 rgba(0, 0, 0, .35), 0 22px 44px -22px rgba(0, 0, 0, 1);
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 1rem); }
body { margin: 0; background: var(--paper) var(--grain); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); padding-bottom: env(safe-area-inset-bottom, 0px); }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
svg { max-width: 100%; }
button, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(100% - 2.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px), 76rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 30; }
.skip:focus { left: 1rem; top: calc(env(safe-area-inset-top, 0px) + .5rem); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

select {
  appearance: none; min-height: 2.5rem; padding: .45rem 2.1rem .45rem .75rem;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .75rem center;
  border: 1.5px solid var(--ctl); border-radius: 10px; cursor: pointer; transition: border-color .15s ease;
}
select:hover, .finder input:hover { border-color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .5rem 1rem;
  border: 1.5px solid var(--ink); border-radius: 8px; background: var(--ink); color: var(--paper);
  font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--ctl); }
.btn.quiet:hover { border-color: var(--ink); }
.btn { border-radius: 10px; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn.sm { min-height: 2.25rem; padding: .35rem .8rem; font-size: .875rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Header ---------------------------------------------------------------- */
.site { position: sticky; top: 0; z-index: 20; background: var(--paper); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); transition: box-shadow .2s ease; }
.site.scrolled { box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .6); }
.site .wrap { display: flex; align-items: center; gap: 1.75rem; height: var(--bar); }
.brand { display: inline-flex; flex: none; align-items: center; gap: .45rem; padding: .55rem 0; text-decoration: none; font: 800 1.6rem/1 var(--display); }
.brand svg { width: 1.5rem; height: 1.5rem; flex: none; }
.site nav { display: flex; gap: 1.35rem; font-size: .9375rem; }
.site nav a { color: var(--muted); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site nav a:hover, .site nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--signal); }
.mini select { width: 13rem; max-width: 100%; min-width: 0; }
.mini { min-width: 0; margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .9375rem; }
.mini label { color: var(--muted); white-space: nowrap; }
.site .jump { display: none; }
@media (max-width: 940px) {
  :root { --head: calc(var(--bar) + 2.75rem); }
  .site .wrap > nav { display: none; }
  .site .jump { display: flex; justify-content: space-between; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: 0 1.25rem; height: 2.75rem; align-items: center; border-top: 1px solid var(--rule); font-size: clamp(.8125rem, 3.75vw, .9375rem); scroll-snap-type: x proximity; scroll-padding-inline: 1.25rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent); }
  .jump::-webkit-scrollbar { display: none; }
  .site .jump { padding-left: calc(1.25rem + env(safe-area-inset-left, 0px)); padding-right: calc(1.25rem + env(safe-area-inset-right, 0px)); }
  .jump a { flex: none; padding: .6rem .15rem; scroll-snap-align: start; }
}
@media (max-width: 640px) { .mini label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .site .wrap { gap: 1rem; } }
@media (max-width: 440px) { .brand { font-size: 1.4rem; } .brand svg { width: 1.35rem; height: 1.35rem; } }
@media (max-width: 340px) { .site .jump { padding-inline: .75rem; gap: .1rem; font-size: .8125rem; } }

/* Bands: sections alternate paper and panel instead of stacking rules. */
.band { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0; scroll-margin-top: var(--head); --card: var(--panel); }
.band:not(.hero)::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 60px) top left / 100% 14px no-repeat, repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 12px) top left / 100% 7px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.band.alt { background: var(--panel) var(--grain); --card: var(--paper); }
.band-head { margin: 0 0 2rem; max-width: var(--measure); }
.band-head h2 { margin: 0; font: 800 clamp(2.1rem, 4.2vw, 3.1rem)/1 var(--display); }
.band-head p { margin: .6rem 0 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); }
.note { margin: 0; padding: 1.25rem 1.5rem; max-width: var(--measure); }
.note p { margin: 0; }
.note .btn { margin-top: .85rem; }
.muted { color: var(--muted); }
.src { margin: .5rem 0 0; font-size: .875rem; color: var(--muted); }

/* Election Clock ---------------------------------------------------------- */
.hero { padding-top: clamp(1.75rem, 4vw, 3rem); position: relative; overflow: hidden; }
.hero h1 { text-align: center; }
.hero .wrap { position: relative; z-index: 1; }
.hero-dial { position: absolute; z-index: 0; right: -9rem; top: -11rem; width: 34rem; height: 34rem; color: var(--ink); opacity: .05; pointer-events: none; }
@media (max-width: 760px) { .hero-dial { width: 22rem; height: 22rem; right: -9rem; top: -8rem; } }
@media (max-width: 560px) { .hero-dial { display: none; } }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.5rem; margin: .85rem 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.hero h1 { margin: 0 0 1.1rem; font: 800 clamp(2.2rem, 4.6vw, 3.6rem)/.95 var(--display); text-wrap: balance; }
.clock { --fs: clamp(3rem, 9.4vw, 7.8rem); display: flex; flex-wrap: nowrap; align-items: flex-start; gap: clamp(.4rem, 1.5vw, 1.25rem); padding: clamp(.9rem, 2vw, 1.4rem) clamp(1rem, 2.4vw, 1.6rem) clamp(.8rem, 1.6vw, 1.1rem); background: var(--board); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -2px 0 rgba(0, 0, 0, .5), var(--shadow-hi); outline: 1px solid rgba(255, 255, 255, .06); outline-offset: -1px; }
.clock.wide { --fs: clamp(2.8rem, 8.6vw, 7.2rem); }
.clock-cap { margin: 0 0 .6rem; font-weight: 700; }
.clock .unit { flex: var(--n, 2) 1 0; min-width: 0; display: grid; justify-items: center; gap: .55rem; text-align: center; }
.clock .sep { flex: 0 0 auto; align-self: flex-start; height: calc(var(--fs) * 1.18); display: grid; align-content: center; justify-items: center; gap: calc(var(--fs) * .2); }
.clock .sep i { display: block; width: calc(var(--fs) * .085); aspect-ratio: 1; border-radius: 50%; background: var(--flap-ink); opacity: .45; }
.flaps { display: flex; justify-content: center; gap: calc(var(--fs) * .06); font: 800 var(--fs)/1 var(--display); color: var(--flap-ink); min-height: calc(var(--fs) * 1.18); text-shadow: 0 0 .32em rgba(255, 194, 61, .22); }
.flap { position: relative; display: block; width: .78em; height: 1.18em; border-radius: .07em; box-shadow: 0 .03em .05em rgba(0, 0, 0, .6); perspective: 4em; }
.flap .half, .flap .leaf { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; }
.flap .top, .flap .ltop { top: 0; border-radius: .07em .07em 0 0; background: linear-gradient(180deg, var(--flap-hi), var(--flap)); }
.flap .bot, .flap .lbot { bottom: 0; border-radius: 0 0 .07em .07em; background: linear-gradient(180deg, var(--flap-lo), var(--flap)); }
.flap .half > span, .flap .leaf > span { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.flap .top > span, .flap .ltop > span { top: 0; }
.flap .bot > span, .flap .lbot > span { bottom: 0; }
.flap::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: calc(50% - .012em); height: .024em; min-height: 1px; background: rgba(0, 0, 0, .7); }
.flap::before { content: ""; position: absolute; z-index: 4; top: calc(50% - .06em); left: -.02em; right: -.02em; height: .12em; background: linear-gradient(90deg, var(--board) .035em, transparent .035em, transparent calc(100% - .035em), var(--board) calc(100% - .035em)); }
.flap .leaf { display: none; z-index: 2; backface-visibility: hidden; }
.flap.flip .ltop { display: block; transform-origin: 50% 100%; animation: flapTop var(--fd, .16s) ease-in forwards; }
.flap.flip .lbot { display: block; transform-origin: 50% 0; transform: rotateX(90deg); animation: flapBot var(--fd, .16s) ease-out var(--fd, .16s) forwards; }
@keyframes flapTop { to { transform: rotateX(-90deg); } }
@keyframes flapBot { to { transform: rotateX(0deg); } }
.clock .l { color: var(--board-muted); font-size: clamp(.875rem, 1.4vw, 1rem); font-weight: 600; }
.clock.is-today { display: block; }
.clock .today { padding: clamp(.4rem, 1.5vw, 1rem) .2rem; text-align: center; color: var(--flap-ink); font: 800 clamp(2.4rem, 7vw, 5.5rem)/.9 var(--display); }
@media (max-width: 560px) {
  .clock { --fs: clamp(2.6rem, 20.5vw, 5.9rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem .9rem; }
  .clock .sep { display: none; }
  .clock.wide { --fs: clamp(2.4rem, 14.5vw, 4.4rem); }
  .clock.three { grid-template-columns: repeat(3, minmax(0, 1fr)); --fs: clamp(2.2rem, 12vw, 3.6rem); }
  .hero-meta { font-size: .8125rem; }
  .hero-meta .src-line { display: block; margin-top: .15rem; font-size: .75rem; opacity: .8; }
  .hero h1 .h1-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .foot-more { display: none; }
  .hero h1 .h1-when { display: block; margin-top: .18em; font-size: .6em; font-weight: 700; letter-spacing: .01em; color: var(--muted); }
}
.hero-meta { margin: 0; max-width: var(--measure); font-size: .875rem; color: var(--muted); }
.hero-meta a { color: inherit; }
@media (max-width: 560px) { .you { margin-top: 1.25rem; } }

/* "You" panel: the one personal action, then what it unlocks. */
.you { position: relative; margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); }
.you > * { position: relative; z-index: 1; }
/* Reserve the panel's height before scripts fill it, so nothing below it jumps on first paint. */
html:not([data-state]) #you-main { min-height: 32rem; }
html[data-state] #you-main { min-height: 24.5rem; }
@media (max-width: 1099px) { html:not([data-state]) #you-main { min-height: 27rem; } }
@media (max-width: 899px) { html[data-state] #you-main { min-height: 26rem; } }
@media (max-width: 820px) { html:not([data-state]) #you-main { min-height: 40rem; } }
@media (max-width: 760px) { html[data-state] #you-main { min-height: 36rem; } }
.you > .you-bg { position: absolute; z-index: 0; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.you-ghost { position: absolute; right: -3%; top: -12%; width: min(46%, 26rem); height: auto; aspect-ratio: 1; }
.you-ghost path { fill: var(--ink); opacity: .05; }
@media (max-width: 640px) { .you-ghost { width: 70%; right: -12%; top: -6%; } }
.ask { display: grid; grid-template-columns: auto minmax(13rem, 21rem) minmax(0, 1fr); align-items: center; gap: 1rem 1.5rem; }
.ask label { font: 800 clamp(1.7rem, 3vw, 2.3rem)/1 var(--display); }
.ask select { min-height: 3.25rem; font-size: 1.125rem; font-weight: 600; border-width: 2px; }
.ask p { margin: 0; color: var(--muted); max-width: 40ch; }
@media (max-width: 820px) { .ask { grid-template-columns: 1fr; } }
.you-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; }
.you-top h2 { margin: 0; font: 800 clamp(1.9rem, 3.6vw, 2.7rem)/1 var(--display); }
.swap { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9375rem; }
.swap select { width: auto; max-width: 12rem; min-height: 2.5rem; }
.linkbtn { background: none; border: 0; padding: .35rem 0; min-height: 2rem; color: var(--muted); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; font-size: .9375rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.25rem 0 0; border-top: 1px solid var(--rule); }
.stat { padding: 1rem 1.25rem 0 0; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--rule); padding-left: 1.25rem; }
.stat dt { color: var(--muted); font-size: .875rem; font-weight: 600; }
.stat dd { margin: 0; }
.big { display: block; margin: .35rem 0 .3rem; font: 800 clamp(2.3rem, 4.6vw, 3.4rem)/.9 var(--display); font-variant-numeric: tabular-nums; }
.big small { font-size: .5em; }
.stat p { margin: 0; font-size: .9375rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; margin-top: 1rem; }
}

/* Road to Election Day: every deadline placed on one line of time. */
.road-wrap { margin: 1.75rem 0 0; }
.road-cap { margin: 0 0 .25rem; font-size: .875rem; font-weight: 600; color: var(--muted); }
.road { position: relative; height: 7rem; margin: 0 .5rem; }
.road-track { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; background: var(--track); border-radius: 3px; overflow: hidden; }
.road-gone { position: absolute; left: 0; top: 0; bottom: 0; background: var(--muted); opacity: .55; }
.road-range { position: absolute; top: 50%; height: 16px; margin-top: -8px; background: var(--wash); border: 1.5px solid var(--signal); border-radius: 8px; }
.mk { position: absolute; top: 50%; width: 0; height: 0; }
.mk-dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--ink); }
.mk.gone .mk-dot { border-color: var(--rule); }
.mk.next .mk-dot { background: var(--signal); }
.mk.today .mk-dot { left: -2px; top: -15px; width: 4px; height: 30px; border: 0; border-radius: 2px; background: var(--ink); }
.mk.eday .mk-dot { left: -11px; top: -11px; width: 22px; height: 22px; background: var(--signal); border-radius: 5px; }
.mk-label { position: absolute; white-space: nowrap; font-size: .8125rem; line-height: 1.2; transform: translateX(-50%); }
.mk-label b { display: block; font-weight: 700; }
.mk-label span { color: var(--muted); }
.mk-label.start { transform: translateX(-8px); }
.mk-label.end { transform: translateX(calc(-100% + 8px)); text-align: right; }
.mk[data-row="up"] .mk-label { bottom: 16px; }
.mk[data-row="down"] .mk-label { top: 16px; }
.mk.gone .mk-label { color: var(--muted); }

/* Your Voting Clock --------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 54rem; }
.timeline { max-width: 62rem; }
.dl { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: start; gap: .25rem 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.dl:first-child { border-top: 1px solid var(--rule); }
.dl-date { position: relative; display: flex; flex-direction: column; text-align: center; min-height: 4.6rem; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--card); overflow: hidden; box-shadow: 0 2px 0 var(--rule), 0 3px 0 var(--card), 0 4px 0 var(--rule); }
.dl-date::before { content: ""; position: absolute; top: .28rem; left: 22%; right: 22%; height: .32rem; background: radial-gradient(circle, var(--card) 45%, transparent 50%) left / .32rem .32rem no-repeat, radial-gradient(circle, var(--card) 45%, transparent 50%) right / .32rem .32rem no-repeat; }
.dl-date .mo { display: block; padding: .72rem 0 .12rem; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .8125rem; line-height: 1.1; }
.dl-date .d { display: grid; place-items: center; flex: 1; padding: .2rem 0 .25rem; font: 800 2.5rem/.9 var(--display); font-variant-numeric: tabular-nums; }
.dl.next .dl-date { background: var(--signal); color: var(--signal-ink); }
.dl.next .dl-date .mo { background: var(--signal-ink); color: var(--signal); }
.dl.gone { color: var(--muted); }
.dl.gone .dl-date { border-color: var(--rule); background: transparent; box-shadow: none; }
.dl.gone .dl-date .mo { background: var(--track); color: var(--muted); }
.dl h3 { margin: 0; font-size: 1.1875rem; line-height: 1.3; }
.dl .when { margin: .2rem 0 0; }
.dl .left { font-weight: 700; }
.dl .detail { margin: .5rem 0 0; max-width: var(--measure); }
.dl .btn { min-height: 2.25rem; padding: .35rem .8rem; font-size: .875rem; }
@media (max-width: 640px) { .dl { grid-template-columns: 4.5rem minmax(0, 1fr); } .dl .btn { grid-column: 2; justify-self: start; margin-top: .5rem; } }
.fine { margin: 1.5rem 0 0; max-width: var(--measure); }

/* Office Clock ------------------------------------------------------------- */
.seats { max-width: 64rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: center; gap: 1.25rem 2.5rem; margin: 0 0 2.5rem; padding: 1.25rem 1.5rem; }
.seats .big { margin-top: 0; }
.seats p { margin: 0; }
.dots { display: flex; flex-wrap: wrap; gap: 7px; }
.dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); }
.dots span.up { background: var(--signal); border-color: var(--signal); }
.dots span.gov { border-radius: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: .75rem 0 0; font-size: .8125rem; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--muted); margin-right: .35rem; vertical-align: -1px; }
.legend i.up { background: var(--signal); border-color: var(--signal); }
@media (max-width: 760px) { .seats { grid-template-columns: 1fr; } }

.group { margin: 0 0 2.5rem; max-width: 64rem; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .45rem; }
.group-head h3 { margin: 0; font: 800 1.6rem/1 var(--display); }
.group-head h3 span { color: var(--muted); }
.filter { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; }
.offices { list-style: none; margin: 0; padding: 0; }
.office { display: grid; grid-template-columns: 3.5rem minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'ring who f1 f2'; align-items: center; gap: .5rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.office .ring { grid-area: ring; } .office .who { grid-area: who; } .office .f1 { grid-area: f1; } .office .f2 { grid-area: f2; }
.office .who strong { display: block; font-size: 1.125rem; line-height: 1.3; }
.office .who span { color: var(--muted); font-size: .9375rem; }
.fact small { display: block; color: var(--muted); font-size: .8125rem; }
.fact b { font-weight: 600; }
.fact em { font-style: normal; color: var(--muted); font-size: .9375rem; }
.tag { display: inline-block; margin-top: .2rem; padding: .05rem .5rem; border-radius: 99px; background: var(--signal); color: var(--signal-ink); font-size: .75rem; font-weight: 700; }
@media (max-width: 760px) {
  .office { grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'ring who who' '. f1 f2'; gap: .6rem 1rem; }
}
.more { margin-top: 1rem; }

/* Rings: percent of term served, percent of vote counted. */
.ring { display: block; width: 3.5rem; height: 3.5rem; }
.ring .t { fill: none; stroke: var(--track); stroke-width: 5; }
.ring .f { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .7s ease-out; }
.ring.up .f { stroke: var(--signal); }
.ring text { fill: var(--ink); font: 700 13px var(--text); }

/* Results ------------------------------------------------------------------ */
.waiting { padding: 1.5rem; max-width: 52rem; }
.waiting h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.waiting p { margin: 0; color: var(--muted); max-width: var(--measure); }
.testbar { margin: 0 0 1.25rem; padding: .7rem 1rem; border-radius: 8px; font-weight: 700; color: var(--signal-ink);
  background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, #FFD36B 14px 28px); border: 2px solid var(--ink); }
.rtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.25rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.tabs button { padding: .4rem .85rem; border-radius: 99px; border: 1.5px solid var(--rule); background: transparent; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.called { min-width: 15rem; font-size: .9375rem; }
.bar { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; margin-top: .35rem; }
.bar span { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .7s ease-out; }
.races { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 1rem; }
.race { padding: 1.1rem 1.25rem 1rem; display: flex; flex-direction: column; gap: .8rem; }
.race header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: start; }
.race h3 { margin: 0; font-size: 1.125rem; line-height: 1.25; }
.race header p { margin: .15rem 0 0; color: var(--muted); font-size: .875rem; }
.race .ring { width: 3rem; height: 3rem; }
.race .ring text { font-size: 12px; }
.counted { text-align: center; font-size: .6875rem; color: var(--muted); line-height: 1.1; margin-top: .15rem; }
.cands { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.cand { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1rem; }
.cand .nm { font-weight: 600; }
.cand .nm small { color: var(--muted); font-weight: 400; }
.cand .pc { font-weight: 700; text-align: right; }
.cand .bar { grid-column: 1 / -1; margin-top: 0; }
.cand .vt { grid-column: 1 / -1; font-size: .8125rem; color: var(--muted); }
.cand:not(.lead) .bar span { background: var(--muted); }
.win { display: inline-flex; align-items: center; gap: .25rem; margin-left: .35rem; padding: 0 .45rem; border-radius: 99px; background: var(--signal); color: var(--signal-ink); font-size: .6875rem; font-weight: 700; vertical-align: 1px; }
.race footer { margin-top: auto; font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: .6rem; }

/* Media Clock -------------------------------------------------------------- */
.builder { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
.controls { display: grid; gap: 1rem; }
.controls label { display: grid; gap: .3rem; min-width: 0; font-weight: 600; font-size: .9375rem; }
.controls select { width: 100%; max-width: 100%; }
.controls .hint { font-weight: 400; color: var(--muted); font-size: .875rem; }
.preview-wrap { display: grid; gap: 1rem; min-width: 0; }
.preview { display: block; width: 100%; max-width: 520px; height: 230px; border: 0; background: transparent; }
.newsframe { margin: 0; max-width: 40rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.nf-bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; border-bottom: 1px solid var(--rule); background: var(--track); }
.nf-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--rule); }
.nf-bar span { margin-left: .6rem; padding: .15rem .7rem; border-radius: 99px; background: var(--card); color: var(--muted); font-size: .8125rem; }
.nf-body { display: grid; gap: 1rem; padding: 1.25rem clamp(1rem, 3vw, 1.75rem); }
.nf-lines { display: grid; gap: .5rem; }
.nf-lines b { display: block; height: .55rem; width: 100%; border-radius: 99px; background: var(--track); }
.nf-lines b.h { height: 1rem; background: var(--rule); }
.newsframe figcaption { padding: .6rem 1rem .8rem; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--rule); }
textarea { width: 100%; min-height: 5.5rem; padding: .75rem; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--card); font: .8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
@media (max-width: 820px) { .builder { grid-template-columns: minmax(0, 1fr); } }

/* Footer ------------------------------------------------------------------- */


/* Map picker, state outline, finder, tools, icons */
.ask2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.25rem 2.5rem; align-items: center; }
.ask2 h2 { margin: 0 0 .5rem; font: 800 clamp(1.8rem, 3.2vw, 2.4rem)/1 var(--display); }
.ask2 p { margin: .75rem 0 0; color: var(--muted); max-width: 40ch; }
.ask2 select { width: 100%; max-width: 22rem; min-height: 3.25rem; font-size: 1.125rem; font-weight: 600; border-width: 2px; }
@media (max-width: 820px) { .ask2 { grid-template-columns: 1fr; } }
.usmap { display: block; width: 100%; height: auto; }
.usmap path.has { fill: var(--cov); }
.usmap path.has:hover { fill: var(--signal); }
.map-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; margin-top: .6rem; min-height: 1.75rem; }
.map-label { margin: 0; font-size: .875rem; color: var(--muted); }
.map-label.on { color: var(--ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: .4rem; }
.legend .sw { width: .8rem; height: .8rem; border-radius: 3px; background: var(--map); border: 1px solid var(--ctl); }
.legend .sw.has { background: var(--cov); border-color: transparent; }
.chips button.has::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .45rem; border-radius: 50%; background: var(--cov); }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem; margin: 1rem 0 0; padding: .65rem .85rem; border-radius: 12px; background: var(--wash); max-width: 40ch; }
.suggest[hidden] { display: none; }
.usmap path { fill: var(--map); stroke: var(--card); stroke-width: 1.2; cursor: pointer; transition: fill .15s ease; }
.usmap path:hover { fill: var(--rule); }
.map-skel { aspect-ratio: 975 / 610; border-radius: 12px; background: var(--track); opacity: .5; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 0; }
.chips button { padding: .35rem .75rem; min-height: 2.25rem; border-radius: 99px; border: 1.5px solid var(--rule); background: transparent; font-size: .875rem; font-weight: 600; cursor: pointer; }
.chips button:hover { border-color: var(--signal); background: var(--wash); }
.you-id { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.outline { width: 3.2rem; height: 3.2rem; flex: none; }
.outline path { fill: var(--signal); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.finder { margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--rule); }
.finder label { display: flex; align-items: center; gap: .45rem; font-weight: 700; margin: 0 0 .5rem; }
.finder label .ico { width: 1.2rem; height: 1.2rem; color: var(--muted); }
.finder-row { display: flex; gap: .5rem; max-width: 36rem; }
.combo { position: relative; flex: 1; min-width: 0; }
.finder input { width: 100%; min-width: 0; min-height: 2.75rem; padding: .5rem .8rem; border: 1.5px solid var(--ctl); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; }
.finder input[aria-expanded="true"] { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.combo.busy::after { content: ""; position: absolute; right: .8rem; top: 50%; width: .95rem; height: .95rem; margin-top: -.5rem; border: 2px solid var(--rule); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.addr-list { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + .3rem); margin: 0; padding: .3rem; list-style: none; background: var(--card); border: 1.5px solid var(--ctl); border-radius: 10px; box-shadow: var(--shadow-hi); max-height: 17rem; overflow-y: auto; }
.addr-list[hidden] { display: none; }
.addr-list li { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: 7px; cursor: pointer; line-height: 1.3; }
.addr-list li .ico { width: 1rem; height: 1rem; color: var(--muted); }
.addr-list li[aria-selected="true"], .addr-list li[role="option"]:hover { background: var(--wash); }
.addr-list .addr-note { color: var(--muted); font-size: .8125rem; cursor: default; }
.addr-list [role="option"] + .addr-note { border-top: 1px solid var(--rule); border-radius: 0; margin-top: .2rem; padding-top: .55rem; }
.locate { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; color: var(--ink); }
.locate .ico { width: 1.05rem; height: 1.05rem; }
.finder-note { margin: .45rem 0 0; font-size: .8125rem; color: var(--muted); max-width: 60ch; }
.finder-result { margin: .6rem 0 0; max-width: 62ch; overflow-wrap: anywhere; }
.finder-result:empty { display: none; }
.tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.ico { width: 1.25rem; height: 1.25rem; flex: none; }
.dl h3 { display: flex; align-items: flex-start; gap: .5rem; }
.dl h3 .ico { margin-top: .12rem; color: var(--muted); }
.dl.next h3 .ico { color: var(--ink); }
.office.mine { background: var(--wash); border-radius: 12px; padding-inline: .75rem; margin-inline: -.75rem; }
.print-head { display: none; }
.past { margin: 0 0 1rem; max-width: 62rem; }
.past summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: .35rem 0; width: fit-content; }
.past[open] summary { margin-bottom: .5rem; }
footer { border-top: 1px solid var(--rule); background: var(--panel) var(--grain); padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem; color: var(--muted); font-size: .9375rem; }
footer strong { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr)); gap: 2.25rem clamp(1.5rem, 4vw, 4rem); align-items: start; }
.foot-brand .brand { padding: 0; font-size: 1.85rem; color: var(--ink); }
.foot-brand p { margin: .7rem 0 1.15rem; max-width: 30ch; }
.foot-jump { display: grid; gap: .35rem; max-width: 16rem; font-weight: 600; color: var(--ink); }
.foot-col h2 { margin: 0 0 .7rem; font: 700 1rem/1.25 var(--text); color: var(--ink); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li a { display: inline-block; padding: .3rem 0; color: var(--muted); text-decoration: none; }
.foot-col li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.contacts { display: grid; gap: 1rem; margin: 0; }
.contacts dt { font-size: .8125rem; }
.contacts dd { margin: .15rem 0 0; }
.contacts a { color: var(--ink); overflow-wrap: anywhere; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.foot-legal p { margin: 0; max-width: 64ch; }
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; }
.appearance { display: flex; align-items: center; gap: .5rem; }
.appearance select { min-height: 2.25rem; font-size: .875rem; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand, .foot-contact { grid-column: 1 / -1; }
  .foot-contact .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-col li a { padding: .4rem 0; }
}
@media (max-width: 350px) { .foot-contact .contacts { grid-template-columns: 1fr; } }
.allstates { margin-top: 1.25rem; }
.allstates summary { cursor: pointer; font-weight: 600; color: var(--ink); width: fit-content; padding: .25rem 0; }
.allstates ul { list-style: none; margin: 1rem 0 0; padding: 0; columns: 5 10rem; column-gap: 1.5rem; }
.allstates li { padding: .15rem 0; break-inside: avoid; }
.allstates a { text-decoration: none; }
.allstates a:hover { text-decoration: underline; }
.allstates a[aria-current="page"] { color: var(--ink); font-weight: 700; }

@media print {
  :root, :root[data-theme="dark"] { --paper: #fff; --panel: #fff; --card: #fff; --ink: #000; --muted: #333; --rule: #aaa; --grain: none; color-scheme: light; }
  body { background: #fff; }
  .site, .skip, .hero, #office-clock, #results, #media-clock, footer, .tools, .dl .btn, .band-head p, .past, .dl .left { display: none !important; }
  .band { padding: 0; background: #fff; }
  .print-head { display: block; margin: 0 0 1rem; font-weight: 700; }
  .dl { break-inside: avoid; }
  .src a::after { content: " (" attr(href) ")"; font-size: .75em; word-break: break-all; }
}

@media (prefers-contrast: more) {
  :root { --muted: #3E413C; --rule: #8A8E86; --track: #C4C7BF; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --muted: #C9CCC3; --rule: #6B6F67; --track: #4A4D47; } }
  :root[data-theme="dark"] { --muted: #C9CCC3; --rule: #6B6F67; --track: #4A4D47; }
}
@media (forced-colors: active) {
  .ring .t { stroke: GrayText; } .ring .f { stroke: Highlight; } .ring text { fill: CanvasText; }
  .bar span, .road-gone, .dots span.up, .mk.next .mk-dot, .mk.eday .mk-dot, .mk.today .mk-dot { forced-color-adjust: none; background: Highlight; }
  .clock, .tag, .win, .testbar { border: 2px solid CanvasText; }
  .flaps, .clock .today { forced-color-adjust: auto; color: CanvasText; }
  .flap::before { display: none; }
}
@media (pointer: coarse) {
  select, textarea, .appearance select, .swap select { font-size: 16px !important; }
  a, button, select { -webkit-tap-highlight-color: rgba(255, 184, 28, .25); }
}
.btn:active, .tabs button:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring .f, .bar span, .btn, .site { transition: none; }
  .combo.busy::after { animation: none; border-top-color: var(--rule); }
}

/* Policy and information pages ------------------------------------------- */
.doc { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.doc article { max-width: 46rem; }
.doc h1 { margin: 0 0 .5rem; font: 800 clamp(2.4rem, 5vw, 3.4rem)/.95 var(--display); }
.doc h2 { margin: 2.25rem 0 .6rem; font: 800 1.65rem/1.05 var(--display); }
.doc h3 { margin: 1.5rem 0 .4rem; font-size: 1.125rem; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: .35rem 0; }
.doc .updated { color: var(--muted); margin: 0 0 1.5rem; }
.doc .summary { padding: 1.1rem 1.35rem; margin: 1.25rem 0 0; }
.doc .summary p { margin: .35rem 0; }
.simple-nav { display: flex; gap: 1.35rem; margin-left: auto; font-size: .9375rem; }
.simple-nav a { color: var(--muted); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.simple-nav a:hover { color: var(--ink); border-bottom-color: var(--signal); }
@media (max-width: 560px) { .simple-nav .hide-sm { display: none; } }
