/* Archive pages (/2026/...): the result card, the scorecard and the still-counting list. Colors come from styles.css. */
.arc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.arc-crumbs a { color: var(--ink-2); text-decoration: none; }
.arc-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.arc-crumbs .arc-badge { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.arc-switch { display: inline-flex; gap: 2px; border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.arc-switch a { padding: 2px 10px; border-radius: 999px; }
.arc-switch a[aria-current="page"] { background: var(--ink); color: var(--page); }

.arc-card { padding: 20px 20px 18px; }
.arc-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.arc-kicker span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.arc-forecast-kicker { margin: 26px 0 -4px; }
.arc-headline { font-family: "Archivo", system-ui, sans-serif; font-weight: 800; font-size: clamp(24px, 4.4vw, 34px); line-height: 1.12; margin: 6px 0 6px; letter-spacing: -0.01em; }
.arc-sub { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; max-width: 80ch; }
.arc-sub b { color: var(--ink); }

.arc-tally { position: relative; display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: var(--norace); margin: 14px 0 6px; }
.arc-seg { height: 100%; }
.arc-seg.d.won { background: var(--d-3); } .arc-seg.d.lead { background: var(--d-1); }
.arc-seg.r.won { background: var(--r-3, #e61d16); } .arc-seg.r.lead { background: var(--r-1, #f7c4c0); }
.arc-seg.i.won { background: var(--i-bar); } .arc-seg.i.lead { background: color-mix(in srgb, var(--i-bar) 35%, transparent); }
.arc-seg.none { background: var(--norace); }
.arc-maj { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .85; }
.arc-tally-key { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.arc-tally-key b { font-family: "Archivo", system-ui, sans-serif; font-size: 18px; }
.arc-maj-label { text-align: center; }

.arc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 4px; }
.arc-stat { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.arc-stat b { display: block; font-family: "Archivo", system-ui, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.15; }
.arc-stat span { font-size: 12.5px; color: var(--muted); }
.arc-misses { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.arc-misses-label { color: var(--ink-2); }
.arc-chip { font: inherit; font-size: 12.5px; color: var(--ink); background: none; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.arc-chip:hover, .arc-chip:focus-visible { border-color: var(--ink-2); }

.arc-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.arc-head-row h2 { margin: 0 0 4px; font-size: 20px; }
.arc-updated { font-size: 12.5px; color: var(--muted); }
.arc-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.arc-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.arc-row:hover, .arc-row:focus-visible { background: var(--surface-2); outline: none; }
.arc-row-name b { display: block; font-size: 15px; }
.arc-row-name span, .arc-row-lead span, .arc-row-rep span { display: block; font-size: 12px; color: var(--muted); }
.arc-row-lead { font-weight: 700; font-size: 15px; }
.arc-muted { color: var(--muted); font-weight: 500; }
.arc-rep-bar { height: 6px; border-radius: 3px; background: var(--norace); overflow: hidden; margin-bottom: 4px; }
.arc-rep-bar i { display: block; height: 100%; background: var(--ink-2); }
.arc-chance { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.arc-chance i { display: block; height: 100%; }
.arc-chance i:last-child { flex: 1; }
.arc-chance i.d { background: var(--d-bar, #0077cd); } .arc-chance i.r { background: var(--r-bar, #e61d16); } .arc-chance i.i { background: var(--i-bar, #a848bf); }
.arc-row-rep .arc-chance-txt { font-size: 13px; color: var(--ink-2, inherit); }
.arc-row-rep .arc-chance-txt b { font-weight: 700; }
#arc-counting.is-final .arc-list { display: none; }
@media (max-width: 560px) {
  .arc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .arc-row-rep { grid-column: 1 / -1; }
  .arc-tally-key { font-size: 12px; }
}

/* the archive's views: four map views, two seat-chart views, and a caption under each title */
body .view-seg { grid-template-columns: repeat(4, 1fr); }
.seat-seg { margin: 0 0 8px; }
.view-caption { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); max-width: 90ch; }
.arc-lessons ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.arc-lessons li { color: var(--ink-2); font-size: 14.5px; max-width: 85ch; }
.arc-lessons li b { color: var(--ink); }
.arc-lessons .arc-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.arc-more { margin: 12px auto 2px; display: block; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); background: none; border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.arc-more:hover, .arc-more:focus-visible { border-color: var(--ink-2); }
.arc-scored { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); max-width: 90ch; }

/* the Overview tab: the four map views in a 2 x 2 grid, each with a short key; a panel's title opens that view */
body .view-seg { grid-template-columns: repeat(5, 1fr); }
#map-section.is-overview .map-wrap { display: none; }
#map-section.is-overview #map-legend:empty { display: none; }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.ov-grid[hidden] { display: none; }
.ov-panel { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.ov-panel figcaption { margin: 0 0 4px; }
.ov-open { font: inherit; font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ov-open .ov-arrow { color: var(--muted); font-weight: 400; transition: transform .15s, color .15s; }
.ov-open:hover .ov-arrow, .ov-open:focus-visible .ov-arrow { color: var(--ink); transform: translateX(2px); }
.ov-map { width: 100%; height: auto; display: block; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.ov-map.tiles { max-width: 86%; margin-inline: auto; }
.ov-key { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; line-height: 1.35; color: var(--ink-2); }
.ov-key > span + span { color: var(--muted); }
.ov-key > span:first-child:not(.ov-acc) { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.ov-key .ov-pair { white-space: nowrap; }
.ov-key .ov-pair > .sw { margin-right: 4px; }
.ov-key i, .ov-key .sw { display: inline-block; width: 11px; height: 11px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.ov-key .ov-sw { display: inline-flex; gap: 1px; margin-right: 4px; vertical-align: -1px; }
.ov-key .ov-sw i { margin-right: 0; }
.ov-key .ov-acc i { width: 14px; }
.ov-key .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ink); margin-right: 4px; vertical-align: 0; }
/* the small maps: the same shapes and colors as the full maps, with labels sized for the smaller drawing */
.ov-map .state { stroke: var(--surface); stroke-width: .8px; transition: fill .3s; }
.ov-map .state.race, .ov-map .tile.race, .ov-map .hex { cursor: pointer; }
.ov-map .ring { fill: none; stroke: var(--ink); stroke-width: 2.5px; stroke-linejoin: round; pointer-events: none; }
.ov-map .tile rect { stroke: var(--surface); stroke-width: 2; transition: fill .3s; }
.ov-map .tile.race:hover rect, .ov-map .tile.race.hl rect { stroke: var(--ink); stroke-width: 3; }
.ov-map text { pointer-events: none; font-size: 19px; font-weight: 600; text-anchor: middle; dominant-baseline: central; transition: fill .3s; }
.ov-map .tile text { font-size: 17px; }
.ov-map .lbl-dark { fill: #0b0b0b; }
.ov-map .lbl-light { fill: #ffffff; }
.ov-map .lbl-muted { fill: var(--muted); font-weight: 500; }
.ov-map :focus { outline: none; }
@media (max-width: 560px) {
  body .view-seg button { font-size: 11.5px; padding: 4px 3px; }
  .ov-grid { gap: 12px 10px; }
  .ov-open { font-size: 13.5px; }
  .ov-key { font-size: 11px; }
  .ov-map text { display: none; }   /* state names are too small to read on a phone's half-width map */
}

/* Download the data */
.arc-dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 2px; }
.arc-dl-btn { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: none; border: 1px solid var(--axis); border-radius: 8px; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.arc-dl-btn span { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.arc-dl-btn:hover, .arc-dl-btn:focus-visible { border-color: var(--ink-2); }
.arc-data .hint a { color: inherit; }
@media (max-width: 560px) { .arc-dl-btn { width: 100%; justify-content: space-between; } }
