/* Theme tokens */
:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #fff;
  --ink: #192a37;
  --muted: #536674;
  --line: #d5dfe5;
  --accent: #006e82;
  --empty: #eeeef0;
  --hatch: #a0a6ae;
  --county-line: #c9c6d3;
  --y2026: #2a78d6;
  --y2024: #eb6834;
  --y2022: #1baf7a;
  --y2020: #eda100;
  --shadow: #0005;
  --focus: #b64b00;
  --endorse: #6a3d9a;
  --pick: #192a37;
  --party-d: #1f5fbf;
  --party-r: #c62f36;
  --party-g: #2e8540;
  --party-l: #f2c300;
  --party-i: #6f7780;
}

/* Base typography */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-variant-numeric: tabular-nums;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

header,footer {
  max-width: 1600px;
  margin: auto;
  padding-block: 24px;
}

h1 {
  font-size: clamp(1.6rem,3vw,2.6rem);
  line-height: 1.15;
  margin: 6px 0 16px;
}

h2,h3,h4 {
  line-height: 1.25;
}

h3 {
  margin-top: 28px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .8rem;
  font-weight: 700;
}

#headline {
  font-size: 1.2rem;
  font-weight: 650;
}

.muted,#updated {
  color: var(--muted);
  font-size: .88rem;
}

/* Page layout and controls */
main {
  display: grid;
  grid-template-columns: 280px minmax(0,1.2fr) minmax(0,1fr);
  align-items: start;
  gap: 24px;
  max-width: 1600px;
  margin: auto;
}

.controls-section,.map-section,aside {
  min-width: 0;
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.controls {
  display: grid;
  gap: 14px;
}

.lookup-title {
  margin: 6px 0 -6px;
  font-size: 1.05rem;
}

label {
  display: grid;
  gap: 5px;
  font-size: .88rem;
  font-weight: 650;
}

select,input,button {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  min-width: 0;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-weight: 650;
}

input[type=range] {
  width: 100%;
  accent-color: var(--accent);
}

form {
  display: flex;
  gap: 8px;
  align-items: end;
}

form label {
  flex: 1;
  min-width: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* County map and legend */
.map-wrap {
  position: relative;
}

#map {
  display: block;
  width: 100%;
  height: auto;
}

.county {
  stroke: var(--county-line);
  stroke-width: .6;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
}

.county:hover,.county:focus,.county.selected {
  stroke: var(--ink);
  stroke-width: 2;
}

.county:focus {
  outline: none;
  filter: brightness(.85);
}

#tooltip {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 8px 12px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 6px;
  pointer-events: none;
  z-index: 2;
}

#legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .8rem;
}

#legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

#legend i {
  width: 22px;
  height: 14px;
  display: inline-block;
  border: 1px solid var(--line);
}

/* Detail panels and tables */
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-top h2 {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .78rem;
}

th,td {
  text-align: right;
  padding: 9px 5px;
  border-bottom: 1px solid var(--line);
}

th:first-child,td:first-child {
  text-align: left;
}

th {
  white-space: normal;
}

td {
  white-space: nowrap;
}

/* Turnout chart */
.chart {
  width: 100%;
  height: auto;
  color: var(--muted);
}

.chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
}

/* Polling places and demographics */
.county-contact {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: .88rem;
}

.county-contact h4 {
  margin: 0 0 8px;
}

.county-contact p {
  margin: 6px 0 0;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tabs [aria-selected=true] {
  background: var(--accent);
  color: var(--surface);
}

.places {
  list-style: none;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
}

.places li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.places p {
  margin: 4px 0;
}

.places small {
  display: block;
}

.bar-row {
  margin: 10px 0;
  font-size: .85rem;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bar-track {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
}

section p {
  overflow-wrap: anywhere;
}

footer {
  font-size: .88rem;
}

summary {
  cursor: pointer;
  font-weight: 650;
}

#status:empty {
  display: none;
}

body.county-open #panel {
  border-color: var(--accent);
}

