/* Preserve data associations and source access on tablet and mobile. */
.responsive-home-link, .responsive-table-hint { display: none; }
.responsive-context { display: contents; }
.responsive-context > summary { display: none; }
.responsive-vep-details { display: none; }

@media (max-width: 1024px) {
  #container .feedback-link { right: 0 !important; gap: 12px; padding: 0 12px; }
  #container .feedback-link a { margin: 0 !important; font-size: 14px; letter-spacing: 1.4px; }
  #container .feedback-link .responsive-home-link { display: inline-flex; align-items: center; min-height: 44px; }
  #container .map-output { display: flex; flex-direction: column; }
  #container .responsive-context { display: block; margin: 88px 16px 0; background: #fff; border: 1px solid #ddd; }
  #container .responsive-context > summary { display: list-item; padding: 14px 16px; cursor: pointer; font-size: 15px; line-height: 1.5; }
  #container .responsive-context .map-sidebar { display: flex !important; position: static !important; width: 100% !important; min-width: 0 !important; max-width: 100%; min-height: 0 !important; padding: 0 20px 20px; border: 0; box-sizing: border-box; }
  #container .responsive-context .map-sidebar section { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  #container .graph-panel { width: 100% !important; min-width: 0 !important; max-width: 100%; padding-top: 24px !important; }
  body.home:has(.home-intro-pending) #container .responsive-context { display: none; }
  body.home:has(.home-intro-pending) #container .graph-panel { padding-top: 0 !important; }
  #container .slider-wrapper { display: none !important; }
  :root body #container #main-container .election-context, :root body #container #main-container .founding-method { box-sizing: border-box; padding-inline: 20px !important; max-width: 100% !important; }
  :root body #container #main-container .election-context-popular { margin-bottom: 24px !important; }
  #container .graph-panel .map-wrapper { margin-top: 24px !important; padding-inline: 16px !important; }
  #container .compare-elections-link-wapper { margin: 24px 16px !important; }
  #container .compare-elections-link-wapper a { white-space: normal; }
  #container .compare-elections-link-wapper .compare-elections-link { display: inline-flex; justify-content: center; align-items: center; max-width: 100%; box-sizing: border-box; line-height: 1.5; }
  :root body #container #main-container .vap-share-breakdown, :root body #container #main-container .vep-share-breakdown { display: block !important; padding-top: 16px; font-size: 14px; line-height: 1.6; }
  #container [id^="election-popular-results-bar-"] .election-results-270 .inner-text,
  #container [id^="election-vep-results-bar-"] .election-results-270 .inner-text { position: absolute; top: 26px; left: 50%; margin: 0 !important; max-width: calc(100vw - 40px) !important; white-space: normal !important; line-height: 1.4; }
  :root body #container #main-container .vap-share-breakdown,
  :root body #container #main-container .vep-share-breakdown { margin-top: 48px !important; }
  #container .founding-candidates--remaining { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 24px; }
  #container .founding-results { padding-inline: 20px; box-sizing: border-box; }
  #container .founding-candidate { min-width: 0; }
  #container .founding-name { overflow-wrap: anywhere; }
  #container .next-links .past-election { position: static !important; left: auto !important; width: 100% !important; margin: 0 !important; box-sizing: border-box; }
  #container .next-links { width: 100%; margin-inline: 0; }
  .responsive-data-table { display: block; width: 100%; max-width: 100%; max-height: none; height: auto; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
  .responsive-data-table:focus-visible, .responsive-context > summary:focus-visible { outline: 2px solid #0055cc; outline-offset: 2px; }
  .responsive-data-table .elementor-element-59fbb83e { width: max(100%, var(--responsive-table-min)); min-width: var(--responsive-table-min); max-width: none !important; }
  .responsive-data-table .elementor-element-3e7eb46d,
  .responsive-data-table .elementor-element-4c786b1c { display: grid !important; grid-template-columns: 148px repeat(var(--responsive-year-count), minmax(112px, 1fr)); gap: 0 !important; width: 100% !important; flex-wrap: nowrap !important; }
  .responsive-data-table .elementor-element-3e7eb46d > *,
  .responsive-data-table .elementor-element-4c786b1c > * { display: flex !important; width: auto !important; min-width: 0 !important; max-width: none !important; box-sizing: border-box; margin: 0 !important; }
  .responsive-data-table .elementor-element-3e7eb46d > :first-child,
  .responsive-data-table .elementor-element-4c786b1c > :first-child { position: sticky; left: 0; z-index: 2; background: #fff; padding: 12px !important; border-right: 1px solid #ddd; }
  .responsive-data-table .elementor-element-3e7eb46d { position: sticky; top: 0; z-index: 3; background: #fff; }
  .responsive-data-table .elementor-element-3e7eb46d > * { align-items: center; justify-content: center; min-height: 76px; padding: 12px !important; }
  .responsive-data-table .elementor-element-3e7eb46d h6 { margin: 0 !important; }
  .responsive-data-table .elementor-heading-title { white-space: normal; overflow-wrap: anywhere; }
  .responsive-data-table .elementor-element-387a55eb { width: 100%; }
  .responsive-data-table .elementor-element-387a55eb p { font-variant-numeric: tabular-nums; overflow-wrap: normal; white-space: nowrap; font-size: 15px; }
  .responsive-table-hint { display: block; margin: 16px 0; font-size: 14px; line-height: 1.5; }
  :root body.single-election .map-tooltip, :root body.home .map-tooltip { width: min(485px, calc(100vw - 24px)) !important; max-width: calc(100vw - 24px) !important; }
  :root body .map-tooltip .tooltip__header, :root body .map-tooltip .tooltip__header .title { white-space: normal; }
  .responsive-vep-details { display: block; margin: 24px 16px; background: #fff; border: 1px solid #ddd; }
  .responsive-vep-details > summary { padding: 14px 16px; cursor: pointer; }
  .responsive-native-table { width: 100%; max-height: none; height: auto; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .responsive-native-table:focus-visible { outline: 2px solid #0055cc; outline-offset: 2px; }
  .responsive-native-table table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 960px; font-size: 14px; line-height: 1.5; }
  .responsive-native-table caption { text-align: left; padding: 16px; font-weight: 700; }
  .responsive-native-table th, .responsive-native-table td { padding: 12px; border-bottom: 1px solid #ddd; text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
  .responsive-native-table th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; min-width: 148px; border-right: 1px solid #ddd; }
  .responsive-native-table thead th { position: sticky; top: 0; z-index: 2; background: #eee; }
  .responsive-native-table thead th:first-child { z-index: 3; }
  .responsive-native-table td { white-space: nowrap; }
  /* Override the legacy theme's mobile rule that stacks every table cell. */
  #container #main-container .responsive-native-table table { display: table !important; table-layout: fixed; width: 960px !important; margin: 0 !important; padding: 0 !important; }
  #container #main-container .responsive-native-table caption { display: table-caption !important; position: static !important; inset: auto !important; color: #231f20; }
  #container #main-container .responsive-native-table thead { display: table-header-group !important; }
  #container #main-container .responsive-native-table tbody { display: table-row-group !important; }
  #container #main-container .responsive-native-table tr { display: table-row !important; position: static !important; inset: auto !important; margin: 0 !important; }
  #container #main-container .responsive-native-table th,
  #container #main-container .responsive-native-table td { display: table-cell !important; float: none !important; width: auto !important; margin: 0 !important; padding: 12px !important; color: #231f20 !important; background: #fff !important; }
  #container #main-container .responsive-native-table th:first-child { width: 148px !important; }
  #container #main-container .responsive-native-table thead th { background: #eee !important; }
}

@media (max-width: 480px) {
  #container .election-results-bar { padding-inline: 20px; }
  #container .election-results-bar .candidate-name { overflow-wrap: anywhere; }
  #container [id^="election-popular-results-bar-"] .votes,
  #container [id^="election-vep-results-bar-"] .votes { font-size: clamp(26px, 7vw, 40px); }
  #container .election-results-bar .election-results-bar-bottom { line-height: 1.5; }
  #container .founding-candidates--leaders, #container .founding-candidates--remaining { grid-template-columns: minmax(0, 1fr); }
  #container .founding-count { font-size: 34px; }
  :root body .map-tooltip .tooltip__stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 1024px) {
/* Fill the visible screen and center the intro below the 73px navigation. */
body.home:has(.home-intro-pending) #main-container,
body.home #container .map-output.home-intro-pending,
body.home #container .home-intro-pending .graph-panel {
  min-height: 100vh;
  min-height: 100dvh;
}
body.home #container .home-intro-pending .page-content {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 97px;
  padding-bottom: 24px;
  margin-bottom: 0 !important;
  justify-content: center;
}
body.home #container .home-intro-pending .page-content .e-con-inner {
  padding-top: 0;
}

}

@media (max-width: 1024px) {
  /* Match the 15px gap above the context accordion below it. */
  #container .responsive-context + .graph-panel,
  body.home #container .map-output:not(.home-intro-pending) .responsive-context + .graph-panel {
    padding-top: 15px !important;
  }
  :root body #container #main-container .responsive-context + .graph-panel .graph-panel-election-item > #election-electoral-votes > h2 {
    margin-top: 0 !important;
    margin-bottom: -30px !important;
  }
  #container .responsive-context + .graph-panel .graph-panel-election-item > #election-electoral-votes > .election-results-bar {
    margin-top: 40px;
  }
}

@media (max-width: 1024px) {
/* Match the context disclosure for each original state-results table. */
.responsive-table-details {
  margin: 24px 0;
  border: 1px solid #ddd;
  background: #fff;
  min-width: 0;
}
.responsive-table-details > summary,
.responsive-vep-details > summary {
  display: list-item;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
}
.responsive-table-details > summary:focus-visible,
.responsive-vep-details > summary:focus-visible {
  outline: 2px solid #0055cc;
  outline-offset: 2px;
}
.responsive-table-details > .responsive-table-hint { margin-inline: 16px; }

}

@media (max-width: 767px) {
  /* Keep equal space around the mobile comparison controls. */
  #container .compare-elections-link-wapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 16px !important;
    padding: 0 !important;
  }
  #container .compare-elections-link-wapper .compare-elections-link {
    margin: 0 !important;
  }
  #container .compare-elections-link-wapper .compare-elections-link-all {
    display: block;
    line-height: 24px;
    margin: 0;
  }
}

