@font-face {
  font-family: "Rubik";
  src: url("../../../fonts/Rubik-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: block;
}
@font-face {
  font-family: "Open Sans";
  src: url("../../../fonts/OpenSans-var.woff2") format("woff2");
  font-weight: 300 800;
  font-display: block;
}

:root {

  --navy: #00144e;
  --navy-deep: #000a2c;
  --navy-line: #174676;
  --navy-soft: #334f99;
  --brand-red: #a70000;
  --ink-soft: #99a7cc;
  --paper: #ffffff;
  --paper-tint: #e6e9f3;
  --gold: #ffc000;


  --D: #2f7bf0;
  --R: #e5383b;
  --I: #9b59e0;
  --L: #e0a800;
  --G: #2e9e4f;
  --O: #8a94b3;

  --no-data: rgba(78, 78, 84, .78);
  --county-stroke: #0a1f5c;

  --display: "Rubik", "Open Sans", Arial, sans-serif;
  --body: "Open Sans", Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  overscroll-behavior: none;
}

button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }


#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--s, 1));
  overflow: hidden;
  background:
    radial-gradient(1200px 900px at 72% 55%, #0a2a7a 0%, rgba(10, 42, 122, 0) 70%),
    linear-gradient(180deg, #001a5e 0%, var(--navy-deep) 100%);
}


.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 112px;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 48px;
  background: var(--navy);
  border-top: 6px solid var(--brand-red);
  box-shadow: 0 1px 0 var(--navy-line), 0 12px 32px rgba(0, 0, 0, .35);
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  padding-right: 36px;
  border-right: 2px solid var(--navy-line);
  -webkit-tap-highlight-color: transparent;
}

.brand-logo { display: block; height: 62px; width: auto; }
.title-kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.title-main {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -.01em;
  margin-top: 2px;
}

.race-tabs {
  margin-left: auto;
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, .25);
  border-radius: 999px;
}
.race-tab {
  height: 64px;
  min-width: 150px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  color: var(--paper-tint);
  transition: background-color .25s, color .25s, transform .15s;
}
.race-tab { white-space: nowrap; }
.race-tab:active { transform: scale(.96); }
.race-tab.is-active {
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}


.main {
  position: absolute;
  top: 112px;
  bottom: 64px;
  left: 0;
  right: 0;
}

.statewide {
  position: absolute;
  left: 48px;
  top: 28px;
  bottom: 28px;
  width: 720px;
  display: flex;
  flex-direction: column;
  transition: opacity .35s .2s, transform .45s .2s var(--ease-out);
}

body.is-pulled .statewide {
  transition-delay: 0s;
  opacity: 0;
  transform: translateX(-36px);
  pointer-events: none;
}

.panel-kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.panel-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 6px 0 18px;
}

.reporting { margin-bottom: 26px; }
.reporting-label {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 600;
  color: var(--paper-tint);
  margin-bottom: 10px;
}
.reporting-label b { font-family: var(--display); font-weight: 700; color: #fff; }
.reporting-track {
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}
.reporting-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #fff;
  transition: width .9s var(--ease-out);
}


.cands { display: flex; flex-direction: column; gap: 14px; }

