/* Old Glory: a navy broadcast header over a ballot sheet on white paper.
   Picked by Tim on October 5, 2026. See the Design page in the project hub. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-800-italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1d3461;
  --navy-deep: #14213d;
  --navy-2: #243f72;
  --navy-line: #3a5a92;
  --navy-grid: #22396a;
  --navy-dim: #c3cfe6;
  --red: #c8202f;
  --red-bright: #d62f2f;
  --paper: #f6f8fc;
  --sheet: #ffffff;
  --ink: #14213d;
  --muted: #4b5874;
  --line: #d3dbe9;
  --hover: #eef2f9;
  --picked: #fff3f0;
  --tag: #e6ebf4;
  --dem: #2563eb;
  --rep: #dc2626;
  --lib: #a16207;
  --gre: #15803d;
  --other: #8a94a8;
  --focus: #2f7cf6;
  --font: "Archivo", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[data-text-size="1"] body { zoom: 1.15; }
html[data-text-size="2"] body { zoom: 1.3; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- banner ---------- */
.notice {
  background: var(--navy-deep);
  color: #dfe6f3;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  padding: 8px 16px;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 2px; }
.notice strong { color: #fff; font-weight: 700; }

/* ---------- navy header ---------- */
.masthead {
  position: relative;
  color: #fff;
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--navy-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-grid) 1px, transparent 1px);
  background-size: 56px 56px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1.5px solid var(--navy-line);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 40px; height: 24px; flex: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(90deg, #fff 55%, transparent 55%);
}
.brand-name {
  display: block;
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy-dim);
  letter-spacing: .06em;
  margin-top: 4px;
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.nav a, .nav-print {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--navy-2);
  border: 1.5px solid var(--navy-line);
  padding: 9px 12px;
  line-height: 1.2;
  cursor: pointer;
}
.nav a:hover, .nav-print:hover { background: var(--navy-line); }
.nav .print-status { margin: 0; flex-basis: 100%; text-align: right; color: #fff; font-size: 15px; }
.picks-menu { position: relative; }
.picks-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  width: min(280px, calc(100vw - 32px));
  display: grid;
  gap: 6px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  text-align: left;
}
.picks-panel[hidden] { display: none; }
.picks-note { margin: 0; color: var(--muted); font-family: var(--font); font-size: 14px; font-weight: 500; line-height: 1.35; }
.picks-panel button {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  padding: 8px 10px;
  cursor: pointer;
}
.picks-panel button:hover { background: var(--tag); }
.picks-panel .print-status { margin: 0; color: var(--ink); text-align: left; font-family: var(--font); font-size: 14px; flex-basis: auto; }
.text-size { display: flex; border: 1.5px solid var(--navy-line); background: var(--navy-2); }
.text-size button {
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  line-height: 1;
  min-width: 40px;
  min-height: 38px;
  padding: 0 8px;
  cursor: pointer;
}
.text-size button + button { border-left: 1.5px solid var(--navy-line); }
.text-size button:nth-child(1) { font-size: 14px; }
.text-size button:nth-child(2) { font-size: 18px; }
.text-size button:nth-child(3) { font-size: 22px; }
.text-size button[aria-pressed="true"] { background: #fff; color: var(--navy); }

/* home hero */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: end;
  padding: 34px 0 36px;
}
.hero { min-width: 0; }
.hero-tag { display: inline-flex; flex-wrap: wrap; margin: 0 0 18px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero-tag span { padding: 6px 10px; background: var(--red-bright); color: #fff; }
.hero-tag span + span { background: #fff; color: var(--navy); }
.hero h1 {
  font-family: var(--font-cond);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(50px, 7.2vw, 100px);
  line-height: .9;
  letter-spacing: -.005em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero h1 span {
  display: block;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red-bright);
  text-decoration-thickness: .09em;
  text-underline-offset: .1em;
}
.hero p { font-size: 20px; color: #e3e9f5; margin: 0; max-width: 34em; }
.hero-side { display: grid; gap: 14px; min-width: 0; }
.countdown { display: grid; gap: 8px; }
.countdown-label { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-dim); }
.clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.clock > div { background: var(--navy-2); border: 1.5px solid var(--navy-line); padding: 10px 4px 7px; text-align: center; }
.clock b { display: block; font-family: var(--font-mono); font-weight: 600; font-size: clamp(30px, 4.2vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.clock span { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-dim); }

/* address search, inside the header on the home page */
.addr-box { background: var(--sheet); color: var(--ink); border: 2px solid #fff; padding: 12px 14px 10px; max-width: 100%; }
.addr-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin: 0; }
.addr-form label { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.addr-field { position: relative; min-width: 0; }
.addr-form input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 18px;
  padding: 11px 4.6rem 11px 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}
.addr-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  z-index: 1;
  margin: 0;
  padding: 7px 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
}
.addr-clear:hover { color: var(--ink); background: var(--hover); }
.addr-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 300px;
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 12px 30px rgba(20, 33, 61, .25);
}
.addr-list[hidden] { display: none; }
.addr-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 9px 10px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
}
.addr-list button[aria-selected="true"], .addr-list button:hover { background: var(--hover); }
.addr-kind {
  display: inline-block;
  min-width: 4.6rem;
  margin-right: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.addr-form > button {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 12px 18px;
  border: 0;
  background: var(--red-bright);
  color: #fff;
  cursor: pointer;
}
.addr-form > button:hover { background: var(--red); }
.addr-status { margin: 8px 0 0; color: var(--ink); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.addr-status:empty { display: none; }
.addr-help { margin-top: 8px; font-size: 15px; color: var(--muted); }
.addr-help summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.addr-note { margin: 8px 0 0; max-width: 46em; color: var(--muted); font-size: 15px; }
.addr-note a { overflow-wrap: anywhere; }

/* notice ticker */
.ticker { display: flex; align-items: stretch; background: #fff; color: var(--navy); border-bottom: 1.5px solid var(--navy-line); }
.ticker-label {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--red-bright);
  color: #fff;
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ticker-window { flex: 1 1 auto; overflow: hidden; min-width: 0; }
.ticker-track { display: flex; width: max-content; animation: tg-crawl 50s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker-list li {
  padding: 9px 48px 9px 0;
  white-space: nowrap;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.ticker-list li::before { content: "■"; font-size: 11px; margin-right: 10px; vertical-align: 3px; color: var(--red-bright); }
.ticker-pause {
  flex: none;
  border: 0;
  border-left: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0 14px;
  min-width: 72px;
  cursor: pointer;
}
@keyframes tg-crawl { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { width: auto; }
  .ticker-list { flex-wrap: wrap; padding: 4px 0; }
  .ticker-list li { padding: 4px 28px 4px 12px; white-space: normal; }
  .ticker-list[aria-hidden="true"], .ticker-pause { display: none; }
}

/* ---------- ballot paper ---------- */
main { padding-bottom: 8px; }
section.block { padding: 56px 0 0; }
section.block.paper { padding-top: 34px; }
.steps {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 3px solid var(--ink);
  background: var(--sheet);
}
.steps li { display: grid; gap: 3px; align-content: start; padding: 14px 18px; border-right: 1.5px solid var(--ink); }
.steps li:last-child { border-right: 0; }
.steps .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.steps a {
  font-weight: 900;
  font-stretch: 75%;
  font-size: 27px;
  line-height: 1.05;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.steps a:hover { text-decoration: underline; }
.steps li > span:last-child { font-size: 16px; }
.steps .hot { background: var(--red); color: #fff; }
.steps .hot a, .steps .hot .n { color: #fff; }

.section-head { display: block; margin-bottom: 26px; text-align: left; }
.section-head h2 {
  font-weight: 900;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: clamp(36px, 5vw, 58px);
  line-height: .95;
  color: var(--ink);
  margin: 0;
}
.ballot-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.stamp {
  display: inline-block;
  transform: rotate(-6deg);
  border: 3.5px solid var(--red);
  color: var(--red);
  padding: 6px 14px 5px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 4px;
  margin: 0 8px 6px 0;
}
.stamp b { display: block; font-weight: 900; font-size: 24px; letter-spacing: .03em; }
.kicker { display: block; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 46em; font-size: 17px; }
.ballot-head p strong { color: var(--ink); font-weight: 700; }
.ballot-head p a { font-weight: 700; }
.section-head .now { vertical-align: 1px; }

/* filter bar */
.race-controls { margin: 0 0 28px; }
.control-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  background: var(--sheet);
  border: 2px solid var(--ink);
  padding: 5px;
}
.chip-row, .sort-seg { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; flex: none; }
.control-label { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 6px 0 10px; white-space: nowrap; }
.chip, .seg {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
  padding: 11px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover, .seg:hover { background: var(--hover); }
.chip.is-on, .seg.is-on { background: var(--navy); color: #fff; }
.sort-seg { margin-left: 4px; padding-left: 4px; border-left: 1.5px solid var(--line); }

/* race cards */
.ballot-board [hidden] { display: none !important; }
.races { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
.race-heading {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  font-weight: 900;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
}
.race-heading::after { content: ""; flex: 1; height: 3px; background: var(--ink); }
.race-none { display: none; grid-column: 1 / -1; margin: 0; color: var(--muted); }
.ballot-board.is-az .race-heading { display: none; }
.ballot-board.is-az .race { order: var(--alpha); }
.race {
  background: var(--sheet);
  border: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}
.race-top { padding: 11px 16px 12px; background: var(--navy); color: #fff; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-dim); }
.race h3 {
  font-weight: 900;
  font-stretch: 82%;
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1.08;
  color: #fff;
  margin: 3px 0 0;
}
.race h3 a { color: inherit; text-decoration: none; }
.race h3 a:hover { text-decoration: underline; }
.recall { margin: 6px 0 0; font-size: 17px; font-weight: 600; color: #e3e9f5; }
.options { list-style: none; margin: 0; padding: 0; display: grid; }
.options li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px 11px 12px;
  min-height: 86px;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  border-left: 7px solid var(--line);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.options li:last-child { border-bottom: 0; }
.options li:hover { background: var(--hover); }
.options li:has(.pick[aria-pressed="true"]) { background: var(--picked); }
.options li.edge-party-dem { border-left-color: var(--dem); }
.options li.edge-party-rep { border-left-color: var(--rep); }
.options li.edge-party-lib { border-left-color: var(--lib); }
.options li.edge-party-gre { border-left-color: var(--gre); }
.options li.edge-party-none { border-left-color: var(--other); }
.who { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.who a, .options li a {
  font-weight: 800;
  font-stretch: 90%;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.12;
  color: var(--ink);
  text-decoration: none;
}
.who a:hover, .options li a:hover { text-decoration: underline; }
.pick-label { font-weight: 800; font-stretch: 90%; text-transform: uppercase; font-size: 20px; }
.party, .now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  padding: 4px 8px;
  background: var(--tag);
  color: var(--ink);
}
.party { margin-left: auto; }
.party.party-dem { background: var(--dem); color: #fff; }
.party.party-rep { background: var(--rep); color: #fff; }
.party.party-lib { background: var(--lib); color: #fff; }
.party.party-gre { background: var(--gre); color: #fff; }
.now { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.options .marks { display: flex; flex-direction: column; align-items: stretch; gap: 5px; margin-left: auto; flex: none; }
.options .marks .party, .options .marks .now { margin: 0; min-height: 27px; }
.race-foot, .voter-note { font-size: 16px; color: var(--muted); }
.race-foot { margin-top: auto; padding: 12px 16px 14px; border-top: 1.5px solid var(--line); }
.voter-note { margin: 0 0 16px; background: var(--sheet); border: 2px solid var(--ink); padding: 14px 16px 6px; }
.race-foot p, .voter-note p { margin: 0 0 8px; }
.race-foot a { overflow-wrap: anywhere; }
.ballot-links { margin: 0 0 8px; padding-left: 1.15rem; }
.ballot-links li { margin: 0 0 4px; }
.status { font-weight: 700; color: var(--ink); margin-right: 8px; }
.vote-link { margin: 30px 0 0; font-size: 19px; font-weight: 800; }

/* the oval */
.pick {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 46px;
  height: 26px;
  min-width: 46px;
  margin: 0;
  padding: 0;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  flex: none;
  overflow: hidden;
}
.pick::before { content: ""; position: absolute; inset: -2px; background: var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path .3s cubic-bezier(.6, .1, .3, 1); }
.pick[aria-pressed="true"]::before { clip-path: inset(0 0 0 0); }
.pick-on { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pick[aria-disabled="true"] { cursor: not-allowed; opacity: .45; }
.pick:hover { box-shadow: 0 0 0 3px var(--tag); }

/* small photos, or an empty box of the same size */
.face {
  width: 60px;
  height: 72px;
  flex: none;
  background: var(--tag);
}
img.face { object-fit: cover; object-position: center 18%; }
.face-empty {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(-45deg, #fff 0 6px, var(--tag) 6px 7.5px);
  box-shadow: inset 0 0 0 1.5px var(--muted);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
span.face { display: grid; }
.face-empty::after {
  content: "No official photo";
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  padding: 4px;
}

/* trust row and footer */
.trust { margin-top: 72px; background: var(--sheet); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; padding-top: 30px; padding-bottom: 30px; }
.trust h4 { margin: 0 0 6px; font-family: var(--font-cond); font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.trust h4::before { content: ""; width: 26px; height: 15px; border-radius: 50%; border: 2.5px solid var(--ink); background: linear-gradient(90deg, var(--ink) 55%, transparent 55%); flex: none; }
.trust p { margin: 0; font-size: 17px; color: var(--muted); }
/* Footer: a navy sign-off under a red-and-white flag stripe, pinned to the bottom of short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.site-foot {
  margin-top: 72px;
  background: var(--navy);
  color: var(--navy-dim);
  font-size: 17px;
  border-top: 10px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--red) 0 44px, #fff 44px 52px) 10;
}
.site-foot a { color: #fff; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.site-foot a:hover { color: #ffd9dc; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-top: 44px; padding-bottom: 40px; }
.foot-brand p { margin: 0 0 12px; max-width: 30rem; line-height: 1.5; }
.foot-brand .foot-name {
  display: flex; align-items: center; gap: 12px;
  color: #fff; font-family: var(--font-cond); font-weight: 800; font-size: 26px;
  line-height: 1.05; text-transform: uppercase; letter-spacing: .01em;
}
.foot-oval { width: 34px; height: 20px; border-radius: 50%; border: 3px solid #fff; background: linear-gradient(90deg, #fff 55%, transparent 55%); flex: none; }
.foot-stamp {
  display: inline-block; margin-top: 6px !important;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; border: 2px solid var(--red-bright); background: rgba(214, 47, 47, .18);
  padding: 5px 10px; transform: rotate(-2deg);
}
.foot-col h2 {
  margin: 4px 0 14px; color: #fff; font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid var(--navy-line);
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.foot-col a::before { content: ""; width: 14px; height: 9px; border-radius: 50%; border: 2px solid var(--navy-dim); flex: none; transition: background .15s; }
.foot-col a:hover::before, .foot-col a:focus-visible::before { background: #fff; border-color: #fff; }
.foot-col a:hover { text-decoration: underline; }
.foot-promises { background: var(--navy-deep); }
.foot-promises .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 18px; padding-bottom: 18px; }
.foot-promises ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-promises li {
  display: flex; align-items: center; gap: 8px; color: #fff;
  font-family: var(--font-cond); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .03em;
}
.foot-promises li::before { content: ""; width: 9px; height: 9px; background: var(--red-bright); transform: rotate(45deg); flex: none; }
.foot-promises p { margin: 0; font-size: 15px; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; padding-top: 34px; }
  .foot-name { font-size: 23px; }
}

/* About this guide */
.about-hero { background: var(--sheet); border-bottom: 3px solid var(--ink); }
.about-hero .wrap { padding-top: 34px; padding-bottom: 38px; }
.about-kicker { margin: 18px 0 6px; font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.about-hero h1 {
  margin: 0 0 16px; color: var(--ink);
  font-weight: 900; font-stretch: 75%; text-transform: uppercase; line-height: .95;
  font-size: clamp(42px, 7vw, 84px);
}
.about-lead { margin: 0; max-width: 40rem; font-size: 22px; line-height: 1.45; color: var(--muted); }
.about-body { padding-top: 36px; }
.promise-grid { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.promise { background: var(--sheet); border: 3px solid var(--ink); border-top: 10px solid var(--navy); padding: 18px 20px 20px; }
.promise:nth-child(4) { border-top-color: var(--red); }
.promise h2 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px;
  font-family: var(--font-cond); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; color: var(--ink);
}
.promise h2::before { content: ""; width: 26px; height: 15px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--ink); flex: none; }
.promise p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.about-section { margin: 0 0 52px; }
.about-h {
  display: flex; align-items: center; gap: 14px; margin: 0 0 20px;
  font-family: var(--font-cond); font-weight: 800; font-size: clamp(30px, 4vw, 40px); text-transform: uppercase; color: var(--ink);
}
.about-h::after { content: ""; flex: 1; height: 3px; background: var(--ink); }
.build-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; border: 3px solid var(--ink); background: var(--sheet); }
.build-steps li { counter-increment: step; display: grid; grid-template-columns: 76px 1fr; column-gap: 20px; padding: 20px 22px 18px 0; border-top: 1.5px solid var(--line); }
.build-steps li:first-child { border-top: 0; }
.build-steps li::before {
  content: counter(step, decimal-leading-zero); grid-row: 1 / span 2;
  align-self: stretch; display: grid; place-items: start center; padding-top: 2px;
  font-family: var(--font-cond); font-weight: 800; font-size: 40px; line-height: 1; color: var(--red);
  border-right: 1.5px solid var(--line);
}
.build-steps h3 { margin: 0 0 6px; line-height: 1.1; font-family: var(--font-cond); font-weight: 800; font-size: 25px; text-transform: uppercase; color: var(--ink); }
.build-steps p { margin: 0; font-size: 18px; line-height: 1.55; }
/* Who built this: a short first-person note, live numbers, and a corrections line */
.who-letter { background: var(--sheet); border: 3px solid var(--ink); border-top: 10px solid var(--navy); padding: 28px; }
.who-copy { max-width: 52rem; }
.who-copy p { margin: 0 0 14px; font-size: 22px; line-height: 1.5; color: var(--ink); }
.who-stats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 3px solid var(--ink); background: var(--navy); }
.who-stats li { padding: 18px 16px 16px; text-align: center; border-left: 1.5px solid var(--navy-line); color: #fff; }
.who-stats li:first-child { border-left: 0; }
.who-stats strong { display: block; font-family: var(--font-cond); font-weight: 800; font-size: 54px; line-height: 1; }
.who-stats li:last-child strong { color: #ff9aa3; }
.who-stats span { display: block; margin-top: 6px; font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-dim); }
.who-fix { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 18px 22px; background: var(--sheet); border: 3px solid var(--ink); border-left: 12px solid var(--red); }
.who-fix h3 { margin: 0; font-family: var(--font-cond); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--ink); }
.who-fix p { margin: 0; font-size: 19px; }
@media (max-width: 720px) {
  .who-letter { padding: 20px; }
  .who-copy p { font-size: 20px; }
  .who-stats { grid-template-columns: 1fr 1fr; }
  .who-stats li:nth-child(3) { border-left: 0; }
  .who-stats li:nth-child(n+3) { border-top: 1.5px solid var(--navy-line); }
  .who-stats strong { font-size: 44px; }
}
@media (max-width: 520px) {
  .build-steps li { grid-template-columns: 56px 1fr; column-gap: 14px; padding-right: 14px; }
  .build-steps li::before { font-size: 30px; }
  .about-lead { font-size: 19px; }
}
@media print { .site-foot { display: none; } }

/* ---------- inner pages ---------- */
.sheet { padding-block: 34px 72px; }
.sheet h1 {
  font-weight: 900;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(38px, 5.4vw, 60px);
  color: var(--ink);
  margin: 8px 0 20px;
  line-height: .98;
}
/* How to vote: its one h1 keeps the section-head h2 look. */
.sheet .section-head h1 {
  font-weight: 900;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: clamp(36px, 5vw, 58px);
  line-height: .95;
  color: var(--ink);
  margin: 0;
}
.crumbs { font-family: var(--font-mono); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.role { background: var(--sheet); border: 3px solid var(--ink); padding: 18px 20px 8px; margin: 0 0 24px; }
.role h2, .prior-races > h2 {
  font-family: var(--font-cond);
  font-size: 25px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 18px 0 8px;
}
.role h2:first-child { margin-top: 0; }
.role p { margin: 0 0 10px; font-size: 18px; line-height: 1.55; }
.role .source { margin-top: 0; margin-bottom: 8px; }
.role .area-map { margin: 4px 0 14px; background: var(--paper); border: 1.5px solid var(--line); overflow: hidden; }
.role .area-map img { display: block; width: auto; height: auto; max-width: 100%; max-height: 640px; margin: 0 auto; }
.role .area-map figcaption { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); padding: 8px 12px 10px; }
.seat-history { margin-top: 14px; padding-top: 6px; border-top: 1.5px solid var(--line); }
.history-range { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 4px 0 8px; background: var(--sheet); border: 2px solid var(--ink); padding: 4px; }
.holders { list-style: none; margin: 0 0 8px; padding: 0; }
.holder { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); padding: 10px 0 2px; }
.holder[hidden] { display: none !important; }
.holder-copy { flex: 1 1 auto; min-width: 0; }
.seat-history .holder-copy p { margin: 0 0 4px; }
.history-unofficial { font-weight: 700; }
.holder-name { font-weight: 800; }
.holder-party { font-weight: 600; color: var(--muted); }
.holder-years, .holder-note, .history-status, .history-empty { color: var(--muted); }
.history-status { font-size: 16px; }
.fact, .names li { background: var(--sheet); border: 2px solid var(--ink); padding: 16px 18px; margin: 0 0 12px; }
.fact h2, .source { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.fact p { margin: 0; }
.fact-compare { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 12px; align-items: stretch; margin: 0 0 12px; }
.fact-compare > .fact { margin: 0; min-width: 0; }
.source { font-family: var(--font); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 15px; margin-top: 6px; overflow-wrap: anywhere; }
.about-list { margin-top: 10px; }
.about-list summary { cursor: pointer; font-size: 17px; font-weight: 700; color: var(--ink); }
.about-list[open] summary { margin-bottom: 4px; }
.sheet a { overflow-wrap: anywhere; }
.names { list-style: none; margin: 0; padding: 0; }
.names li { font-weight: 600; }
.name-line { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; }
.name-line .who a { font-weight: 800; font-stretch: 88%; text-transform: uppercase; font-size: 23px; text-decoration: none; }
.name-line .who a:hover { text-decoration: underline; }
.prior-races { margin-top: 14px; }
.prior-races > p { margin: 0 0 10px; }
.names .prior-races { font-weight: 400; }

/* candidate pages */
.person-head { display: flex; align-items: flex-start; gap: 24px; }
.person-copy { flex: 1 1 auto; min-width: 0; }
.person-copy h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 0; }
.person-photos { flex: none; width: 180px; }
.portrait { width: 100%; margin: 4px 0 16px; }
.portrait img, .portrait .face-empty { display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--tag); border: 3px solid var(--ink); }
.portrait .face-empty::after { font-size: 12px; }
.portrait .face-empty + figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.portrait img { height: auto; object-fit: cover; object-position: center 15%; }
.portrait figcaption { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.portrait.submitted figcaption { font-weight: 700; color: var(--ink); }

/* how to vote */
.plan { display: block; }
.rules { margin: 8px 0 0; padding: 0; list-style: none; text-align: left; }
.rules li { margin: 0 0 12px; padding: 0 0 0 22px; font-size: 18px; position: relative; }
.rules li::before { content: "■"; position: absolute; left: 0; top: 0; font-size: 12px; color: var(--red); }
.sheet h3 { font-family: var(--font-cond); font-weight: 800; font-size: 28px; text-transform: uppercase; margin: 26px 0 8px; line-height: 1.05; }
.info { background: var(--sheet); border: 2px solid var(--ink); padding: 24px 26px; }
.info h3 { font-size: 22px; color: var(--ink); margin: 0 0 8px; }
.info p { margin: 0 0 8px; font-size: 18px; }
.info .small { font-size: 16px; color: var(--muted); }
.info ul { margin: 6px 0 10px; padding-left: 20px; font-size: 17px; }
.info li { margin-bottom: 6px; }
.ev-section { margin: 28px 0 8px; padding: 26px 0 8px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.ev-section h3 { font-weight: 900; font-family: var(--font); font-stretch: 75%; font-size: 36px; margin: 0 0 8px; }
.ev-section > p { margin: 0 0 16px; font-size: 18px; max-width: 42em; }
.ev-section .ev-map { margin: 0 0 20px; }
.ev-section .ev-map img { display: block; width: 100%; height: auto; border: 3px solid var(--ink); }
.ev-section .ev-map figcaption { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.ev-section ol.ev-locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 6px 0 16px; padding: 0; list-style: none; font-size: 17px; }
.ev-section ol.ev-locations > li {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  column-gap: 14px;
  row-gap: 2px;
  margin: 0;
  padding: 16px 18px;
  background: var(--sheet);
  border: 2px solid var(--ink);
  line-height: 1.45;
}
.ev-section ol.ev-locations .ev-num {
  grid-row: 1 / span 8;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
}
.ev-section ol.ev-locations .ev-line { display: block; }
.ev-section ol.ev-locations .ev-hours { display: block; margin-top: 2px; color: var(--ink); font-family: var(--font-mono); font-size: 15px; }
.ev-section ol.ev-locations .ev-line + .ev-hours { margin-top: 8px; }
.ev-section ol.ev-locations a { font-weight: 800; }
.hours { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; background: var(--tag); color: var(--ink); font-weight: 700; font-size: 16px; padding: 6px 14px; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; }
  .nav .print-status { text-align: left; }
  .trust .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .races { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .steps li:last-child { border-bottom: 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  body { font-size: 18px; }
  .fact-compare { grid-template-columns: 1fr; }
  .clock { gap: 5px; }
  .clock b { font-size: clamp(26px, 8vw, 40px); }
  .addr-form { grid-template-columns: minmax(0, 1fr); }
  .addr-form > button { width: 100%; }
  .control-bar { flex-wrap: wrap; overflow-x: visible; align-items: stretch; }
  .chip-row { flex-wrap: wrap; flex: 1 1 auto; }
  .sort-seg { flex: 1 1 100%; margin-left: 0; padding: 6px 0 0; border-left: 0; border-top: 1.5px solid var(--line); }
  .race-heading { font-size: 30px; }
  .options li {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 6px;
  }
  .options .marks { grid-column: 3; flex-direction: row; flex-wrap: wrap; margin: 0; }
  .options li:has(.marks) .who { align-self: end; }
  .person-head { flex-direction: column; }
  .person-photos { width: 150px; }
  .name-line { flex-wrap: wrap; }
  .name-line .who { min-width: 0; flex: 1 1 8rem; }
  .stamp { transform: rotate(-4deg); }
  .ticker-label { padding: 0 10px; font-size: 16px; }
  .topbar { gap: 14px; padding: 14px 0; }
  .nav { gap: 5px; }
  .nav a, .nav-print { font-size: 13px; padding: 8px 9px; }
  .brand-name { font-size: 22px; }
  .hero-grid { padding: 24px 0 26px; }
  .steps { margin-bottom: 30px; }
  .steps li { padding: 10px 14px; }
  .steps a { font-size: 23px; }
  .ticker-pause { min-width: 60px; padding: 0 10px; }
}

/* ---------- print ---------- */
.print-sheet { display: none; }
@media print {
  body.print-picks { background: #fff !important; color: #111 !important; }
  body.print-picks > :not(.print-sheet) { display: none !important; }
  body.print-picks .print-sheet { display: block; max-width: 40rem; margin: 0; padding: 0; }
  body.print-picks .print-sheet h1 { font-size: 28px; margin: 0 0 8px; }
  body.print-picks .print-sheet h2 { font-size: 18px; margin: 16px 0 4px; }
  body.print-picks .print-sheet ul { margin: 0 0 8px; padding-left: 1.2rem; }
  .ticker, .text-size, .addr-box { display: none !important; }
  .masthead { background: #fff !important; color: #000 !important; }
  .pick { border: 2px solid #000 !important; background: #fff !important; opacity: 1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pick[aria-pressed="true"] { background: #000 !important; }
}

/* prior races fold on race pages; the candidate page shows them open */
.prior-fold { margin-top: 12px; border-top: 1.5px solid var(--line); padding-top: 10px; font-weight: 400; }
.prior-fold summary { cursor: pointer; font-family: var(--font-mono); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.prior-fold .prior-races > h2 { display: none; }

/* race pages: each candidate's name links to their page, and looks like a link */
.names .name-line .who a,
.fact-name a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--navy-line);
}
.names .name-line .who a:hover,
.fact-name a:hover { text-decoration-color: var(--red); }
.fact-name { margin: 0 0 10px; font-weight: 800; font-stretch: 88%; text-transform: uppercase; font-size: 21px; line-height: 1.15; }
.fact-name a { color: var(--ink); }

/* candidate pages: fact row, notes, prior races table, others in this race */
.person-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 16px 0 0; border: 2px solid var(--ink); background: var(--sheet); width: fit-content; max-width: 100%; }
.person-facts > div { padding: 9px 16px 10px; border-right: 1.5px solid var(--line); min-width: 0; }
.person-facts > div:last-child { border-right: 0; }
.person-facts dt { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.person-facts dd { margin: 3px 0 0; font-size: 17px; font-weight: 700; }
.person-facts dd .party, .person-facts dd .now { margin: 0; }
.person-notes, .others { margin-top: 26px; }
.person-notes > h2, .others > h2 {
  font-family: var(--font-cond); font-size: 25px; font-weight: 800; text-transform: uppercase;
  color: var(--ink); margin: 22px 0 8px; display: flex; align-items: center; gap: 12px;
}
.person-notes > h2::after, .others > h2::after, .prior-races > h2::after { content: ""; flex: 1; height: 2px; background: var(--ink); }
.prior-races > h2 { display: flex; align-items: center; gap: 12px; }
.none-note { margin: 0 0 12px; color: var(--muted); font-size: 17px; }
.table-scroll { overflow-x: auto; margin: 0 0 12px; }
.prior-table { width: 100%; border-collapse: collapse; background: var(--sheet); border: 2px solid var(--ink); font-size: 16px; }
.prior-table th { text-align: left; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: var(--navy); padding: 9px 12px; }
.prior-table td { vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.prior-table td:first-child { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.cell-note { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.vote-lines { list-style: none; margin: 0; padding: 0; }
.vote-lines li { margin: 0 0 2px; }
.vote-lines li.self { font-weight: 800; }
.prior-more summary { cursor: pointer; font-family: var(--font-mono); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 10px; }
.other-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.other-list li { display: flex; align-items: center; gap: 14px; background: var(--sheet); border: 2px solid var(--ink); padding: 10px 14px; }
.other-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.other-copy a { font-weight: 800; font-stretch: 90%; text-transform: uppercase; font-size: 19px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--navy-line); flex-basis: 100%; }
.other-copy .party { margin-left: 0; }
.compare-link { margin: 12px 0 0; }
.compare-link a { display: inline-block; font-family: var(--font-cond); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; background: var(--navy); color: #fff; padding: 10px 16px; }
.compare-link a:hover { background: var(--red); }
@media (max-width: 720px) {
  .person-facts { width: 100%; }
  .person-facts > div { flex: 1 1 45%; border-bottom: 1.5px solid var(--line); }
  .prior-table thead { display: none; }
  .prior-table, .prior-table tbody, .prior-table tr, .prior-table td { display: block; width: 100%; }
  .prior-table tr { border-top: 2px solid var(--ink); padding: 6px 0; }
  .prior-table tr:first-child { border-top: 0; }
  .prior-table td { border-top: 0; padding: 4px 12px; }
  .prior-table td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}
.portrait .face-empty {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(-45deg, #fff 0 8px, var(--tag) 8px 10px);
}

/* candidate pages: campaign website and social accounts */
.own-pages { margin-top: 26px; }
.own-pages > h2 {
  font-family: var(--font-cond); font-size: 25px; font-weight: 800; text-transform: uppercase;
  color: var(--ink); margin: 22px 0 8px; display: flex; align-items: center; gap: 12px;
}
.own-pages > h2::after { content: ""; flex: 1; height: 2px; background: var(--ink); }
.own-note { margin: 0 0 12px; font-size: 16px; color: var(--muted); }
.own-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.own-list li { display: grid; gap: 2px; background: var(--sheet); border: 2px solid var(--ink); padding: 9px 14px 10px; min-width: 0; }
.own-kind { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.own-list a { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.own-list li { grid-template-columns: 34px minmax(0, 1fr); align-items: center; column-gap: 12px; }
.own-icon { width: 30px; height: 30px; color: var(--ink); flex: none; }
.own-copy { display: grid; gap: 2px; min-width: 0; }
@media print { .own-icon path { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* the working-copy notice and the navy bar stay at the top while the page scrolls */
html { scroll-padding-top: 168px; }
.sitebar .notice { padding-left: 32px; padding-right: 32px; }
.sitebar {
  position: sticky;
  top: 0;
  z-index: 40;
  color: #fff;
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--navy-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  box-shadow: 0 2px 10px rgba(20, 33, 61, .25);
}
.sitebar .topbar { padding: 12px 0; border-bottom: 0; }
.masthead-home .hero-grid { border-top: 1.5px solid var(--navy-line); }
@media (max-width: 980px) {
  html { scroll-padding-top: 210px; }
}
@media (max-width: 480px) {
  html { scroll-padding-top: 320px; }
}
@media (max-width: 980px) {
  .sitebar .topbar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 0; }
  .sitebar .wrap { position: relative; }
  .sitebar .nav { flex-wrap: wrap; overflow: visible; max-width: 100%; }
  .sitebar .nav a, .sitebar .nav-print { white-space: nowrap; }
  .picks-menu { position: static; }
  .picks-panel { left: 16px; right: 16px; width: auto; top: calc(100% + 6px); }
}
@media (max-width: 720px) {
  .brand-mark { width: 30px; height: 18px; }
  .brand-name { font-size: 18px; }
}
@media print { .sitebar { position: static; box-shadow: none; } }
@media (max-width: 980px) { .sitebar .text-size { order: -1; flex: none; } }

/* AI-written summary: a separate, labeled layer, closed until opened */
.ai-bio-wrap { margin-top: 26px; }
.ai-bio { border: 2px dashed var(--navy-line); background: var(--sheet); }
.ai-bio > summary {
  cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 14px 18px; font-family: var(--font-cond); font-size: 24px; font-weight: 800; text-transform: uppercase; color: var(--ink);
}
.ai-bio > summary::-webkit-details-marker { display: none; }
.ai-bio > summary::after { content: "+"; margin-left: auto; font-family: var(--font-mono); font-size: 22px; }
.ai-bio[open] > summary::after { content: "\2212"; }
.ai-badge { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; background: var(--navy); color: #fff; padding: 3px 8px; }
.ai-sum-note { font-family: var(--font); font-size: 15px; font-weight: 400; text-transform: none; color: var(--muted); }
.ai-bio[open] > summary { border-bottom: 1.5px dashed var(--line); }
.ai-bio > p, .ai-bio > ol { margin-left: 18px; margin-right: 18px; }
.ai-label { margin-top: 14px; font-size: 15px; color: var(--muted); background: var(--tag); padding: 10px 12px; }
.ai-bio > p:not(.ai-label) { font-size: 18px; line-height: 1.6; }
.ai-ref {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; vertical-align: super; line-height: 0;
  margin-left: 2px; padding: 0 3px; text-decoration: none; color: var(--navy); background: var(--tag);
}
.ai-sources { font-size: 14px; color: var(--muted); padding-left: 22px; margin-bottom: 16px; }
.ai-sources li { margin-bottom: 4px; }
.about-hero h1 span { display: block; }
.about-hero h1 .accent { color: var(--red); }
/* the homepage trust row already closes the page, so the footer sits right under it */
main:has(> .trust:last-child) ~ .site-foot { margin-top: 0; }

/* header controls share one height: How to vote, Your marked choices, and the text-size group */
.nav a, .nav-print { box-sizing: border-box; height: 40px; display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.text-size { box-sizing: border-box; height: 40px; }
.text-size button { min-height: 0; height: 100%; }

/* area maps: drawn by map-tools/make_maps.py, shown full width with a link to the full-size file */
.role .area-map { border: 3px solid var(--ink); background: #fff; }
.role .area-map img { width: 100%; max-height: none; }
.map-open { position: relative; display: block; }
.map-zoom {
  position: absolute; right: 12px; top: 12px;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--navy); border: 2px solid #fff; padding: 6px 10px;
  opacity: 0; transition: opacity .15s;
}
.map-open:hover .map-zoom, .map-open:focus-visible .map-zoom { opacity: 1; }
@media (hover: none) { .map-zoom { opacity: 1; top: auto; bottom: 10px; right: 10px; font-size: 12px; } }
.role .area-map figcaption { border-top: 1.5px solid var(--line); }
.map-open picture { display: block; }

/* CulturaMinds: a quiet credit in the footer, and the logo on the About page */
.foot-credit { color: var(--navy-dim); }
.site-foot .foot-credit a { color: #e3d1ff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-foot .foot-credit a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.who-letter { display: grid; grid-template-columns: 1fr minmax(200px, 300px); gap: 32px; align-items: center; }
.who-logo { display: block; padding: 14px; border-left: 1.5px solid var(--line); }
.who-logo img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) {
  .who-letter { grid-template-columns: 1fr; gap: 18px; }
  .who-logo { border-left: 0; border-top: 1.5px solid var(--line); padding: 18px 0 0; max-width: 260px; }
}

/* header brand: the date and the CulturaMinds byline share one line under the site name */
.brand-home { display: flex; text-decoration: none; }
a.brand-name { color: #fff; text-decoration: none; }
a.brand-name:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 5px;
}
.brand-sub { margin-top: 0; white-space: nowrap; }
.brand-by {
  margin: 0 0 0 auto;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.2;
  color: var(--navy-dim);
  text-align: right;
  white-space: nowrap;
}
.brand-by a { color: #e3d1ff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-by a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cm-dots { display: inline-block; width: 2.6em; height: .62em; margin: 0 .45em 0 .2em; vertical-align: .05em; }
html[data-text-size="1"] .brand-by,
html[data-text-size="1"] .brand-sub,
html[data-text-size="2"] .brand-by,
html[data-text-size="2"] .brand-sub { white-space: normal; }
@media (max-width: 720px) {
  .brand { width: 100%; }
  .brand-text { flex: 1; }
  .brand-meta { margin-top: 3px; gap: 2px 10px; flex-wrap: wrap; }
  .brand-by { font-size: 12px; margin-left: 0; text-align: left; white-space: normal; }
  .brand-sub { font-size: 12px; }
}
@media (max-width: 380px) {
  .brand { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 3px; align-items: center; }
  .brand-home { grid-column: 1; grid-row: 1; }
  .brand-text { display: contents; }
  .brand-name { grid-column: 2; grid-row: 1; }
  .brand-meta { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
}
