







html.is-portrait {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}
body.is-portrait {
  height: auto;
  overflow: visible;
  touch-action: pan-y;
  overscroll-behavior: auto;
}

body.is-portrait #stage {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  transform: none;
  overflow: hidden;
  overflow: clip;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #001a5e 0%, var(--navy-deep) 520px);
}




body.is-portrait .topbar {
  order: 1;
  position: sticky;
  inset: auto;
  top: 0;
  z-index: 20;
  height: auto;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px 10px 8px 14px;
  border-top-width: 3px;
  box-shadow: 0 1px 0 var(--navy-line), 0 6px 18px rgba(0, 0, 0, .3);
}
body.is-portrait .brand { flex: none; padding-right: 10px; border-right-width: 1px; }
body.is-portrait .brand-logo { height: 30px; }
body.is-portrait .title { flex: 0 1 auto; min-width: 0; }
body.is-portrait .title-kicker { font-size: 10px; line-height: 12px; letter-spacing: .14em; white-space: nowrap; }
body.is-portrait .title-main {
  font-size: clamp(12px, 3.5vw, 18px);
  line-height: 1.15;
  margin-top: 1px;
}



.hdr-status, .view-btn { display: none; }
body.is-portrait .hdr-status {
  flex: none;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  max-width: 116px;
  font-size: 10px;
  line-height: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  text-align: right;
  color: rgba(255, 255, 255, .58);
}
body.is-portrait .hdr-feed { white-space: nowrap; }
body.is-portrait .hdr-status .status,
body.is-portrait .hdr-status .status.is-stale { align-items: baseline; gap: 4px; color: inherit; font-size: inherit; }
body.is-portrait .hdr-status .live-dot { flex: none; align-self: center; width: 5px; height: 5px; background: currentColor; animation: none; }
body.is-portrait .hdr-status .status.is-stale .live-dot { background: none; box-shadow: inset 0 0 0 1px currentColor; }
@media (max-width: 374px) {

  body.is-portrait .topbar { gap: 6px; padding-left: 12px; }
  body.is-portrait .hdr-status .live-dot { display: none; }
}


body.is-portrait .view-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--navy-soft);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
body.is-portrait .view-btn svg { width: 24px; height: 24px; }
body.is-portrait .view-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }




body.is-portrait.view-results .map-region {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  pointer-events: none;
}
body.is-portrait.view-map .statewide { display: none; }



body.is-portrait.view-results .statewide { flex: 1 0 auto; display: flex; flex-direction: column; }
body.is-portrait.view-results .statewide:not(.is-compare) .cands,
body.is-portrait.view-results .statewide.is-compare .sw-compare { flex: 1 0 auto; }
body.is-portrait.view-results .cand { flex: 1 0 auto; align-content: center; }
body.is-portrait.view-results .sw-compare { display: flex; flex-direction: column; }
body.is-portrait.view-results .sw-compare .swc-rows { flex: 1 0 auto; }
body.is-portrait.view-results .sw-compare .key-row { flex: 1 0 auto; height: auto; max-height: 84px; }


body.is-portrait .race-tabs { display: none; }


body.is-portrait .main { display: contents; }
body.is-portrait .map-region {
  order: 2;
  position: relative;
  inset: auto;
  width: 100%;
}
body.is-portrait .map {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: var(--map-h, 100vw);
  touch-action: pan-y;
}
body.is-portrait .map-region.map-sized .map { transition: height .9s cubic-bezier(.65, 0, .35, 1); }

body.is-portrait .zoom-ctl {
  top: 8px;
  right: 8px;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(0, 10, 44, .85);
}
body.is-portrait .zoom-ctl button {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: .03em;
}


body.is-portrait:not(.is-zoomed) .labels { opacity: 0; }