@media (max-width: 767px) {
  #container .responsive-context + .graph-panel,
  body.home #container .map-output:not(.home-intro-pending) .responsive-context + .graph-panel {
    padding-top: 40px !important;
  }
}

@media (max-width: 767px) {
  #container .compare-elections-link-wapper > div {
    margin: 0;
    padding: 0 !important;
  }
}

@media (max-width: 767px) {
  /* Carry the approved spacing through the VAP and VEP sections. */
  :root body #container #main-container .graph-panel-election-item > #election-popular-votes > h2,
  :root body #container #main-container .graph-panel-election-item > #election-vep-votes > h2 {
    margin-top: 40px !important;
    margin-bottom: -30px !important;
  }
  #container #main-container #election-popular-votes > .election-results-bar,
  #container #main-container #election-vep-votes > .election-results-bar {
    margin-top: 40px;
  }
  #container #main-container #election-popular-votes > .map-wrapper {
    margin-top: 40px !important;
  }
  #container #main-container #election-vep-votes > .map-wrapper {
    margin-top: 0 !important;
  }
  #container #main-container #election-vep-votes > .responsive-vep-details {
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  #container [id^="election-popular-results-bar-"] .election-results-270 .inner-text,
  #container [id^="election-vep-results-bar-"] .election-results-270 .inner-text {
    top: 38px;
  }
}

