results-board-display {
  position: relative;
}
/*
 * Legacy media queries
 */
:root {
  color-scheme: light dark;
  --white-100: hsl(0, 0%, 100%);
  --gray-50: hsl(0, 0%, 95%);
  --gray-100: hsl(0, 0%, 83%);
  --gray-200: hsl(0, 0%, 75%);
  --gray-300: hsl(0, 0%, 63%);
  --gray-400: hsl(0, 0%, 56%);
  --gray-500: hsl(0, 0%, 45%);
  --gray-600: hsl(0, 0%, 34%);
  --gray-700: hsl(0, 0%, 20%);
  --gray-800: hsl(0, 0%, 13%);
  --gray-900: hsl(0, 0%, 7%);
  --black-100: hsl(0, 0%, 0%);
  --fg-primary: #333;
  --fg-secondary: #666;
  --fg-tertiary: #787878;
  --fg-quaternary: #999;
  --fg-inversePrimary: var(--white-100);
  --bg-primary: var(--white-100);
  --bg-secondary: #efefef;
  --bg-tertiary: #ddd;
  --bg-quaternary: #bbb;
  --bg-inversePrimary: #444;
  --border-primary: #ddd;
  --border-secondary: #eee;
  --map-empty: #e1e1e1;
  --map-early: #b8b6b6;
  --accent-dark: #4774CC;
  --accent-light: #bccae5;
  --demDim: #D5E5F2;
  --gopDim: #F8D6D4;
  --indDim: #FFE4AF;
  --noBar: #F1A513;
  --noDim: rgba(241, 165, 19, 0.5);
  --noLight: #fce9c5;
  --yesDim: rgba(70, 159, 75, 0.5);
  --yesBar: #469F4B;
  --yesLight: #b1ddb3;
}
:root .light-mode {
  display: block;
}
:root .dark-mode {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fg-primary: var(--gray-50);
    --fg-secondary: var(--gray-100);
    --fg-tertiary: var(--gray-200);
    --fg-quaternary: var(--gray-300);
    --fg-inversePrimary: var(--gray-800);
    --bg-primary: var(--gray-800);
    --bg-secondary: var(--gray-700);
    --bg-tertiary: var(--gray-600);
    --bg-quaternary: var(--gray-500);
    --bg-inversePrimary: var(--gray-100);
    --border-primary: var(--gray-600);
    --border-secondary: var(--gray-700);
    --map-empty: var(--gray-500);
    --map-early: var(--gray-600);
    --accent-dark: hsl(219, 48%, 70%);
    --demDim: #0f3850;
    --gopDim: #500d0d;
    --indDim: #4d3405;
    --noBar: #F1A513;
    --noDim: rgba(241, 165, 19, 0.5);
    --noLight: #fce9c5;
    --yesDim: rgba(70, 159, 75, 0.5);
    --yesBar: #469F4B;
    --yesLight: #b1ddb3;
  }
  :root:not([data-theme="light"]) .light-mode {
    display: none;
  }
  :root:not([data-theme="light"]) .dark-mode {
    display: block;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root {
  --sans: 'NPRSans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  --serif: 'NPRSerif', Georgia, "Times New Roman", Times, serif;
  --vh: 1vh;
}
.sr-only {
  opacity: 0;
  position: absolute;
  left: -1000px;
  clip: inset(0, 0, 0, 0);
  width: 1px;
  height: 1px;
}
.board-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 30px;
  padding: 0 20px;
}
.board-container.Gov {
  margin-top: 25px;
}
@media (max-width: 1200px) {
  .board-container {
    flex-wrap: wrap;
  }
}
.header {
  margin-top: 20px;
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1040px;
  padding-left: 10px;
  padding-right: 10px;
  justify-content: center;
  column-gap: 30px;
  display: flex;
  align-items: center;
  row-gap: 15px;
  flex-wrap: wrap;
}
.title-wrapper {
  padding-top: 15px;
}
@media (max-width: 500px) {
  h1 {
    font-size: 2em;
  }
}
@media (min-width: 501px) {
  h1 {
    font-size: 2.4em;
  }
}
@media (min-width: 769px) {
  h1 {
    font-size: 3em;
  }
}
.governor h1 {
  text-align: center;
}
results-board {
  flex: 1 0 28%;
}
results-board.first {
  order: 1;
}
results-board.middle {
  order: 2;
}
results-board.last {
  order: 3;
}
@media (max-width: 1200px) {
  results-board.first {
    order: 2;
    flex: 1 0 45%;
  }
  results-board.middle {
    order: 1;
    flex: 1 0 100%;
    margin-bottom: 30px;
  }
  results-board.last {
    flex: 1 0 45%;
  }
}
@media (max-width: 768px) {
  results-board.first,
  results-board.last {
    flex: 1 0 100%;
  }
}
@media (min-width: 769px) and (max-width: 1200px) {
  results-board.middle .board-inner {
    display: flex;
    gap: 30px;
  }
  results-board.middle .board-inner > table.results {
    flex: 1 0 45%;
  }
  results-board.middle .board-inner > table.results + table.results tr:nth-child(1) {
    display: flex;
  }
}
@media (max-width: 768px) {
  results-board[split="true"] table.results + table.results tr:nth-child(1) {
    display: none;
  }
  results-board[split="true"] table.results + table.results tr.index-0 td {
    border-top: none;
  }
}
@media (min-width: 1201px) {
  results-board[split="true"] table.results + table.results tr:nth-child(1) {
    display: none;
  }
  results-board[split="true"] table.results + table.results tr.index-0 td {
    border-top: none;
  }
}
.board-hed {
  font-family: 'NPRSans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  color: var(--fg-primary);
  display: block;
}
.board-hed.none {
  display: none;
}
table.results {
  width: 100%;
  table-layout: fixed;
  font-family: 'NPRSans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  color: var(--fg-secondary);
  font-size: 11px;
  display: block;
  border-collapse: collapse;
}
table.results tbody {
  display: block;
}
@media (max-width: 400px) {
  table.results {
    font-size: 10px;
  }
}
table.results tr {
  display: flex;
}
table.results tr.index-0 td {
  border-top: 1px solid var(--border-primary);
}
table.results tr td {
  overflow: hidden;
}
table.results tr .state,
table.results tr .state-hed {
  flex: 0 0 60px;
}
table.results tr .state .x-small,
table.results tr .state-hed .x-small {
  display: none;
}
@mobile : ~"(max-width: 500px)" {
  flex: 0 0 39px;
  .x-small {
    display: inline;
  }
  .not-small {
    display: none;
  }
}
table.results tr .electoral,
table.results tr .electoral-hed {
  flex: 0 0 23px;
}
table.results tr .open-label {
  flex: 1;
}
table.results tr .candidate,
table.results tr .party-hed {
  flex: 1;
}
table.results tr .reporting,
table.results tr .reporting-hed {
  flex: 0 0 58px;
}
@media (max-width: 500px) {
  table.results tr .reporting,
  table.results tr .reporting-hed {
    flex: 0 0 44px;
  }
  table.results tr .reporting .in,
  table.results tr .reporting-hed .in {
    display: none;
  }
}
@media (max-width: 400px) {
  table.results tr .reporting,
  table.results tr .reporting-hed {
    flex: 0 0 38px;
  }
}
table.results tr .little-label,
table.results tr .little-hed {
  flex: 0 0 19px;
}
.no-flips table.results tr .little-label,
.no-flips table.results tr .little-hed {
  display: none;
}
@media (max-width: 400px) {
}
table.results th {
  font-size: 11px;
  font-family: 'NPRSans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  text-transform: uppercase;
  font-weight: normal;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  padding: 4px 8px;
}
@media (max-width: 400px) {
  table.results th {
    padding: 4px 5px;
  }
}
table.results th.state-hed,
table.results th.reporting-hed,
table.results th.name-hed {
  text-align: left;
}
table.results th.state-hed {
  padding-left: 0;
}
table.results th.electoral-hed {
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}
table.results .open-label {
  display: none;
  font-style: italic;
  font-size: 10px;
  color: var(--fg-quaternary);
  padding-top: 4px;
  padding-right: 0;
}
table.results tr.open .candidate,
table.results tr.open .reporting {
  display: none;
}
table.results tr.open .open-label {
  display: table-cell;
}
table.results td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--border-secondary);
}
@media (max-width: 400px) {
  table.results td {
    padding: 4px 5px;
  }
}
table.results td.state a {
  text-decoration: none;
  color: var(--fg-primary);
}
table.results td.state {
  padding-left: 0;
  text-decoration: none;
  color: var(--fg-primary);
}
table.results td.state:hover {
  text-decoration: underline;
}
table.results td.reporting {
  font-size: 10px;
  font-style: italic;
  color: var(--fg-quaternary);
  padding-top: 4px;
}
table.results td.candidate {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--bg-primary);
  border-right: 1px solid var(--bg-primary);
  display: flex;
}
table.results td.candidate .name {
  flex: 1 1 0;
  display: flex;
  min-width: 0;
}
table.results td.candidate .name .last {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
table.results td.candidate .name .incumbent {
  margin-left: 4px;
}
table.results td.candidate .perc {
  flex: 0 0 25px;
  margin-left: 8px;
}
@media (max-width: 400px) {
  table.results td.candidate .perc {
    margin-left: 5px;
  }
}
table.results td.candidate.leading {
  background: var(--indDem);
}
table.results td.candidate.winner {
  color: white;
  background: #F1A513;
}
table.results td.candidate.GOP.leading,
table.results td.candidate.No.leading {
  background: var(--gopDim);
}
table.results td.candidate.GOP.winner,
table.results td.candidate.No.winner {
  color: white;
  background: #C72021;
}
table.results td.candidate.Dem.leading {
  background: var(--demDim);
}
table.results td.candidate.Dem.winner {
  color: white;
  background: #217BAE;
}
table.results td.candidate.runoff,
table.results td.candidate.loser {
  background: var(--bg-secondary) !important;
}
table.results td.little-label {
  font-size: 8px;
  text-transform: uppercase;
  font-weight: bold;
  width: 28px;
  padding-left: 0;
  padding-right: 0;
  padding-top: 6px;
}
table.results td.little-label .flip-label {
  color: #F1A513;
}
table.results td.little-label.Dem .flip-label {
  color: #217BAE;
}
table.results td.little-label.GOP .flip-label,
table.results td.little-label.No.flip-label {
  color: #C72021;
}
table.results {
  width: 100%;
  table-layout: fixed;
}
table.results tr {
  display: flex;
  width: 100%;
}
/* Senate, Gov, and President tables */
.Senate table.results tr .state,
.Gov table.results tr .state,
.President table.results tr .state,
.Senate table.results tr th.state-hed,
.Gov table.results tr th.state-hed,
.President table.results tr th.state-hed {
  width: 15%;
  min-width: 46px;
}
.Senate table.results tr .candidate,
.Gov table.results tr .candidate,
.President table.results tr .candidate,
.Senate table.results tr th.candidate-hed,
.Gov table.results tr th.candidate-hed,
.President table.results tr th.candidate-hed {
  width: 40%;
  min-width: 100px;
}
.Senate table.results tr .votes,
.Gov table.results tr .votes,
.President table.results tr .votes,
.Senate table.results tr th.votes-hed,
.Gov table.results tr th.votes-hed,
.President table.results tr th.votes-hed {
  width: 25%;
  min-width: 60px;
}
.Senate table.results tr .percent,
.Gov table.results tr .percent,
.President table.results tr .percent,
.Senate table.results tr th.percent-hed,
.Gov table.results tr th.percent-hed,
.President table.results tr th.percent-hed {
  width: 20%;
  min-width: 50px;
}
/* Gov table specific */
@media (max-width: 400px) {
  .Gov table.results tr .state,
  .Gov table.results tr th.state-hed {
    min-width: 24px;
  }
}
/* President table specific */
.President table.results tr .state,
.President table.results tr th.state-hed {
  min-width: 53px;
}
.President table.results td {
  text-align: left;
}
.President table.results td.electoral {
  padding-left: 0;
  text-align: center;
  color: var(--fg-quaternary);
}
.President table.results td.candidate {
  text-align: center;
  color: var(--fg-secondary);
}
.President table.results td.candidate .perc {
  margin: auto;
}
.theme-hed {
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 5px;
}
.bop-wrapper {
  width: 60%;
  display: inline-block;
}
@media (max-width: 500px) {
  .bop-wrapper {
    width: 100%;
  }
}
.board-container {
  width: 100%;
}
.board-container h2 {
  width: 100%;
  font-family: 'NPRSans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-weight: normal;
  letter-spacing: 0.01em;
  letter-spacing: 0.05em;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  margin: 5px 0 5px 0;
  border-top: 2px solid var(--border-primary);
  padding-top: 8px;
  text-transform: uppercase;
  color: var(--fg-secondary);
  font-size: 1.1em;
}
.board-key {
  color: var(--fg-secondary);
  font-size: 12px;
  padding: 10px 20px;
}
.board-key ul {
  list-style-type: none;
  margin: 0 auto;
  padding-left: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 5px 20px;
  max-width: 1000px;
}
.board-key ul li {
  line-height: 16px;
  white-space: nowrap;
  display: block;
  max-width: 250px;
}
.board-key .dem .leading {
  background: var(--demDim);
}
.board-key .dem .winner {
  background: #217BAE;
}
.board-key .gop .leading {
  background: var(--gopDim);
}
.board-key .gop .winner {
  background: #C72021;
}
.board-key .ind .leading {
  background: var(--indDim);
}
.board-key .ind .winner {
  background: #F1A513;
}
.board-key .yes .leading {
  background: var(--yesLight);
}
.board-key .yes .winner {
  background: var(--yesBar);
}
.board-key .no .leading {
  background: var(--noLight);
}
.board-key .no .winner {
  background: var(--noBar);
}
.board-key .early .leading {
  background: var(--map-early);
  color: var(--fg-primary);
}
.board-key .early .empty {
  background: var(--map-empty);
}
.board-key .leading,
.board-key .winner,
.board-key .empty {
  padding: 1px 3px;
  border-radius: 1px;
}
.board-key .winner {
  color: white;
}
.board-key .pickup span,
.board-key .runoff span,
.board-key .rcv span {
  font-family: 'NPRSans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-weight: normal;
  letter-spacing: 0.01em;
  font-size: 8px;
  font-weight: bold;
}
.board-key .eevp span.perc {
  font-family: 'NPRSans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-weight: normal;
  letter-spacing: 0.01em;
  font-style: italic;
  font-size: 10px;
  color: var(--fg-quaternary);
}
.board-key .eevp .link {
  font-style: italic;
}
.board-key .eevp a {
  text-decoration: none;
}
hr.divider {
  max-width: 300px;
  margin: 20px auto;
  border: 1px solid var(--border-secondary);
}
.footnote {
  font-size: 12px;
  color: var(--fg-tertiary);
  max-width: 765px;
  margin-left: auto;
  margin-right: auto;
}
.footnote a {
  text-decoration: none;
}
.board-footnote {
  clear: both;
  margin: 0 auto;
  text-align: center;
}
.page-footnote {
  margin: 0 auto 50px;
}
.state-page-footnote {
  max-width: 735px;
  margin-left: auto;
  margin-right: auto;
}
.embedded main.embed-bop a.link-container .full-link,
.embedded board-president .full-link a {
  font-size: 14px;
  text-decoration: none;
  color: var(--accent-dark);
}
.embedded main.embed-bop a.link-container .full-link:link,
.embedded board-president .full-link a:link,
.embedded main.embed-bop a.link-container .full-link:visited,
.embedded board-president .full-link a:visited {
  color: var(--accent-dark);
}
.embedded main.embed-bop a.link-container .full-link:hover,
.embedded board-president .full-link a:hover,
.embedded main.embed-bop a.link-container .full-link:active,
.embedded board-president .full-link a:active,
.embedded main.embed-bop a.link-container .full-link:focus,
.embedded board-president .full-link a:focus {
  color: var(--accent-light);
  cursor: pointer;
}
.embedded main.embed-bop a.link-container:hover .full-link {
  color: var(--accent-light);
}