.cands-empty, .key-empty {
  padding: 34px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  color: var(--paper-tint);
  text-align: center;
}
.key-empty { padding: 22px; font-size: 30px; }
body.is-portrait .cands-empty, body.is-portrait .key-empty { padding: 22px 16px; border-radius: 12px; font-size: 20px; }
.cand {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 22px;
  align-items: center;
  padding: 18px 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .4s;
}
.cand.is-leader { background: rgba(255, 255, 255, .13); }
.cand-avatar {
  grid-row: 1 / span 2;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  color: #fff;
  background: var(--pc) center / cover no-repeat;



  --ring: 4px;
  --ring-gap: 2px;
  box-shadow: 0 0 0 var(--ring-gap) var(--navy), 0 0 0 calc(var(--ring-gap) + var(--ring)) var(--pc);
  position: relative;
}
.cand-check {
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px var(--navy);
  transform: scale(0);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.cand-check svg { width: 22px; height: 22px; }
.cand.is-winner .cand-check { transform: scale(1); }
.cand-name { min-width: 0; }
.cand-win {
  display: none;
  align-items: center;
  gap: 5px;
  margin-left: 12px;
  padding: 3px 10px 3px 7px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 2px;
  animation: win-in .6s cubic-bezier(.34, 1.56, .64, 1) both;
}
.cand-win svg { width: 15px; height: 15px; }
.cand.is-winner .cand-win { display: inline-flex; }
.cand.is-winner { box-shadow: inset 0 0 0 2px var(--gold); }

.cand-flip {
  display: none;
  align-items: center;
  margin-left: 8px;
  padding: 3px 11px;
  line-height: 15px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: 5px;
  animation: win-in .6s cubic-bezier(.34, 1.56, .64, 1) .15s both;
}
.cand.is-flip .cand-flip { display: inline-flex; }
@keyframes win-in { from { opacity: 0; transform: scale(.6); } }
.cand.is-others .cand-avatar { font-size: 28px; }

.cand.is-others .others-glyph { width: 54%; height: 54%; opacity: .92; }
.key-row.is-others .key-cand { font-weight: 500; color: var(--paper-tint); }
.cand-first { font-size: 21px; font-weight: 600; color: var(--paper-tint); line-height: 1.1; }


.cand-last {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
}
.cand-lastname, .key-lastname { white-space: nowrap; }
.cand-party {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 6px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  vertical-align: 3px;
  background: var(--pc);
  color: #fff;
}
.cand-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  vertical-align: 4px;
}
.cand-nums { text-align: right; }
.cand-pct {
  font-family: var(--display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.cand-pct small { font-size: .5em; margin-left: 2px; }
.cand-votes {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.cand-bar {
  grid-column: 2 / span 2;
  height: 12px;
  margin-top: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.cand-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--pc);
  transition: width 1s var(--ease-out);
}


.map-region {
  position: absolute;
  left: 800px;
  right: 0;
  top: 0;
  bottom: 0;
}
.map {
  position: absolute;
  inset: 10px 40px 10px 40px;
  width: calc(100% - 80px);
  height: calc(100% - 20px);
  overflow: hidden;
}

.county {
  fill: var(--no-data);
  stroke: var(--county-stroke);
  stroke-width: 1.1;
  stroke-linejoin: round;
  fill-rule: evenodd;
  vector-effect: non-scaling-stroke;
  transition: fill .7s, filter .12s;
  cursor: pointer;
}
.county.is-pressed { filter: brightness(1.35); }
.county.is-pulled {
  fill: #fff !important;
  transition: fill .25s;
}

.labels { pointer-events: none; transition: opacity .3s; }
.labels text.is-pulled { fill: var(--navy); stroke: rgba(255, 255, 255, .6); }
body.is-zoomed .legend { background: rgba(0, 10, 44, .94); }
.labels text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: rgba(0, 12, 48, .7);
  stroke-width: 3px;
  stroke-linejoin: round;
}
body.no-labels .labels { opacity: 0; }

.legend {
  position: absolute;
  left: 48px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(0, 10, 44, .72);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 16px;
  font-weight: 600;
  color: var(--paper-tint);
  transform-origin: right bottom;

  transition: opacity .3s, transform .9s cubic-bezier(.65, 0, .35, 1);
}
.legend-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.legend-row { display: flex; align-items: center; gap: 12px; }
.legend-ramp { display: flex; gap: 3px; }
.legend-ramp i { width: 26px; height: 18px; border-radius: 4px; }
.legend-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  margin: -4px 0 0;
  width: 113px;
}