@media (max-width: 767px) {
  /* 30px heading line plus the approved 16px text gap. */
  #container #main-container #election-electoral-votes > .election-results-bar,
  #container #main-container #election-popular-votes > .election-results-bar,
  #container #main-container #election-vep-votes > .election-results-bar {
    margin-top: 46px;
  }
}

@media (max-width: 767px) {
  :root body #container #main-container .vap-share-breakdown,
  :root body #container #main-container .vep-share-breakdown {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #container .graph-panel-election-item > #election-electoral-votes,
  #container .graph-panel-election-item > #election-popular-votes,
  #container .graph-panel-election-item > #election-vep-votes {
    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
  #container .responsive-context,
  #container .responsive-vep-details,
  #container .responsive-table-details {
    margin-left: 0;
    margin-right: 0;
  }
  #container .graph-panel .map-wrapper:has(> .responsive-table-details) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 767px) {
  /* Balance the final gap with the text's visible edge above the accordion. */
  #container #main-container #election-vep-votes > .responsive-vep-details {
    margin-bottom: 48px;
  }
}

@media (max-width: 767px) {
  :root body #container #main-container #election-popular-votes > .election-context--below-bar,
  :root body #container #main-container #election-vep-votes > .election-context--below-bar {
    margin-top: 32.8px !important;
  }
}

