:root {
  --election-ink: #10271f;
  --election-muted: #65736d;
  --election-green: #08734f;
  --election-green-dark: #064d39;
  --election-red: #d63735;
  --election-gold: #efb72d;
  --election-cream: #f5f4ed;
  --election-line: #dce4df;
  --election-card: #ffffff;
  --election-shadow: 0 18px 50px rgba(21, 55, 43, 0.09);
}

.election-nav-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--election-red);
  box-shadow: 0 0 0 4px rgba(214, 55, 53, 0.14);
  vertical-align: 1px;
}

.election-page .main {
  background: #fbfcfa;
}

.election-shell {
  color: var(--election-ink);
  font-family: "Open Sans", sans-serif;
  overflow: hidden;
}

.election-shell h1,
.election-shell h2,
.election-shell h3,
.election-shell strong,
.election-subnav {
  font-family: "Jost", sans-serif;
}

.election-hero,
.election-page-header,
.contest-detail-hero,
.area-detail-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 83% 5%, rgba(239, 183, 45, 0.2), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(46, 165, 118, 0.2), transparent 30%),
    linear-gradient(130deg, #071d16 0%, #0b3b2d 58%, #0c513c 100%);
}

.election-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to right, #000, transparent 85%);
}

.election-subnav {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 7px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.election-subnav::-webkit-scrollbar {
  display: none;
}

.election-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.election-subnav a:hover,
.election-subnav a.active {
  color: #10271f;
  border-color: #fff;
  background: #fff;
}

.election-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--election-green);
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.election-hero .election-kicker,
.election-page-header .election-kicker {
  color: #a9e6ce;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff625f;
  box-shadow: 0 0 0 6px rgba(255, 98, 95, 0.15);
}

.pulse-dot::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid rgba(255, 98, 95, 0.7);
  border-radius: inherit;
  animation: election-pulse 1.8s ease-out infinite;
}

@keyframes election-pulse {
  from { opacity: 0.8; transform: scale(0.55); }
  to { opacity: 0; transform: scale(1.6); }
}