.compare-ctl {
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-ctl[hidden] { display: none; }
.compare-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 2px solid var(--navy-soft);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .06em;
  white-space: nowrap;
  color: #fff;
  transition: background-color .2s, color .2s, transform .1s, box-shadow .1s;
}
.compare-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.compare-btn.is-active { background: #fff; border-color: #fff; color: var(--navy); }
.compare-btn:disabled { opacity: .28; box-shadow: none; border-style: dashed; }
.compare-btn.is-live { display: inline-flex; align-items: center; gap: 8px; }
.compare-btn.is-live::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b3b;
}
.compare-btn.is-live.is-active::before { animation: blink 1.6s infinite; }





body:not(.is-portrait) .footbar-right { order: -1; }
body:not(.is-portrait) .compare-ctl { order: 1; margin-right: -33px; }
.solid-btn {
  width: 44px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 2px solid var(--navy-soft);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
  color: #fff;
  transition: background-color .2s, color .2s, transform .1s, box-shadow .1s;
}
.solid-btn svg { width: 36px; height: 36px; }
.solid-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.solid-btn.is-on { background: #fff; border-color: #fff; color: var(--navy); }
.solid-btn:disabled { opacity: .28; box-shadow: none; border-style: dashed; }

.legend-solid, .legend-solid-names { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; column-gap: 6px; width: 398px; }
.legend-solid i { height: 20px; border-radius: 3px; }
.legend-solid-names { margin: -2px 0 2px; text-align: center; }


.footbar { gap: 14px; padding: 0 32px; white-space: nowrap; }
.footbar-right { gap: 14px; }
.compare-ctl { gap: 8px; }
.compare-btn { padding: 0 15px; }


.demo-ctl {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px 0 6px;
  border-radius: 12px;
  background: rgba(255, 192, 0, .12);
  border: 1px solid rgba(255, 192, 0, .45);
}
.demo-btn {
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  color: var(--navy);
  background: var(--gold);
}
.demo-btn:active { transform: translateY(1px); }
.demo-play { min-width: 90px; }
.demo-slider {
  width: 150px;
  height: 40px;
  accent-color: var(--gold);
  cursor: pointer;
}
.demo-slider::-webkit-slider-thumb { width: 26px; height: 26px; }


body:not(.is-portrait) .demo-ctl { gap: 6px; }
body:not(.is-portrait) .demo-word { display: none; }
body:not(.is-portrait) .demo-btn { width: 44px; min-width: 0; padding: 0; font-size: 18px; }
body:not(.is-portrait) .demo-slider { width: 40px; }
.demo-readout {
  min-width: 100px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}


.zoom-ctl {
  position: absolute;
  top: 18px;
  right: 28px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 10, 44, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  z-index: 2;
}
.zoom-ctl button {
  height: 46px;
  padding: 0 18px;
  border-radius: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-tint);
  transition: background-color .2s, color .2s;
}
.zoom-ctl button.is-active { background: #fff; color: var(--navy); }



.statewide.is-compare .cands { display: none; }
.swc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.swc-head:first-child { margin-top: 0; }
.swc-live {
  padding: 3px 9px;
  border-radius: 5px;
  background: #e5383b;
  color: #fff;
  font-size: 14px;
}
.swc-rows { display: flex; flex-direction: column; gap: 6px; }
.sw-compare .key-row { height: 64px; }
.sw-compare .key-cand { font-size: 27px; }
.sw-compare .key-pct { font-size: 34px; }
.sw-compare .cand-win { font-size: 12px; margin-left: 10px; vertical-align: 4px; }
.swc-shift {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 10, 44, .55);
  border: 1px dashed rgba(255, 255, 255, .22);
  font-size: 18px;
  font-weight: 600;
  color: var(--paper-tint);
}
.swc-shift b { font-family: var(--display); font-weight: 700; font-size: 24px; }
.swc-shift em {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 6px;
  font-style: normal;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}