/* Small screens */
@media(max-width:799px) {
  header,footer {
    padding-block: 20px;
  }
  main {
    display: block;
  }
  .controls-section,.map-section,aside {
    padding: 16px;
  }
  .map-section,aside {
    margin-top: 16px;
  }
  body.county-open #panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    max-height: 78dvh;
    overflow-y: auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 50px var(--shadow);
  }
  .panel-top {
    position: sticky;
    top: -16px;
    background: var(--surface);
    padding: 12px 0;
    z-index: 2;
  }
  th,td {
    padding: 7px 3px;
    font-size: .7rem;
  }
}

/* Chart interaction and status notes */
.chart-wrap {
  position: relative;
}

.chart-tooltip {
  position: absolute;
  top: 12px;
  z-index: 2;
  pointer-events: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: .8rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.chart-grid line {
  stroke: var(--line);
  stroke-width: .5;
}

.chart-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-key i {
  width: 18px;
  height: 3px;
}

.chart {
  touch-action: pan-y;
}

.partial-note {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 400;
}

.partial-note:empty {
  display: none;
}

.no-data-swatch {
  background: repeating-linear-gradient(135deg,var(--hatch) 0,var(--hatch) 1px,var(--empty) 1px,var(--empty) 4.24px);
}

/* Dark themes */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111b23;
    --surface: #192630;
    --ink: #eef4f8;
    --muted: #b1c1cc;
    --line: #3a4d5c;
    --accent: #78d9e4;
    --empty: #343b42;
    --hatch: #727d87;
    --focus: #ffb76b;
    --county-line: #4a4658;
    --y2026: #3987e5;
    --y2024: #d95926;
    --y2022: #199e70;
    --y2020: #c98500;
    --endorse: #c7a6f2;
    --pick: #e6edf2;
    --party-d: #1f5fbf;
    --party-r: #c62f36;
    --party-g: #2e8540;
    --party-l: #f2c300;
    --party-i: #6f7780;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111b23;
  --surface: #192630;
  --ink: #eef4f8;
  --muted: #b1c1cc;
  --line: #3a4d5c;
  --accent: #78d9e4;
  --empty: #343b42;
  --hatch: #727d87;
  --focus: #ffb76b;
  --county-line: #4a4658;
  --y2026: #3987e5;
  --y2024: #d95926;
  --y2022: #199e70;
  --y2020: #c98500;
  --endorse: #c7a6f2;
  --pick: #e6edf2;
  --party-d: #1f5fbf;
  --party-r: #c62f36;
  --party-g: #2e8540;
  --party-l: #f2c300;
  --party-i: #6f7780;
}

/* Controls and the centered map stay alongside the scrolling details. */
.controls-section,.map-section {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
}
.controls-section {
  padding: 16px;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 24px);
  overflow-y: auto;
}
.map-section {
  display: grid;
  align-items: center;
  min-height: min(700px, calc(100dvh - env(safe-area-inset-top, 0px) - 24px));
  padding: 0;
}
#map {
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 24px);
}
#address-form { flex-wrap: wrap; }
#address-form label { flex-basis: 100%; }
#address-choices { display: grid; gap: 8px; }
#address-status:empty,#address-choices:empty { display: none; }
.turnout-count { display: block; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.2; }
@media (min-width:800px) and (max-width:1099px) {
  main { grid-template-columns: 280px minmax(0,1fr); }
  #panel { grid-column: 1 / -1; }
  .controls-section,.map-section { position: static; }
}
@media (max-width:799px) {
  .controls-section,.map-section { position: static; max-height: none; min-height: 0; }
  #map { max-height: none; }
}