@media (max-width: 767px) {
  #container .responsive-context {
    margin-top: 73px;
  }
}

@media (max-width: 767px) {
  :root body #container :is(.responsive-context, .responsive-table-details, .responsive-vep-details) > summary {
    display: block;
    position: relative;
    box-sizing: border-box;
    min-height: 72px;
    padding: 26px 64px 26px 32px;
    list-style: none;
    background: #fff;
    color: #231f20;
    font-family: "Bebas Neue", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  #container :is(.responsive-context, .responsive-table-details, .responsive-vep-details) > summary::-webkit-details-marker {
    display: none;
  }
  #container :is(.responsive-context, .responsive-table-details, .responsive-vep-details) > summary::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 21px;
    height: 20px;
    background: url('../images/dropdown-caret.svg') no-repeat center;
    transform: translateY(-50%);
  }
  #container :is(.responsive-context, .responsive-table-details, .responsive-vep-details)[open] > summary::after {
    transform: translateY(-50%) rotate(180deg);
  }
}

@media (max-width: 767px) {
  #container .responsive-table-details > .responsive-data-table {
    margin-top: 0 !important;
  }
}

@media (max-width: 767px) {
  :root body .tooltip--cursor-docked.tooltip--mobile-below {
    left: 0 !important;
    top: var(--mobile-tooltip-top) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0;
  }
  :root body .tooltip--cursor-docked.tooltip--mobile-below > .map-tooltip {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0;
  }
}

@media (max-width: 767px) {
  #container :is(.responsive-context, .responsive-table-details, .responsive-vep-details)[open] > summary {
    border-bottom: 1px solid #ddd;
  }
}

@media (max-width: 767px) {
  #container .responsive-data-table .elementor-element-4c786b1c > :first-child,
  #container .responsive-data-table .elementor-element-3e7eb46d > :first-child {
    justify-content: flex-start !important;
    text-align: left !important;
  }
  #container .responsive-data-table .elementor-element-4c786b1c > :first-child *,
  #container .responsive-data-table .elementor-element-3e7eb46d > :first-child * {
    text-align: left !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 767px) {
  /* Keep the initial loading indicator at the mobile viewport's bottom edge. */
  :root body .pace,
  :root body .pace .pace-progress {
    top: auto !important;
    bottom: 0 !important;
  }
}

