
.calls-hero { padding: 28px 0 30px; border-bottom: 2px solid var(--ink); }
.calls-hero__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.calls-title { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 6vw, 72px); line-height: .95; }
.calls-control { display: inline-block; margin: 14px 0 22px; padding: 6px 12px; border: 2px solid var(--ink); background: var(--paper-2); font-weight: 800; font-size: 15px; }
.calls-control.is-called { color: #fff; box-shadow: var(--shadow-sm); font-size: 18px; }
.calls-control.is-d { background: var(--blue); }
.calls-control.is-r { background: var(--red); }

.tally { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.tally__side { display: flex; flex-direction: column; line-height: 1; }
.tally__side--r { text-align: right; }
.tally__party { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tally__num { font-family: var(--display); font-size: clamp(56px, 8vw, 96px); font-variant-numeric: tabular-nums; }
.tally__side--d .tally__party, .tally__side--d .tally__num { color: var(--blue-ink); }
.tally__side--r .tally__party, .tally__side--r .tally__num { color: var(--red-ink); }
.tally__bar { position: relative; display: flex; height: 44px; border: 2px solid var(--ink); box-shadow: var(--shadow); background: var(--paper); }
.tally__bar > span:not(.tally__mark) { height: 100%; transition: width .8s ease; }
.tally__d { background: var(--blue); }
.tally__r { background: var(--red); }
.tally__open { background: repeating-linear-gradient(45deg, var(--paper-2) 0 5px, var(--paper) 5px 10px); }
.tally__d + .tally__open { border-left: 2px solid var(--ink); }
.tally__open + .tally__r { border-left: 2px solid var(--ink); }
.tally__mark { position: absolute; left: 51%; top: -10px; bottom: -10px; width: 0; border-left: 3px solid var(--ink); }
.tally__mark span { position: absolute; top: calc(100% + 4px); left: 0; transform: translateX(-50%); white-space: nowrap; background: var(--yellow); border: 2px solid var(--ink); padding: 1px 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tally__note { margin: 40px 0 0; color: var(--muted); font-size: 14px; }

.feed { padding-top: 30px; }
.feed__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.feed__empty { margin: 0; padding: 22px; border: 2px dashed var(--ink); background: var(--paper-2); font-weight: 600; }
.call { position: relative; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); background: var(--paper); overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.call::before { content: ""; display: block; height: 10px; border-bottom: 2px solid var(--ink); }
.call--d::before { background: var(--blue); }
.call--r::before { background: var(--red); }
.call:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.call.is-picked { outline: 3px solid var(--yellow); outline-offset: -5px; }
.call.is-new { animation: call-in 2.4s ease-out; }
@keyframes call-in { 0%, 30% { background: var(--yellow); } 100% { background: var(--paper); } }
.call__button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: 0 0 14px; cursor: pointer; }
.call__button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.call__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px 0; }
.call__stamp { background: var(--ink); color: var(--paper); padding: 2px 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.call__time { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.call__row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px 0; }
.call__shape { width: 74px; height: 64px; display: block; overflow: visible; }
.call__shape-shadow { fill: var(--ink); transform: translate(2.5%, 2.5%); transform-box: fill-box; }
.call__shape-shape { stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.call--d .call__shape-shape { fill: var(--blue); }
.call--r .call__shape-shape { fill: var(--red); }
.call__state { font-family: var(--display); font-size: 30px; line-height: 1; text-transform: uppercase; }
.call__winner { padding-top: 4px; font-size: 16px; font-weight: 800; }
.call--d .call__winner { color: var(--blue-ink); }
.call--r .call__winner { color: var(--red-ink); }
.call__detail { padding-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.4; }


.featured { padding-top: 30px; }
.rc { border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: var(--paper); animation: rc-in .5s cubic-bezier(.2, .9, .25, 1.1); }
@keyframes rc-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.rc__bar { display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--ink); color: var(--paper); }
.rc__logo { width: 30px; height: 30px; border: 2px solid var(--paper); background: var(--paper); }
.rc__brand { font-family: var(--display); font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.rc__time { margin-left: auto; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.rc__body { display: grid; grid-template-columns: minmax(240px, 5fr) 7fr; }
.rc__map { position: relative; display: flex; align-items: center; justify-content: center; padding: 34px; min-height: 340px; border-right: 3px solid var(--ink);
  background-image: radial-gradient(var(--rule-soft) 1px, transparent 1.2px); background-size: 14px 14px; }
.rc--d .rc__map { background-color: #e8eeff; }
.rc--r .rc__map { background-color: #ffe9ea; }
.rc__shape { width: 100%; max-width: 360px; max-height: 300px; height: 300px; overflow: visible; }
.rc__shape-shadow { fill: var(--ink); transform: translate(3%, 3%); transform-box: fill-box; }
.rc__shape-shape { stroke: var(--ink); stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rc--d .rc__shape-shape { fill: var(--blue); }
.rc--r .rc__shape-shape { fill: var(--red); }
.rc__check { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-size: 34px; font-weight: 800; }
.rc__code { position: absolute; left: 20px; top: 16px; font-family: var(--display); font-size: 40px; line-height: 1; opacity: .2; }
.rc__words { padding: 26px 30px 24px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.rc__kicker { margin: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rc__headline { margin: 6px 0 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 6vw, 84px); line-height: .92; }
.rc--d .rc__headline { color: var(--blue-ink); }
.rc--r .rc__headline { color: var(--red-ink); }
.rc__dek { margin: 12px 0 0; font-size: 18px; line-height: 1.4; max-width: 40ch; }
.rc__results { margin-top: 20px; border: 2px solid var(--ink); }
.rc__cand { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 12px; font-variant-numeric: tabular-nums; }
.rc__cand + .rc__cand { border-top: 2px solid var(--ink); }
.rc__cand.is-winner { background: var(--paper-2); }
.rc__name { font-weight: 600; font-size: 16px; }
.rc__cand.is-winner .rc__name { font-weight: 800; }
.rc__pct { font-family: var(--display); font-size: 24px; line-height: 1; text-align: right; }
.rc__track { grid-column: 1; height: 12px; border: 2px solid var(--ink); background: var(--paper); }
.rc__fill { display: block; height: 100%; }
.rc__cand--d .rc__fill { background: var(--blue); }
.rc__cand--r .rc__fill { background: var(--red); }
.rc__cand--d .rc__pct { color: var(--blue-ink); }
.rc__cand--r .rc__pct { color: var(--red-ink); }
.rc__votes { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; align-self: center; }
.rc__foot { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .rc, .call.is-new { animation: none; } .call:hover { transform: none; } }

.board { padding-top: 36px; }
.board__table { border: 2px solid var(--ink); box-shadow: var(--shadow); background: var(--paper); }
.board__row { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(0, 2fr) minmax(150px, 1fr) 80px 80px; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--rule-soft); font-variant-numeric: tabular-nums; }
.board__row--head { border-top: 0; border-bottom: 2px solid var(--ink); background: var(--paper-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
#board-body .board__row:first-child { border-top: 0; }
.board__row.is-called { background: var(--paper-2); }
.board__state { font-family: var(--display); font-size: 20px; text-transform: uppercase; line-height: 1; }
.board__cands { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 14px; }
.board__cand b { font-weight: 800; }
.board__cand.is-winner { font-weight: 800; }
.board__check { color: var(--ink); }
.board__pill { display: inline-block; border: 2px solid var(--ink); padding: 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.board__pill--called-d { background: var(--blue); color: #fff; }
.board__pill--called-r { background: var(--red); color: #fff; }
.board__pill--close { background: var(--yellow); }
.board__pill--early { background: var(--paper-2); }
.board__pill--open { border-color: var(--rule-soft); color: var(--muted); }
.board__lead, .board__in { font-family: var(--mono); font-size: 14px; font-weight: 600; text-align: right; }
.board__row--head > span:nth-child(n+4) { text-align: right; }
.is-d { color: var(--blue-ink); }
.is-r { color: var(--red-ink); }
.board__pill.is-d, .board__pill.is-r { color: #fff; }
.board__muted { color: var(--muted); }

@media (max-width: 760px) {
  .tally { grid-template-columns: 1fr 1fr; }
  .tally__bar { grid-column: 1 / -1; grid-row: 2; }
  .tally__note { margin-top: 36px; }
  .board__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 12px; }
  .board__row--head { display: none; }
  .board__cands { grid-column: 1 / -1; grid-row: 2; }
  .board__status { grid-column: 2; grid-row: 1; }
  .board__lead, .board__in { grid-row: 3; text-align: left; font-size: 13px; }
  .board__lead { grid-column: 1; }
  .board__in { grid-column: 2; text-align: right; }
  .board__in::after { content: " in"; }
  .call__state { font-size: 26px; }
  .rc { box-shadow: 6px 6px 0 var(--ink); }
  .rc__body { grid-template-columns: 1fr; }
  .rc__map { min-height: 0; padding: 22px; border-right: 0; border-bottom: 3px solid var(--ink); }
  .rc__shape { height: 190px; }
  .rc__check { width: 48px; height: 48px; font-size: 26px; right: 14px; bottom: 14px; }
  .rc__words { padding: 18px 16px 18px; }
  .rc__brand { font-size: 18px; }
  .rc__time { font-size: 12px; }
}