/* Compact dashboard, using the same light and dark surfaces. */
:root { --good: #137747; --critical: #bb3232; --history: #8447bb; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --good: #55db99; --critical: #ff8b8b; --history: #c78cf1; }
}
:root[data-theme="dark"] { --good: #55db99; --critical: #ff8b8b; --history: #c78cf1; }
[hidden] { display: none !important; }
.map-wrap { width: 100%; min-width: 0; overflow: hidden; border-radius: inherit; }
#map { touch-action: none; }
.zoom-controls { position: absolute; top: 12px; left: 12px; display: grid; box-shadow: 0 2px 8px var(--shadow); border-radius: 7px; }
.zoom-controls button { width: 38px; height: 38px; padding: 4px; font-size: 1.4rem; line-height: 1; }
.zoom-controls svg { width: 22px; height: 22px; vertical-align: middle; }
#legend { position: absolute; bottom: 12px; left: 12px; display: grid; gap: 6px; width: min(300px, calc(100% - 24px)); padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 8px var(--shadow); font-size: .72rem; }
.legend-gradient { height: 12px; border: 1px solid var(--line); border-radius: 6px; }
.legend-ticks { display: flex; justify-content: space-between; }
#legend .legend-ticks span { display: block; }
#panel { overflow-anchor: none; container-type: inline-size; }
.panel-top { margin-bottom: 12px; }
.panel-top h2 { font-size: 1.35rem; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat-tile { padding: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: .75rem; overflow-wrap: anywhere; }
.stat-tile strong { display: block; font-size: clamp(1rem, 5cqi, 1.55rem); line-height: 1.25; margin-bottom: 6px; }
.stat-tile p { margin-bottom: 0; }
.delta { display: flex; align-items: baseline; gap: 5px; font-size: .75rem; margin-top: 8px; }
.delta svg { width: 10px; height: 10px; flex-shrink: 0; }
.positive { color: var(--good); }
.negative { color: var(--critical); }
.panel-tabs { margin: 14px 0 8px; gap: 4px; border-bottom: 1px solid var(--line); }
.panel-tabs button { flex: 1; padding: 8px 4px; font-size: .75rem; border-radius: 4px 4px 0 0; }
.detail-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-block: 12px; }
.detail-card h3 { margin: 0 0 8px; font-size: .95rem; }
.detail-card p { margin-bottom: 0; }
.detail-card .bar-track { height: 14px; }
.detail-card .bar-fill { background: var(--history); }
.history-chart { display: block; margin-top: 6px; }
#summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1600px; width: 100%; margin: 12px auto; font-size: .75rem; }
#summary-strip > section { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
#summary-strip h3 { font-size: .85rem; margin: 0 0 8px; line-height: 1.25; }
#summary-strip p { margin: 6px 0; }
#summary-strip a { display: inline-block; margin-left: 8px; }
.overview-share { font-size: 1.9rem; line-height: 1.1; }
.rank-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 6px; align-items: center; width: 100%; padding: 2px 0; border: 0; border-radius: 0; text-align: left; font-size: .73rem; font-weight: 400; }
.rank-row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row:hover { background: var(--bg); }
.rank-number { border-radius: 50%; background: var(--accent); color: var(--surface); width: 18px; height: 18px; display: grid; place-items: center; font-size: .65rem; }
#sources-dialog { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: min(640px, calc(100% - 32px)); max-height: 85dvh; }
#sources-dialog::backdrop { background: var(--shadow); }
#sources-close { float: right; }
@container (max-width: 340px) { .stat-tiles { grid-template-columns: 1fr; } .stat-tile strong { font-size: 1.5rem; } }
@media (min-width: 1100px) and (min-height: 720px) {
  body { height: 100dvh; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
  header { width: 100%; display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.5fr); gap: 2px 20px; padding-block: 12px 0; }
  header .eyebrow { display: none; }
  header h1 { grid-row: 1 / 4; align-self: center; margin: 0; font-size: 1.5rem; }
  #headline { font-size: .9rem; margin: 0; }
  #headline-note, #updated { grid-column: 2; margin: 0; font-size: .73rem; }
  main { width: 100%; min-height: 0; grid-template-columns: 250px minmax(0, 1fr) clamp(360px, 29vw, 440px); gap: 12px; align-items: stretch; margin: 0 auto; height: 100%; grid-template-rows: minmax(0, 1fr); }
  .controls-section,.map-section,#panel { position: static; min-height: 0; max-height: none; padding: 12px; border-radius: 10px; }
  .controls-section,.map-section,#panel { height: 100%; }
  .controls-section,#panel { overflow-y: auto; }
  .controls { gap: 9px; }
  .controls label { font-size: .76rem; }
  .controls input,.controls select,.controls button { padding: 6px; font-size: .76rem; }
  .controls-section p { margin: 7px 0; font-size: .72rem; }
  .controls .partial-note { font-size: .7rem; }
  .map-section { padding: 0; display: block; }
  .map-wrap,#map { height: 100%; max-height: none; }
  #panel { scroll-behavior: auto; }
  #summary-strip { margin: 0 auto 12px; height: 190px; }
  #summary-strip > section { overflow-y: auto; }
}
@media (max-width: 1099px), (max-height: 719px) {
  #summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 799px) {
  #summary-strip { grid-template-columns: 1fr; }
  .map-wrap { padding-bottom: 100px; }
  .panel-top { top: -16px; }
}