/* Compact VEP largest-group table, 2026-10-30. */
@media (max-width: 1024px) {
  :root body #container #main-container .responsive-vep-details:has(.vep-largest-table) { background: #fffcf5 !important; border: 1px solid #d9cdb9 !important; border-inline: 0 !important; }
  :root body #container #main-container .responsive-vep-details:has(.vep-largest-table) > summary { background: #fffcf5 !important; color: #14283e !important; border: 0 !important; }
  :root body #container #main-container .responsive-vep-details:has(.vep-largest-table)[open] > summary { border-bottom: 1px solid #d9cdb9 !important; }
  :root body #container #main-container .responsive-vep-details .vep-largest-table { overflow: visible; background: #fffcf5; }
  :root body #container #main-container .responsive-vep-details .vep-largest-table table { width: 100% !important; min-width: 0 !important; table-layout: fixed; border: 0 !important; border-collapse: collapse; }
  :root body #container #main-container .responsive-vep-details .vep-largest-table caption { height: auto !important; padding: 20px 16px !important; text-align: center !important; color: #14283e !important; background: #fffcf5 !important; border-bottom: 1px solid #d9cdb9; }
  :root body #container #main-container .vep-table-title { display: block; font-size: 20px; line-height: 1.4; font-weight: 700; margin-bottom: 14px; }
  :root body #container #main-container .vep-table-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; font-size: 14px; line-height: 1.5; font-weight: 400; }
  :root body #container #main-container .vep-legend-item { flex: 1 1 calc(50% - 14px); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
  :root body #container #main-container .vep-legend-item::before { content: ''; flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: #14283e; }
  :root body #container #main-container .vep-legend-democrat::before { background: #0057ce; }
  :root body #container #main-container .vep-legend-republican::before { background: #b82100; }
  :root body #container #main-container .vep-legend-nonvoters { flex-basis: 100%; }
  :root body #container #main-container .responsive-vep-details .vep-largest-table :is(th,td) { padding: 8px !important; border: 0 !important; border-bottom: 1px solid #d9cdb9 !important; vertical-align: middle; background: #fffcf5 !important; color: #14283e !important; white-space: normal; }
  :root body #container #main-container .responsive-vep-details .vep-largest-table th:first-child { position: static; width: 32% !important; min-width: 0; padding: 12px !important; border-right: 1px solid #d9cdb9 !important; text-align: left; font-size: 16px; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
  :root body #container #main-container .responsive-vep-details .vep-largest-table tr:last-child > * { border-bottom: 0 !important; }
  :root body #container #main-container .vep-state-result { display: block; padding: 10px 8px; background: #14283e !important; color: #fff !important; text-align: center; }
  :root body #container #main-container .vep-result-democrat { background: #0057ce !important; }
  :root body #container #main-container .vep-result-republican { background: #b82100 !important; }
  :root body #container #main-container .vep-result-other { background: #43694b !important; }
  :root body #container #main-container .vep-state-result .vep-result-count { display: block; color: #fff !important; font-size: 18px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
  :root body #container #main-container .vep-state-result .vep-result-name { display: block; color: #fff !important; font-size: 12px; line-height: 1.4; margin-top: 2px; }
}

/* Keep one horizontal divider; omit the legacy row outlines. */
@media (max-width: 1024px) {
  :root body #container #main-container .responsive-vep-details .vep-largest-table tr { border: 0 !important; }
}

/* Winner labels beneath state result counts. */
:root body.single-election #container .responsive-data-table .state-result-name { display: none; }
@media (max-width: 1024px) {
  :root body.single-election #container #main-container .responsive-data-table .state-result-name { display: block !important; margin-top: 2px; color: #fff !important; font-family: Arial, sans-serif; font-size: 12px !important; font-weight: 700 !important; line-height: 1.4; letter-spacing: 0; text-transform: none; white-space: normal; overflow-wrap: normal; }
  :root body #container #main-container .vep-state-result .vep-result-name { font-weight: 700 !important; }
}

/* Shared mobile election tables: real party keys, consistent contrast and dividers. */
.ueh-state-legend { display: none; }
@media (max-width: 1024px) {
  :root body.single-election #container #main-container .ueh-shared-mobile-table .elementor-element-3156adc5 { align-items: center !important; background: #fffcf5 !important; padding: 20px 16px !important; gap: 14px !important; }
  :root body.single-election #container #main-container .ueh-shared-mobile-table .elementor-element-3156adc5 .elementor-widget-heading { display: block !important; width: 100% !important; }
  :root body.single-election #container #main-container .ueh-shared-mobile-table .elementor-element-3156adc5 .elementor-heading-title { text-align: center !important; color: #14283e !important; }
  :root body.single-election #container #main-container .ueh-shared-mobile-table .elementor-element-3156adc5::after,
  :root body.single-election #container #main-container .ueh-shared-mobile-table .elementor-element-3156adc5 .elementor-widget-heading::before,
  :root body.single-election #container #main-container .ueh-shared-mobile-table .elementor-element-3156adc5 .elementor-widget-heading::after,
  :root body.single-election #container #main-container .ueh-shared-mobile-table .elementor-element-3156adc5 .elementor-heading-title::after { content: none !important; display: none !important; }
  :root body.single-election #container #main-container .ueh-state-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; width: 100%; color: #14283e !important; font: 400 14px/1.5 Arial, sans-serif; letter-spacing: 0; text-transform: none; }
  :root body.single-election #container #main-container .ueh-state-legend-item { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; text-align: center; }
  :root body.single-election #container #main-container .ueh-state-legend-nonvoters { flex-basis: 100%; }
  :root body.single-election #container #main-container .ueh-state-legend-dot { display: inline-block; width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; }
  :root body.single-election #container #main-container .ueh-shared-mobile-table .elementor-element-1ecf2461 .elementor-heading-title,
  :root body.single-election #container #main-container .ueh-shared-mobile-table .elementor-element-1ecf2461 .state-result-name { color: var(--ueh-result-ink, #14283e) !important; }
  :root body.single-election #container #main-container .ueh-shared-mobile-table .ueh-result-unavailable .elementor-widget-heading { background: #fffcf5 !important; }
  :root body.single-election #container #main-container .responsive-table-details[open] > summary { border-bottom: 0 !important; }
  :root body.single-election #container #main-container .responsive-table-details .responsive-data-table { border-inline: 0 !important; margin-bottom: 0 !important; }
}

