:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-alt: #eceff3;
  --text: #0d1f33;
  --text-dim: #52637a;
  --accent: #c94c00;
  --accent-dim: #a53e00;
  --accent-pink: #c9124f;
  --accent-pink-dim: #9e0e3d;
  --accent-yellow: #a3760a;
  --accent-purple: #6c399f;
  --border: #dde2ea;
  --good: #3bb273;
  --danger: #e2594c;
  --radius: 8px;
  /* A brighter gold than --accent-yellow (which is deliberately muted for
     text contrast on a white background) -- for fills/highlights like a
     chart's peak marker, where it needs to read as "gold," not "brown."
     Matches the existing turnout-map marker color. */
  --highlight-gold: #e3a73b;
}

/* Dark mode intentionally removed -- site stays light regardless of device
   or browser preference. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; }

.disclaimer-bar {
  background: var(--panel-alt);
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.topbar::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-yellow), var(--accent-purple));
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 16px;
}
.brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.brand img { height: 58px; width: auto; display: block; }
.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.main-nav a { color: var(--text-dim); }
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  margin-left: auto;
  cursor: pointer;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-left: auto;
  flex-shrink: 0;
}
.lang-btn {
  padding: 6px 11px;
  background: var(--panel);
  color: var(--text-dim);
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-btn.active { background: var(--accent); color: #0d1410; }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.hero {
  padding: 56px 16px 40px;
  text-align: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.hero-note { color: var(--text-dim); font-size: 0.95rem; margin-top: 20px; }

.count-box {
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 14px;
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px 24px;
}
.count-box-label {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.count-box-total {
  font-size: clamp(2.6rem, 9vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.count-box-sub {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 8px;
}
.count-stale-notice {
  margin-top: 10px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text);
}
.count-box-mail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.count-box-mail strong { color: var(--text); }
.count-box-daybar {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.count-box-daybar strong { color: var(--text); }
.count-box-meta {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.count-box-actions { margin-top: 16px; }
#btn-refresh { margin: 0; }

.panel { padding: 48px 0; border-top: 1px solid var(--border); }
.panel:first-of-type { border-top: none; }
.panel.alt { background: var(--panel-alt); margin: 0 -16px; padding: 48px 16px; border-top: 1px solid var(--border); }
.panel h2 { font-size: 1.5rem; margin: 0 0 8px; }
.panel-sub { color: var(--text-dim); margin: 0 0 20px; max-width: 700px; }
.source-note { color: var(--text-dim); font-size: 0.85rem; margin-top: 16px; }

.locator-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
#locator-search {
  flex: 1 1 260px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.95rem;
}
.locator-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.toggle-btn {
  padding: 10px 14px;
  background: var(--panel);
  color: var(--text-dim);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}
.toggle-btn.active { background: var(--accent); color: #1a1c22; font-weight: 600; }
.locator-status { color: var(--text-dim); font-size: 0.88rem; margin: 4px 0 16px; }
.locator-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.locator-list li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.loc-name { font-weight: 600; }
.loc-addr { color: var(--text-dim); font-size: 0.88rem; }
.loc-hours { color: var(--text-dim); font-size: 0.82rem; margin-top: 4px; }
.loc-dist { color: var(--accent); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.wait-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 4px;
}
.wait-low { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.wait-medium { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.wait-high { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }
.loc-link { font-size: 0.82rem; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 4px 6px 4px 0;
}
.btn-primary { background: var(--accent); color: #1a1c22; }
.btn-primary:hover { background: var(--accent-dim); text-decoration: none; }
.btn-secondary { background: var(--panel); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }
.btn-link { background: none; color: var(--accent); padding: 10px 4px; }

.dates-grid, .steps-grid, .compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.date-card, .step-card, .compare-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.date-card.highlight { border-color: var(--accent); }
.date-card h3, .step-card h3, .compare-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.date-card ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 0.9rem; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #0d1410;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 10px;
}
.step-card:nth-child(2) .step-num { background: var(--accent-purple); color: #fff; }
.step-card:nth-child(3) .step-num { background: var(--accent-yellow); color: #3a2800; }
.id-list { margin: 8px 0; padding-left: 18px; font-size: 0.88rem; color: var(--text-dim); }
.compare-pct { font-size: 2rem; font-weight: 700; color: var(--accent); margin: 6px 0; }
.compare-card.live { border-color: var(--accent); }
.compare-detail { margin: 4px 0; font-size: 0.88rem; color: var(--text-dim); }
.compare-detail strong { color: var(--text); }
.compare-breakdown { margin: 8px 0; padding-left: 18px; font-size: 0.84rem; color: var(--text-dim); }
.compare-breakdown li { margin-bottom: 2px; }
.compare-context {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--panel-alt);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.92rem;
}

.turnout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 10px;
}
@media (max-width: 800px) {
  .turnout-grid { grid-template-columns: 1fr; }
}
.turnout-chart-wrap h3, .turnout-top-wrap h3 { font-size: 1rem; margin: 0 0 12px; color: var(--text-dim); }
.turnout-line-chart {
  width: 100%;
  aspect-ratio: 600 / 260;
  display: block;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-purple) 8%, var(--panel)), var(--panel));
  border: 1px solid var(--accent-purple);
  border-radius: 14px;
  box-shadow: 0 4px 24px color-mix(in srgb, var(--accent-purple) 20%, transparent);
}
.turnout-cum-wrap { margin-top: 22px; }
.turnout-cum-chart-svg { aspect-ratio: 600 / 220; }
#multi-year-chart { aspect-ratio: 600 / 280; }
.chart-gridline { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-baseline { stroke: var(--border); stroke-width: 1.5; }
.chart-bar {
  fill: url(#chartAreaGradient);
  stroke: var(--accent-purple);
  stroke-width: 1;
  transition: opacity 0.15s ease;
}
.chart-bar:hover { opacity: 0.85; }
.chart-bar-peak {
  fill: var(--highlight-gold);
  stroke: var(--highlight-gold);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--highlight-gold) 70%, transparent));
}
.chart-area { stroke: none; }
.chart-line {
  fill: none;
  stroke: var(--accent-purple);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent-purple) 70%, transparent));
}
.chart-dot { fill: var(--accent-purple); stroke: var(--panel); stroke-width: 2; }
.chart-dot.chart-dot-peak { fill: var(--highlight-gold); stroke: var(--panel); stroke-width: 2.5; }
.chart-value-label { fill: var(--text-dim); font-size: 10px; font-weight: 600; }
.chart-value-label-peak { fill: var(--highlight-gold); font-size: 11px; font-weight: 800; }
.chart-y-label { fill: var(--text-dim); font-size: 9px; }
.chart-day-label { fill: var(--text-dim); font-size: 10px; }
.chart-weekday-label { fill: var(--text-dim); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.8; }
.turnout-top-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.turnout-top-list li { margin-bottom: 8px; }
.turnout-top-list strong { color: var(--text); }
.rank-move { font-size: 0.8rem; font-weight: 700; margin-left: 4px; white-space: nowrap; }
.rank-up { color: var(--good); }
.rank-down { color: var(--danger); }
.rank-same { color: var(--text-dim); }
.rank-new { color: var(--accent-purple); font-weight: 600; }
.rank-move-note { font-size: 0.78rem; color: var(--text-dim); margin-top: 8px; }

.daily-bars-legend { display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-dim); margin: 4px 0 10px; }
.legend-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.bar-2026 { background: var(--accent-purple); }
.bar-2022 { background: var(--accent); }
.bar-2018 { background: var(--accent-yellow); }
.daily-bars-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px 8px;
  max-width: 100%;
  overflow-x: auto;
}
.day-group { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-set { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 100%; }
.daily-bar { width: 7px; border-radius: 2px 2px 0 0; min-height: 1px; }
.day-group-label { font-size: 0.68rem; color: var(--text-dim); margin-top: 6px; }

.multi-year-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.multi-year-line.year-2026 { stroke: var(--accent-purple); }
.multi-year-line.year-2022 { stroke: var(--accent); }
.multi-year-line.year-2018 { stroke: var(--accent-yellow); }
.multi-year-dot { stroke: var(--panel); stroke-width: 1.5; }
.multi-year-dot.year-2026 { fill: var(--accent-purple); }
.multi-year-dot.year-2022 { fill: var(--accent); }
.multi-year-dot.year-2018 { fill: var(--accent-yellow); }

.trend-table-wrap { overflow-x: auto; margin-top: 10px; }
#trend-table, #full-history-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
#trend-table th, #trend-table td, #full-history-table th, #full-history-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
#trend-table th:first-child, #trend-table td:first-child, #full-history-table th:first-child, #full-history-table td:first-child { text-align: left; color: var(--text-dim); }
#trend-table thead th, #full-history-table thead th { color: var(--text-dim); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.02em; border-bottom: 2px solid var(--border); }
.th-sub { display: block; font-weight: 400; text-transform: lowercase; font-size: 0.7rem; opacity: 0.8; }
#full-history-tfoot td { font-weight: 700; border-top: 2px solid var(--border); background: var(--panel-alt); }

.county-comp-table-wrap { overflow-x: auto; margin-top: 10px; }
.county-comp-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.county-comp-table th, .county-comp-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.county-comp-table th:first-child, .county-comp-table td:first-child { text-align: left; }
.county-comp-table thead th { color: var(--text-dim); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; border-bottom: 2px solid var(--border); }
.county-comp-table tbody tr:last-child td { border-bottom: none; }
.county-comp-us-col { font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
#trend-table tbody tr:last-child td, #full-history-table tbody tr:last-child td { border-bottom: none; }
#trend-table td.trend-current, #full-history-table td.trend-current { color: var(--accent-purple); font-weight: 700; }
#trend-table tr.trend-today td, #full-history-table tr.trend-today td { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.source-list { padding-left: 20px; color: var(--text-dim); font-size: 0.92rem; }
.source-list li { margin-bottom: 10px; }
.source-list code { background: var(--panel); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }

#ballot h3 { font-size: 1rem; margin: 24px 0 10px; color: var(--text-dim); }
.ballot-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.ballot-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: top; }
.ballot-table tr:last-child td { border-bottom: none; }
.ballot-table td:first-child { font-weight: 600; width: 38%; white-space: normal; }
.ballot-table td:last-child { color: var(--text-dim); }

.vc-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.vc-day-label { font-size: 0.9rem; color: var(--text-dim); }
.vc-day-label select {
  margin-left: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}
.vc-table-wrap { overflow-x: auto; }
#vc-table, #vc-city-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
#vc-table th, #vc-table td, #vc-city-table th, #vc-city-table td { padding: 9px 14px; text-align: right; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
#vc-table th:first-child, #vc-table td:first-child, #vc-city-table th:first-child, #vc-city-table td:first-child { text-align: left; }
#vc-table thead th { cursor: pointer; user-select: none; color: var(--text-dim); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; border-bottom: 2px solid var(--border); }
#vc-city-table thead th { color: var(--text-dim); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; border-bottom: 2px solid var(--border); }
#vc-table thead th:hover { color: var(--accent); }
#vc-table thead th.sorted { color: var(--accent); }

.map-wrap {
  background: var(--panel);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius);
  padding: 10px;
}
#turnout-map {
  width: 100%;
  height: 480px;
  border-radius: 6px;
  background: var(--panel-alt);
}
.map-popup { font-size: 0.85rem; }
.map-popup strong { display: block; margin-bottom: 2px; }

.precinct-map-controls { margin: 10px 0; }
.btn-toggle {
  background: var(--panel);
  color: var(--text-dim);
  border-color: var(--border);
}
.btn-toggle:hover { border-color: var(--accent-purple); text-decoration: none; }
.btn-toggle.active {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
}
#precinct-leaflet-map, #precinct-voting-leaflet-map {
  width: 100%;
  height: 480px;
  border-radius: 6px;
  background: var(--panel-alt);
}
.precinct-map-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.precinct-map-legend .legend-swatch { width: 16px; height: 12px; border-radius: 2px; margin-right: 0; }
.precinct-popup-title { font-weight: 700; display: block; margin-bottom: 4px; }
.precinct-popup-row { display: flex; justify-content: space-between; gap: 14px; }
.precinct-popup-locations {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px 0 0;
  border-top: 1px solid var(--border);
  max-height: 140px;
  overflow-y: auto;
}
.precinct-popup-locations li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 2px 0;
}
.precinct-popup-locations li span { color: var(--text); font-weight: 600; white-space: nowrap; }

.leaflet-container { background: var(--panel-alt) !important; font-family: inherit; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--text); }

.watch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.watch-list li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--good);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
}
.watch-list li.watch-fail { border-left-color: var(--danger); }
.watch-list .watch-title { font-weight: 600; }
.watch-list .watch-detail { color: var(--text-dim); font-size: 0.85rem; margin-top: 3px; }

#count-watch h3 { font-size: 1rem; margin: 24px 0 10px; color: var(--text-dim); }
#changelog-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
#changelog-table th, #changelog-table td { padding: 9px 14px; text-align: right; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
#changelog-table th:first-child, #changelog-table td:first-child { text-align: left; }
#changelog-table thead th { color: var(--text-dim); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.02em; border-bottom: 2px solid var(--border); }
#changelog-table tbody tr:last-child td { border-bottom: none; }
.changelog-ok { color: var(--good); }
.changelog-fail { color: var(--danger); }
.changelog-change-up { color: var(--good); }

details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; }
details[open] summary { color: var(--accent-purple); }
details p { color: var(--text-dim); margin: 10px 0 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 16px; }
}

/* Every data table on the site needs to fit a 375px phone screen without
   horizontal scrolling, so a screenshot of any section is readable on its
   own. Tight padding/font-size here, plus per-table JS changes (compact
   number formatting, shorter labels) for the widest offenders. */
