/* Election-only dashboard. The Newsroom shell and other routes keep their styles. */
.tvc-election {
  --election-bg: #f5f7fa;
  --election-panel: #ffffff;
  --election-ink: #172b3f;
  --election-muted: #52677a;
  --election-line: #dce4ec;
  color-scheme: light;
  color: var(--election-ink);
  background: radial-gradient(ellipse at 60% 25%, #e4f2ef99, transparent 60%), var(--election-bg);
  padding: 20px clamp(20px, 3vw, 52px) 32px;
  font-family: var(--font-body, Inter, Arial, sans-serif);
}
.tvc-election *, .tvc-election *::before, .tvc-election *::after { box-sizing: border-box; }
.tvc-election [hidden] { display: none !important; }
.tvc-election a { color: inherit; }
.tvc-election__breadcrumb { display: flex; gap: 10px; font-size: 11px; color: var(--election-muted); }
.tvc-election__breadcrumb a { text-decoration: none; }
.tvc-election__intro { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 22px 0 26px; border-bottom: 1px solid var(--election-line); }
.tvc-election__title { min-width: 0; }
.tvc-election__eyebrow { font-size: 10px !important; font-weight: 700; letter-spacing: .14em; line-height: 1.5 !important; margin: 0 0 10px !important; color: var(--election-muted); }
.tvc-election__intro .tvc-election__eyebrow { color: #16725e; }
.tvc-election__intro h1 { font-size: clamp(32px, 3vw, 48px); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; margin: 0; color: var(--election-ink); }
.tvc-election__controls { min-width: 0; }
.tvc-election__filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0; min-width: 0; padding: 12px; background: var(--election-panel); border: 1px solid var(--election-line); border-radius: 12px; }
.tvc-election__field { display: grid; flex: 1 1 125px; gap: 7px; min-width: 0; }
.tvc-election__field--turn { flex: 0 0 100px; }
.tvc-election__field--site { flex-basis: 170px; }
.tvc-election__filter-hint { flex-basis: 100%; margin: 0; font-size: 10px; line-height: 1.5; color: var(--election-muted); }
.tvc-election__filters label { color: var(--election-muted); font-size: 10px; }
.tvc-election__filters select { width: 100%; min-height: 40px; border: 1px solid #c7d4df; border-radius: 8px; background: #ffffff; color: #172b3f; font: inherit; font-size: 12px; padding: 8px 26px 8px 10px; color-scheme: light; }
.tvc-election__filters button { min-height: 40px; white-space: nowrap; background: #172b3f; border: 1px solid #172b3f; color: #ffffff; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 11px; cursor: pointer; }
.tvc-election__filters button:hover { background: #294762; }
.tvc-election__board { min-width: 0; }
.tvc-election__board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 18px; }
.tvc-election__board-head h2 { color: var(--election-ink); font-size: 24px; line-height: 1.25; letter-spacing: -.035em; margin: 0; }
.tvc-election__status { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #246a53; }
.tvc-election__status i, .tvc-election__service-strip i { display: inline-block; width: 6px; height: 6px; background: #269573; border-radius: 50%; box-shadow: 0 0 10px #26957322; }
.tvc-election__dashboard { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.4fr); gap: 18px; align-items: start; }
.tvc-election__dashboard--us { grid-template-columns: 300px minmax(0, 1fr) 220px; }
.tvc-election__results-card, .tvc-election__state-panel { background: linear-gradient(155deg, #f5fafc80, transparent), var(--election-panel); border: 1px solid var(--election-line); border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px #20374d06; }
.tvc-election__progress > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tvc-election__progress span { font-size: 11px; color: var(--election-muted); }
.tvc-election__progress strong { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.tvc-election__progress progress { display: block; width: 100%; height: 4px; appearance: none; border: 0; border-radius: 5px; overflow: hidden; margin: 12px 0 8px; background: #e4ecef; }
.tvc-election__progress progress::-webkit-progress-bar { background: #e4ecef; }
.tvc-election__progress progress::-webkit-progress-value { background: #269573; }
.tvc-election__progress progress::-moz-progress-bar { background: #269573; }
.tvc-election__progress p { font-size: 9px; line-height: 1.5; margin: 0; color: var(--election-muted); }
.tvc-election__ranking-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 20px 0 14px; }
.tvc-election__ranking-head h3 { color: #172b3f; font-size: 11px; font-weight: 600; margin: 0; }
.tvc-election__ranking-head > span { color: var(--election-muted); font-size: 9px; line-height: 1.5; max-width: 105px; text-align: right; }
.tvc-election__candidates { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin: 0; padding: 0; }
.tvc-election__candidate { grid-column: 1 / -1; padding: 12px 0; border-top: 1px solid var(--election-line); }
.tvc-election__candidate-top { display: flex; align-items: center; gap: 8px; }
.tvc-election__candidate-number { display: grid; place-items: center; color: var(--election-ink); background: var(--candidate-color); border: 1px solid transparent; border-radius: 50%; font-size: 10px; font-weight: 700; width: 26px; height: 26px; flex-shrink: 0; }
.tvc-election__candidate-name { min-width: 0; flex: 1; }
.tvc-election__candidate-name h4 { color: #172b3f; font-size: 11px; line-height: 1.5; margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.tvc-election__candidate-name > span { display: block; color: var(--election-muted); font-size: 9px; line-height: 1.6; }
.tvc-election__candidate-votes { text-align: right; flex-shrink: 0; }
.tvc-election__candidate-votes strong { display: block; font-size: 14px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tvc-election__candidate-votes strong small { font-size: .6em; }
.tvc-election__candidate-votes > span { display: block; font-size: 8px; line-height: 1.6; color: var(--election-muted); margin-top: 3px; }
.tvc-election__vote-bar { height: 3px; background: #e8edf3; overflow: hidden; border-radius: 2px; margin: 8px 0 0 34px; }
.tvc-election__vote-bar span { display: block; height: 100%; background: var(--candidate-color); }
.tvc-election__candidate-status { font-size: 9px; color: var(--election-muted); line-height: 1.5; margin: 7px 0 0; }
.tvc-election__candidate--featured { grid-column: auto; border: 0; padding: 0 0 22px; }
.tvc-election__candidate--featured .tvc-election__candidate-top { display: grid; grid-template-columns: 28px 1fr; align-items: start; }
.tvc-election__candidate--featured h4 { color: var(--election-ink); font-size: 12px; min-height: 36px; }
.tvc-election__candidate--featured .tvc-election__candidate-votes { grid-column: 1 / -1; text-align: left; margin-top: 14px; }
.tvc-election__candidate--featured .tvc-election__candidate-votes strong { font-size: clamp(28px, 2.5vw, 42px); letter-spacing: -.05em; }
.tvc-election__candidate--featured .tvc-election__candidate-votes > span { font-size: 9px; }
.tvc-election__candidate--featured .tvc-election__vote-bar { height: 5px; margin: 14px 0 0; }
.tvc-election__more-candidates { border-top: 1px solid var(--election-line); margin-top: 8px; }
.tvc-election__more-candidates summary { cursor: pointer; font-size: 10px; padding: 14px 0 0; color: var(--election-muted); }
.tvc-election__candidates--more { margin-top: 12px; }
.tvc-election__geography { min-width: 0; padding: 22px 0 0; }
.tvc-election__map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; }
.tvc-election__map-head .tvc-election__eyebrow { font-size: 9px !important; margin: 0 !important; }
.tvc-election__map-tag { border: 1px solid #c7d4df; padding: 6px 9px; border-radius: 6px; font-size: 9px; letter-spacing: .1em; color: #52677a; }
.tvc-election__map-hint { font-size: 10px; color: var(--election-muted); padding: 0 18px; margin: 12px 0 16px; }
.tvc-election__map { display: block; width: 100%; height: auto; margin-top: 16px; overflow: visible; filter: drop-shadow(0 16px 30px #20374d12); }
.tvc-election__map-inactive { fill: #e4e9ee; stroke: #f5f7fa; stroke-width: 1.3; }
.tvc-election__map-state { fill: var(--state-color); stroke: #f5f7fa; stroke-width: 1.6; transition: filter .15s; }
.tvc-election__map a:hover .tvc-election__map-state, .tvc-election__map a:focus .tvc-election__map-state { filter: brightness(.96); stroke: var(--election-ink); stroke-width: 2; }
.tvc-election__map a[aria-current] .tvc-election__map-state { stroke: var(--election-ink); stroke-width: 3; }
.tvc-election__map a { cursor: pointer; }
.tvc-election__map-label, .tvc-election__map-value { fill: #172b3f; text-anchor: middle; pointer-events: none; font-weight: 700; font-size: 14px; }
.tvc-election__map-value { font-size: 13px; font-weight: 500; }
.tvc-election__map-callout { fill: none; stroke: #73879a; stroke-width: 1; }
.tvc-election__map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 10px; line-height: 1.5; padding: 16px 12px; }
.tvc-election__map-legend > span:first-child { color: var(--election-muted); }
.tvc-election__map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.tvc-election__map-footnote { text-align: center; font-size: 9px; color: var(--election-muted); line-height: 1.8; margin: 0 16px; }
.tvc-election__state-panel { padding: 18px 16px; }
.tvc-election__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tvc-election__panel-head h3 { font-size: 13px; font-weight: 500; color: #172b3f; margin: 0; }
.tvc-election__panel-head > span { font-size: 8px; color: var(--election-muted); }
.tvc-election__panel-subtitle { font-size: 8px; color: var(--election-muted); margin: 10px 0 12px; }
.tvc-election__state-row { display: flex; position: relative; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 14px; border-top: 1px solid var(--election-line); text-decoration: none; }
.tvc-election__state-row:hover, .tvc-election__state-row[aria-current] { background: #e9f1f7; border-radius: 6px; }
.tvc-election__state-name b { font-weight: 500; font-size: 11px; display: block; }
.tvc-election__state-name > span { display: block; font-size: 9px; color: var(--election-muted); margin-top: 3px; }
.tvc-election__state-count { font-size: 10px; text-align: right; white-space: nowrap; }
.tvc-election__state-count small { display: block; margin-top: 3px; font-size: 8px; color: var(--election-muted); }
.tvc-election__state-bar { position: absolute; bottom: 5px; left: 0; right: 0; height: 2px; background: #e4ecef; }
.tvc-election__state-bar i { display: block; height: 100%; }
.tvc-election__all-states { display: block; font-size: 10px; padding-top: 16px; text-decoration: none; color: #16725e !important; }
.tvc-election__vote-totals { display: grid; grid-template-columns: repeat(3, 1fr) minmax(260px, 2fr); margin: 24px 0 0; gap: 12px; }
.tvc-election__vote-totals > div { background: #ffffff; border: 1px solid var(--election-line); padding: 18px 20px; border-radius: 12px; }
.tvc-election__vote-totals dt { color: var(--election-muted); font-size: 10px; margin-bottom: 8px; line-height: 1.5; }
.tvc-election__vote-totals dd { font-size: 24px; font-weight: 500; letter-spacing: -.04em; margin: 0; font-variant-numeric: tabular-nums; }
.tvc-election__timestamp dd { font-size: 11px; line-height: 1.8; letter-spacing: 0; }
.tvc-election__timestamp small { display: block; color: var(--election-muted); font-size: 9px; }
.tvc-election__method { margin-top: 18px; color: var(--election-muted); }
.tvc-election__method summary { cursor: pointer; font-size: 11px; }
.tvc-election__scope-note { font-size: 11px; line-height: 1.8; margin: 12px 0; max-width: 1000px; }
.tvc-election__service-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--election-muted); font-size: 9px; padding: 22px 0; margin-top: 24px; border-top: 1px solid var(--election-line); }
.tvc-election__service-strip i { margin-right: 6px; }
.tvc-election__attribution { font-size: 9px; color: var(--election-muted); line-height: 1.8; margin: 0; }
.tvc-election__attribution a { margin-left: 8px; }
.tvc-election__notice, .tvc-election__stale { padding: 12px; font-size: 11px; line-height: 1.7; background: #fff7e8; color: #7a4c12; border: 1px solid #e8c98f; border-radius: 8px; }
.tvc-election__empty { padding: 28px 0; }
.tvc-election__empty-mark { font-size: 40px; color: #16725e; }
.tvc-election__empty h3 { color: #172b3f; font-size: 20px; line-height: 1.4; margin: 16px 0; }
.tvc-election__empty p { font-size: 12px; line-height: 1.8; color: var(--election-muted); }
.tvc-election__explore { padding: 30px; background: radial-gradient(at top right, #e0eee9, transparent 70%); border: 1px solid var(--election-line); border-radius: 16px; }
.tvc-election__explore h3 { color: var(--election-ink); font-size: clamp(30px, 4vw, 56px); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; margin: 20px 0; }
.tvc-election__explore > p:not(.tvc-election__eyebrow) { font-size: 13px; line-height: 1.8; color: var(--election-muted); max-width: 400px; }
.tvc-election__explore-us { display: grid; gap: 12px; padding: 26px 0; margin-top: 24px; text-decoration: none; border-top: 1px solid var(--election-line); }
.tvc-election__explore-us span { font-size: 9px; color: #16725e; letter-spacing: .1em; }
.tvc-election__explore-us strong { font-size: 23px; font-weight: 500; }
.tvc-election__explore-us small { font-size: 11px; color: var(--election-muted); }
.tvc-election__region-links { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.tvc-election__region-links a { padding: 10px 0; border: 1px solid #c7d4df; border-radius: 6px; text-align: center; text-decoration: none; font-size: 11px; }
.tvc-election a:focus-visible, .tvc-election button:focus-visible, .tvc-election select:focus-visible, .tvc-election summary:focus-visible { outline: 2px solid #16725e; outline-offset: 4px; }
@media (min-width: 1600px) {
  .tvc-election { padding-inline: max(52px, calc((100vw - 1620px) / 2)); }
  .tvc-election__dashboard--us { grid-template-columns: 340px minmax(0, 1fr) 270px; gap: 26px; }
  .tvc-election__state-row { padding-block: 16px; }
}
@media (max-width: 1150px) {
  .tvc-election__dashboard--us { grid-template-columns: 280px minmax(0, 1fr); }
  .tvc-election__state-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 20px; }
  .tvc-election__panel-head, .tvc-election__panel-subtitle, .tvc-election__all-states { grid-column: 1 / -1; }
  .tvc-election__panel-subtitle { margin: 0; }
  .tvc-election__vote-totals { grid-template-columns: repeat(3, 1fr); }
  .tvc-election__timestamp { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .tvc-election { padding: 18px 16px 26px; }
  .tvc-election__intro { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title actions" "controls controls"; padding-block: 20px; gap: 20px 14px; }
  .tvc-election__title { grid-area: title; }
  .tvc-election__actions { grid-area: actions; }
  .tvc-election__intro h1 { font-size: clamp(27px, 5vw, 34px); }
  .tvc-election__controls { grid-area: controls; }
  .tvc-election__filters { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px 10px; width: 100%; }
  .tvc-election__field[data-filter-country], .tvc-election__field--site, .tvc-election__filter-hint { grid-column: 1 / -1; }
  .tvc-election__filters select { max-width: none; min-height: 42px; }
  .tvc-election__filters button { grid-column: 1 / -1; min-height: 40px; }
  .tvc-election__board-head { align-items: flex-start; flex-direction: column; padding-top: 22px; gap: 10px; }
  .tvc-election__board-head h2 { font-size: 25px; }
  .tvc-election__dashboard { display: flex; flex-direction: column; gap: 18px; }
  .tvc-election__dashboard > * { width: 100%; }
  .tvc-election__results-card { padding: 20px; }
  .tvc-election__candidate--featured .tvc-election__candidate-votes strong { font-size: 40px; }
  .tvc-election__candidate-name h4 { font-size: 12px; }
  .tvc-election__candidate-votes > span { font-size: 9px; }
  .tvc-election__geography { padding-top: 16px; }
  .tvc-election__map-head { padding-inline: 0; }
  .tvc-election__map-hint { padding-inline: 0; font-size: 11px; }
  .tvc-election__map-legend { justify-content: flex-start; padding-inline: 0; }
  .tvc-election__map-footnote { text-align: left; margin-inline: 0; }
  .tvc-election__state-panel { display: block; padding: 20px; }
  .tvc-election__panel-head h3 { font-size: 16px; }
  .tvc-election__panel-subtitle { margin: 12px 0; font-size: 10px; }
  .tvc-election__state-name b { font-size: 13px; }
  .tvc-election__state-name > span { font-size: 11px; }
  .tvc-election__state-count { font-size: 12px; }
  .tvc-election__state-row { min-height: 64px; }
  .tvc-election__vote-totals { gap: 8px; margin-top: 18px; }
  .tvc-election__vote-totals > div { padding: 14px 10px; }
  .tvc-election__vote-totals dd { font-size: 20px; }
  .tvc-election__vote-totals dt { font-size: 9px; min-height: 28px; }
  .tvc-election__timestamp dt { min-height: 0; }
  .tvc-election__timestamp dd { font-size: 11px; }
  .tvc-election__service-strip { flex-wrap: wrap; font-size: 9px; gap: 12px; }
  .tvc-election__explore { padding: 24px 20px; }
  .tvc-election__region-links { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .tvc-election__map-state { transition: none; } }
@media (min-width: 761px) {
  .tvc-election { padding-top: 14px; }
  .tvc-election__intro { padding: 14px 0 20px; }
  .tvc-election__intro h1 { font-size: 36px; }
  .tvc-election__intro .tvc-election__eyebrow { margin-bottom: 6px !important; }
  .tvc-election__board-head { padding: 20px 0 16px; }
  .tvc-election__geography { padding-top: 14px; }
}
.tvc-election__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tvc-election__focus { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: transparent; border: 1px solid #c7d4df; color: #172b3f; border-radius: 30px; cursor: pointer; font: inherit; font-size: 11px; }
.tvc-election:fullscreen { overflow-y: auto; }
@media (max-width: 760px) { .tvc-election__focus { font-size: 10px; padding: 8px 12px; } }
.tvc-election--focus { position: fixed; inset: 0; z-index: 100000; overflow-y: auto; }
@media (min-width: 1151px) { .tvc-election__state-row { padding: 9px 0 12px; } }
.tvc-election__map a[data-no-result] text { fill: #172b3f; }
