/* Seat Atlas on the Media Desk shell: navy sidebar, white cards on a pale ground, royal blue accent, Inter.
   Tokens follow livescribe/static/desk.css; party colours are used only for party encodings. */
:root {
  --navy: #1b2334; --navy-2: #26314b; --navy-line: #2c3850;
  --brand: #2447d8; --brand-2: #1d3ab8;
  --bg: #f7f8fb; --card: #ffffff; --border: #e4e8ef;
  --ink: #141b26; --muted: #5f6b7c; --muted-2: #98a2b1;
  --chip: #eceff5; --tint: #eef2fb; --amber: #9a6b00;
  --side-ink: #c6cede; --side-mute: #7c879d;
  /* aliases used by the scripts */
  --paper: var(--card); --ink-2: var(--muted); --ink-3: var(--muted-2);
  --accent: var(--brand);          /* positive side and highlights */
  --cool: #c98a12;                 /* negative side of diverging scales */
  --grid: #eef1f6; --axis: #c9d0dc; --hairline: var(--border); --nodata: #f0f2f6;
  /* sequential map ramp, pale tint to navy */
  --r1: #e8edfb; --r2: #c3cff5; --r3: #93a8ec; --r4: #5f7fe1; --r5: #2447d8; --r6: #1b2a7a;
  --p-alp: #d0312d; --p-lib: #1c4f9c; --p-nat: #0b4d3a; --p-coal: #1c4f9c; --p-grn: #4fae3a;
  --p-ind: #2a8c8c; --p-on: #e07b00; --p-other: #98a2b1;
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 "Inter", "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); display: flex; min-height: 100vh; }
::selection { background: var(--brand); color: #fff; }
h1, h2 { text-wrap: balance; }

/* sidebar */
.side { width: 236px; flex: 0 0 236px; background: var(--navy); color: var(--side-ink); display: flex; flex-direction: column;
  padding: 22px 16px; position: sticky; top: 0; height: 100vh; align-self: flex-start; }
.logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.logo .tile { width: 38px; height: 38px; border-radius: 9px; background: var(--brand); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.logo .tile svg { width: 20px; height: 20px; stroke: #fff; }
.logo .word { font-size: 16px; letter-spacing: .02em; color: #fff; }
.logo .word b { font-weight: 800; }
.logo .word span { font-weight: 400; }
.tagline { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: #8791a6; text-transform: uppercase; margin: 8px 0 26px; }
.navlbl { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--side-mute); text-transform: uppercase; margin: 0 10px 10px; }
.navlbl.second { margin-top: 24px; }
.navlinks a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: #b9c2d4; text-decoration: none;
  font-weight: 500; font-size: 13.5px; margin-bottom: 2px; }
.navlinks a svg { width: 16px; height: 16px; stroke: currentColor; flex: 0 0 auto; }
.navlinks a:hover { color: #fff; }
.navlinks a.active { background: var(--navy-2); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.navlinks a .count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--side-mute); }
.navlinks a.active .count { color: var(--side-ink); }
.side .foot { margin-top: auto; font-size: 10.5px; color: #6d7890; padding: 0 10px; }

/* content shell */
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: var(--card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 12px 28px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.crumb { font-size: 12.5px; color: var(--muted); }
.crumb b { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-size: 11.5px; }
.crumb .sep { margin: 0 8px; color: var(--muted-2); }
.topbar .right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); border-radius: 9px; background: var(--card); padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums; }
.wrap { padding: 26px 28px 40px; max-width: 1320px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #5561d8; margin-bottom: -10px; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.sub { color: var(--muted); margin: -8px 0 0; font-size: 14.5px; max-width: 75ch; }
.meta { color: var(--muted-2); font-size: 12px; margin: -10px 0 0; }

/* segmented and pill buttons */
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.pill { font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--chip); border: 1px solid transparent;
  border-radius: 9px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.seg .pill { background: none; border-radius: 7px; padding: 6px 12px; }
.pill:hover { color: var(--ink); }
.pill[aria-checked="true"], .pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill .n { font-weight: 500; opacity: .8; margin-left: 3px; }
.pill:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* cards and section heads */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; scroll-margin-top: 70px; min-width: 0; }
.sec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
h2 { margin: 0; font-size: 15px; font-weight: 700; }
.controls { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lbl, .sub-head { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.sub-head { margin: 14px 0 6px; }
select { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 10px; max-width: 280px; }
.chk { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.chk input { accent-color: var(--brand); }
.note { color: var(--muted); font-size: 12.5px; margin: 4px 0 10px; max-width: 80ch; }
.notice { display: flex; gap: 12px; background: var(--chip); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.notice p { margin: 0; font-size: 13.5px; color: var(--muted); }
.notice b { color: var(--ink); }

/* stat strip */
.stats { display: flex; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.stats > div { padding: 10px 16px; border-right: 1px solid var(--border); flex: 1 1 auto; }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: 22px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; order: 2; }
.stats span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

/* map */
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.map-wrap { position: relative; background: #fbfcfe; border: 1px solid var(--border); border-radius: 10px; padding: 6px; min-width: 0; }
#map { width: 100%; height: 600px; display: block; cursor: grab; }
#map path.seat { stroke: #fff; stroke-width: 0.6; vector-effect: non-scaling-stroke; }
#map path.seat:hover, #map path.seat.sel { stroke: var(--ink); stroke-width: 2; }
.legend { display: flex; align-items: flex-end; margin: 6px 4px 2px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.legend .sw { width: 56px; }
.legend .sw i { display: block; height: 10px; }
.legend .sw:first-child i { border-radius: 4px 0 0 4px; }
.legend .sw span { display: block; padding-top: 3px; font-variant-numeric: tabular-nums; }
.profile { font-size: 13px; min-width: 0; }
.profile h3 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 4px 0 4px; }
.profile .kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5561d8; }
.profile .who { color: var(--muted); margin-bottom: 10px; }
.profile .chip { display: inline-block; width: 9px; height: 9px; padding: 0; border: 0; border-radius: 3px; margin-right: 6px; }
.profile .grp { margin-top: 12px; }
.profile .row { display: grid; grid-template-columns: 1fr 64px 70px; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--border); }
.profile .row .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar { position: relative; height: 6px; background: var(--chip); border-radius: 3px; }
.bar i { position: absolute; top: -2px; width: 3px; height: 10px; background: var(--muted); border-radius: 1px; }
.bar.hi i { background: var(--brand); }
.profile .scroll { max-height: 540px; overflow-y: auto; padding-right: 4px; }

/* correlate */
.corr-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.corr-grid > div, .rank-grid > div, .model-grid > div, .fc-grid > div { min-width: 0; }
#scatter { width: 100%; height: 460px; display: block; }
.axis text { font: 11px "Inter", sans-serif; fill: var(--muted); }
.axis path, .axis line { stroke: var(--axis); }
.gridline line { stroke: var(--grid); }
.gridline path { display: none; }
.dot { stroke: #fff; stroke-width: 1.2; cursor: pointer; }
.dot.sel { stroke: var(--ink); stroke-width: 2.5; }
.dot:focus { outline: none; stroke: var(--brand); stroke-width: 3; }
.fit { stroke: var(--ink); stroke-width: 2; fill: none; }
.dlabel { font-size: 11px; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.party-key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin: 4px 0 8px; }
.party-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.corr-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.corr-filter .pill { padding: 4px 10px; font-size: 11.5px; }
.correlates { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.correlates li { display: grid; grid-template-columns: 1fr 120px 46px; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.correlates li:hover, .correlates li:focus { background: var(--tint); outline: none; }
.correlates li.on { font-weight: 700; color: var(--brand); }
.rbar { position: relative; height: 10px; }
.rbar::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--axis); }
.rbar i { position: absolute; top: 0; height: 10px; border-radius: 3px; }
.rv { text-align: right; font-variant-numeric: tabular-nums; }

/* compare many */
.mx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mx-chip { display: inline-flex; align-items: center; background: var(--chip); border: 1px solid transparent; border-radius: 9px; overflow: hidden; }
.mx-chip.lead { background: var(--tint); border-color: var(--brand); }
.mx-chip button { font: inherit; font-size: 12px; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 5px 4px 5px 10px; cursor: pointer; }
.mx-chip.lead button:first-child { color: var(--brand); }
.mx-chip button.x { color: var(--muted-2); padding: 5px 9px 5px 6px; font-size: 14px; line-height: 1; }
.mx-chip button.x:hover { color: var(--ink); }
#mxAdd { max-width: 240px; }
.mx-grid { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 24px; align-items: start; }
.mx-grid > div { min-width: 0; }
#mxHeat { display: block; }
#mxHeat g[role=button]:focus { outline: none; }
#mxHeat g[role=button]:focus rect, #mxHeat g[role=button]:hover rect { stroke: var(--ink); stroke-width: 1.5; }
.mx-small { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.mini { font: inherit; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--ink); min-width: 0; }
.mini:hover { border-color: var(--brand); }
.mini svg { display: block; width: 100%; height: auto; border-radius: 6px; margin-top: 6px; }
.mini-t { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.mini-t span { min-width: 0; }
.mini-t b { font-variant-numeric: tabular-nums; flex: 0 0 auto; }

/* tables */
.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.model-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
th { text-align: right; padding: 8px; border-bottom: 1px solid var(--border); font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); vertical-align: bottom; background: var(--card); position: sticky; top: 0; }
th:first-child, td:first-child { text-align: left; }
td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--border); }
tr.avg td { color: var(--muted); font-style: italic; background: var(--bg); }
td .chip { display: inline-block; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 2px; margin-right: 6px; }
td.hi { color: var(--brand); font-weight: 700; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--tint); }
.predictors { max-height: 560px; overflow-y: auto; font-size: 13px; }
.predictors .g { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin: 12px 0 4px; }
.predictors label { display: flex; gap: 6px; padding: 2px 0; }
.predictors input { accent-color: var(--brand); }
details { margin-top: 10px; font-size: 13px; }
summary { cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* forecast */
.fc-inputs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.fc-in { display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 0; }
.fc-in b { font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.fc-in .note { margin: 0; }
.fc-in select { max-width: 100%; }
input[type=range] { accent-color: var(--brand); width: 100%; }
.fc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; }
#fcHist { width: 100%; height: 220px; display: block; }
.fc-seats { max-height: 760px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.fc-seats td input, .fc-seats td select { font: inherit; font-size: 12px; width: 64px; border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 5px; background: var(--card); color: var(--ink); }
.fc-seats td select { width: 96px; }
.fc-seats tr.flip { background: var(--tint); }
.fc-seats tr.flip td:first-child { font-weight: 700; }
.fc-seats tr.flip td:first-child::after { content: "flips"; margin-left: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); background: var(--card); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.fc-seats td.nc { color: var(--muted-2); font-style: italic; }
.prob { position: relative; height: 8px; background: var(--chip); border-radius: 4px; overflow: hidden; min-width: 70px; }
.prob i { position: absolute; left: 0; top: 0; height: 8px; }

.fp-result { grid-column: 1 / -1; }
.fp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-chip { font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px; font-variant-numeric: tabular-nums; }
.fp-chip b { color: var(--ink); font-weight: 700; }
.fp-chip.on { border-color: var(--brand); background: var(--tint); }

/* sources */
.sources { font-size: 13px; color: var(--muted); padding-left: 18px; margin: 0 0 10px; }
.sources li { margin-bottom: 4px; }
.sources a { color: var(--brand); }

.has-help { cursor: help; }
.stats .has-help span, th.has-help, #corrHelp, #mxHelp, .profile .row .lbl.has-help { text-decoration: underline dotted var(--muted-2); text-underline-offset: 3px; }
.stats > div.has-help:hover, .stats > div.has-help:focus-visible { background: var(--tint); outline: none; }
.correlates li.has-help, .mini.has-help { cursor: pointer; }
.tooltip div + div { margin-top: 4px; }
.tooltip { position: fixed; pointer-events: none; background: var(--navy); color: #fff; padding: 9px 11px; font-size: 12px; max-width: 340px; line-height: 1.45;
  z-index: 10; border-radius: 8px; box-shadow: 0 4px 14px rgba(20, 27, 38, .18); }
.tooltip b { display: block; font-size: 13px; }

@media (max-width: 1100px) {
  .map-grid, .corr-grid, .fc-grid, .mx-grid { grid-template-columns: minmax(0, 1fr); }
  .fc-inputs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 840px) {
  .side { display: none; }
  .topbar { padding: 10px 16px; }
  .wrap { padding: 18px 16px 32px; }
  .rank-grid, .model-grid { grid-template-columns: minmax(0, 1fr); }
  #map { height: 420px; }
  #scatter { height: 360px; }
  .controls { margin-left: 0; }
  select { max-width: 100%; }
}
@media (max-width: 520px) { .fc-inputs { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }

/* findings */
.findings { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.finding { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.finding .kicker, .seat-page .kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5561d8; }
.finding h3 { font-size: 16px; font-weight: 700; margin: 4px 0 6px; line-height: 1.3; text-wrap: balance; }
.finding p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.f-fig svg { display: block; width: 100%; height: auto; }
.f-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.f-foot .note { margin: 0; font-size: 11.5px; flex: 1 1 160px; }
.f-list { list-style: none; margin: 0; padding: 0; }
.f-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.f-list li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.f-list li a:hover { color: var(--brand); text-decoration: underline; }
.f-list li .note { margin: 0; font-size: 12px; }
.f-list li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; margin-right: 6px; }

/* search and phone section jump */
.search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; background: var(--card); }
.search:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.search svg { width: 14px; height: 14px; stroke: var(--muted-2); flex: 0 0 auto; }
.search input { font: inherit; font-size: 12.5px; border: 0; outline: 0; padding: 7px 0; width: 170px; background: none; color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#jump { display: none; }
.open-seat { display: inline-block; text-decoration: none; margin: 0 0 10px; }

/* seat page */
.seat-page { border-color: var(--brand); box-shadow: 0 0 0 3px var(--tint); }
.seat-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.seat-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin: 2px 0; }
.seat-head .who { color: var(--muted); display: flex; align-items: center; }
.seat-stats { margin-top: 10px; }
.seat-stats small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.seat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.seat-grid > div { min-width: 0; }
#seatHist { width: 100%; height: 230px; display: block; }
.pbar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 52px 44px; gap: 8px; align-items: center; padding: 4px 0; font-size: 13px; }
.pbar .track { height: 10px; background: var(--chip); border-radius: 3px; overflow: hidden; }
.pbar .track i { display: block; height: 100%; border-radius: 3px; }
.pbar b { text-align: right; font-variant-numeric: tabular-nums; }
.pbar small { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.corr-table td { text-align: left; vertical-align: top; }
.corr-table th { text-align: left; }
.corr-table td:first-child { white-space: nowrap; }
@media (max-width: 1100px) { .seat-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 840px) {
  #jump { display: block; }
  .topbar { position: static; }
  .card { scroll-margin-top: 8px; }
  .seat-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .seat-stats > div { border-bottom: 1px solid var(--border); }
  .seat-stats b { font-size: 19px; }
  .search input { width: 120px; }
  .corr-table td:nth-child(3), .corr-table th:nth-child(3) { display: none; }
}
@media (max-width: 520px) { .pbar { grid-template-columns: 110px minmax(0, 1fr) 48px 40px; } }

/* footer */
.site-foot { color: var(--muted); font-size: 12px; padding: 4px 4px 0; max-width: 90ch; }
.site-foot p { margin: 0 0 6px; }
.site-foot a { color: var(--brand); }
#authLine:empty { display: none; }
#authLine { color: var(--ink); }
.draft-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff4d6; color: #5c4300; border-bottom: 1px solid #f0d58a; padding: 8px 16px; font-size: 12.5px; font-weight: 600; text-align: center; }

/* polls */
#pollChart { width: 100%; height: 260px; display: block; margin: 4px 0 8px; }
.poll-table td { white-space: nowrap; }
.poll-table td:nth-child(2) { white-space: normal; text-align: left; }
.poll-table th:nth-child(2) { text-align: left; }
.poll-table a { color: var(--ink); }
.poll-table .ok { color: #1f7a3a; font-size: 11px; font-weight: 700; }
.fc-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.fc-btns .pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* map labels */
.map-labels text { fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: rgba(255, 255, 255, .85); pointer-events: none; }

/* forecast seat tables as stacked cards on phones */
@media (max-width: 840px) {
  .fc-seats { overflow-x: visible; }
  .fc-seats table, .fc-seats tbody { display: block; width: 100%; }
  .fc-seats thead { display: none; }
  .fc-seats tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
  .fc-seats tr.flip { border-color: var(--brand); }
  .fc-seats td { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 0; padding: 3px 0; text-align: right; font-size: 12.5px; }
  .fc-seats td::before { content: attr(data-label); color: var(--muted); font-size: 11px; text-align: left; }
  .fc-seats td:first-child { grid-column: 1 / -1; font-size: 14px; font-weight: 700; justify-content: flex-start; }
  .fc-seats td:first-child::before { content: none; }
  .fc-seats td input, .fc-seats td select { max-width: 90px; }
}

.poll-scope { color: var(--ink); background: var(--tint); border-radius: 8px; padding: 8px 12px; margin: -4px 0 10px; }