/* Voter info, ranking and account */
.voter-info {
  display: grid;
  gap: 12px;
}

.voter-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.voter-section h3 {
  margin: 0 0 8px;
  font-size: .95rem;
}
.voter-section h4 {
  margin: 14px 0 6px;
  font-size: .85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.place-list {
  margin: 0;
  padding-left: 20px;
}
.place-list li {
  margin-bottom: 10px;
  font-size: .85rem;
}

.race {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.race:last-child {
  border-bottom: none;
}

.candidate {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
  padding: 2px 0;
  font-size: .85rem;
}
.candidate.endorsed {
  font-weight: 650;
}
.candidate.endorsed .badge {
  font-size: .7rem;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--endorse);
  color: var(--endorse);
}

/* The badge and its "Read why" link take a full line of the candidate row (a flex row that wraps). */
.endorse-line {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}

.endorse-note {
  font-size: .78rem;
  color: var(--muted);
  margin: 4px 0 0;
}
.endorse-note a,
a.endorse-link {
  color: var(--endorse);
}

.rank-button {
  margin-top: 6px;
  font-size: .78rem;
  padding: 4px 8px;
}

#rank-dialog, #account-dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(560px, calc(100% - 32px));
  max-height: 85dvh;
}
#rank-dialog::backdrop, #account-dialog::backdrop {
  background: var(--shadow);
}
#rank-close, #account-close {
  float: right;
}

#rank-content label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
#rank-content table {
  width: 100%;
  font-size: .8rem;
  margin-top: 12px;
}
#rank-content tr.winner {
  font-weight: 700;
}
#rank-content tr.winner th {
  color: var(--good);
}

.account-panel {
  display: grid;
  gap: 10px;
  font-size: .88rem;
}
.account-panel form {
  display: grid;
  gap: 10px;
}
.account-panel label {
  display: grid;
  gap: 4px;
}
.account-panel input[type=checkbox] {
  width: auto;
  justify-self: start;
}
.account-panel [role=alert] {
  color: var(--critical);
}
.account-panel pre {
  max-height: 300px;
  overflow: auto;
  background: var(--bg);
  padding: 8px;
  border-radius: 6px;
  font-size: .75rem;
}

.account-open {
  justify-self: start;
  font-size: .8rem;
  padding: 6px 10px;
}

/* Street / city / ZIP form in the Where to vote panel: street on its own row, then city, ZIP and Find. */
.polling-address-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem auto;
  gap: 8px;
  align-items: end;
}
.polling-address-form .address-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.polling-address-form .address-field:first-child {
  grid-column: 1 / -1;
}
.polling-address-form input {
  width: 100%;
}