.reporting[hidden], .pill-btn[hidden] { display: none; }
.final-tag {
  margin-right: 10px;
  padding: 2px 9px;
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font-family: var(--display);
  font-style: normal;
  font-weight: 800;
  font-size: .75em;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.reporting-final .reporting-track { visibility: hidden; }
.swc-final { justify-content: flex-start; }
.swc-final span { font-size: 22px; }
.swc-final b { color: #fff; }



body:not(.is-portrait) .statewide.is-past .swc-rows { gap: 14px; }
body:not(.is-portrait) .statewide.is-past .sw-compare .key-row {
  height: 170px;
  grid-template-columns: 24px 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 22px;
  row-gap: 4px;
  padding: 0 30px;
  border-radius: 18px;
}
body:not(.is-portrait) .statewide.is-past .sw-compare .key-swatch { grid-row: 1 / span 2; width: 24px; height: 24px; border-radius: 6px; }
body:not(.is-portrait) .statewide.is-past .sw-compare .key-cand { grid-row: 1 / span 2; font-size: 37px; }
body:not(.is-portrait) .statewide.is-past .sw-compare .key-cand small { margin-left: 12px; padding: 3px 10px; font-size: 17px; vertical-align: 7px; }
body:not(.is-portrait) .statewide.is-past .sw-compare .key-pct { grid-column: 3; grid-row: 1; font-size: 54px; line-height: 1; }
body:not(.is-portrait) .statewide.is-past .sw-compare .key-votes { grid-column: 3; grid-row: 2; font-size: 21px; }
body:not(.is-portrait) .statewide.is-past .sw-compare .key-votes::after { content: " votes"; }
body:not(.is-portrait) .statewide.is-past .sw-compare .key-bar { height: 8px; }
body:not(.is-portrait) .statewide.is-past .swc-final { margin-top: 20px; padding: 18px 26px; border-radius: 16px; }
body:not(.is-portrait) .statewide.is-past .swc-final span { font-size: 28px; }
body:not(.is-portrait) .statewide.is-past .swc-final b { font-size: 32px; }
.legend.is-past .legend-ends { gap: 8px; }
.legend.is-past .legend-ends span { letter-spacing: .12em; white-space: nowrap; }


body.just-called .statewide { animation: called 2.4s ease-out; }
@keyframes called {
  0% { filter: drop-shadow(0 0 0 rgba(255, 192, 0, 0)); }
  15% { filter: drop-shadow(0 0 28px rgba(255, 192, 0, .85)); }
  100% { filter: drop-shadow(0 0 0 rgba(255, 192, 0, 0)); }
}

.legend.is-compare { gap: 8px; width: 440px; }
.legend-ramp-wide { gap: 2px; }
.legend-ramp-wide i { width: 48px; height: 20px; border-radius: 3px; }
.legend-scale-wide { width: 398px; margin: -2px 0 2px; }
.legend-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 600;
}
.legend-state b { font-family: var(--display); font-weight: 700; font-size: 20px; }
.legend-state em,
.kc-head em {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 6px;
  font-style: normal;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
}
.legend-note { font-size: 13px; color: var(--ink-soft); }


.legend:not(.is-compare) { gap: 8px; width: 440px; }
.legend-title { line-height: 20px; }
.legend-ends { display: flex; justify-content: space-between; align-items: baseline; width: 398px; }
.legend-ends b {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
}
.legend-scale-bins {
  display: grid;
  grid-template-columns: repeat(8, 48px);
  column-gap: 2px;
  width: 398px;
  margin: -2px 0 2px;
  text-align: center;
  white-space: nowrap;
}
.legend-key { display: flex; align-items: center; gap: 8px; }
.legend-key > i { width: 14px; height: 14px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.legend-key .legend-ramp i { width: 18px; height: 14px; border-radius: 3px; }



.key-compare {
  margin-top: 4px;
  padding: 6px 16px 8px;
  border-radius: 14px;
  background: rgba(0, 10, 44, .55);
  border: 1px dashed rgba(255, 255, 255, .22);
}
.key-compare[hidden] { display: none; }
.kc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kc-head em { padding: 2px 10px; font-size: 18px; letter-spacing: 0; text-transform: none; }
.kc-body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--paper-tint);
}
.kc-then i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px 0 14px;
  border-radius: 3px;
  background: var(--pc);
}
.kc-then i:first-child { margin-left: 0; }
.kc-margins b { font-family: var(--display); font-weight: 700; font-size: 22px; }
.kc-then .kc-cand + .kc-cand i { margin-left: 14px; }

