@charset "UTF-8";

.page-template-election-2026 {
  background: #fff;
}

.election-2026 {
  color: #002c42;
  padding: 64px 0 80px;
}

.election-2026__page {
  max-width: 1180px;
}

.election-2026__intro {
  margin: 0 auto 76px;
  text-align: center;
}

.election-2026__intro h1,
.election-2026__goal,
.election-2026__updates h2,
.election-2026__chamber-tab,
.election-2026__breakdown-toggle,
.election-2026__live-label {
  color: #002c42;
  font-family: "Druk", "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.election-2026__chamber-tab,
.election-2026__breakdown-toggle,
.election-2026__live-label {
  letter-spacing: 1px;
}

.election-2026__intro h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  margin: 0 0 28px;
}

.election-2026__intro p {
  color: #1a2026;
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0 auto;
}

.election-2026__controls {
  align-items: center;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  margin-bottom: 76px;
}

.election-2026-map svg {
  display: block;
  height: auto;
  width: 100%;
}

.election-2026-map .state {
  transition: fill 0.25s ease, opacity 0.25s ease;
}

.election-2026-map .state.active {
  cursor: pointer;
  fill: #ffb300;
}

.election-2026-map .state.active.current,
.election-2026-map .state.active:hover {
  fill: #ffd87a;
}

.election-2026-map svg text {
  font-weight: 700;
  pointer-events: none;
}

.election-2026__selector label {
  color: #1a2026;
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  text-align: center;
}