.election-hero h1,
.election-page-title h1 {
  margin: 12px 0 16px;
  color: #fff;
  font-size: clamp(44px, 6.8vw, 86px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.election-hero h1 span,
.election-page-title h1 span {
  color: #a9e6ce;
}

.election-hero-copy {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.election-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.source-chip,
.verification-badge,
.office-chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: 999px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.source-chip {
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.source-chip.official {
  color: #d7ffef;
  border-color: rgba(112, 227, 177, 0.35);
  background: rgba(26, 139, 93, 0.23);
}

.election-countdown {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(2, 20, 14, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.countdown-label {
  display: block;
  margin-bottom: 14px;
  color: #a9e6ce;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.countdown-grid div {
  padding: 12px 4px 9px;
  text-align: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
}

.countdown-grid strong {
  display: block;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.countdown-grid span,
.election-countdown small {
  color: rgba(255, 255, 255, 0.57);
  font-size: 10px;
  text-transform: uppercase;
}

.election-countdown small {
  display: block;
  margin-top: 13px;
  letter-spacing: 0.04em;
}

.election-section {
  padding: 76px 0;
}

.compact-section {
  padding-top: 34px;
}

.muted-section {
  border-top: 1px solid #e7ebe8;
  border-bottom: 1px solid #e7ebe8;
  background: var(--election-cream);
}

.election-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.election-metric {
  position: relative;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--election-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24, 58, 45, 0.045);
}

.election-metric::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  background: var(--election-gold);
}

.election-metric.primary::before {
  background: var(--election-green);
}

.election-metric span,
.election-metric small,
.area-voter-total span,
.area-voter-total small {
  display: block;
  color: var(--election-muted);
  font-size: 12px;
}

.election-metric strong {
  display: block;
  margin: 5px 0 1px;
  color: var(--election-ink);
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1;
}

.section-heading {
  margin-bottom: 29px;
}

.section-heading h2 {
  margin: 5px 0 7px;
  color: var(--election-ink);
  font-size: clamp(31px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.section-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--election-muted);
  line-height: 1.7;
}

.election-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
}

.election-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--election-green);
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.scoreboard-card,
.reporting-card,
.contest-card,
.election-filter-card,
.source-status-guide,
.official-link-card {
  border: 1px solid var(--election-line);
  border-radius: 18px;
  background: var(--election-card);
  box-shadow: var(--election-shadow);
}

.scoreboard-card {
  overflow: hidden;
}

.scoreboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--election-line);
  background: #f8faf8;
}

.scoreboard-header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scoreboard-header strong {
  font-size: 14px;
}

.scoreboard-header > span:last-child {
  color: var(--election-muted);
  font-size: 12px;
}

.status-badge {
  padding: 6px 9px;
  color: #5d6863;
  background: #e8ece9;
}

.status-badge > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.polling,
.status-badge.counting {
  color: #9a6500;
  background: #fff0c8;
}

.status-badge.declared {
  color: #08734f;
  background: #d8f4e9;
}

.verification-badge {
  padding: 5px 8px;
  color: #8c5c00;
  background: #fff0c8;
}

.verification-badge.verified {
  color: #195e91;
  background: #deeffc;
}

.verification-badge.official {
  color: #08734f;
  background: #d8f4e9;
}

.candidate-score {
  display: grid;
  grid-template-columns: 28px 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px 19px;
  border-bottom: 1px solid #edf0ee;
}

.candidate-score:last-child {
  border-bottom: 0;
}

.candidate-score.winner {
  background: #f2faf6;
}

.candidate-rank {
  color: #87918c;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.candidate-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  border: 3px solid color-mix(in srgb, var(--party-color) 20%, white);
  border-radius: 12px;
  background: var(--party-color);
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-score-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.candidate-score-title > div:first-child {
  min-width: 0;
}

.candidate-score-title strong,
.candidate-score-title span,
.candidate-votes strong,
.candidate-votes span {
  display: block;
}

.candidate-score-title strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-score-title span {
  overflow: hidden;
  color: var(--election-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-votes {
  flex: 0 0 auto;
  text-align: right;
}

.candidate-votes strong {
  font-size: 17px;
}

.candidate-votes span {
  color: var(--election-muted);
  font-size: 10px;
}

.result-track,
.contest-progress,
.province-reporting {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eeeb;
}

.result-track span {
  display: block;
  width: var(--result-width);
  height: 100%;
  border-radius: inherit;
  background: var(--party-color);
  transition: width 0.5s ease;
}

.reporting-card {
  height: 100%;
  padding: 24px;
}

.reporting-ring {
  display: grid;
  width: 176px;
  height: 176px;
  margin: 23px auto 18px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--election-green) calc(var(--progress) * 1%), #e4ebe7 0);
}

.reporting-ring::before {
  position: absolute;
  width: 132px;
  height: 132px;
  content: "";
  border-radius: 50%;
  background: #fff;
}

.reporting-ring div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.reporting-ring strong,
.reporting-ring span {
  display: block;
}

.reporting-ring strong {
  font-size: 35px;
  line-height: 1;
}

.reporting-ring span {
  color: var(--election-muted);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reporting-numbers {
  margin-bottom: 18px;
  text-align: center;
}

.reporting-numbers strong,
.reporting-numbers span {
  display: block;
}

.reporting-numbers strong {
  font-size: 25px;
}

.reporting-numbers span {
  color: var(--election-muted);
  font-size: 11px;
}

.source-note {
  display: flex;
  gap: 9px;
  padding: 12px;
  margin: 18px 0;
  color: #53635c;
  border-radius: 11px;
  background: #f1f5f2;
  font-size: 11px;
  line-height: 1.55;
}

.source-note i {
  color: var(--election-green);
}

.source-note p {
  margin: 0;
}

.election-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 17px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: var(--election-green);
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s ease;
}

.election-button:hover {
  color: #fff;
  background: var(--election-green-dark);
  transform: translateY(-1px);
}

.election-live-refresh-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  color: #fff;
  border-radius: 10px;
  background: #10271f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-weight: 700;
}

.election-live-refresh-notice span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4bd09a;
}

.reporting-card .election-button {
  width: 100%;
}

.party-standing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.party-standing-card {
  padding: 19px;
  border: 1px solid var(--election-line);
  border-top: 4px solid var(--party-color);
  border-radius: 14px;
  background: #fff;
}

.party-standing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.party-standing-head span {
  padding: 4px 7px;
  color: var(--party-color);
  border-radius: 7px;
  background: color-mix(in srgb, var(--party-color) 12%, white);
  font-size: 11px;
  font-weight: 800;
}

.party-standing-head strong {
  font-size: 29px;
}

.party-standing-card h3 {
  min-height: 42px;
  margin: 11px 0 14px;
  font-size: 16px;
  font-weight: 800;
}

.party-office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.party-office-grid span {
  display: block;
  padding: 7px;
  color: var(--election-muted);
  border-radius: 8px;
  background: #f4f6f4;
  font-size: 9px;
  text-align: center;
}

.party-office-grid strong {
  display: block;
  color: var(--election-ink);
  font-size: 16px;
}

.awaiting-panel {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 26px;
  color: var(--election-muted);
  border: 1px dashed #bdcbc4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.65);
}

.awaiting-panel i {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--election-green);
  border-radius: 13px;
  background: #dff3e9;
  font-size: 21px;
}