body.is-portrait .legend,
body.is-portrait.is-zoomed .legend {
  position: relative;
  inset: auto;
  width: auto;
  margin: 10px 16px 0;
  padding: 8px 12px;
  display: grid;
  grid-template-rows: 15px 12px 13px;
  grid-auto-rows: auto;
  row-gap: 4px;
  border-radius: 12px;
  font-size: 12px;
  background: rgba(0, 10, 44, .72);
}
body.is-portrait .legend-title { font-size: 12px; line-height: 15px; letter-spacing: .1em; }
body.is-portrait .legend-ends { width: auto; }
body.is-portrait .legend-ends b { font-size: 13px; letter-spacing: 0; }
body.is-portrait .legend-ramp-wide,
body.is-portrait .legend-solid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  width: auto;
}
body.is-portrait .legend-ramp-wide i,
body.is-portrait .legend-solid i { width: auto; height: 12px; border-radius: 2px; }
body.is-portrait .legend-scale {
  width: auto;
  margin: 0;
  font-size: 11px;
  line-height: 13px;
}
body.is-portrait .legend-scale-bins { grid-template-columns: repeat(8, 1fr); letter-spacing: -.02em; }
body.is-portrait .legend-solid-names { width: auto; }
body.is-portrait .legend-note { font-size: 12px; line-height: 14px; }
body.is-portrait .legend-key { gap: 6px; }
body.is-portrait .legend-key > i { width: 10px; height: 10px; border-radius: 2px; }






.dock { display: none; }
body.is-portrait { --dock-h: 61px; }
body.is-portrait.has-demo { --demo-h: 52px; }


body.is-portrait #stage::after { content: ""; order: 99; flex: none; height: var(--sheet-room, 0px); }
body.is-portrait #stage { padding-bottom: calc(var(--dock-h) + var(--demo-h, 0px) + 12px + env(safe-area-inset-bottom)); }
body.is-portrait .footbar { display: contents; }
body.is-portrait .compare-ctl { display: none; }

body.is-portrait .dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .4);
}
body.is-portrait.in-page .dock { position: absolute; bottom: auto; padding-bottom: 8px; transition: opacity .2s; }
body.is-portrait.in-page.dock-away .dock { opacity: 0; visibility: hidden; }



