.midterms-page { --call-outline: #9a6b10; --call-badge: #f4d684; --call-ink: #172b45; --party-dem: #225a99; --party-other: #236c67; width: min(1260px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 54px; }
:root[data-theme="dark"] .midterms-page { --call-outline: #e8c87b; --call-badge: #f2d68e; --party-dem: #91bfff; --party-other: #88ccc3; }
.midterms-page [data-party] { --party-color: var(--party-other); }
.midterms-page [data-party="R"] { --party-color: var(--red); }
.midterms-page [data-party="D"] { --party-color: var(--party-dem); }
.election-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 48px 0 34px; }
.election-heading h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -1.2px; margin: 0 0 20px; }
.election-heading h2 em { color: var(--red); }
.election-heading .page-eyebrow { margin-bottom: 19px; }
.trump-score { --score-accent:#f2d68e; margin-top:34px; padding:32px 38px 24px; color:#f5f0e5; background:var(--navy); border:1px solid #4b5c70; border-top:5px solid var(--score-accent); box-shadow:0 12px 28px var(--card-shadow); scroll-margin-top:110px; }
.trump-score[data-band="poor"],.trump-score[data-band="very-poor"] { --score-accent:#ffb0ac; }
.trump-score[data-band="strong"],.trump-score[data-band="very-strong"] { --score-accent:#9ed5bf; }
.trump-score-eyebrow { color:#c0cbda; font-size:.7rem; letter-spacing:1.6px; text-transform:uppercase; margin:0 0 14px; }
.trump-score h1 { font-size:clamp(2.8rem,5vw,4.3rem); letter-spacing:-1.5px; margin:0 0 22px; }
.trump-score-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:42px; align-items:center; }
.trump-score-number { display:flex; align-items:baseline; gap:12px; line-height:.9; padding-top:8px; }
.trump-score-number strong { color:var(--score-accent); font-size:clamp(7rem,15vw,12rem); letter-spacing:-9px; font-weight:750; font-variant-numeric:tabular-nums; }
.trump-score-number > span { color:#c0cbda; font-size:1.8rem; letter-spacing:-1px; }
.trump-score-direction { font-size:.875rem; margin:22px 0 12px; }
.trump-score meter { display:block; width:100%; height:15px; border:0; background:#30445c; border-radius:0; }
.trump-score meter::-webkit-meter-bar { background:#30445c; border:0; border-radius:0; }
.trump-score meter::-webkit-meter-optimum-value,.trump-score meter::-webkit-meter-suboptimum-value,.trump-score meter::-webkit-meter-even-less-good-value { background:var(--score-accent); }
.trump-score meter::-moz-meter-bar { background:var(--score-accent); }
.trump-score-scale { display:flex; justify-content:space-between; gap:10px; color:#c0cbda; font-size:.625rem; margin-top:7px; }
.trump-score-status { display:inline-block; border:1px solid #687787; color:var(--score-accent); padding:5px 9px; font-size:.75rem; margin:0 0 12px; }
.trump-score-reading h2 { margin:0 0 12px; font-size:clamp(1.6rem,2.5vw,2.3rem); line-height:1.18; }
.trump-score-reading > p:not(.trump-score-status) { color:#c0cbda; font-size:.875rem; line-height:1.7; }
.trump-score-comparisons { display:flex; flex-wrap:wrap; gap:20px 36px; margin:18px 0 0; }
.trump-score-comparisons dt { color:#c0cbda; font-size:.75rem; }
.trump-score-comparisons dd { font-size:1.65rem; font-weight:650; margin:3px 0 0; font-variant-numeric:tabular-nums; }
.trump-score-offices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; list-style:none; padding:22px 0 16px; margin:25px 0 0; border-top:1px solid #4b5c70; }
.trump-score-offices li { display:grid; gap:3px; }
.trump-score-offices li > span { color:#c0cbda; font-size:.75rem; }
.trump-score-offices strong { font-size:1.2rem; }
.trump-score-offices small { color:#c0cbda; font-size:.625rem; }
.trump-score-evidence,.trump-score-time,.trump-score-connection { color:#c0cbda; font-size:.75rem; line-height:1.6; margin:7px 0; }
.trump-score-method { border-top:1px solid #4b5c70; margin-top:18px; padding-top:12px; font-size:.8125rem; }
.trump-score-method summary { cursor:pointer; font-weight:600; padding-block:5px; }
.trump-score-method p { color:#c0cbda; line-height:1.7; }
.trump-score-benchmarks { color:#c0cbda; font-size:.75rem; line-height:1.7; }
.trump-score a { color:#f2d68e; }
.trump-score-table { overflow-x:auto; }
.trump-score-table table { border-collapse:collapse; text-align:left; width:100%; font-size:.75rem; }
.trump-score-table caption { text-align:left; padding:10px 0; color:#c0cbda; }
.trump-score-table th,.trump-score-table td { padding:8px; border-bottom:1px solid #4b5c70; vertical-align:top; }
.trump-score :focus-visible { outline-color:#f2d68e; }
@media(max-width:600px) { .trump-score { padding:24px 20px 18px; margin-top:22px; } .trump-score-grid { grid-template-columns:minmax(0,1fr); gap:26px; } .trump-score-number strong { font-size:8rem; letter-spacing:-6px; } .trump-score-number { justify-content:center; } .trump-score h1,.trump-score-direction,.trump-score-eyebrow { text-align:center; } .trump-score-eyebrow { font-size:.625rem; } .trump-score-direction { margin-top:16px; } .trump-score-offices { gap:10px; } .trump-score-offices strong { font-size:.95rem; } .trump-score-offices small { font-size:.6rem; } }
.election-intro { color: var(--muted); font-size: .95rem; margin: 0; }
.election-dateline { text-align: right; padding-bottom: 5px; font-size: .8125rem; flex-shrink: 0; }
.election-dateline p { color: var(--muted); margin: 12px 0; }
.feed-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); border: 1px solid var(--line); padding: 6px 12px; border-radius: 3px; font-weight: 600; }
.feed-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.feed-badge[data-status="current"]::before { background: #378067; }
.feed-badge[data-status="delayed"]::before { background: #bd7c20; }
.election-board { border: 1px solid var(--line); background: var(--surface); }
.election-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.office-switch { display: flex; gap: 5px; }
.office-switch button { border: 0; background: transparent; color: var(--muted); padding: 9px 15px; font-size: .875rem; font-weight: 600; border-radius: 3px; min-height: 42px; }
.office-switch button:hover { background: var(--soft-navy); }
.office-switch button[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); }
.election-refresh { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 8px 12px; font-size: .8125rem; min-height: 42px; }
.election-refresh span { margin-left: 8px; font-size: 1.1rem; }
.election-refresh:disabled { opacity: .5; cursor: default; }
.feed-message { background: var(--soft-navy); padding: 11px 24px; color: var(--muted); font-size: .8125rem; border-bottom: 1px solid var(--line); }
.election-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.map-column { min-width: 0; padding: 25px 24px 18px; }
.map-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.map-heading h2 { margin: 0; font-size: 1.65rem; }
.map-heading > span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; text-align: right; }
.map-explainer { font-size: .75rem; color: var(--muted); line-height: 1.6; min-height: 40px; margin: 10px 0 0; max-width: 630px; }
.map-container { position: relative; min-height: 200px; }
.election-map { display: block; width: 100%; height: auto; overflow: visible; margin: 14px 0 8px; }
.election-map { touch-action:pan-y pinch-zoom; user-select:none; }
.election-map:focus-visible { outline:3px solid var(--ink); outline-offset:4px; }
.map-viewport :is(path,rect) { vector-effect:non-scaling-stroke; }
.map-controls { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:12px; }
.midterms-page :is(.map-controls,.race-browser,.visit-changes) button { min-height:44px; padding:8px 12px; color:var(--ink); background:var(--surface); border:1px solid var(--line); cursor:pointer; }
.midterms-page :is(button,input,select):focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
.race-browser,.visit-changes { padding:24px; border:1px solid var(--line); margin-top:24px; background:var(--surface); scroll-margin-top:160px; }
.race-browser-controls { display:flex; align-items:end; flex-wrap:wrap; gap:14px; }
.race-browser-controls label { display:grid; gap:6px; flex:1 1 240px; }
.race-browser-controls :is(input,select) { width:100%; min-height:44px; color:var(--ink); background:var(--surface); border:1px solid var(--line); padding:10px; font:inherit; }
.national-race-list { list-style:none; padding:0; max-height:650px; overflow-y:auto; }
.national-race { display:grid; gap:7px; padding:16px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.national-race .race-open { text-align:left; font-weight:700; justify-self:start; }
.national-race-candidates,.national-race-margin { color:var(--muted); font-size:.875rem; }
.visit-change { margin-block:10px; }
@media(max-width:540px) { .race-browser,.visit-changes { padding:16px; } .race-browser-controls { display:grid; grid-template-columns:minmax(0,1fr); } .national-race-list { max-height:none; } .map-controls button { flex:1 1 auto; } }
.map-load-note { text-align: center; color: var(--muted); font-size: .8125rem; position: absolute; top: 35%; width: 100%; }
.state-shape { stroke: var(--surface); stroke-width: 1.2; stroke-linejoin: round; cursor: pointer; transition: fill 250ms ease; }
.state-shape:hover, .state-shape:focus-visible, .state-shape[aria-pressed="true"] { stroke: var(--ink); stroke-width: 2.5; outline: none; }
.district-shape { stroke: var(--surface); stroke-width: .45; stroke-linejoin: round; cursor: pointer; }
.district-shape:hover, .district-shape:focus-visible { stroke: var(--ink); stroke-width: 1.8; outline: none; }
.district-outlines { pointer-events: none; }
.district-outlines path { fill: none; stroke: var(--surface); stroke-width: 1.1; stroke-linejoin: round; }
.district-outlines path[data-selected="true"] { stroke: var(--ink); stroke-width: 2; }
.district-view .state-shape[data-projection] { stroke: var(--surface); stroke-width: 1; stroke-dasharray: none; }
.district-view .map-callout[data-projection] > rect { stroke: var(--surface); stroke-width: 1; stroke-dasharray: none; }
.district-view .map-callout:is(:hover, :focus-visible, [aria-pressed="true"]) > rect { stroke: var(--ink); stroke-width: 2; }
.district-map-note { color: var(--muted); font-size: .75rem; }
.state-label { fill: #fffdf7; font-size: 13px; font-weight: 600; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: #14294570; stroke-width: 2px; stroke-linejoin: round; }
.state-label[data-neutral="true"] { fill: var(--ink); stroke: var(--surface); }
.map-callout { cursor: pointer; }
.map-callout > rect { stroke: var(--surface); stroke-width: 1.2; }
.map-callout:hover > rect, .map-callout:focus-visible > rect, .map-callout[aria-pressed="true"] > rect { stroke: var(--ink); stroke-width: 2.5; }
.map-callout:focus-visible { outline: none; }
.map-callout text { font-size: 14px; }
.state-shape[data-projection="all"], .state-shape[data-projection="partial"],
.map-callout[data-projection="all"] > rect, .map-callout[data-projection="partial"] > rect { stroke: var(--call-outline); stroke-width: 2; vector-effect: non-scaling-stroke; }
.state-shape[data-projection="partial"], .map-callout[data-projection="partial"] > rect { stroke-dasharray: 5 3; }
.state-shape[data-projection]:not([data-projection="none"]):is(:hover, :focus-visible, [aria-pressed="true"]),
.map-callout[data-projection]:not([data-projection="none"]):is(:hover, :focus-visible, [aria-pressed="true"]) > rect { stroke-width: 3.5; }
.map-projection-badge { cursor: pointer; }
.map-projection-badge rect { fill: var(--call-badge); stroke: var(--call-outline); stroke-width: 1; }
.map-projection-badge text { fill: var(--call-ink); font-size: 11px; font-weight: 700; text-anchor: middle; stroke: none; pointer-events: none; }
.map-projection-badge[data-projection="partial"] rect { stroke-dasharray: 3 2; }
.map-projection-badge .call-freshness { fill: var(--call-outline); font-size: 12px; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.projection-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; border-top: 1px solid var(--line); padding: 14px 0 17px; color: var(--muted); font-size: .6875rem; }
.projection-legend > strong { color: var(--ink); font-weight: 600; }
.projection-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.projection-legend > [hidden] { display: none; }
.projection-key { display: inline-block; min-width: 23px; padding: 0 4px; border: 1px solid var(--call-outline); border-radius: 3px; background: var(--call-badge); color: var(--call-ink); font-size: .6875rem; font-weight: 700; text-align: center; font-style: normal; line-height: 1.5; }
.projection-key-partial { border-style: dashed; }
.projection-key-delayed { background: var(--surface); border-style: dotted; color: var(--call-outline); }
.projection-legend small { width: 100%; font-size: .625rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 15px; font-size: .6875rem; color: var(--muted); padding: 9px 0 20px; }
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.swatch { display: inline-block; width: 13px; height: 13px; border-radius: 2px; border: 1px solid #14294525; flex-shrink: 0; }
.tone-r-strong { fill: #af3749; background: #af3749; }
.tone-r-lean { fill: #c57183; background: #c57183; }
.tone-close { fill: #816494; background: #816494; }
.tone-d-lean { fill: #6b90bd; background: #6b90bd; }
.tone-d-strong { fill: #356598; background: #356598; }
.tone-other { fill: #327d78; background: #327d78; }
.tone-r-called { fill: #af3749; background: #af3749; }
.tone-d-called { fill: #356598; background: #356598; }
.tone-other-called { fill: #327d78; background: #327d78; }
.tone-mixed-rd { fill: url(#called-mixed-rd); }
.tone-mixed-ro { fill: url(#called-mixed-ro); }
.tone-mixed-do { fill: url(#called-mixed-do); }
.tone-mixed-rdo { fill: url(#called-mixed-rdo); }
.swatch-called-mixed { background: repeating-linear-gradient(35deg, #af3749 0, #af3749 4px, #356598 4px, #356598 8px); }
.map-legend > strong { width: 100%; color: var(--ink); font-weight: 600; }
.tone-waiting { fill: var(--soft-navy); background: var(--soft-navy); }
.tone-unavailable { fill: url(#no-results-pattern); background: repeating-linear-gradient(135deg, var(--line), var(--line) 2px, var(--surface) 2px, var(--surface) 5px); }
.pattern-background { fill: var(--soft-navy); }
.pattern-line { stroke: var(--line); stroke-width: 1.5; }
.feed-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; }
.feed-stats p { margin: 0; padding-left: 17px; border-left: 1px solid var(--line); }
.feed-stats p:first-child { border: 0; padding-left: 0; }
.feed-stats strong { font-family: Georgia, serif; font-size: 1.85rem; font-weight: 400; line-height: 1.3; }
.feed-stats span { display: block; color: var(--muted); font-size: .6875rem; }
.feed-timestamp { color: var(--muted); font-size: .6875rem; margin: 14px 0 0; overflow-wrap: anywhere; }
.state-panel { border-left: 1px solid var(--line); padding: 25px 22px; background: var(--paper); min-width: 0; }
.state-select-label { display: block; color: var(--muted); font-size: .6875rem; text-transform: uppercase; letter-spacing: 1.3px; margin-bottom: 7px; }
.state-panel select { width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--input-border); padding: 9px 10px; border-radius: 2px; font-size: .875rem; min-height: 44px; }
.state-kicker { color: var(--red); font-size: .6875rem; letter-spacing: 1.5px; text-transform: uppercase; margin: 29px 0 10px; }
.state-panel h2 { font-size: 2rem; letter-spacing: -.7px; margin: 0 0 16px; }
.state-panel h2:focus { outline-offset: 5px; }
.state-empty { color: var(--muted); font-size: .875rem; }
.panel-stars { color: var(--red); letter-spacing: 8px; padding: 32px 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.state-summary { font-size: .8125rem; color: var(--muted); margin: 8px 0 17px; }
.state-summary strong { color: var(--ink); }
.state-projection-summary { display: block; color: var(--call-outline); font-weight: 600; margin-top: 9px; }
.state-vote-margin { display: block; margin-top: 6px; }
.state-sources { display: flex; flex-wrap: wrap; gap: 7px 16px; font-size: .75rem; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.state-sources a:first-child { width: 100%; font-weight: 600; }
.race-list { max-height: 560px; overflow-y: auto; scrollbar-gutter: stable; padding-right: 5px; }
.race-card { padding: 19px 0 17px; border-bottom: 1px solid var(--line); }
.race-card h3 { font: 600 .875rem 'Segoe UI', Arial, sans-serif; margin: 0 0 7px; line-height: 1.4; }
.race-status { font-size: .6875rem; color: var(--muted); margin: 0 0 13px; }
.race-projection { border-left: 3px solid var(--party-color, var(--call-outline)); background: var(--soft-navy); padding: 10px 12px; margin: 12px 0; font-size: .75rem; }
.race-projection a { color: var(--party-color, var(--call-outline)); font-weight: 600; }
.race-card[data-party] .race-status { color: var(--party-color); }
.race-projection small { display: block; margin-top: 6px; font-size: .625rem; color: var(--muted); }
.candidate-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: .75rem; margin: 9px 0; line-height: 1.5; }
.candidate-name { overflow-wrap: anywhere; }
.candidate-winner { display: block; color: var(--party-color, var(--call-outline)); font-size: .625rem; font-weight: 700; }
.candidate-called .candidate-name { font-weight: 600; }
.candidate-party { display: inline-block; margin-right: 5px; color: var(--party-color, var(--muted)); font-size: .625rem; font-weight: 700; }
.candidate-party[title] { text-decoration: none; }
.candidate-votes { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.candidate-votes small { display: block; color: var(--muted); font-size: .625rem; }
.race-reporting { font-size: .625rem; color: var(--muted); margin: 13px 0 0; }
.race-source { font-size: .6875rem; margin: 8px 0 0; }
.election-source-note { border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); padding: 15px 24px; margin: 0; }
.tracker-method { display: grid; grid-template-columns: 1fr 1.45fr; gap: 75px; padding: 48px 0 0; scroll-margin-top: 130px; }
.tracker-method .section-label { font-size: .6875rem; }
.tracker-method h2 { font-size: 2rem; margin: 18px 0; letter-spacing: -.6px; }
.tracker-method details { border-bottom: 1px solid var(--line); padding: 15px 0; font-size: .8125rem; }
.tracker-method details:first-child { padding-top: 0; }
.tracker-method summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.tracker-method details p { color: var(--muted); line-height: 1.8; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .state-shape { transition: none; } }
@media (max-width: 1060px) { .election-layout { grid-template-columns: minmax(0, 1fr) 290px; } .map-column { padding: 22px 16px 18px; } .nav-links { column-gap: 20px; } .term-tag { display: none; } }
@media (max-width: 760px) {
    .midterms-page { width: calc(100% - 32px); }
    .election-heading { display: block; padding-top: 30px; }
    .election-dateline { text-align: left; padding-top: 23px; }
    .election-dateline p { display: inline; margin-left: 12px; }
    .election-dateline > a { display: block; margin-top: 12px; }
    .election-layout { grid-template-columns: 1fr; }
    .state-panel { border-left: 0; border-top: 1px solid var(--line); padding: 22px; scroll-margin-top: 160px; }
    .election-toolbar { flex-wrap: wrap; gap: 10px; padding: 13px; }
    .office-switch { flex: 1; justify-content: space-between; }
    .office-switch button { padding: 9px 11px; }
    .election-refresh { margin-left: auto; }
    .feed-message { padding: 11px 16px; }
    .map-explainer { min-height: 0; }
    .map-container { min-height: 160px; }
    .map-legend { gap: 10px 12px; }
    .race-list { max-height: none; }
    .tracker-method { grid-template-columns: 1fr; gap: 15px; padding-top: 32px; }
}
@media (max-width: 400px) {
    .election-dateline p { display: block; margin-left: 0; }
    .election-toolbar { padding: 10px; }
    .office-switch button { font-size: .75rem; padding: 8px; }
    .map-heading h2 { font-size: 1.4rem; }
    .map-heading > span { max-width: 90px; }
    .feed-stats p { padding-left: 10px; }
}
/* Called seats sit directly below the office tabs; each poll updates the whole chamber. */
.seat-counter { padding: 22px 28px; border-bottom: 1px solid var(--border-color, #354254); }
.seat-counter[hidden] { display: none; }
.seat-counter-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.seat-counter-heading h2 { margin:0; font:700 22px Georgia,serif; }
.seat-counter-heading > span { font-size:12px; opacity:.8; }
.seat-totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:18px 0 14px; }
.seat-total.seat-other { text-align:center; }
.seat-total.seat-uncalled { text-align:center; }
.seat-total.seat-R { text-align:right; }
.seat-other-note { display:block; color:#339e93; font-size:11px; margin-top:4px; }
.seat-total strong { display:block; font-size:36px; line-height:1.2; font-variant-numeric:tabular-nums; }
.seat-total > span { display:block; margin-top:4px; font-size:12px; }
.seat-total.seat-D strong { color:#398fe0; }
.seat-total.seat-R strong { color:#e86464; }
.seat-total.seat-other strong { color:#339e93; }
.seat-total.seat-uncalled strong { color:var(--text-muted,#98a4b5); }
.seat-track { display:flex; position:relative; height:12px; background:#7c879533; overflow:hidden; border-radius:2px; }
.seat-track::after { content:''; position:absolute; left:50%; top:0; bottom:0; border-left:2px solid var(--text-primary,#fff); }
.seat-track .seat-D { background:#2876bd; }
.seat-track .seat-R { background:#ca4949; }
.seat-track .seat-other { background:#28877e; }
.seat-track .seat-uncalled { background:#7c87954d; }
.seat-counter > p { margin:10px 0 0; font-size:12px; line-height:1.6; opacity:.8; }
.source-health { padding:18px 28px; border-top:1px solid #7c879540; font-size:12px; line-height:1.6; }
.source-health summary,.race-comparison summary { cursor:pointer; font-weight:700; }
.source-health-row { display:flex; flex-wrap:wrap; gap:5px 14px; border-bottom:1px solid #7c879530; padding:9px 0; margin:0; }
.source-health-row > a { min-width:155px; }
.source-health-row small { opacity:.7; }
.race-comparison { font-size:12px; line-height:1.6; margin:14px 0; }
.source-report { display:flex; flex-direction:column; gap:3px; padding:12px 0; border-bottom:1px solid #7c879540; overflow-wrap:anywhere; }
.source-report small { opacity:.75; }
.call-conflict { color:#e8a84d; font-weight:700; font-size:12px; }
@media (max-width:600px) {
    .seat-counter { padding:18px; }
    .seat-counter-heading { align-items:flex-start; flex-direction:column; gap:5px; }
    .seat-totals { gap:7px; }
    .seat-total strong { font-size:29px; }
    .seat-total > span { font-size:10px; }
    .source-health { padding:18px; }
}
.tone-not-up { fill:#6d7785; background:#6d7785; }
.holdover-section { margin:20px 0; }
.holdover-section > h3 { font-size:14px; margin:0 0 12px; }
.holdover-card { border-left:3px solid #339e93; padding:10px 12px; margin:0 0 10px; background:#7c879514; font-size:12px; line-height:1.6; }
.holdover-card[data-party="D"] { border-color:#398fe0; }
.holdover-card[data-party="R"] { border-color:#e86464; }
.holdover-card > strong,.holdover-card > span { display:block; }
.holdover-card[data-party="D"] > strong { color:#398fe0; }
.holdover-card[data-party="R"] > strong { color:#e86464; }
.holdover-card > p { margin:4px 0; }
.holdover-section > small { display:block; font-size:11px; line-height:1.6; opacity:.75; }
.map-flip-badge rect { fill:#251c12 !important; stroke:#f4af50 !important; stroke-width:1.3; }
.map-flip-badge text { fill:#ffd08d !important; font:bold 11px Arial,sans-serif; text-anchor:middle; }
.flip-key { color:#f4af50; font-style:normal; font-weight:700; border:1px solid currentColor; padding:1px 5px; border-radius:3px; }
.race-flip { display:flex; flex-direction:column; gap:4px; border:1px solid #f4af50; border-left:4px solid #f4af50; padding:10px; margin:12px 0; font-size:12px; line-height:1.5; }
.race-flip > strong,.state-flip-summary { color:#cc7c19; }
html[data-theme="dark"] .race-flip > strong,html[data-theme="dark"] .state-flip-summary { color:#ffd08d; }
.race-flip[data-party="D"] { border-left-color:#398fe0; }
.race-flip[data-party="R"] { border-left-color:#e86464; }
.state-flip-summary { display:block; margin-top:8px; font-weight:700; }
.map-legend-more { flex-basis:100%; }
.map-legend-more summary { cursor:pointer; font-weight:600; padding:8px 0; }
.map-legend-more > .map-legend { margin:8px 0 0; }
.district-shape.district-selected { stroke:var(--ink); stroke-width:2.5; paint-order:stroke; }
.race-card.race-selected { outline:3px solid var(--ink); outline-offset:-3px; scroll-margin-block:160px 16px; }
@media (max-width:400px) { .seat-totals { grid-template-columns:repeat(2,minmax(0,1fr)); } .seat-total.seat-other,.seat-total.seat-uncalled,.seat-total.seat-R { text-align:left; } }
