:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #182b42;
  background: #f5f7fa;
  font-synthesis: none;
  font-size: 14px;
  --line: #e1e7ee;
  --muted: #61748b;
  --dem: #2775c7;
  --rep: #dc5259;
  --other: #ecc650;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select {
  font: inherit;
}
button,
select,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #2775c7;
  outline-offset: 3px;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: inherit;
  border-radius: 6px;
  padding: 9px 12px;
}
button:hover {
  background: #f0f4fa;
}
a {
  color: #235a91;
  text-decoration: none;
}
header {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #102941;
  color: #ecf3fc;
  padding: 0 4%;
  font-size: 12px;
}
header .brand {
  font-size: 15px;
  color: inherit;
  letter-spacing: 1px;
  font-weight: 750;
}
header b {
  margin-left: 9px;
  color: #9db7d3;
  font-weight: 450;
}
.brand-icon {
  color: #f2cb5b;
  margin-right: 8px;
}
#connection {
  color: #b4c9de;
}
main {
  max-width: 1560px;
  margin: auto;
  padding: 32px 4% 20px;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 750;
  color: #657b93;
  margin: 0 0 10px;
}
h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 10px;
  font-weight: 650;
}
.intro {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.stamp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-size: 11px;
  color: var(--muted);
}
.stamp b {
  background: #e7eef8;
  color: #416080;
  letter-spacing: 1px;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 10px;
}
.notice {
  font-size: 12px;
  background: #edf2fa;
  border-left: 3px solid #829fbd;
  padding: 11px 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.notice.alert {
  background: #fff1da;
  border-color: #c98a32;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}
.explorer,
.results-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 14px #142c4304;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  align-items: center;
  padding: 0 17px;
  gap: 8px;
  min-height: 60px;
}
.tabs {
  display: flex;
  gap: 20px;
}
.tabs button {
  font-size: 12px;
  border: 0;
  border-radius: 0;
  padding: 21px 1px 18px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  background: transparent;
  color: var(--muted);
}
.tabs button[aria-selected="true"] {
  border-bottom-color: #245c94;
  color: #204b79;
  font-weight: 700;
}
.scope-control {
  color: var(--muted);
  font-size: 11px;
  display: flex;
  gap: 6px;
  align-items: center;
}
select {
  border: 1px solid #dbe3ec;
  border-radius: 5px;
  background: white;
  padding: 7px;
  color: #324b65;
  max-width: 100%;
}
.scope-control select {
  max-width: 145px;
  font-size: 11px;
}
.map-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 23px 23px 12px;
  align-items: start;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 7px;
  letter-spacing: -0.3px;
}
.map-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.text-button {
  border: 0;
  color: #2a649b;
  font-size: 11px;
  white-space: nowrap;
}
.map-tools {
  padding: 0 23px 6px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.map-tools label {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
}
.map-tools select {
  font-size: 11px;
  max-width: 220px;
}
.map-stage {
  position: relative;
  margin: 0 15px;
  overflow: hidden;
  min-height: 310px;
}
#map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 310px;
  max-height: 590px;
}
.feature {
  /* Grey, not white: states with no election are filled near-white. */
  stroke: #c4cdd7;
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 0.15s;
  outline: none;
}
.feature.clickable {
  cursor: pointer;
}
.feature:hover {
  stroke: #27435f;
  stroke-width: 1.7;
}
.feature:focus-visible,
.feature.selected {
  stroke: #152f49;
  stroke-width: 2.6;
}
.map-label {
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  fill: #233b53;
  paint-order: stroke;
  stroke: #fff9;
  stroke-width: 2px;
  pointer-events: none;
}
.map-label.callout {
  text-anchor: start;
}
.map-leader {
  stroke: #8e9cab;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.zoom-controls {
  position: absolute;
  right: 9px;
  bottom: 15px;
  display: flex;
  gap: 4px;
}
.zoom-controls button {
  height: 30px;
  width: 30px;
  padding: 0;
  box-shadow: 0 1px 4px #152b4310;
}
.tooltip {
  position: absolute;
  pointer-events: none;
  background: #132b43;
  color: white;
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 11px;
  max-width: 240px;
  box-shadow: 0 4px 12px #12263830;
  z-index: 5;
}
.legend {
  padding: 8px 24px 18px;
  display: flex;
  gap: 12px 17px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #51667c;
}
.legend .partial {
  background: repeating-linear-gradient(0deg, #d5e1ed 0 4px, #627f9d 4px 6px);
}
.feature[data-stale="true"] {
  stroke: #a46c22;
  stroke-dasharray: 4 3;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid #0001;
}
.rep {
  background: var(--rep);
}
.dem {
  background: var(--dem);
}
.other {
  background: var(--other);
}
.blank {
  background: #a2b1c4;
}
.no-election {
  background: #f1f3f6;
}
.uncovered {
  background: repeating-linear-gradient(
    35deg,
    #e3e8f0 0px,
    #e3e8f0 4px,
    #b9c4d3 4px,
    #b9c4d3 5px
  );
}
.awaiting-certified {
  background: radial-gradient(#8a9bb2 1.2px, #e9edf3 1.4px) 0 0 / 6px 6px;
}
.tie {
  background: #c8b8e2;
}
.unavailable {
  background: #ffe6c6;
}
.map-footer {
  padding: 12px 23px;
  background: #fafbfd;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 10px;
  color: #7c8da0;
}
.race-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 23px;
}
.race-list:empty {
  display: none;
}
.race-list button {
  font-size: 11px;
  padding: 7px 9px;
}
.race-list button.active {
  background: #edf3fa;
  border-color: #799bbf;
}
.results-panel {
  padding: 26px 23px;
  position: sticky;
  top: 18px;
}
.results-panel h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.results-panel #result-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 22px;
}
.results-panel #result-runoff {
  font-size: 12px;
  font-weight: 600;
  margin: -16px 0 22px;
}
.total {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.total > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.total strong {
  display: block;
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 5px 0;
}
.total p {
  color: #61758a;
  font-size: 11px;
  margin: 0;
  line-height: 1.5;
}
.candidate {
  margin-bottom: 21px;
}
.candidate-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.candidate-name {
  font-size: 12px;
  font-weight: 650;
  max-width: 200px;
}
.party {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.candidate-votes {
  text-align: right;
  font-size: 12px;
  white-space: nowrap;
}
.candidate-votes span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.bar {
  height: 5px;
  background: #edf1f5;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.results-note {
  font-size: 10px;
  line-height: 1.6;
  color: #7c8b9a;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 23px;
}
.empty {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  padding: 14px 0;
}
.score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 20px;
}
.score div {
  padding: 14px 5px;
  border-top: 3px solid #9bacc0;
  background: #f5f7fa;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.score strong {
  display: block;
  font-size: 28px;
  color: #243e58;
  font-weight: 600;
  margin-bottom: 5px;
}
.state-card {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0;
  font-size: 12px;
}
.state-card span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.snapshot-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 23px 0;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #526b84;
}
.snapshot-footer > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.snapshot-footer #publication-id {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #8192a3;
  font-weight: 700;
}
#refresh {
  font-size: 11px;
  white-space: nowrap;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: #7e8fa1;
  line-height: 1.6;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1400px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .toolbar {
    flex-wrap: wrap;
    padding-bottom: 10px;
  }
  .tabs {
    gap: 18px;
  }
  .tabs button {
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .scope-control {
    margin-left: auto;
  }
  .map-tools {
    padding: 0 15px 6px;
  }
  .map-heading {
    padding: 20px 15px 10px;
  }
}
@media (max-width: 760px) {
  header {
    height: 56px;
    padding: 0 5%;
    font-size: 10px;
  }
  header .brand {
    font-size: 12px;
  }
  main {
    padding: 24px 5%;
  }
  .heading {
    align-items: start;
  }
  h1 {
    font-size: 29px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .intro {
    font-size: 12px;
  }
  .stamp {
    max-width: 130px;
    font-size: 9px;
    text-align: right;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .results-panel {
    position: static;
  }
  .toolbar {
    padding: 0 14px 10px;
  }
  .scope-control {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .scope-control select {
    max-width: 220px;
    width: 65%;
  }
  .tabs {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .tabs button {
    font-size: 12px;
    flex: 1;
  }
  .map-stage {
    min-height: 220px;
    margin: 0 7px;
  }
  #map {
    min-height: 220px;
  }
  .map-heading h2 {
    font-size: 16px;
  }
  .map-tools {
    gap: 10px;
  }
  .map-tools select {
    max-width: 170px;
  }
  .legend {
    gap: 10px 12px;
    font-size: 9px;
    padding: 6px 15px 15px;
  }
  .map-footer {
    padding: 11px 15px;
    font-size: 9px;
  }
  .snapshot-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .snapshot-footer button {
    justify-self: start;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
  .map-label {
    font-size: 12px;
  }
}