.dock-pick, .dock-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  min-width: 0;
  padding: 0 14px;
  border-radius: 22px;
  border: 1px solid var(--navy-soft);
  background: rgba(255, 255, 255, .1);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
}
.dock-pick[hidden], .dock-chip[hidden], .dock-solid[hidden] { display: none; }
.dock-race { flex: 1 1 auto; }
.dock-compare, .dock-chip { flex: 0 1 auto; }
.dock-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dock-pick::after {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  margin-left: auto;
  border: 5px solid transparent;
  border-top: 6px solid currentColor;
  border-bottom: 0;
}
.dock-pick select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 16px;
  appearance: none;
  cursor: pointer;
}
.dock-pick:focus-within { outline: 2px solid #fff; outline-offset: 2px; }

.dock-compare.is-live::before, .dock-chip::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3b3b;
}
.dock-compare:not(.is-live) { background: #fff; border-color: #fff; color: var(--navy); }

.dock-chip { border-style: dashed; background: none; color: var(--paper-tint); }

body.is-portrait .prop-switch { display: none; }
.dock-props {
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  padding: 3px;
  gap: 2px;
  border-radius: 22px;
  border: 1px solid var(--navy-soft);
  background: rgba(255, 255, 255, .1);
}
.dock-props[hidden] { display: none; }
.dock-props button {
  padding: 0 12px;
  border: 0;
  border-radius: 19px;
  background: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
}
.dock-props button.is-active { background: #fff; color: var(--navy); }

.dock-solid {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 2px solid var(--navy-soft);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.dock-solid svg { width: 26px; height: 26px; }
.dock-solid.is-on { background: #fff; border-color: #fff; color: var(--navy); }
.dock-solid:disabled { color: rgba(255, 255, 255, .3); border-style: dashed; border-color: rgba(51, 79, 153, .6); }



body.is-portrait .footbar-right { display: none; }



body.is-portrait .demo-ctl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
  z-index: 31;
  height: var(--demo-h);
  margin: 0;
  padding: 4px 12px;
  gap: 8px;
  flex-wrap: nowrap;
  border: 0;
  border-top: 1px solid rgba(255, 192, 0, .35);
  border-radius: 0;
  background: #1b1d3f;
}
body.is-portrait.in-page .demo-ctl { position: absolute; bottom: auto; transition: opacity .2s; }
body.is-portrait.in-page.dock-away .demo-ctl { opacity: 0; visibility: hidden; }
body.is-portrait .demo-btn { flex: none; height: 44px; font-size: 14px; }
body.is-portrait .demo-btn[data-act="reset"] { width: 44px; padding: 0; font-size: 0; }
body.is-portrait .demo-btn[data-act="reset"]::before { content: "↺"; font-size: 22px; }
body.is-portrait .demo-play { min-width: 84px; }
body.is-portrait .demo-slider { flex: 1 1 auto; width: auto; min-width: 60px; height: 44px; }
body.is-portrait .demo-readout { flex: none; min-width: 0; font-size: 13px; }


body.is-portrait .statewide,
body.is-portrait.is-pulled .statewide {
  order: 5;
  position: relative;
  inset: auto;
  width: auto;
  padding: 16px 16px 28px;
  opacity: 1;
  transform: none;
  transition: none;
  pointer-events: auto;
}
body.is-portrait .panel-kicker { font-size: 14px; letter-spacing: .14em; }
body.is-portrait .panel-title { font-size: clamp(26px, 3.4dvh, 34px); margin: 2px 0 12px; }


body.is-portrait .statewide.is-prop .panel-title { font-size: clamp(22px, 2.9dvh, 28px); line-height: 1.15; margin: 2px 0 6px; }
body.is-portrait .prop-desc { margin: 0 0 12px; font-size: 15px; line-height: 1.35; }
body.is-portrait .statewide.is-prop .cand-win { white-space: nowrap; }
@media (max-width: 380px) {
  body.is-portrait .statewide.is-prop .cand-win { font-size: 10.5px; letter-spacing: .01em; }
}
body.is-portrait .reporting { margin-bottom: 16px; }
body.is-portrait .reporting-label { font-size: 15px; margin-bottom: 8px; }
body.is-portrait .reporting-track { height: 8px; }






body.is-portrait .cands { gap: clamp(8px, 1.2dvh, 12px); --av: clamp(44px, min(6.2dvh, 12.2vw), 64px); }
body.is-portrait .cand {
  grid-template-columns: var(--av) 1fr auto;
  column-gap: 12px;
  padding: clamp(8px, 1.25dvh, 14px) 12px clamp(10px, 1.45dvh, 16px);
  border-radius: 12px;
}
body.is-portrait .cand-avatar { width: var(--av); height: var(--av); font-size: calc(var(--av) * .37); --ring: 2px; --ring-gap: 1.5px; }
body.is-portrait .cand-check { width: 24px; height: 24px; right: -6px; bottom: -4px; box-shadow: 0 0 0 2px var(--navy); }
body.is-portrait .cand-check svg { width: 14px; height: 14px; }
body.is-portrait .cand-first { font-size: clamp(13px, 1.7dvh, 16px); }
body.is-portrait .cand-last { font-size: clamp(19px, min(2.6dvh, 5.2vw), 27px); }
body.is-portrait .cand-party { margin-left: 6px; padding: 1px 6px; font-size: 12px; border-radius: 4px; vertical-align: 2px; }
body.is-portrait .cand-tag { margin-left: 6px; font-size: 12px; vertical-align: 2px; }
body.is-portrait .cand-win { margin-left: 8px; padding: 2px 6px 2px 4px; font-size: 12px; letter-spacing: .04em; vertical-align: 1px; }
body.is-portrait .cand-win svg { width: 12px; height: 12px; }
body.is-portrait .cand-pct { font-size: clamp(26px, min(3.6dvh, 7.2vw), 38px); }
body.is-portrait .cand-votes { font-size: clamp(12px, min(calc(1.6dvh - 1px), 3.3vw), 14px); margin-top: 2px; }
body.is-portrait .cand-bar { height: 8px; margin-top: clamp(6px, .9dvh, 10px); }






body.is-portrait.view-results:not(.layout-stacked) .statewide:not(.is-compare) .cands { gap: clamp(8px, calc(2.2dvh - 6px), 16px); }
body.is-portrait.view-results:not(.layout-stacked) .statewide:not(.is-compare) .cand-first { font-size: clamp(13px, calc(2.2dvh - 1px), 18px); }
body.is-portrait.view-results:not(.layout-stacked) .statewide:not(.is-compare) .cand-bar { height: clamp(8px, calc(1.4dvh - 1px), 12px); margin-top: clamp(6px, calc(1.6dvh - 4px), 14px); }

@media (min-width: 640px) {
  body.is-portrait.view-results:not(.layout-stacked) .statewide:not(.is-compare) .cands { --av: clamp(64px, 8dvh, 92px); }
  body.is-portrait.view-results:not(.layout-stacked) .statewide:not(.is-compare) .cand-last { font-size: clamp(27px, 3.2dvh, 34px); }
  body.is-portrait.view-results:not(.layout-stacked) .statewide:not(.is-compare) .cand-pct { font-size: clamp(38px, 4.4dvh, 48px); }
}


body.is-portrait .swc-head { margin: 14px 0 6px; font-size: 14px; letter-spacing: .1em; }
body.is-portrait .swc-live { font-size: 12px; }
body.is-portrait .sw-compare .key-row,
body.is-portrait .key-row {
  grid-template-columns: 12px 1fr auto 76px;
  column-gap: 10px;
  height: 50px;
  padding: 0 12px;
  border-radius: 10px;
}
body.is-portrait .key-swatch { width: 12px; height: 12px; border-radius: 3px; }
body.is-portrait .sw-compare .key-cand,
body.is-portrait .key-cand { font-size: 18px; }
body.is-portrait .key-cand small { margin-left: 6px; padding: 1px 5px; font-size: 12px; border-radius: 4px; vertical-align: 2px; }
body.is-portrait .sw-compare .key-pct,
body.is-portrait .key-pct { font-size: 22px; }
body.is-portrait .key-votes { font-size: 14px; }
body.is-portrait .key-bar { height: 4px; }
body.is-portrait .sw-compare .cand-win { font-size: 11px; margin-left: 6px; }
body.is-portrait .sw-compare .key-row { min-height: clamp(44px, 5.6dvh, 60px); }
body.is-portrait .sw-compare .key-cand { font-size: clamp(16px, min(2.2dvh, 5vw), 21px); }
body.is-portrait .sw-compare .key-pct { font-size: clamp(19px, min(2.7dvh, 6vw), 27px); }
@media (max-width: 420px) {

  body.is-portrait .sw-compare .key-row { grid-template-columns: 12px 1fr auto; }
  body.is-portrait .sw-compare .key-votes { display: none; }
}


@media (max-width: 380px) {
  body.is-portrait .county-key .key-row { grid-template-columns: 12px 1fr auto 58px; column-gap: 8px; padding: 0 10px; }
  body.is-portrait .county-key .key-votes { font-size: 12px; }
}
@media (max-width: 340px) {
  body.is-portrait .county-key .key-row { grid-template-columns: 12px 1fr auto; }
  body.is-portrait .county-key .key-votes { display: none; }
}
body.is-portrait .swc-shift { flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; padding: 10px 12px; font-size: 14px; }
body.is-portrait .swc-shift b { font-size: 18px; }
body.is-portrait .swc-shift em { font-size: 15px; }


body.is-portrait.view-results:not(.layout-stacked) .statewide.is-past .sw-compare .key-row {
  max-height: none;
  grid-template-columns: 12px 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 7px;
  row-gap: 2px;
  padding: 0 10px;
}
body.is-portrait.view-results:not(.layout-stacked) .statewide.is-past .sw-compare .key-swatch,
body.is-portrait.view-results:not(.layout-stacked) .statewide.is-past .sw-compare .key-cand { grid-row: 1 / span 2; }


body.is-portrait.view-results:not(.layout-stacked) .statewide.is-past .sw-compare .key-cand { font-size: clamp(16px, min(2.2dvh, 4.5vw), 21px); }
body.is-portrait.view-results:not(.layout-stacked) .statewide.is-past .sw-compare .key-pct { grid-column: 3; grid-row: 1; line-height: 1; font-size: clamp(20px, min(3dvh, 6.4vw), 34px); }
body.is-portrait.view-results:not(.layout-stacked) .statewide.is-past .sw-compare .key-votes { display: block; grid-column: 3; grid-row: 2; font-size: clamp(11px, min(1.5dvh, 3vw), 15px); }
body.is-portrait.view-results:not(.layout-stacked) .statewide.is-past .sw-compare .key-votes::after { content: " votes"; }
@media (min-width: 640px) {
  body.is-portrait.view-results:not(.layout-stacked) .statewide.is-past .sw-compare .key-row { grid-template-columns: 16px 1fr auto; column-gap: 14px; padding: 0 20px; }
  body.is-portrait.view-results:not(.layout-stacked) .statewide.is-past .sw-compare .key-swatch { width: 16px; height: 16px; }
  body.is-portrait.view-results:not(.layout-stacked) .statewide.is-past .sw-compare .key-cand { font-size: clamp(21px, 2.8dvh, 30px); }
  body.is-portrait.view-results:not(.layout-stacked) .statewide.is-past .sw-compare .key-pct { font-size: clamp(30px, 4dvh, 44px); }
  body.is-portrait.view-results:not(.layout-stacked) .statewide.is-past .sw-compare .key-votes { font-size: clamp(15px, 1.8dvh, 19px); }
}


body.is-portrait .pullout-layer { display: none; }
body.is-portrait .county-key {
  position: fixed;
  left: 0;
  right: 0;
  top: auto;
  bottom: calc(var(--dock-h) + var(--demo-h, 0px) + env(safe-area-inset-bottom));
  width: auto;

  max-height: max(200px, calc(100vh - var(--dock-h) - var(--demo-h, 0px) - env(safe-area-inset-bottom) - 170px));
  max-height: max(200px, calc(100dvh - var(--dock-h) - var(--demo-h, 0px) - env(safe-area-inset-bottom) - 170px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px;
  border-radius: 18px 18px 0 0;
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .55);
  z-index: 30;
  touch-action: pan-y;
}

body.is-portrait .county-key::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 40px;
  height: 4px;
  margin-left: -20px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
}

body.is-portrait.in-page .county-key { position: absolute; bottom: auto; }

body.is-portrait .sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0 0 calc(var(--dock-h) + var(--demo-h, 0px) + env(safe-area-inset-bottom));
  z-index: 29;
  background: rgba(0, 6, 28, .35);
  touch-action: none;
}
body.is-portrait.sheet-open .sheet-backdrop { display: block; }
body.is-portrait.in-page .sheet-backdrop { position: absolute; bottom: auto; }
body:not(.is-portrait) .sheet-backdrop { display: none; }

body.is-portrait .key-head { gap: 12px; }
body.is-portrait .key-name { font-size: 26px; white-space: normal; }
body.is-portrait .key-close { width: 44px; height: 44px; }
body.is-portrait .key-close svg { width: 20px; height: 20px; }
body.is-portrait .key-meta { margin-top: 6px; font-size: 15px; }
body.is-portrait .key-race { font-size: 14px; letter-spacing: .12em; }
body.is-portrait .key-track { height: 8px; margin: 8px 0 12px; }
body.is-portrait .key-rows { gap: 6px; }
body.is-portrait .key-updated { margin-top: 8px; font-size: 14px; }
body.is-portrait .key-compare { margin-top: 10px; padding: 10px 12px; }


body.is-portrait .kc-head { flex-wrap: wrap; gap: 6px 8px; font-size: 14px; letter-spacing: .08em; }
body.is-portrait .kc-body { flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
body.is-portrait .kc-cand { white-space: nowrap; }
body.is-portrait .kc-then { display: flex; flex-wrap: wrap; gap: 2px 14px; }
body.is-portrait .kc-then .kc-cand i { margin-left: 0; }
body.is-portrait .kc-won b { font-size: 17px; }
body.is-portrait .swc-final span { font-size: 15px; }





body.is-portrait.layout-stacked .view-btn { display: none; }
body.is-portrait.layout-stacked .statewide,
body.is-portrait.layout-stacked.is-pulled .statewide { order: 2; padding: 8px 16px 4px; }
body.is-portrait.layout-stacked .map-region { order: 3; }
body.is-portrait.layout-stacked .panel-kicker { display: none; }
body.is-portrait.layout-stacked .panel-title { font-size: 22px; margin: 0 0 6px; }
body.is-portrait.layout-stacked .statewide.is-prop .panel-title { font-size: 19px; margin: 0 0 2px; }
body.is-portrait.layout-stacked .prop-desc { margin: 0 0 6px; font-size: 13px; line-height: 1.3; }




body.is-portrait.layout-stacked .statewide.is-prop .panel-title { line-height: 22px; min-height: 66px; }
body.is-portrait.layout-stacked .statewide.is-prop .prop-desc { line-height: 17px; min-height: 34px; }
body.is-portrait.layout-stacked .statewide.is-prop .panel-title[hidden],
body.is-portrait.layout-stacked .statewide.is-prop .prop-desc[hidden] { display: block; visibility: hidden; }
body.is-portrait.layout-stacked .statewide.is-prop .cands { display: flex; flex-direction: column; min-height: 157px; }
body.is-portrait.layout-stacked .statewide.is-prop .cand { flex: 1 0 auto; }
body.is-portrait.layout-stacked .reporting { margin-bottom: 8px; }
body.is-portrait.layout-stacked .reporting-label { font-size: 13px; margin-bottom: 4px; }
body.is-portrait.layout-stacked .reporting-track { height: 5px; }
body.is-portrait.layout-stacked .cands { gap: 4px; --av: 34px; }
body.is-portrait.layout-stacked .cand { padding: 4px 10px 5px; column-gap: 10px; border-radius: 10px; }
body.is-portrait.layout-stacked .cand-avatar { font-size: 13px; --ring: 1.5px; --ring-gap: 1px; }
body.is-portrait.layout-stacked .cand-check { width: 16px; height: 16px; right: -4px; bottom: -3px; }
body.is-portrait.layout-stacked .cand-check svg { width: 10px; height: 10px; }
body.is-portrait.layout-stacked .cand-first { font-size: 11px; line-height: 13px; }
body.is-portrait.layout-stacked .cand-last { font-size: 17px; line-height: 20px; }
body.is-portrait.layout-stacked .cand-party,
body.is-portrait.layout-stacked .cand-tag { font-size: 10px; padding: 0 4px; }
body.is-portrait.layout-stacked .cand-win { font-size: 10px; padding: 1px 4px 1px 3px; }
body.is-portrait.layout-stacked .cand-pct { font-size: 22px; }
body.is-portrait.layout-stacked .cand-votes { font-size: 11px; margin-top: 0; }
body.is-portrait.layout-stacked .cand-bar { height: 4px; margin-top: 4px; }

body.is-portrait.layout-stacked .swc-head { margin: 6px 0 4px; font-size: 12px; }
body.is-portrait.layout-stacked .swc-rows { gap: 4px; }
body.is-portrait.layout-stacked .sw-compare .key-row { height: 36px; min-height: 0; }
body.is-portrait.layout-stacked .sw-compare .key-cand { font-size: 15px; }
body.is-portrait.layout-stacked .sw-compare .key-pct { font-size: 17px; }
body.is-portrait.layout-stacked .swc-shift { margin-top: 6px; padding: 6px 10px; font-size: 13px; }
body.is-portrait.layout-stacked .swc-shift b { font-size: 15px; }
body.is-portrait.layout-stacked .swc-shift em { font-size: 13px; }


body.is-portrait.layout-stacked .statewide.is-past .sw-compare { display: flex; flex-direction: column; min-height: calc(4 * 56px + 3 * 4px); }
body.is-portrait.layout-stacked .statewide.is-past .swc-rows { flex: 1 0 auto; }
body.is-portrait.layout-stacked .statewide.is-past .sw-compare .key-row { flex: 1 0 auto; height: auto; }
body.is-portrait.layout-stacked .statewide.is-past .sw-compare .key-cand { font-size: 17px; }
body.is-portrait.layout-stacked .statewide.is-past .sw-compare .key-pct { font-size: 20px; }





body.is-portrait.layout-stacked .statewide { transition: opacity .18s; }
body.is-portrait.layout-stacked.sheet-open .statewide { opacity: 0; pointer-events: none; }
body.is-portrait.layout-stacked.sheet-open .sheet-backdrop { display: none; }
body.is-portrait.layout-stacked .county-key,
body.is-portrait.layout-stacked.in-page .county-key {
  position: absolute;
  left: 0;
  right: 0;
  bottom: auto;
  max-height: none;
  padding: 8px 16px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  z-index: 5;
}
body.is-portrait.layout-stacked .county-key::before { display: none; }
body.is-portrait.layout-stacked .key-head { align-items: center; }
body.is-portrait.layout-stacked .key-name { font-size: 21px; line-height: 1.1; }
body.is-portrait.layout-stacked .key-meta { margin-top: 2px; font-size: 13px; }
body.is-portrait.layout-stacked .key-race { font-size: 12px; }
body.is-portrait.layout-stacked .key-track { height: 5px; margin: 3px 0 6px; }
body.is-portrait.layout-stacked .key-rows { gap: 3px; }
body.is-portrait.layout-stacked .county-key .key-row { height: 32px; }
body.is-portrait.layout-stacked .county-key .key-cand { font-size: 15px; }
body.is-portrait.layout-stacked .county-key .key-pct { font-size: 17px; }
body.is-portrait.layout-stacked .key-updated { margin-top: 4px; font-size: 12px; }
body.is-portrait.layout-stacked .key-compare { margin-top: 5px; padding: 4px 10px 5px; }
body.is-portrait.layout-stacked .kc-head { font-size: 12px; }
body.is-portrait.layout-stacked .kc-body { font-size: 13px; gap: 2px 10px; }
body.is-portrait.layout-stacked .kc-won b { font-size: 15px; }
body.is-portrait.layout-stacked .swc-final span { font-size: 13px; }

body.is-portrait.layout-stacked .key-close {
  display: flex;
  align-items: center;
  width: auto;
  height: 38px;
  gap: 6px;
  padding: 0 14px 0 12px;
  border-radius: 19px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
body.is-portrait.layout-stacked .key-close svg { width: 14px; height: 14px; }
body.is-portrait.layout-stacked .key-close::after { content: "Statewide"; }




@media (min-width: 640px) {
  body.is-portrait .statewide,
  body.is-portrait.is-pulled .statewide { width: 100%; max-width: 600px; margin-inline: auto; }
  body.is-portrait .legend,
  body.is-portrait.is-zoomed .legend { width: calc(100% - 32px); max-width: 568px; margin-inline: auto; }
  body.is-portrait .demo-ctl { padding-inline: max(12px, calc((100% - 576px) / 2)); }
  body.is-portrait .dock { padding-inline: max(12px, calc((100% - 576px) / 2)); }
  body.is-portrait .county-key { max-width: 600px; margin-inline: auto; }


  body.is-portrait:not(.layout-stacked) .county-key { max-height: 45vh; max-height: 45dvh; }
}