/* Shared non-voter palette: keep desktop maps aligned with mobile results. */
#container #main-container :is(#election-popular-votes, #election-vep-votes) .map .datamaps-subunit.win-abstained {
  fill: #14283e !important;
}
#container #main-container :is(#election-popular-votes, #election-vep-votes) .map-small-states-item.win-abstained,
.map-tooltip.map-tooltip--abstained .tooltip__header {
  background-color: #14283e !important;
}

/* Compare results: match the approved election table presentation. */
:root body.page-id-208585 #container #main-container .responsive-data-table { background:#fffcf5; border:0!important; margin-bottom:0!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table .elementor-element-59fbb83e { background:#fffcf5!important; border:0!important; padding:0!important; gap:0!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table :is(.elementor-element-3e7eb46d,.elementor-element-4c786b1c,.elementor-element-3156adc5) { background:#fffcf5!important; border:0!important; border-bottom:1px solid #d9cdb9!important; gap:0!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table :is(.elementor-element-3e7eb46d,.elementor-element-4c786b1c) > * { background:#fffcf5!important; border:0!important; padding:8px!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table :is(.elementor-element-3e7eb46d,.elementor-element-4c786b1c) > :first-child { border-right:1px solid #d9cdb9!important; padding:12px!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table .elementor-element-2c9d0d36 .elementor-heading-title { color:#14283e!important; font-size:16px!important; line-height:1.5!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table h6 a { color:#14283e!important; text-decoration:none; }
:root body.page-id-208585 #container #main-container .responsive-data-table h6 a:hover { text-decoration:underline; }
:root body.page-id-208585 #container #main-container .responsive-data-table .elementor-element-1ecf2461 .elementor-widget-heading { width:100%; padding:10px 8px!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table .winner-abstained .elementor-widget-heading { background:#14283e!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table .elementor-element-1ecf2461 .elementor-heading-title { color:var(--ueh-result-ink,#fff)!important; font-size:18px!important; line-height:1.4!important; font-weight:600; font-variant-numeric:tabular-nums; text-align:center; }
:root body.page-id-208585 #container #main-container .responsive-data-table .state-result-name { display:block!important; margin-top:2px; color:inherit!important; font:700 12px/1.4 Arial,sans-serif!important; letter-spacing:0; text-transform:none; white-space:normal; }
:root body.page-id-208585 #container #main-container .responsive-data-table .elementor-element-3156adc5 { align-items:center!important; padding:20px 16px!important; gap:14px!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table .elementor-element-3156adc5 .elementor-widget-heading { width:100%!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table .elementor-element-3156adc5 h3 { text-align:center!important; color:#14283e!important; font-size:20px; }
:root body.page-id-208585 #container #main-container .ueh-state-legend { display:flex; flex-wrap:wrap; justify-content:center; gap:14px 28px; width:100%; color:#14283e; font:400 14px/1.5 Arial,sans-serif; }
:root body.page-id-208585 #container #main-container .ueh-state-legend-item { display:inline-flex; align-items:center; justify-content:center; gap:8px; text-align:center; }
:root body.page-id-208585 #container #main-container .ueh-state-legend-nonvoters { flex-basis:100%; }
:root body.page-id-208585 #container #main-container .ueh-state-legend-dot { width:12px; height:12px; flex:0 0 12px; border-radius:50%; }
:root body.page-id-208585 #container #main-container .responsive-table-details { background:#fffcf5!important; border:0!important; border-block:1px solid #d9cdb9!important; margin-inline:0!important; padding:0!important; }
:root body.page-id-208585 #container #main-container .responsive-table-details > summary { background:#fffcf5!important; color:#14283e!important; border:0!important; }
:root body.page-id-208585 #container #main-container .responsive-table-details > summary::after { filter:brightness(0) saturate(100%) invert(12%) sepia(25%) saturate(1600%) hue-rotate(172deg); }
:root body.page-id-208585 #container #main-container .responsive-data-table #presedential-election-content > :last-child { border-bottom:0!important; }
@media(max-width:1024px) {
  :root body.page-id-208585 #container #main-container .responsive-data-table .elementor-element-3e7eb46d { display:grid!important; }
  :root body.page-id-208585 #container #main-container .responsive-data-table .elementor-element-3e7eb46d > * { min-height:64px; }
}