/* Header: election-results line beside the turnout headline; the account button stays small. */
#results-status {
  margin: 0;
  font-size: .73rem;
}
.account-open {
  align-self: start;
}
@media (min-width: 1100px) and (min-height: 720px) {
  #results-status {
    grid-column: 2;
  }
  .account-open {
    grid-column: 1;
    grid-row: 4;
  }
}

/* Address autocomplete */
.has-suggest { position: relative; }
.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  margin: 2px 0 0;
  padding: 4px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px var(--shadow);
  max-height: 16rem;
  overflow-y: auto;
  font-weight: normal;
}
.address-suggestion {
  padding: 8px 10px;
  cursor: pointer;
  line-height: 1.3;
  color: var(--ink);
}
.address-suggestion.active, .address-suggestion:hover {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

/* Party box and pick button for voter ballot */
.party-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 3px;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  margin-right: 6px;
  vertical-align: middle;
}
.party-D { background: var(--party-d); }
.party-R { background: var(--party-r); }
.party-G { background: var(--party-g); }
.party-L { background: var(--party-l); color: #1d1d1d; }
.party-I, .party-other { background: var(--party-i); }

.pick {
  background: none;
  border: none;
  padding: 2px;
  margin-right: 4px;
  cursor: pointer;
  color: var(--muted);
  vertical-align: middle;
  border-radius: 4px;
}
.pick svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.pick:hover {
  color: var(--ink);
}
.pick:focus-visible {
  outline: 2px solid var(--focus);
}
.pick[aria-pressed="true"] {
  color: var(--pick);
}
.pick[aria-pressed="true"] .pick-box,
.pick[aria-pressed="true"] .pick-ballot {
  fill: currentColor;
}
.pick[aria-pressed="true"] .pick-slot {
  stroke: var(--surface);
}
.candidate.picked > .party-box + span,
.candidate.picked > .pick + span:not(.party-box) {
  font-weight: 650;
}

.ballot-print {
  margin-top: 12px;
}
#print-ballot {
  display: none;
}

@page { size: letter; margin: 0.4in; }
@media print {
  body > *:not(#print-ballot) {
    display: none !important;
  }
  #print-ballot {
    display: block;
    color: #000;
    background: #fff;
    font: 8pt/1.2 Georgia, 'Times New Roman', serif;
  }
  #print-ballot h1 { font-size: 13pt; margin: 0 0 2pt; }
  #print-ballot .print-head p { margin: 0 0 2pt; font-size: 8.5pt; }
  #print-ballot .print-head { border-bottom: 1.5pt solid #000; margin-bottom: 6pt; padding-bottom: 3pt; }
  #print-ballot .print-cols { column-count: 3; column-gap: 14pt; column-rule: 0.5pt solid #000; }
  #print-ballot .print-group { margin: 0 0 5pt; }
  #print-ballot h2 { font-size: 9pt; border-bottom: 1px solid #000; margin: 0 0 2pt; break-after: avoid; }
  #print-ballot .print-race { break-inside: avoid; margin: 0 0 3pt; }
  #print-ballot h3 { font-size: 8pt; margin: 2pt 0 0; break-after: avoid; }
  #print-ballot ul { list-style: none; padding: 0; margin: 0; }
  #print-ballot li { margin: 0; }
  #print-ballot li.picked { font-weight: 700; }
  .print-note { font-size: 7pt; margin: 6pt 0 0; }
}

/* Campaign website and social accounts: the row's flex gap spaces them, and they stay regular weight in an
   endorsed (bold) row so an endorsement never makes one candidate's links look stronger. */
.candidate-website,
.candidate-social {
  font-size: .85rem;
  font-weight: 400;
}

.candidate-social {
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 3px;
  border-radius: 4px;
}
.social-icon {
  width: 18px;
  height: 18px;
  display: block;
}