.kc-won { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }


.county-key.past-leads .key-track { visibility: hidden; }
.kc-won b { font-family: var(--display); font-weight: 700; font-size: 22px; color: #fff; }


.footbar {
  position: absolute;
  inset: auto 0 0 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  font-size: 20px;
  font-weight: 600;
  z-index: 5;
}
.footbar-right { display: flex; align-items: center; gap: 22px; }
.pill-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 99px;
  border: 2px solid var(--navy-soft);
  font-size: 17px;
  font-weight: 700;
  color: var(--paper-tint);
}
.pill-btn.is-on { background: var(--navy-soft); color: #fff; }
.mock-badge {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .1em;
}
.status { display: flex; align-items: center; gap: 10px; color: var(--paper-tint); font-variant-numeric: tabular-nums; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff3b3b; animation: blink 1.6s infinite; }
.status.is-stale { color: var(--gold); }
.status.is-stale .live-dot { background: var(--gold); animation: none; }
@keyframes blink { 50% { opacity: .35; } }


.pullout-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.hero {
  position: absolute;
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform;
}
.hero .hero-fill { pointer-events: visiblePainted; }
.hero svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .55)) drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
}
.hero path {
  stroke: #fff;
  stroke-width: 3;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  fill-rule: evenodd;
  transition: fill .7s;
}
.hero-shine { pointer-events: none; }


.prop-switch {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  margin: 2px 0 14px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(0, 10, 44, .55);
  border: 1px solid rgba(255, 255, 255, .14);
}
.prop-switch[hidden] { display: none; }
.prop-btn {
  padding: 9px 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--paper-tint);
  transition: background-color .2s, color .2s;
}
.prop-btn.is-active { background: #fff; color: var(--navy); }

.statewide.is-prop .panel-title { font-size: 36px; line-height: 1.15; white-space: pre-wrap; overflow-wrap: anywhere; }
.statewide .panel-title[hidden] { display: none; }
.prop-desc { margin: 6px 0 18px; font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--paper-tint); white-space: pre-wrap; overflow-wrap: anywhere; }
.prop-desc[hidden] { display: none; }
.cand.is-yes .cand-avatar, .cand.is-no .cand-avatar { color: #fff; }
.choice-glyph { width: 56%; height: 56%; }



.county.is-out { pointer-events: none; }
.labels text.is-out, .labels text.is-cut { opacity: 0; }


.districts, .district-nums { display: none; }
.districts.is-on, .district-nums.is-on { display: inline; }
.district {
  fill: transparent;
  stroke: rgba(255, 255, 255, .5);
  stroke-width: 1.5;
  stroke-linejoin: round;
  fill-rule: evenodd;
  vector-effect: non-scaling-stroke;
  pointer-events: fill;
  cursor: pointer;
}
.district.is-pressed { fill: rgba(255, 255, 255, .12); filter: brightness(1.3); }


.district.is-chosen { stroke: rgba(255, 255, 255, .9); stroke-width: 2.2; }
.district.lets-through { pointer-events: none; }


body:not(.is-portrait) svg.has-districts .county { pointer-events: none; cursor: default; }


body.house-names .district-nums { display: none; }


body.house-names .labels text { stroke-width: .23em; }
.district-nums { pointer-events: none; }
.district-num {
  font-family: var(--display);
  font-weight: 800;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: rgba(0, 12, 48, .75);
  stroke-width: .16em;
  stroke-linejoin: round;
}
.district-num.is-chosen { display: none; }


body.districts-only .county { stroke: none; }
body.districts-only .labels { opacity: 0; }
.district { transition: fill .7s, filter .12s; }

.hero-label {
  position: absolute;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  pointer-events: none;
}



.county-key {
  position: absolute;
  left: 48px;
  top: 140px;
  width: 720px;
  bottom: 92px;
  padding-top: 268px;
  z-index: 4;
  visibility: hidden;
  pointer-events: none;
}
.county-key > * { pointer-events: auto; }
.key-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.key-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 58px;
  line-height: 1.05;
  letter-spacing: -.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.key-close {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  transition: transform .15s;
}
.key-close:active { transform: scale(.9); }


body.has-tools .key-close { display: none; }

.key-swap {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  transition: transform .15s, background-color .2s, color .2s;
}
.key-swap[hidden] { display: none; }
.key-swap:active { transform: scale(.9); }
.key-swap svg { width: 30px; height: 30px; }
.key-swap.is-on { background: #fff; color: var(--navy); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
body:not(.has-tools) .key-swap { display: none; }
.key-close svg { width: 28px; height: 28px; }
.key-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--paper-tint);
}
.key-race {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ff6b6b;
}
.key-eevp { font-family: var(--display); font-weight: 700; color: #fff; }
.key-track {
  height: 10px;
  margin: 10px 0 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}
.key-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #fff;
  transition: width .9s var(--ease-out);
}
.key-rows { display: flex; flex-direction: column; gap: 8px; }
.key-updated {
  margin-top: 10px;
  text-align: right;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-soft);
}
.key-updated[hidden] { display: none; }
.key-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr auto 150px;
  align-items: center;
  column-gap: 18px;
  height: 74px;
  padding: 0 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
}
.key-row.is-leader { background: rgba(255, 255, 255, .13); }
.key-swatch { width: 18px; height: 18px; border-radius: 5px; background: var(--pc); }
.key-cand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  min-width: 0;
}
.key-row.is-leader .key-cand { font-weight: 700; }
.key-cand small {
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  vertical-align: 5px;
  background: var(--pc);
  color: #fff;
}
.key-pct {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.key-votes {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.key-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(255, 255, 255, .06);
}
.key-bar b {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pc);
  transition: width 1s var(--ease-out);
}