.awaiting-panel h3,
.awaiting-panel p {
  margin: 0;
}

.awaiting-panel h3 {
  color: var(--election-ink);
  font-size: 18px;
  font-weight: 800;
}

.awaiting-panel p {
  font-size: 13px;
}

.awaiting-panel.compact {
  padding: 17px;
}

.province-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 11px;
}

.province-card {
  display: block;
  padding: 17px;
  color: var(--election-ink);
  border: 1px solid var(--election-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 30px rgba(24, 58, 45, 0.045);
  transition: 0.2s ease;
}

.province-card:hover {
  color: var(--election-ink);
  border-color: #9fbaaD;
  box-shadow: var(--election-shadow);
  transform: translateY(-3px);
}

.province-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #89968f;
  font-size: 11px;
}

.province-card h3 {
  margin: 15px 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.province-card > strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.province-card > small {
  display: block;
  min-height: 30px;
  margin-top: 4px;
  color: var(--election-muted);
  font-size: 9px;
}

.gender-track {
  display: flex;
  height: 5px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 99px;
  background: #dfe6e2;
}

.gender-track span {
  background: #b5466b;
}

.province-meta,
.contest-progress-label,
.results-heading-row,
.candidate-card-foot,
.result-source-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.province-meta {
  margin-top: 7px;
  color: var(--election-muted);
  font-size: 8px;
}

.province-reporting span,
.contest-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--election-green);
}

.live-update-section {
  color: #fff;
  background: #10271f;
}

.live-update-section .section-heading h2,
.live-update-section .eyebrow {
  color: #fff;
}

.election-timeline article {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 13px;
  padding-bottom: 21px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border: 2px solid #10271f;
  border-radius: 50%;
  background: var(--election-gold);
  box-shadow: 0 0 0 3px var(--election-gold);
}

.timeline-dot.verified {
  background: #5eb3ef;
  box-shadow: 0 0 0 3px #5eb3ef;
}

.timeline-dot.official {
  background: #4bd09a;
  box-shadow: 0 0 0 3px #4bd09a;
}