:root body.page-id-208585 #container #main-container .responsive-data-table .elementor-element-3156adc5 { flex-direction:column!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table .elementor-element-3156adc5 h3 { font:700 20px/1.4 Arial,sans-serif!important; letter-spacing:0!important; text-transform:none!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table h6 a { text-decoration:none!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table h6 a:hover { text-decoration:underline!important; }

@media(max-width:1024px) {
:root body.page-id-208585 #container #main-container .responsive-data-table { width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box; }
:root body.page-id-208585 #container #main-container .responsive-data-table .elementor-element-59fbb83e { width:max(100%,calc(148px + var(--responsive-year-count) * 150px))!important; min-width:calc(148px + var(--responsive-year-count) * 150px)!important; }
:root body.page-id-208585 #container #main-container .responsive-data-table :is(.elementor-element-3e7eb46d,.elementor-element-4c786b1c) { grid-template-columns:148px repeat(var(--responsive-year-count),minmax(150px,1fr))!important; }
}

:root body.page-id-208585 #container #main-container .responsive-table-details { width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box; }

/* Recent historical events below the comparison table. */
body.page-id-208585 .ueh-recent-history { margin:64px auto; padding:0 40px; max-width:1440px; box-sizing:border-box; color:#14283e; }
body.page-id-208585 .ueh-recent-history-heading { display:flex; align-items:baseline; justify-content:space-between; gap:24px; margin-bottom:24px; }
body.page-id-208585 .ueh-recent-history-heading h2 { margin:0; color:#14283e; font:400 30px/1.2 "Bebas Neue",sans-serif; letter-spacing:2px; }
body.page-id-208585 .ueh-recent-history a { color:#14283e!important; text-decoration:none!important; }
body.page-id-208585 .ueh-recent-history a:hover { text-decoration:underline!important; text-decoration-color:#14283e!important; }
body.page-id-208585 .ueh-recent-history a:focus-visible { outline:2px solid #14283e; outline-offset:4px; }
body.page-id-208585 .ueh-recent-history-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
body.page-id-208585 .ueh-history-card { display:flex; flex-direction:column; min-width:0; background:#fffcf5; border:1px solid #d9cdb9; }
body.page-id-208585 .ueh-history-card-media { display:block; overflow:hidden; aspect-ratio:16/9; background:#14283e; }
body.page-id-208585 .ueh-history-card-image { display:block; width:100%; height:100%; object-fit:cover; border:0; }
body.page-id-208585 .ueh-history-card-body { display:flex; flex-direction:column; align-items:flex-start; flex:1; padding:24px; }
body.page-id-208585 .ueh-history-card h3 { margin:0 0 12px; color:#14283e; font:700 22px/1.3 Arial,sans-serif; letter-spacing:0; text-transform:none; }
body.page-id-208585 .ueh-history-card p { margin:0 0 24px; color:#14283e; font:400 16px/1.6 Arial,sans-serif; }
body.page-id-208585 .ueh-history-card-link { margin-top:auto; font:700 15px/1.5 Arial,sans-serif; }
@media(max-width:767px) {
 body.page-id-208585 .ueh-recent-history { margin:40px auto; padding:0 20px; }
 body.page-id-208585 .ueh-recent-history-heading { flex-direction:column; gap:12px; }
 body.page-id-208585 .ueh-recent-history-grid { grid-template-columns:minmax(0,1fr); }
}

/* Let the history section own the matching space above and below its content. */
body.page-id-208585 #container #main-container .elementor-208585 > .elementor-element-448eb7d1 { margin-bottom:0!important; padding-bottom:0!important; }

/* Match the Historical Events card presentation (loop 209022). */
body.page-id-208585 .ueh-recent-history-grid { align-items:start; }
body.page-id-208585 .ueh-history-card { position:relative; border-radius:12px; overflow:hidden; font:14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; }
body.page-id-208585 .ueh-history-card-media { aspect-ratio:1200/630; background:#eee; border-radius:12px 12px 0 0; }
body.page-id-208585 .ueh-history-card-image { aspect-ratio:1200/630; border-radius:12px 12px 0 0; object-fit:cover; }
body.page-id-208585 .ueh-history-card-body { display:block; padding:26px 24px 28px; }
body.page-id-208585 .ueh-history-card h3 { margin:0; font:600 16px/22.88px Roboto,sans-serif; letter-spacing:0; }
body.page-id-208585 .ueh-history-card h3 a::after { content:""; position:absolute; inset:0; z-index:1; }
body.page-id-208585 .ueh-history-card-meta { margin-top:4px; color:#14283e; }
body.page-id-208585 .ueh-history-card-meta .elementor-post-info { display:flex; flex-wrap:wrap; padding:0; margin:0; list-style:none; font:14px/22.4px "Helvetica Neue",Helvetica,Arial,sans-serif; }
body.page-id-208585 .ueh-history-card-meta .elementor-post-info li { display:inline-flex; padding:0; margin:0 16px 0 0; color:#14283e; font:inherit; }
body.page-id-208585 .ueh-history-card-meta .elementor-post-info li::before { display:none; }
body.page-id-208585 .ueh-history-card-meta .elementor-post-info__item { font:inherit; color:#14283e; }
body.page-id-208585 .ueh-history-card .history-election-context { display:inline-block; margin-top:8px; padding:3px 8px; border:1px solid #d5d5d5; color:#14283e; font:12px/18px "Helvetica Neue",Helvetica,Arial,sans-serif; }
body.page-id-208585 .ueh-history-card-description { margin-top:16px; }
body.page-id-208585 .ueh-history-card .excerpt p { margin:0; color:#14283e; font:14px/23.8px "Helvetica Neue",Helvetica,Arial,sans-serif; }
body.page-id-208585 .ueh-history-card .history-image-credit { position:relative; z-index:2; margin-top:12px; color:#666; font:11px/16.5px "Helvetica Neue",Helvetica,Arial,sans-serif; }
body.page-id-208585 .ueh-history-card .history-image-credit a { color:#14283e!important; text-decoration:underline!important; }

body.page-id-208585 .ueh-history-card-meta .elementor-widget-post-info { margin:0!important; }
body.page-id-208585 .ueh-history-card h3 a:hover { text-decoration:none!important; }

/* Explore history uses the same button treatment as Read the Full Article. */
body.page-id-208585 .ueh-recent-history-heading > a { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; max-width:100%; padding:9px 16px 8px; border:0; border-radius:0; background:#14283e; color:#fff!important; font:700 16px/20px "Bebas Neue",sans-serif; letter-spacing:2px; text-transform:uppercase; text-align:center; text-decoration:none!important; transition:all .2s ease-in-out; }
body.page-id-208585 .ueh-recent-history-heading > a:is(:hover,:focus-visible) { background:#a5443e; color:#fff!important; text-decoration:none!important; }

/* Match the History page's rounded, 4px gray card hover outline. */
body.page-id-208585 .ueh-history-card { overflow:visible; }
body.page-id-208585 .ueh-history-card h3 a::after { inset:1px; border-radius:12px; outline:3px solid transparent; outline-offset:0; transition:all .2s ease-in-out; }
body.page-id-208585 .ueh-history-card:is(:hover,:focus-within) h3 a::after { outline:4px solid #adacac; outline-offset:0; }