.stagger > * { animation: row-in .55s var(--ease-out) both; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .12s; }
.stagger > *:nth-child(4) { animation-delay: .18s; }
.stagger > *:nth-child(5) { animation-delay: .24s; }
@keyframes row-in {
  from { opacity: 0; transform: translateY(18px); }
}



.munis, .muni-outline { display: none; }
body.zoom-wayne .munis, body.zoom-wayne .muni-outline { display: inline; }
.muni {
  fill: var(--no-data);
  stroke: var(--county-stroke);
  stroke-width: .7;
  stroke-linejoin: round;
  fill-rule: evenodd;
  vector-effect: non-scaling-stroke;
  transition: fill .7s, filter .12s;
  cursor: pointer;
}
.muni.is-pressed { filter: brightness(1.35); }
.muni.is-pulled { fill: #fff !important; transition: fill .25s; }
.muni-outline {
  fill: none;
  stroke: var(--county-stroke);
  stroke-width: 1.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}


.muni-labels, .muni-leaders { pointer-events: none; opacity: 0; transition: opacity .3s; }

.muni-hit { fill: transparent; pointer-events: none; }
body.zoom-wayne:not(.no-labels):not(.is-portrait) .muni-hits.is-on .muni-hit { pointer-events: all; }
body.zoom-wayne .muni-labels, body.zoom-wayne .muni-leaders { opacity: 1; }
body.no-labels .muni-labels, body.no-labels .muni-leaders { opacity: 0; }
.leader-case { stroke: rgba(0, 12, 48, .85); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.leader { stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.leader-dot { fill: #fff; stroke: rgba(0, 12, 48, .85); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.muni-labels text {
  font-family: var(--display);
  font-weight: 600;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: rgba(0, 12, 48, .7);
  stroke-width: .25em;
  stroke-linejoin: round;
}
.muni-labels text.is-pulled { fill: var(--navy); stroke: rgba(255, 255, 255, .6); }


.muni-labels .is-squeezed, .muni-leaders .is-squeezed { display: none; }
.muni-labels text.is-squeezed.is-pulled { display: inline; }

.muni-labels text.on-white { fill: var(--navy); stroke: rgba(255, 255, 255, .9); }


.muni-labels text.is-leader.is-pulled { fill: #fff; stroke: rgba(0, 12, 48, .7); }
.muni-labels text.is-leader.on-white.is-pulled { fill: var(--navy); stroke: rgba(255, 255, 255, .9); }
.muni-labels text.is-leader.is-squeezed.is-pulled { display: none; }


body.zoom-wayne .county[data-fips="26163"] { visibility: hidden; }


body.zoom-wayne .county:not([data-fips="26163"]) {
  fill: #fff !important;
  stroke: #cfd5e4;
  pointer-events: none;
}
body.zoom-wayne .labels text { opacity: 0; }









body:not(.is-portrait) .legend { transform: translateX(-26px); }
body:not(.is-portrait)[data-zoom="se"] .legend { transform: translateX(584px); }
body:not(.is-portrait)[data-zoom="wayne"] .legend { transform: translateX(584px) scale(.85); }














.delegation { display: none; }
.statewide.is-delegation .delegation {
  --seat-h: 178px;
  --seat-circle: 120px;
  --seat-name: 22px;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-auto-rows: var(--seat-h);
  row-gap: 8px;
  margin-top: 14px;
}
.statewide.is-delegation .reporting, .statewide.is-delegation .cands, .statewide.is-delegation .sw-compare { display: none; }
.statewide.is-delegation .panel-title { font-size: 40px; letter-spacing: .01em; }
.seat {
  --pc: #7b8299;
  grid-column: span 6;
  height: var(--seat-h);
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  border-radius: 20px;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, transform .15s;
}
.seat:nth-child(3n + 5) { grid-column: 1 / span 6; }
.seat:nth-child(3n + 6) { grid-column: 10 / span 6; }
.seat:nth-child(3n + 7) { grid-column: 19 / span 6; }
.seat > * { flex-shrink: 0; }
.seat:active { transform: scale(.95); background: rgba(255, 255, 255, .08); }
.seat svg { width: calc(var(--seat-circle) + 4px); height: calc(var(--seat-circle) + 4px); fill: var(--pc); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.seat-num { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--paper-tint); }
.seat-avatar {
  display: none;
  margin-top: 9px;
  width: var(--seat-circle);
  height: var(--seat-circle);
  border-radius: 50%;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(var(--seat-circle) * .36);
  color: #fff;
  background: var(--pc) center / cover no-repeat;
  --ring: 6px;
  --ring-gap: 3px;
  box-shadow: 0 0 0 var(--ring-gap) var(--navy), 0 0 0 calc(var(--ring-gap) + var(--ring)) var(--pc), 0 6px 16px rgba(0, 0, 0, .35);
}

.seat-avatar { position: relative; }
.seat-flip {
  display: none;
  position: absolute;
  top: -8px;
  right: -26px;
  padding: 4px 10px 3px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .1em;
  box-shadow: 0 0 0 3px var(--navy), 0 3px 8px rgba(0, 0, 0, .35);
}
.seat.is-flip .seat-flip { display: block; }
.seat.is-called svg, .seat.is-called .seat-num { display: none; }
.seat.is-called .seat-avatar { display: grid; }
.seat-name {
  display: none;
  box-sizing: border-box;


  width: calc(100% + 16px);
  margin: 12px -8px 0;
  padding: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--seat-name);
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: normal;
  color: #fff;
}
.seat.is-called .seat-name { display: block; }
.seat.is-revealed .seat-avatar { animation: seat-reveal 1.6s cubic-bezier(.16, 1, .3, 1); }
@keyframes seat-reveal {
  0% { transform: scale(.6); opacity: 0; filter: brightness(2.2); }
  35% { transform: scale(1.14); opacity: 1; filter: brightness(1.4) drop-shadow(0 0 22px rgba(255, 255, 255, .85)); }
  100% { transform: scale(1); filter: none; }
}