.timeline-content {
  position: relative;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
  margin: 8px 0 5px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.timeline-content p,
.timeline-source,
.timeline-source a {
  color: rgba(255, 255, 255, 0.62);
}

.timeline-content p {
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1.55;
}

.timeline-source {
  font-size: 10px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.timeline-meta time {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.voter-cta-card {
  height: 100%;
  padding: clamp(26px, 5vw, 45px);
  color: #fff;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(239, 183, 45, 0.4), transparent 30%),
    linear-gradient(145deg, #08734f, #06513d);
}

.voter-cta-card .eyebrow {
  color: #b9f2da;
}

.voter-cta-card h2 {
  margin: 11px 0 14px;
  color: #fff;
  font-size: clamp(31px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.voter-cta-card p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.voter-cta-card ul {
  padding: 0;
  margin: 23px 0;
  list-style: none;
}

.voter-cta-card li {
  display: flex;
  gap: 8px;
  margin: 8px 0;
  font-size: 13px;
}

.voter-cta-card li i {
  color: #f1c95d;
}

.election-button.light {
  color: var(--election-green-dark);
  background: #fff;
}

.election-page-header {
  padding-bottom: 52px;
}

.candidate-header {
  background:
    radial-gradient(circle at 80% 15%, rgba(214, 55, 53, 0.24), transparent 27%),
    linear-gradient(130deg, #121b30, #1b3552);
}

.guide-header {
  background:
    radial-gradient(circle at 80% 15%, rgba(239, 183, 45, 0.23), transparent 27%),
    linear-gradient(130deg, #2a210c, #584611);
}

.election-page-title {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 55px;
  align-items: end;
  padding: 35px 0 16px;
}

.election-page-title h1 {
  margin-bottom: 0;
  font-size: clamp(45px, 6vw, 76px);
}

.election-page-title > p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.7;
}

.election-filter-card {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(135px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  margin-bottom: 20px;
}

.candidate-filters {
  grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(170px, 1fr)) auto;
}

.election-filter-card label > span {
  display: block;
  margin: 0 0 5px 3px;
  color: var(--election-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.election-filter-card input,
.election-filter-card select {
  width: 100%;
  height: 43px;
  padding: 0 11px;
  color: var(--election-ink);
  border: 1px solid #d8e0dc;
  border-radius: 9px;
  outline: 0;
  background: #f9faf9;
  font-size: 12px;
}

.election-filter-card input:focus,
.election-filter-card select:focus {
  border-color: var(--election-green);
  box-shadow: 0 0 0 3px rgba(8, 115, 79, 0.1);
}

.election-search-field {
  position: relative;
}

.election-search-field i {
  position: absolute;
  top: 14px;
  left: 12px;
  color: #7f8d86;
}

.election-search-field input {
  padding-left: 35px;
}

.results-heading-row {
  padding: 7px 2px 17px;
  color: var(--election-muted);
  font-size: 11px;
}

.results-heading-row p {
  margin: 0;
}

.results-heading-row strong {
  color: var(--election-ink);
  font-size: 16px;
}

.contest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.contest-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 18px;
  box-shadow: 0 9px 30px rgba(24, 58, 45, 0.045);
}

.contest-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.office-chip {
  padding: 5px 8px;
  color: var(--election-green);
  background: #e2f2ea;
}

.contest-card h2 {
  margin: 17px 0 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.contest-card h2 a {
  color: var(--election-ink);
}

.contest-card h2 a:hover {
  color: var(--election-green);
}

.contest-location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 14px;
  color: var(--election-muted);
  font-size: 10px;
}

.contest-location i {
  color: var(--election-red);
}

.winner-strip,
.leader-placeholder {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 50px;
  padding: 10px;
  margin-top: auto;
  border-radius: 10px;
  background: #f2f7f4;
}

.winner-strip {
  border-left: 4px solid var(--party-color);
}

.winner-strip span,
.winner-strip small,
.leader-placeholder {
  color: var(--election-muted);
  font-size: 9px;
}

.winner-strip strong {
  font-size: 13px;
}

.leader-placeholder {
  display: flex;
}

.leader-placeholder i {
  color: #a9780a;
  font-size: 17px;
}

.contest-progress-label {
  margin-top: 14px;
  color: var(--election-muted);
  font-size: 9px;
}

.contest-progress-label strong {
  color: var(--election-ink);
  font-size: 11px;
}

.contest-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #edf0ee;
}

.contest-card-foot a {
  color: var(--election-green);
  font-size: 11px;
  font-weight: 800;
}

.contest-empty {
  grid-column: 1 / -1;
}

.election-pagination {
  margin-top: 28px;
}

.election-pagination .pagination {
  justify-content: center;
}

.candidate-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.candidate-directory-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  min-height: 205px;
  overflow: hidden;
  border: 1px solid var(--election-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 30px rgba(24, 58, 45, 0.045);
}

.candidate-photo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35)),
    var(--party-color);
  font-family: "Jost", sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.candidate-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.party-ribbon {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 9px;
}

.candidate-directory-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
}

.candidate-office {
  color: var(--party-color);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.candidate-directory-card h2 {
  margin: 7px 0 2px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}

.candidate-party-name {
  margin: 0;
  color: var(--election-muted);
  font-size: 10px;
  line-height: 1.35;
}

.running-mate {
  padding: 7px 9px;
  margin-top: 12px;
  border-radius: 8px;
  background: #f3f6f4;
}

.running-mate span,
.running-mate strong {
  display: block;
}

.running-mate span {
  color: var(--election-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.running-mate strong {
  font-size: 11px;
}

.candidate-card-foot {
  margin-top: auto;
}

.candidate-card-foot a {
  color: var(--election-muted);
}

.guide-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px 20px;
  margin-bottom: 26px;
  color: #fff;
  border-radius: 14px;
  background: var(--election-green);
}

.guide-alert > i {
  font-size: 27px;
}

.guide-alert strong,
.guide-alert span {
  display: block;
}

.guide-alert strong {
  font-size: 17px;
}

.guide-alert span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.guide-alert a {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.guide-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.guide-step-grid article {
  display: flex;
  gap: 13px;
  padding: 19px;
  border: 1px solid var(--election-line);
  border-radius: 14px;
  background: #fff;
}

.guide-step-grid article > span {
  color: var(--election-green);
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.guide-step-grid h2 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 800;
}

.guide-step-grid p {
  margin: 0;
  color: var(--election-muted);
  font-size: 12px;
  line-height: 1.55;
}

.ballot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ballot-grid article {
  position: relative;
  min-height: 175px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--election-line);
  border-radius: 14px;
  background: #fff;
}

.ballot-grid article > i {
  color: var(--election-green);
  font-size: 25px;
}

.ballot-grid article > span {
  position: absolute;
  top: 6px;
  right: 12px;
  color: #e1e7e3;
  font-family: "Jost", sans-serif;
  font-size: 50px;
  font-weight: 800;
}

.ballot-grid h3 {
  margin: 22px 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.ballot-grid p {
  margin: 0;
  color: var(--election-muted);
  font-size: 11px;
}

.source-status-guide,
.official-link-card {
  padding: 25px;
}

.source-status-guide h2,
.official-link-card h2 {
  margin: 7px 0 18px;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.source-status-guide > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--election-line);
}

.source-status-guide p {
  margin: 8px 0 0;
  color: var(--election-muted);
  font-size: 11px;
  line-height: 1.5;
}

.source-status-guide > small {
  display: block;
  margin-top: 17px;
  color: var(--election-muted);
  font-size: 10px;
}

.roadmap-list article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
}

.roadmap-list time {
  color: var(--election-green);
  font-size: 11px;
  font-weight: 800;
}

.roadmap-list article > div {
  position: relative;
  min-height: 63px;
  padding: 0 0 20px 19px;
  border-left: 1px solid #bfd0c7;
}

.roadmap-list article > div > span {
  position: absolute;
  top: 0;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--election-green);
}

.roadmap-list p {
  margin: -4px 0 0;
  font-size: 13px;
}

.official-link-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  color: var(--election-ink);
  border-bottom: 1px solid var(--election-line);
  font-size: 12px;
  font-weight: 700;
}

.official-link-card a:hover {
  color: var(--election-green);
}

.contest-detail-hero,
.area-detail-hero {
  padding-bottom: 45px;
}

.election-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.election-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.contest-detail-title,
.area-title-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 35px;
  align-items: end;
  padding-top: 31px;
}

.contest-detail-title h1,
.area-title-grid h1 {
  margin: 13px 0 5px;
  color: #fff;
  font-size: clamp(38px, 5.3vw, 65px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.contest-detail-title p,
.area-title-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.contest-status-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 260px;
}

.contest-status-panel small {
  width: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  text-align: right;
}

.contest-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.contest-stat-grid article {
  padding: 17px;
  border: 1px solid var(--election-line);
  border-radius: 12px;
  background: #fff;
}

.contest-stat-grid span,
.contest-stat-grid small {
  color: var(--election-muted);
  font-size: 10px;
}

.contest-stat-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 25px;
}

.contest-stat-grid strong small {
  font-family: inherit;
  font-size: 13px;
}

.contest-scoreboard .candidate-score {
  padding-block: 18px;
}

.winner-check {
  color: var(--election-green);
}

.result-source-line {
  justify-content: flex-start;
  margin-top: 8px;
  color: var(--election-muted);
  font-size: 9px;
}

.result-source-line a {
  color: var(--election-green);
}

.sticky-reporting {
  position: sticky;
  top: 105px;
  height: auto;
}

.report-detail-list {
  margin-top: 17px;
}

.report-detail-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--election-line);
}