.election-2026__selector select {
  appearance: auto;
  background: #fff;
  border: 1px solid #7c7f81;
  border-radius: 0;
  color: #101010;
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  min-height: 54px;
  padding: 10px 18px;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.election-2026__state-controls {
  display: none;
}

.election-2026__state-controls.active {
  display: block;
}

.election-2026__chamber-tabs {
  display: flex;
  margin: 40px 18px 28px;
}

.election-2026__chamber-tabs.single-chamber {
  justify-content: center;
}

.election-2026__chamber-tab {
  background: #fff;
  border: 2px solid #f16051;
  color: #f16051;
  cursor: pointer;
  flex: 1;
  font-size: 1.45rem;
  line-height: 1;
  min-height: 54px;
  padding: 12px 18px;
}

.election-2026__chamber-tab:first-child {
  border-radius: 5px 0 0 5px;
}

.election-2026__chamber-tab:last-child {
  border-radius: 0 5px 5px 0;
}

.election-2026__chamber-tabs.single-chamber .election-2026__chamber-tab {
  border-radius: 5px;
  max-width: 50%;
}

.election-2026__chamber-tab + .election-2026__chamber-tab {
  border-left: 0;
}

.election-2026__chamber-tab.active,
.election-2026__chamber-tab:hover,
.election-2026__chamber-tab:focus-visible {
  background: #f16051;
  color: #fff;
}

.election-2026__goal {
  font-size: 2rem;
  line-height: 1;
  margin: 0;
  text-align: center;
}

.election-2026__nh-house-notice,
.election-2026__az-house-notice {
  font-style: italic;
  margin: 8px 0 0;
  text-align: center;
}

.election-2026__nh-house-notice[hidden],
.election-2026__az-house-notice[hidden] {
  display: none;
}

.election-2026__results {
  min-height: 360px;
  position: relative;
}

.election-2026__state-results,
.election-2026__chamber-results {
  display: none;
}

.election-2026__state-results.active,
.election-2026__chamber-results.active {
  display: block;
}

.election-2026__status-row {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.election-2026__live-label {
  align-items: center;
  color: #707477;
  display: flex;
  font-size: 1.45rem;
  gap: 10px;
  line-height: 1;
}

.election-2026__live-label > span {
  background: #f16051;
  border-radius: 50%;
  display: block;
  height: 10px;
  width: 10px;
}

.election-2026__refresh {
  color: #002c42;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 4px;
  margin-top: 5px;
  text-decoration: underline;
}

.election-2026__refresh:hover {
  color: #f16051;
}

.election-2026__refresh.refreshing .election-2026__refresh-icon {
  animation: election-2026-spin 0.8s linear infinite;
}

@keyframes election-2026-spin {
  to { transform: rotate(360deg); }
}

.election-2026__makeup {
  width: 360px;
}

.election-2026__makeup-title {
  color: #1a2026;
  font-size: 0.82rem;
  margin-bottom: 6px;
  text-align: center;
}

.election-2026__makeup-body {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 120px 1fr;
}

.election-2026__makeup-body.election-2026__makeup-body--right {
  grid-template-columns: 1fr 120px;
}

.election-2026__makeup-body.election-2026__makeup-body--right .election-2026__makeup-counts {
  grid-column: 2;
}

.election-2026__makeup-body.election-2026__makeup-body--right .election-2026__makeup-dots {
  display: none;
}

.election-2026__makeup-counts {
  font-size: 0.62rem;
  font-weight: 700;
  text-align: right;
}

.election-2026__makeup-counts > div {
  border-radius: 2px;
  color: #002c42;
  margin-bottom: 3px;
  padding: 1px 8px;
}

.election-2026__makeup-counts .dem { background: #002c42; color: #fff; }
.election-2026__makeup-counts .rep { background: #f16051; }
.election-2026__makeup-counts .vac { background: #ffb300; }

.election-2026__makeup-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 3px;
}

.election-2026__makeup-dot {
  background: #aeb3b8;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.election-2026__makeup-dot.dem { background: #002c42; }
.election-2026__makeup-dot.rep { background: #f16051; }
.election-2026__makeup-dot.vac { background: #ffb300; }

.election-2026__progress {
  background: #b4b4b4;
  display: flex;
  height: 52px;
  margin-top: 88px;
  overflow: visible;
  position: relative;
  width: 100%;
}

.election-2026__goal-marker {
  background: #ffb300;
  height: 62px;
  left: 50%;
  position: absolute;
  top: -5px;
  transform: translateX(-50%);
  width: 4px;
  z-index: 3;
}

.election-2026__goal-marker-label {
  background: #fff;
  border: 1px solid #002c42;
  border-radius: 3px;
  bottom: calc(100% + 10px);
  color: #1a2026;
  font-size: 1rem;
  font-weight: 400;
  left: 50%;
  line-height: 1.4;
  min-width: 162px;
  opacity: 0;
  padding: 10px 12px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  visibility: hidden;
  white-space: nowrap;
}

.election-2026__progress:hover .election-2026__goal-marker-label {
  opacity: 1;
  visibility: visible;
}

.election-2026__goal-marker-label > span {
  display: block;
}

.election-2026__goal-marker-label::before,
.election-2026__goal-marker-label::after {
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  content: '';
  left: calc(50% - var(--goal-label-offset, 0px));
  position: absolute;
  transform: translateX(-50%);
}

.election-2026__goal-marker-label::before {
  border-top: 9px solid #002c42;
  bottom: -9px;
}

.election-2026__goal-marker-label::after {
  border-top: 8px solid #fff;
  bottom: -7px;
}

.election-2026__bar {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: visible;
  position: relative;
  transition: width 0.35s ease;
  white-space: nowrap;
}

.election-2026__bar.dem {
  background: #002c42;
  color: #fff;
}

.election-2026__bar.rep {
  background: #f16051;
  color: #002c42;
}

.election-2026__bar.reporting {
  background: #b4b4b4;
  color: #002c42;
}

.election-2026__bar span {
  font-size: 1.15rem;
  font-weight: 700;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}

.election-2026__bar.dem span {
  left: 20px;
  text-shadow: 0 1px 2px #002c42;
}

.election-2026__bar.reporting span {
  left: 50%;
  transform: translate(-50%, -50%);
}

.election-2026__bar.rep span {
  right: 20px;
}

.election-2026__legend {
  color: #1a2026;
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 8px 0 32px auto;
  text-align: right;
  width: max-content;
}

.election-2026__legend span {
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin-left: 4px;
  width: 8px;
}

.election-2026__legend span.dem { background: #002c42; }
.election-2026__legend span.rep { background: #f16051; }
.election-2026__legend span.reporting { background: #b4b4b4; }

.election-2026__breakdown-toggle {
  background: #002c42;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: block;
  font-size: 1rem;
  margin: 0 auto 30px;
  padding: 13px 20px;
}

.election-2026__breakdown-toggle .hide-label {
  display: none;
}

.election-2026__breakdown-toggle[aria-expanded="true"] .show-label {
  display: none;
}

.election-2026__breakdown-toggle[aria-expanded="true"] .hide-label {
  display: inline;
}

.election-2026__districts {
  display: grid;
  gap: 24px 36px;
  grid-template-columns: repeat(10, minmax(54px, 1fr));
  padding: 0 0 36px;
}

.election-2026__districts[hidden] {
  display: none;
}

.election-2026__district {
  align-items: center;
  background: #b4b4b4;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 0.78rem;
  height: 54px;
  justify-content: center;
  justify-self: center;
  position: relative;
  width: 54px;
}

.election-2026__district.dem { background: #002c42; }
.election-2026__district.rep { background: #f16051; }
.election-2026__district.dem.rep { background: linear-gradient(to right, #002c42 50%, #f16051 50%); }
.election-2026__district.dem.partial { background: linear-gradient(to right, #002c42 50%, #b4b4b4 50%); }
.election-2026__district.rep.partial { background: linear-gradient(to right, #b4b4b4 50%, #f16051 50%); }

.election-2026__tooltip {
  background: #fff;
  border: 1px solid #002c42;
  border-radius: 3px;
  bottom: calc(100% + 8px);
  box-shadow: 0 3px 12px rgba(0, 44, 66, 0.16);
  color: #1a2026;
  display: none;
  font-size: 0.78rem;
  left: 50%;
  min-width: 190px;
  padding: 8px 10px;
  position: absolute;
  text-align: left;
  transform: translateX(-50%);
  z-index: 5;
}

.election-2026__district:hover .election-2026__tooltip,
.election-2026__district:focus .election-2026__tooltip {
  display: block;
}

.election-2026__results.is-loading .election-2026__loading {
  display: flex;
}

.election-2026__loading {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: #002c42;
  display: none;
  font-weight: 700;
  inset: 0;
  justify-content: center;
  min-height: 280px;
  position: absolute;
  z-index: 10;
}

.election-2026__updates {
  margin: 88px 0 20px;
}

.election-2026__updates h2 {
  border-bottom: 1px solid #aadaec;
  color: #002c42;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1;
  margin: 0;
  padding-bottom: 16px;
  text-transform: none;
}

.election-2026__updates-feed {
  border-right: 10px solid #aadaec;
  max-height: 440px;
  overflow-y: auto;
  padding: 0 22px 0 0;
  position: relative;
}

.election-2026__updates-feed::after {
  background: #002c42;
  content: "";
  height: 70px;
  position: absolute;
  right: -10px;
  top: 0;
  width: 10px;
}

.election-2026__updates-feed .election-update {
  align-items: center;
  border-bottom: 1px solid #aadaec;
  display: flex;
  gap: 24px;
  padding: 24px 8px;
}

.election-2026__updates-feed .team-headshot {
  flex: 0 0 110px;
}

.election-2026__updates-feed .team-headshot img {
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  width: 100%;
}

.election-2026__updates-feed .team-update {
  color: #1a2026;
  flex: 1;
}

.election-2026__updates-feed .election-update__name,
.election-2026__updates-feed .election-update__timestamp {
  display: inline;
  font-size: 0.9rem;
}

.election-2026__updates-feed .election-update__name {
  font-weight: 700;
}

.election-2026__updates-feed .election-update__name::after {
  content: " | ";
  font-weight: 400;
}

.election-2026__updates-feed .election-update__timestamp {
  font-style: italic;
}

.election-2026__updates-feed .election-update__content {
  margin-top: 8px;
}

.election-2026__updates-feed .election-update__content p:last-child {
  margin-bottom: 0;
}

.election-2026__updates-feed .election-update__content strong,
.election-2026__updates-feed .election-update__content a {
  color: #f16051;
}

.election-2026__updates-empty {
  color: #6c757d;
  margin: 0;
  padding: 28px 8px;
}

@media (max-width: 991.98px) {
  .election-2026__controls {
    gap: 36px;
    grid-template-columns: 1fr 1fr;
  }

  .election-2026__districts {
    grid-template-columns: repeat(6, minmax(54px, 1fr));
  }
}

@media (max-width: 767.98px) {
  .election-2026 {
    padding: 40px 0 56px;
  }

  .election-2026__page {
    padding-left: 22px;
    padding-right: 22px;
  }

  .election-2026__intro {
    margin-bottom: 48px;
  }

  .election-2026__intro h1 {
    font-size: 3rem;
  }

  .election-2026__intro p {
    font-size: 1rem;
  }

  .election-2026__controls {
    display: block;
    margin-bottom: 48px;
  }

  .election-2026__map-wrap {
    display: none;
  }

  .election-2026__chamber-tabs {
    margin-left: 0;
    margin-right: 0;
  }

  .election-2026__chamber-tab {
    font-size: 1.1rem;
  }

  .election-2026__goal {
    font-size: 1.65rem;
  }

  .election-2026__status-row {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .election-2026__makeup {
    width: 100%;
  }

  .election-2026__makeup-body {
    grid-template-columns: 110px 1fr;
  }

  .election-2026__makeup-body.election-2026__makeup-body--right {
    grid-template-columns: 1fr 110px;
  }

  .election-2026__progress {
    height: 46px;
  }

  .election-2026__bar span {
    font-size: 0.82rem;
  }

  .election-2026__legend {
    font-size: 0.68rem;
    width: 100%;
  }

  .election-2026__districts {
    gap: 18px 14px;
    grid-template-columns: repeat(4, minmax(50px, 1fr));
  }

  .election-2026__district {
    height: 50px;
    width: 50px;
  }

  .election-2026__updates {
    margin-top: 58px;
  }

  .election-2026__updates-feed {
    border-right-width: 6px;
    padding-right: 12px;
  }

  .election-2026__updates-feed::after {
    right: -6px;
    width: 6px;
  }

  .election-2026__updates-feed .election-update {
    align-items: flex-start;
    gap: 14px;
  }

  .election-2026__updates-feed .team-headshot {
    flex-basis: 72px;
  }
}