@media (max-width: 480px) {
  #trend-table th, #trend-table td,
  #full-history-table th, #full-history-table td,
  .county-comp-table th, .county-comp-table td,
  #vc-table th, #vc-table td, #vc-city-table th, #vc-city-table td,
  #changelog-table th, #changelog-table td,
  .ballot-table td {
    padding: 6px 5px;
    font-size: 0.72rem;
  }
  #trend-table thead th, #full-history-table thead th,
  .county-comp-table thead th,
  #vc-table thead th, #vc-city-table thead th,
  #changelog-table thead th {
    font-size: 0.62rem;
    letter-spacing: 0;
  }
  .th-sub { font-size: 0.58rem; }
  .ballot-table td:first-child { width: 42%; font-size: 0.78rem; }
  .ballot-table td:last-child { font-size: 0.76rem; }
  .wait-badge { padding: 1px 6px; font-size: 0.68rem; }
  .vc-day-label select { font-size: 0.78rem; padding: 5px 7px; }
  #count-total { word-break: break-word; }
  /* Six columns of location + numbers doesn't fit a phone screen — drop the
     two least-essential ones (city is covered by the rollup table right
     below; the exact percent is still in the CSV export). */
  .vc-col-city, .vc-col-pct { display: none; }
  .county-comp-table th, .county-comp-table td { padding: 5px 4px !important; font-size: 0.68rem !important; }
  /* 12 day-groups at their natural width don't fit a phone without
     shrinking the bars and gaps too; the chart still scrolls as a
     fallback (see .daily-bars-chart overflow-x) if a screen is narrower
     still. */
  .daily-bars-chart { gap: 4px; padding: 12px 8px 6px; }
  .bar-set { gap: 1px; }
  .daily-bar { width: 5px; }
  .day-group-label { font-size: 0.6rem; }
}