.report-detail-list span {
  color: var(--election-muted);
  font-size: 10px;
}

.report-detail-list strong {
  font-size: 13px;
}

.compact-timeline {
  max-width: 780px;
}

.muted-section .timeline-dot {
  border-color: var(--election-cream);
}

.muted-section .timeline-content {
  border-color: #dce4df;
}

.muted-section .timeline-content h3 {
  color: var(--election-ink);
}

.muted-section .timeline-content p,
.muted-section .timeline-source {
  color: var(--election-muted);
}

.muted-section .timeline-meta time {
  color: var(--election-muted);
}

.area-detail-hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(239, 183, 45, 0.19), transparent 28%),
    linear-gradient(130deg, #172a43, #173d57);
}

.area-voter-total {
  min-width: 230px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.area-voter-total span,
.area-voter-total small {
  color: rgba(255, 255, 255, 0.58);
}

.area-voter-total strong {
  display: block;
  margin: 3px 0;
  color: #fff;
  font-size: 32px;
}

.area-demographic-card {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 22px;
  align-items: center;
  padding: 21px;
  border: 1px solid var(--election-line);
  border-radius: 15px;
  background: #fff;
}

.area-demographic-card span,
.area-demographic-card small,
.area-demographic-card strong {
  display: block;
}

.area-demographic-card span,
.area-demographic-card small {
  color: var(--election-muted);
  font-size: 10px;
}

.area-demographic-card strong {
  margin: 3px 0;
  font-size: 24px;
}

.area-gender-graphic {
  height: 15px;
  overflow: hidden;
  border-radius: 99px;
  background: #708fa5;
}

.area-gender-graphic span {
  display: block;
  height: 100%;
  background: #b5466b;
}

.area-children-heading,
.area-races-heading {
  margin-top: 48px;
}

.area-child-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.area-child-grid a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  color: var(--election-ink);
  border: 1px solid var(--election-line);
  border-radius: 12px;
  background: #fff;
}

.area-child-grid a:hover {
  border-color: var(--election-green);
}

.area-child-grid span,
.area-child-grid small {
  display: block;
  color: var(--election-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.area-child-grid h3 {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.area-child-grid strong {
  font-size: 13px;
}

.area-child-grid i {
  color: var(--election-green);
}

.compact-contest-grid .contest-card {
  min-height: 250px;
}

@media (max-width: 1199px) {
  .province-grid { grid-template-columns: repeat(3, 1fr); }
  .contest-grid { grid-template-columns: repeat(2, 1fr); }
  .candidate-directory-grid { grid-template-columns: repeat(2, 1fr); }
  .election-filter-card { grid-template-columns: repeat(4, 1fr); }
  .election-search-field { grid-column: span 2; }
  .election-filter-card .election-button { grid-column: span 2; }
}

@media (max-width: 991px) {
  .election-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .party-standing-grid { grid-template-columns: repeat(2, 1fr); }
  .election-page-title { grid-template-columns: 1fr; gap: 15px; }
  .guide-step-grid { grid-template-columns: repeat(2, 1fr); }
  .area-child-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-reporting { position: static; }
}

@media (max-width: 767px) {
  .election-section { padding: 52px 0; }
  .compact-section { padding-top: 27px; }
  .election-hero h1 { font-size: 50px; }
  .election-hero-copy { font-size: 15px; }
  .election-countdown { padding: 17px; }
  .election-heading-row { align-items: flex-start; flex-direction: column; }
  .province-grid,
  .contest-grid,
  .candidate-directory-grid,
  .guide-step-grid,
  .party-standing-grid,
  .area-child-grid { grid-template-columns: 1fr; }
  .election-filter-card,
  .candidate-filters { grid-template-columns: 1fr; }
  .election-search-field,
  .election-filter-card .election-button { grid-column: auto; }
  .candidate-score { grid-template-columns: 23px 39px 1fr; gap: 8px; padding-inline: 12px; }
  .candidate-avatar { width: 39px; height: 39px; }
  .candidate-score-title { gap: 7px; }
  .candidate-score-title strong { max-width: 175px; }
  .candidate-votes strong { font-size: 14px; }
  .contest-detail-title,
  .area-title-grid { grid-template-columns: 1fr; }
  .contest-status-panel { justify-content: flex-start; }
  .contest-status-panel small { text-align: left; }
  .contest-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .area-voter-total { min-width: 0; }
  .area-demographic-card { grid-template-columns: 1fr; }
  .area-gender-graphic { grid-row: 2; }
  .area-demographic-card .text-end { text-align: left !important; }
  .roadmap-list article { grid-template-columns: 1fr; gap: 6px; }
  .ballot-grid { grid-template-columns: 1fr; }
  .guide-alert { grid-template-columns: auto 1fr; }
  .guide-alert a { grid-column: 2; }
}

@media (max-width: 480px) {
  .election-metric-grid { grid-template-columns: 1fr; }
  .province-grid { grid-template-columns: 1fr; }
  .candidate-directory-card { grid-template-columns: 88px 1fr; }
  .candidate-score-title strong { max-width: 130px; }
  .contest-stat-grid { grid-template-columns: 1fr 1fr; }
  .election-page-title h1 { font-size: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot::after { animation: none; }
  .province-card,
  .election-button { transition: none; }
}
