/*
 * First-paint shells for WordPress mount points. This file is deliberately
 * standalone and is loaded from the CDN before loader.js. React replaces the
 * generic shell child automatically on its first commit.
 */
[data-votehub-element] {
  container: votehub-element / inline-size;
  display: block;
  width: 100%;
}

/* Do not reserve or paint a promotional shell before auth is resolved. This
   prevents a subscription offer from flashing for existing Pro members. */
[data-votehub-element="pro-cta"] > .vh-cdn-shell,
[data-votehub-element="pro-cta"] > .vh-cdn-shell-status {
  display: none !important;
}

.vh-cdn-shell {
  --vh-shell-surface: var(--bg-surface, #eceff3);
  --vh-shell-card: var(--bg-elevated, #fff);
  --vh-shell-border: var(--stroke-soft, #e5e5e5);
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.vh-cdn-shell::before,
.vh-cdn-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.vh-cdn-shell::before {
  inset: 0;
  border: 1px solid var(--vh-shell-border);
  border-radius: 16px;
  background-color: var(--vh-shell-card);
}

.vh-cdn-shell::after {
  z-index: 2;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 35%, var(--vh-dark-skeleton-shine, rgb(255 255 255 / 72%)) 50%, transparent 65%);
  animation: vh-shell-shimmer 1.6s ease-in-out infinite;
}

/* The complete tracker shell: intro, controls, map, and details panel. */
[data-votehub-element="combined-tracker"] > .vh-cdn-shell {
  min-block-size: 661.5px;
  overflow: visible;
  background:
    linear-gradient(var(--vh-shell-surface) 0 0) 0 0 / 168px 26px no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 0 36px / min(520px, 72%) 19.5px no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 0 65.5px / 296px 50px no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 100% 65.5px / 108px 50px no-repeat;
}

[data-votehub-element="combined-tracker"] > .vh-cdn-shell:has(.vh-cdn-shell__tracker) {
  background: none;
}

[data-votehub-element="combined-tracker"] > .vh-cdn-shell:has(.vh-cdn-shell__tracker)::before,
[data-votehub-element="combined-tracker"] > .vh-cdn-shell:has(.vh-cdn-shell__tracker)::after {
  display: none;
}

.vh-cdn-shell__tracker {
  position: absolute;
  inset: 0;
}

.vh-cdn-shell__block {
  position: absolute;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  background:
    linear-gradient(100deg, transparent 32%, var(--vh-dark-skeleton-shine, rgb(255 255 255 / 85%)) 50%, transparent 68%) 100% 0 / 200% 100%,
    var(--vh-shell-surface);
  animation: vh-combined-shell-shimmer 1.6s ease-in-out infinite;
}

.vh-cdn-shell__tracker-title {
  top: 0;
  left: 0;
  width: 168px;
  height: 26px;
  border-radius: 999px;
}

.vh-cdn-shell__tracker-description {
  top: 36px;
  left: 0;
  width: min(520px, 72%);
  height: 19.5px;
  border-radius: 999px;
}

.vh-cdn-shell__tracker-tabs,
.vh-cdn-shell__tracker-race {
  position: absolute;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  top: 65.5px;
  height: 50px;
  padding: 4px;
  border: 1px solid var(--vh-shell-border);
  border-radius: 13px;
  background: var(--vh-shell-card);
}

.vh-cdn-shell__tracker-tabs {
  left: 0;
  gap: 4px;
  width: 296px;
}

.vh-cdn-shell__tracker-tabs > .vh-cdn-shell__block {
  position: relative;
  flex: 1 1 0;
  height: 38px;
  border-radius: 9px;
}

.vh-cdn-shell__tracker-race {
  right: 0;
  justify-content: center;
  width: 108px;
}

.vh-cdn-shell__tracker-race > .vh-cdn-shell__block {
  position: relative;
  width: 58px;
  height: 12px;
  border-radius: 999px;
}

.vh-cdn-shell__tracker-map {
  top: 131.5px;
  left: 0;
  width: 44%;
  height: 530px;
  border: 1px solid var(--vh-shell-border);
  border-radius: 16px;
}

.vh-cdn-shell__tracker-panel {
  position: absolute;
  top: 131.5px;
  right: 0;
  display: block;
  width: calc(56% - 24px);
  height: 530px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid var(--vh-shell-border);
  border-radius: 16px;
  background: var(--vh-shell-card);
}

.vh-cdn-shell__tracker-panel-heading {
  position: relative;
  width: 144px;
  height: 14px;
  margin: 14px auto;
  border-radius: 999px;
}

.vh-cdn-shell__tracker-panel-body {
  position: absolute;
  inset: 43px 0 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px 24px;
  border-top: 1px solid var(--vh-shell-border);
}

.vh-cdn-shell__tracker-panel-body > .vh-cdn-shell__block {
  position: relative;
  flex: 0 0 42px;
  width: 82%;
  border-radius: 999px;
}

.vh-cdn-shell__tracker-panel-body > .vh-cdn-shell__block:nth-child(2n) {
  width: 64%;
}

[data-votehub-element="combined-tracker"] > .vh-cdn-shell::before,
[data-votehub-element="combined-tracker"] > .vh-cdn-shell::after {
  inset: auto;
  top: 131.5px;
  bottom: auto;
  height: 530px;
  box-sizing: border-box;
  border: 1px solid var(--vh-shell-border);
  border-radius: 16px;
  transform: none;
  background:
    linear-gradient(100deg, transparent 32%, var(--vh-dark-skeleton-shine, rgb(255 255 255 / 85%)) 50%, transparent 68%) 100% 0 / 200% 100%,
    var(--vh-shell-surface);
  animation: vh-combined-shell-shimmer 1.6s ease-in-out infinite;
}

[data-votehub-element="combined-tracker"] > .vh-cdn-shell::before {
  left: 0;
  width: 44%;
}

[data-votehub-element="combined-tracker"] > .vh-cdn-shell::after {
  right: 0;
  width: calc(56% - 24px);
}

/* Congress control remains a single compact bar at every width. */
[data-votehub-element="congress-control"] > .vh-cdn-shell {
  block-size: min(58px, 4.677cqi);
  min-block-size: min(58px, 4.677cqi);
  border-radius: 16px;
}

[data-votehub-element="congress-control"] > .vh-cdn-shell::before {
  background:
    linear-gradient(var(--vh-shell-surface) 0 0) 2.5% 50% / 11% 28% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 18% 50% / 11% 52% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 32% 38% / 12% 18% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 32% 65% / 9% 18% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 47% 50% / 10% 52% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 61% 38% / 12% 18% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 61% 65% / 9% 18% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 77% 50% / 10% 52% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 91% 50% / 7% 34% no-repeat,
    var(--vh-shell-card);
}

/* Three cards on desktop; compact rows below the component breakpoint. */
[data-votehub-element="forecast-previews"] > .vh-cdn-shell {
  min-block-size: 290px;
}

[data-votehub-element="forecast-previews"] > .vh-cdn-shell::before {
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(var(--vh-shell-surface) 0 0) 16.667% 42% / 17% 32% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 16.667% 73% / 21% 7% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 50% 42% / 17% 32% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 50% 73% / 21% 7% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 83.333% 42% / 17% 32% no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 83.333% 73% / 21% 7% no-repeat,
    linear-gradient(var(--vh-shell-card) 0 0) 0 0 / calc(33.333% - 11px) 100% no-repeat,
    linear-gradient(var(--vh-shell-card) 0 0) 50% 0 / calc(33.333% - 11px) 100% no-repeat,
    linear-gradient(var(--vh-shell-card) 0 0) 100% 0 / calc(33.333% - 11px) 100% no-repeat;
}

/* Sidebar cards reserve their complete footprint before the module bundle. */
[data-votehub-element="average-card"] > .vh-cdn-shell,
[data-votehub-element="kalshi-market"] > .vh-cdn-shell {
  min-block-size: 161px;
}

[data-votehub-element="average-card"] > .vh-cdn-shell::before,
[data-votehub-element="kalshi-market"] > .vh-cdn-shell::before {
  background:
    linear-gradient(var(--vh-shell-surface) 0 0) 20px 17px / 58% 15px no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 20px 42px / calc(50% - 26px) 67px no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) calc(100% - 20px) 42px / calc(50% - 26px) 67px no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 20px calc(100% - 18px) / 78px 10px no-repeat,
    var(--vh-dark-surface, #f4f7fa);
}

[data-votehub-element="power-index"] > .vh-cdn-shell {
  min-block-size: 260px;
}

[data-votehub-element="power-index"] > .vh-cdn-shell::before {
  background:
    linear-gradient(var(--vh-shell-surface) 0 0) 16px 16px / 62% 14px no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 16px 40px / 34% 24px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 23px, var(--vh-shell-border) 23px 24px) 16px 78px / calc(100% - 54px) 100px no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 16px calc(100% - 21px) / 72px 12px no-repeat,
    var(--vh-shell-card);
}

/* Four rows fill the same capped viewport used by the live vertical list. */
[data-votehub-element="polling-averages"] > .vh-cdn-shell {
  min-block-size: 625px;
}

[data-votehub-element="polling-averages"] > .vh-cdn-shell::before {
  border: 0;
  border-radius: 0;
  background: repeating-linear-gradient(
    to bottom,
    var(--vh-shell-card) 0 146px,
    transparent 146px 158px
  );
}

[data-votehub-element="polling-averages"][data-layout="horizontal"] > .vh-cdn-shell {
  min-block-size: 201px;
}

[data-votehub-element="polling-averages"][data-layout="horizontal"] > .vh-cdn-shell::before {
  background: repeating-linear-gradient(
    to right,
    var(--vh-shell-card) 0 300px,
    transparent 300px 312px
  );
}

/* Toolbar plus the feed's fixed scrolling viewport. */
[data-votehub-element="social-feed"] > .vh-cdn-shell {
  min-block-size: 986px;
}

[data-votehub-element="social-feed"] > .vh-cdn-shell::before {
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(var(--vh-shell-card) 0 0) 0 0 / calc(100% - 288px) 50px no-repeat,
    linear-gradient(var(--vh-shell-card) 0 0) 100% 0 / 272px 50px no-repeat,
    repeating-linear-gradient(to bottom, var(--vh-shell-card) 0 246px, transparent 246px 258px) 0 66px / calc(50% - 152px) 920px no-repeat,
    repeating-linear-gradient(to bottom, var(--vh-shell-card) 0 246px, transparent 246px 258px) calc(50% - 136px) 66px / calc(50% - 152px) 920px no-repeat,
    linear-gradient(var(--vh-shell-card) 0 0) 100% 66px / 272px 476px no-repeat;
}

@container votehub-element (max-width: 1140px) {
  [data-votehub-element="combined-tracker"] > .vh-cdn-shell {
    min-block-size: 1211.5px;
    background:
      linear-gradient(var(--vh-shell-surface) 0 0) 0 0 / 168px 26px no-repeat,
      linear-gradient(var(--vh-shell-surface) 0 0) 0 36px / min(520px, 72%) 19.5px no-repeat,
      linear-gradient(var(--vh-shell-surface) 0 0) 0 65.5px / 296px 50px no-repeat,
      linear-gradient(var(--vh-shell-surface) 0 0) 100% 65.5px / 108px 50px no-repeat;
  }

  [data-votehub-element="combined-tracker"] > .vh-cdn-shell::before,
  [data-votehub-element="combined-tracker"] > .vh-cdn-shell::after {
    top: 131.5px;
    right: auto;
    left: 0;
    width: 100%;
  }

  [data-votehub-element="combined-tracker"] > .vh-cdn-shell::after {
    top: 681.5px;
  }

  .vh-cdn-shell__tracker-map,
  .vh-cdn-shell__tracker-panel {
    right: auto;
    left: 0;
    width: 100%;
  }

  .vh-cdn-shell__tracker-panel {
    top: 681.5px;
  }

  [data-votehub-element="social-feed"] > .vh-cdn-shell {
    min-block-size: 1043.6px;
  }

  [data-votehub-element="social-feed"] > .vh-cdn-shell::before {
    background:
      linear-gradient(var(--vh-shell-card) 0 0) 0 0 / 100% 50px no-repeat,
      linear-gradient(var(--vh-shell-card) 0 0) 0 60px / 100% 50px no-repeat,
      repeating-linear-gradient(to bottom, var(--vh-shell-card) 0 246px, transparent 246px 258px) 0 126px / calc(50% - 8px) 920px no-repeat,
      repeating-linear-gradient(to bottom, var(--vh-shell-card) 0 246px, transparent 246px 258px) 100% 126px / calc(50% - 8px) 920px no-repeat;
  }
}

@container votehub-element (max-width: 820px) {
  [data-votehub-element="forecast-previews"] > .vh-cdn-shell {
    min-block-size: clamp(365px, calc(35.45cqi + 234.55px), 411.7px);
  }

  [data-votehub-element="forecast-previews"] > .vh-cdn-shell::before {
    background:
      linear-gradient(var(--vh-shell-card) 0 0) 0 0 / 100% calc(33.333% - 8px) no-repeat,
      linear-gradient(var(--vh-shell-card) 0 0) 0 50% / 100% calc(33.333% - 8px) no-repeat,
      linear-gradient(var(--vh-shell-card) 0 0) 0 100% / 100% calc(33.333% - 8px) no-repeat;
  }
}

@container votehub-element (max-width: 780px) {
  [data-votehub-element="social-feed"] > .vh-cdn-shell {
    min-block-size: calc(clamp(520px, 72dvh, 740px) + 123.6px);
  }

  [data-votehub-element="social-feed"] > .vh-cdn-shell::before {
    background:
      linear-gradient(var(--vh-shell-card) 0 0) 0 0 / 100% 50px no-repeat,
      linear-gradient(var(--vh-shell-card) 0 0) 0 60px / 100% 50px no-repeat,
      repeating-linear-gradient(to bottom, var(--vh-shell-card) 0 246px, transparent 246px 258px) 0 126px / 100% 100% no-repeat;
  }
}

@container votehub-element (max-width: 640px) {
  [data-votehub-element="combined-tracker"] > .vh-cdn-shell {
    min-block-size: calc(clamp(300px, 92cqi, 420px) + 627px);
    background:
      linear-gradient(var(--vh-shell-surface) 0 0) 0 0 / 148px 26px no-repeat,
      linear-gradient(var(--vh-shell-surface) 0 0) 0 34px / 90% 39px no-repeat,
      linear-gradient(var(--vh-shell-surface) 0 0) 0 85px / calc(100% - 94px) 50px no-repeat,
      linear-gradient(var(--vh-shell-surface) 0 0) 100% 85px / 86px 50px no-repeat;
  }

  [data-votehub-element="combined-tracker"] > .vh-cdn-shell::before,
  [data-votehub-element="combined-tracker"] > .vh-cdn-shell::after {
    top: 151px;
    height: clamp(300px, 92cqi, 420px);
  }

  [data-votehub-element="combined-tracker"] > .vh-cdn-shell::after {
    top: calc(167px + clamp(300px, 92cqi, 420px));
    height: 460px;
  }

  .vh-cdn-shell__tracker-title {
    width: 148px;
  }

  .vh-cdn-shell__tracker-description {
    top: 34px;
    width: 90%;
    height: 39px;
    border-radius: 8px;
  }

  .vh-cdn-shell__tracker-tabs,
  .vh-cdn-shell__tracker-race {
    top: 85px;
  }

  .vh-cdn-shell__tracker-tabs {
    width: calc(100% - 94px);
  }

  .vh-cdn-shell__tracker-race {
    width: 86px;
  }

  .vh-cdn-shell__tracker-map {
    top: 151px;
    height: clamp(300px, 92cqi, 420px);
  }

  .vh-cdn-shell__tracker-panel {
    top: calc(167px + clamp(300px, 92cqi, 420px));
    height: 460px;
  }
}

@container votehub-element (max-width: 400px) {
  [data-votehub-element="polling-averages"][data-layout="horizontal"] > .vh-cdn-shell {
    min-block-size: 159px;
  }
}

@keyframes vh-shell-shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes vh-combined-shell-shimmer {
  to {
    background-position: -100% 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-cdn-shell::after {
    animation: none;
  }

  [data-votehub-element="combined-tracker"] > .vh-cdn-shell::before {
    animation: none;
  }

  .vh-cdn-shell__block {
    animation: none;
  }
}

/* Keep single-tracker shortcode shells aligned with the compact header. */
[data-votehub-element="combined-tracker"]:is([data-tracker="campaign"], [data-tracker="early-vote"]) > .vh-cdn-shell {
  min-block-size: 605.5px;
  background:
    linear-gradient(var(--vh-shell-surface) 0 0) 0 0 / 168px 26px no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 0 36px / min(520px, calc(100% - 132px)) 19.5px no-repeat,
    linear-gradient(var(--vh-shell-surface) 0 0) 100% 0 / 108px 50px no-repeat;
}

[data-votehub-element="combined-tracker"]:is([data-tracker="campaign"], [data-tracker="early-vote"]) > .vh-cdn-shell:has(.vh-cdn-shell__tracker) {
  background: none;
}

[data-votehub-element="combined-tracker"]:is([data-tracker="campaign"], [data-tracker="early-vote"]) .vh-cdn-shell__tracker-tabs {
  display: none;
}

[data-votehub-element="combined-tracker"]:is([data-tracker="campaign"], [data-tracker="early-vote"]) .vh-cdn-shell__tracker-race {
  top: 0;
}

[data-votehub-element="combined-tracker"]:is([data-tracker="campaign"], [data-tracker="early-vote"]) .vh-cdn-shell__tracker-description {
  max-width: calc(100% - 132px);
}

[data-votehub-element="combined-tracker"]:is([data-tracker="campaign"], [data-tracker="early-vote"]) > .vh-cdn-shell::before,
[data-votehub-element="combined-tracker"]:is([data-tracker="campaign"], [data-tracker="early-vote"]) > .vh-cdn-shell::after,
[data-votehub-element="combined-tracker"]:is([data-tracker="campaign"], [data-tracker="early-vote"]) :is(.vh-cdn-shell__tracker-map, .vh-cdn-shell__tracker-panel) {
  transform: translateY(-56px);
}

@container votehub-element (max-width: 1140px) {
  [data-votehub-element="combined-tracker"]:is([data-tracker="campaign"], [data-tracker="early-vote"]) > .vh-cdn-shell {
    min-block-size: 1155.5px;
  }
}

@container votehub-element (max-width: 640px) {
  [data-votehub-element="combined-tracker"]:is([data-tracker="campaign"], [data-tracker="early-vote"]) > .vh-cdn-shell {
    min-block-size: calc(clamp(300px, 92cqi, 420px) + 571px);
  }
}

/* Combined-tracker first paint mirrors the mounted layout and active tab. */
[data-votehub-element="combined-tracker"] > .vh-cdn-shell:has(.vh-cdn-shell__tracker--v2) {
  min-block-size: 0;
}

.vh-cdn-shell__tracker--v2 {
  position: static;
  display: flex;
  flex-direction: column;
  color: #1a1a1a;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
}

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 12px;
}

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-title {
  position: static;
  width: auto;
  height: auto;
  min-height: 26px;
  color: var(--vh-dark-accent-text-secondary, #7c3aed);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-description {
  position: static;
  width: auto;
  height: auto;
  color: var(--vh-dark-text-secondary, #62636c);
  font-size: 13px;
  line-height: 1.5;
}

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  margin-bottom: 16px;
}

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-tabs,
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-race {
  position: static;
}

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-race,
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-view {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 108px;
  height: 48px;
  padding: 4px;
  border: 1px solid var(--vh-shell-border);
  border-radius: 13px;
  background: var(--vh-shell-card);
}

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-view { width: 126px; }
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-race > .vh-cdn-shell__block,
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-view > .vh-cdn-shell__block {
  position: relative;
  width: 58px;
  height: 12px;
  border-radius: 999px;
}
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-view > .vh-cdn-shell__block { width: 82px; }

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  gap: 24px;
}

[data-votehub-element="combined-tracker"]:is([data-default-tab="early-vote"], [data-tracker="early-vote"]) .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-dashboard {
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 20px;
}

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-map,
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-panel {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: auto;
  height: 530px;
  transform: none;
  border: 1px solid var(--vh-shell-border);
  border-radius: 16px;
  background: var(--vh-shell-card);
  overflow: hidden;
}

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-map-key,
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-map-status {
  position: absolute;
  left: 20px;
  width: 112px;
  height: 12px;
  border-radius: 999px;
}
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-map-key { top: 20px; }
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-map-status { top: auto; bottom: 18px; width: 148px; }

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-panel-early,
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-panel-campaign {
  display: none;
  height: 100%;
}
[data-votehub-element="combined-tracker"]:is([data-default-tab="early-vote"], [data-tracker="early-vote"]) .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-panel-early,
[data-votehub-element="combined-tracker"]:not([data-default-tab="early-vote"]):not([data-tracker="early-vote"]) .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-panel-campaign { display: flex; flex-direction: column; }

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-panel-head {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--vh-shell-border);
  color: #737373;
  font-size: 13px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 1.338px;
  text-transform: uppercase;
}
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-panel-early .vh-cdn-shell__tracker-panel-head { color: var(--vh-dark-accent-text-secondary, #7c3aed); flex-basis: 37px; }

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-readout {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  border-bottom: 1px solid var(--vh-shell-border);
  background: var(--vh-dark-surface, #fafafa);
}
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-readout .vh-cdn-shell__block { position: relative; width: 135px; height: 12px; border-radius: 999px; }
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-readout .vh-cdn-shell__block + .vh-cdn-shell__block { width: 72px; height: 42px; }

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-person {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: 44px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 12px 20px;
  border-bottom: 1px solid var(--vh-shell-border);
}
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; }
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-person-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-person-copy .vh-cdn-shell__block { position: relative; width: min(100%, 100px); height: 16px; border-radius: 999px; }
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-person-copy .vh-cdn-shell__block + .vh-cdn-shell__block { width: min(100%, 80px); height: 12px; }
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-share { position: relative; width: 62px; height: 30px; border-radius: 999px; }
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-axis { flex: 0 0 74px; margin: 0 24px; background: linear-gradient(#a5a5ab,#a5a5ab) center 27px / 100% 1px no-repeat; }
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-footer { display: flex; flex: 0 0 40px; align-items: center; justify-content: space-between; padding: 0 20px; border-top: 1px solid var(--vh-shell-border); background: var(--vh-dark-surface, #fafafa); color: #737373; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-footer .vh-cdn-shell__block { position: relative; width: 96px; height: 12px; border-radius: 999px; }

.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-timeline { display: flex; flex-direction: column; gap: 25px; padding: 22px 24px; }
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-timeline .vh-cdn-shell__block { position: relative; width: 70%; height: 35px; border-radius: 8px; }
.vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-timeline .vh-cdn-shell__block:nth-child(3n + 1) { width: 90px; height: 12px; }

@container votehub-element (max-width: 760px) {
  .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-dashboard,
  [data-votehub-element="combined-tracker"]:is([data-default-tab="early-vote"], [data-tracker="early-vote"]) .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-dashboard { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@container votehub-element (max-width: 640px) {
  .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-title { font-size: 18px; }
  .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-map { height: clamp(300px, 92cqi, 420px); }
  .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-panel { height: 460px; }
}

@container votehub-element (max-width: 600px) {
  .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-toolbar { gap: 8px; }
  .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-tabs { flex: 1 1 auto; min-width: 0; width: auto; }
}

@container votehub-element (max-width: 480px) {
  .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-toolbar { flex-wrap: wrap; }
  .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-tabs { flex-basis: 100%; }
  .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-actions { justify-content: flex-end; width: 100%; }
}

/* Generic WordPress shells use the same breakpoint and map ratio. */
@container votehub-element (min-width: 761px) {
  [data-votehub-element="combined-tracker"]:is([data-default-tab="early-vote"], [data-tracker="early-vote"]) > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2))::before { width: calc((100% - 20px) * .6); }
  [data-votehub-element="combined-tracker"]:is([data-default-tab="early-vote"], [data-tracker="early-vote"]) > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2))::after { width: calc((100% - 20px) * .4); }
  [data-votehub-element="combined-tracker"] > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2)) { min-block-size: 661.5px; }
  [data-votehub-element="combined-tracker"]:is([data-tracker="campaign"], [data-tracker="early-vote"]) > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2)) { min-block-size: 605.5px; }
  [data-votehub-element="combined-tracker"] > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2))::before,
  [data-votehub-element="combined-tracker"] > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2))::after { top: 131.5px; left: auto; right: 0; width: calc(56% - 24px); }
  [data-votehub-element="combined-tracker"] > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2))::before { left: 0; right: auto; width: 44%; }
  [data-votehub-element="combined-tracker"]:is([data-default-tab="early-vote"], [data-tracker="early-vote"]) > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2))::before { width: calc((100% - 20px) * .6); }
  [data-votehub-element="combined-tracker"]:is([data-default-tab="early-vote"], [data-tracker="early-vote"]) > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2))::after { width: calc((100% - 20px) * .4); }
}

@container votehub-element (min-width: 641px) and (max-width: 760px) {
  [data-votehub-element="combined-tracker"] > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2)) { min-block-size: 1211.5px; }
  [data-votehub-element="combined-tracker"]:is([data-tracker="campaign"], [data-tracker="early-vote"]) > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2)) { min-block-size: 1155.5px; }
  [data-votehub-element="combined-tracker"] > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2))::before,
  [data-votehub-element="combined-tracker"] > .vh-cdn-shell:not(:has(.vh-cdn-shell__tracker--v2))::after { width: 100%; }
}

.vh-cdn-shell__tracker--v2,
.vh-cdn-shell__tracker--v2 * {
  box-sizing: border-box;
}

@container votehub-element (max-width: 480px) {
  .vh-cdn-shell__tracker--v2 .vh-cdn-shell__tracker-tabs { height: 48px; }
}

/* Race choices are unknown before data loads; match the React loading header. */
[data-votehub-element="combined-tracker"] .vh-cdn-shell__tracker-race {
  display: none;
}

/* Generated by scripts/build-skeletons.mjs: element styles for the pre-rendered skeletons. */
[data-votehub-element] {
  container: votehub-element / inline-size;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-votehub-element],
[data-votehub-element] *,
[data-votehub-element] *::before,
[data-votehub-element] *::after {
  box-sizing: border-box;
}

[data-votehub-status="error"] {
  color: var(--vh-dark-status-error, #c00);
}

/* Entitlement-gated offers take up no space until React confirms that the
   current visitor should see them. */
[data-votehub-element="pro-cta"]:empty {
  display: none;
}

/* average-card */
.vh-average-card,
.vh-average-card * {
  box-sizing: border-box;
}

.vh-average-card {
  --vh-average-purple: var(--vh-color-accent-text-secondary, var(--votehub-purple-primary, #7c3aed));
  --vh-average-text: var(--text-primary, #1a1a1a);
  --vh-average-muted: var(--text-muted, #737373);
  --vh-average-line: var(--stroke-soft, #e5e5e5);
  --vh-average-surface: var(--bg-elevated, #fff);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 161px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--vh-average-line);
  border-radius: 16px;
  background: var(--vh-average-surface);
  box-shadow: none;
  color: var(--vh-average-text);
  font-family: "TT Norms Pro", "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, sans-serif;
  text-decoration: none;
}

.vh-average-card--compact {
  height: 100%;
  min-height: 0;
}

.vh-average-card[href] {
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.vh-average-card[href]:hover {
  border-color: color-mix(in srgb, var(--vh-average-purple) 45%, var(--vh-average-line));
  background: color-mix(in srgb, var(--vh-average-purple) 2%, var(--vh-dark-surface-raised, white));
}

.vh-average-card[href]:focus-visible {
  outline: 3px solid var(--vh-average-purple);
  outline-offset: 2px;
}

.vh-average-card__header {
  display: flex;
  flex: 0 0 43px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 6px 16px;
  text-align: center;
  border-bottom: 1px solid var(--vh-average-line);
  background: transparent;
}

.vh-average-card__header h2 {
  margin: 0;
  color: var(--vh-average-purple);
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.vh-average-card__values {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
  padding: 8px 16px;
}

.vh-average-card__stat {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--vh-average-accent, #265cff);
  text-align: center;
}

.vh-average-card__stat strong {
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.vh-average-card__stat>span:last-child {
  max-width: 100%;
  margin-top: 6px;
  overflow: hidden;
  color: var(--vh-average-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.vh-average-card__status {
  display: grid;
  flex: 1;
  place-items: center;
  margin: 0;
  padding: 12px;
  color: var(--vh-average-muted);
  font-size: 11px;
}

.vh-average-card__skeleton {
  display: block;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--vh-dark-skeleton, #e9edf0) 20%, var(--vh-dark-skeleton-shine, #f6f7f8) 40%, var(--vh-dark-skeleton, #e9edf0) 60%);
  background-size: 200% 100%;
  animation: vh-average-shimmer 1.6s linear infinite;
}

.vh-average-card__skeleton--value {
  width: 60%;
  height: 30px;
}

.vh-average-card__skeleton--label {
  width: 45%;
  height: 8px;
  margin-top: 7px;
}

@keyframes vh-average-shimmer {
  to {
    background-position-x: -200%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-average-card__skeleton {
    animation: none;
  }

  .vh-average-card[href] {
    transition: none;
  }
}

.vh-average-card__stat+.vh-average-card__stat {
  border-left: 1px solid var(--vh-average-line);
}

/* combined-tracker */
.vh-combined-tracker {
  --ct-display: "TT Norms Pro", "Avenir Next", Avenir, system-ui, sans-serif;
  --ct-body: "Avenir Next", Avenir, system-ui, sans-serif;
  --votehub-purple: #7c3aed;
  --votehub-ink: var(--vh-color-text, #1a1a1a);
  --votehub-muted: var(--vh-color-text-muted, #737373);
  --votehub-copy: var(--vh-color-text-secondary, #4a4a4a);
  --votehub-outline: var(--vh-color-border-subtle, #e5e5e5);
  --votehub-white: #fff;
  container: vh-combined-tracker / inline-size;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  color: var(--vh-color-text, #1a1a1a);
  font-family: var(--ct-body);
}

:where(.vh-combined-tracker) :where(button, input, select, textarea) {
  font-family: inherit;
}

.vh-combined-tracker *,
.vh-combined-tracker *::before,
.vh-combined-tracker *::after {
  box-sizing: border-box;
}

.vh-combined-tracker-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.vh-combined-tracker-skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--vh-color-skeleton, #e8ebf2);
}

.vh-combined-tracker-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 32%, var(--vh-dark-skeleton-shine, rgb(255 255 255 / 85%)) 50%, transparent 68%);
  animation: vh-combined-tracker-shimmer 1.6s ease-in-out infinite;
}

.vh-combined-tracker-skeleton-title {
  min-height: 26px;
  margin: 0;
  color: var(--vh-color-accent-text-secondary, #7c3aed);
  font: 600 20px/1.3 var(--ct-body);
  letter-spacing: -.015em;
}

.vh-combined-tracker-skeleton-control {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--votehub-outline);
  background: var(--vh-color-surface-raised, #fff);
}

.vh-combined-tracker-skeleton--tabs {
  width: 296px;
  height: 50px;
  border-radius: 13px;
}

.vh-combined-tracker-skeleton--tab {
  flex: 1 1 0;
  height: 38px;
  border-radius: 9px;
}

.vh-combined-tracker-skeleton--view {
  justify-content: center;
  width: 126px;
  height: 48px;
  border-radius: 13px;
}

.vh-combined-tracker-skeleton--view-label {
  width: 82px;
  height: 12px;
  border-radius: 999px;
}

.vh-combined-tracker--skeleton .campaign-tracker-timeline,
.vh-combined-tracker--skeleton .early-vote-margin-card {
  height: var(--vh-desktop-tracker-height);
}

.vh-combined-tracker-skeleton--info {
  position: absolute;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.vh-combined-tracker-skeleton--coverage {
  width: 96px;
  height: 12px;
  border-radius: 999px;
}

.vh-combined-tracker-map-loading {
  background: var(--vh-color-surface-raised, #fff);
}

.vh-combined-tracker-map-loading__key,
.vh-combined-tracker-map-loading__status {
  position: absolute;
  height: 12px;
  border-radius: 999px;
}

.vh-combined-tracker-map-loading__key {
  top: 20px;
  left: 20px;
  width: 112px;
}

.vh-combined-tracker-map-loading__status {
  bottom: 18px;
  left: 20px;
  width: 148px;
}

.vh-combined-tracker-message-skeleton {
  width: 100%;
  height: 530px;
}

@keyframes vh-combined-tracker-shimmer {
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .vh-combined-tracker-skeleton::after { animation: none; }
}


.vh-combined-tracker-intro {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-bottom: 12px;
}

.vh-combined-tracker-intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.vh-combined-tracker-intro-copy>p {
  margin: 0;
  color: var(--vh-dark-text-secondary, #62636c);
  font-size: 13px;
  line-height: 1.5;
}

.vh-combined-tracker-state-picker {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.vh-combined-tracker-state-picker[open] {
  z-index: 40;
}

.vh-combined-tracker-state-trigger {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border-radius: 4px;
  color: var(--vh-dark-accent-text-secondary, #7c3aed);
  list-style: none;
  cursor: pointer;
}

.vh-combined-tracker-state-trigger::-webkit-details-marker {
  display: none;
}

.vh-combined-tracker-state-trigger::marker {
  content: "";
}

.vh-combined-tracker-state-trigger h2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  margin: 0;
  color: var(--vh-dark-accent-text-secondary, #7c3aed);
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
  text-transform: none;
}

.vh-combined-tracker-state-trigger svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.vh-combined-tracker-state-trigger:hover {
  background: rgba(124, 58, 237, .055);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, .055);
}

.vh-combined-tracker-state-trigger:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 5px;
}

.vh-combined-tracker-state-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  min-width: max(100%, 160px);
  max-width: min(260px, calc(100vw - 32px));
  max-height: 300px;
  overflow: auto;
  scrollbar-width: none;
  padding: 4px;
  border: 1px solid var(--vh-color-border-subtle, #e5e5e5);
  border-radius: 9px;
  background: var(--vh-color-surface-raised, #fff);
  box-shadow: 0 6px 20px rgb(17 24 39 / 16%);
}

.vh-combined-tracker-state-menu::-webkit-scrollbar {
  display: none;
}

.vh-combined-tracker-state-picker:not([open]) .vh-combined-tracker-state-menu {
  display: none;
}

.vh-combined-tracker-state-menu button {
  display: block;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--vh-color-text, #1a1a1a);
  font: 600 12px/1.4 "TT Norms Pro", "Avenir Next", sans-serif;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.vh-combined-tracker-state-menu button:hover {
  background: rgba(124, 58, 237, .08);
}

.vh-combined-tracker-state-menu button[aria-current="true"] {
  background: rgba(124, 58, 237, .1);
  color: var(--vh-dark-accent-text-secondary, #7c3aed);
}

.vh-combined-tracker-state-menu button:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: -2px;
}

.vh-combined-tracker-frame {
  width: 100%;
}

.vh-combined-tracker-toolbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  margin: 0 0 16px;
}

.vh-combined-tracker-tabs {
  display: flex;
  flex: none;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--vh-color-border-subtle, #e5e5e5);
  border-radius: 13px;
  background: var(--vh-color-surface-raised, #fff);
}

.vh-combined-tracker-tabs button {
  min-width: 88px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--vh-color-text-secondary, #4a4a4a);
  font: 600 13px/1.2 "TT Norms Pro", "Avenir Next", sans-serif;
  cursor: pointer;
}

.vh-combined-tracker-tabs button[aria-selected="true"] {
  border-color: var(--vh-dark-focus, #c9b6ff);
  background: var(--vh-dark-menu-item-active, #eff0f8);
  color: var(--vh-dark-accent-text-secondary, #7c3aed);
}

.vh-combined-tracker-tabs button:disabled {
  color: var(--vh-dark-disabled-text, #aaa);
  cursor: not-allowed;
}

.vh-combined-tracker-tabs button:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

.vh-combined-tracker-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-left: auto;
}

.vh-combined-tracker-view-link {
  display: inline-flex;
  white-space: nowrap;
}

.vh-combined-tracker-view-link,
.vh-combined-tracker-view-link:hover {
  color: var(--vh-dark-accent-text-secondary, #7c3aed);
  text-decoration: none;
}

.vh-combined-tracker-view-link:focus-visible {
  outline: none;
}

.vh-combined-tracker-race-picker,
.vh-combined-tracker-view-link {
  position: relative;
  flex: none;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--vh-color-border-subtle, #e5e5e5);
  border-radius: 13px;
  background: var(--vh-color-surface-raised, #fff);
}

.vh-combined-tracker-race-trigger,
.vh-combined-tracker-view-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 10px 16px;
  border: 1px solid var(--vh-dark-focus, #c9b6ff);
  border-radius: 9px;
  background: var(--vh-dark-menu-item-active, #eff0f8);
  color: var(--vh-dark-accent-text-secondary, #7c3aed);
  font-family: var(--ct-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

.vh-combined-tracker-race-trigger::-webkit-details-marker {
  display: none;
}

.vh-combined-tracker-race-trigger::marker {
  content: "";
}

.vh-combined-tracker-race-trigger svg {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
}

.vh-combined-tracker-race-trigger:hover,
.vh-combined-tracker-view-link:hover .vh-combined-tracker-view-label {
  background: var(--vh-dark-menu-item-hover, #e8e8f5);
}

.vh-combined-tracker-race-trigger:focus-visible,
.vh-combined-tracker-view-link:focus-visible .vh-combined-tracker-view-label {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

.vh-combined-tracker-race-menu {
  position: absolute;
  z-index: 6;
  top: calc(100% + 6px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  min-width: max(100%, 120px);
  max-width: min(260px, calc(100vw - 32px));
  max-height: 300px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--vh-color-border-subtle, #e5e5e5);
  border-radius: 9px;
  background: var(--vh-color-surface-raised, #fff);
  box-shadow: 0 6px 20px rgb(17 24 39 / 16%);
}

.vh-combined-tracker-race-picker:not([open]) .vh-combined-tracker-race-menu {
  display: none;
}

.vh-combined-tracker-race-menu button {
  display: block;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--vh-color-text, #1a1a1a);
  font: 600 12px/1.4 "TT Norms Pro", "Avenir Next", sans-serif;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.vh-combined-tracker-race-menu button:hover {
  background: rgba(124, 58, 237, .08);
}

.vh-combined-tracker-race-menu button[aria-current="true"] {
  background: rgba(124, 58, 237, .1);
  color: var(--vh-dark-accent-text-secondary, #7c3aed);
}

.vh-combined-tracker-race-menu button:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: -2px;
}

.vh-combined-tracker-message {
  min-height: 280px;
  padding: 40px 0;
  color: var(--vh-color-text-muted, #737373);
  text-align: center;
}

.vh-combined-tracker .campaign-tracker-dashboard {
  width: 100%;
  margin: 0;
}

.vh-combined-tracker .early-vote-tracker-shell,
.vh-combined-tracker .campaign-tracker-shell {
  background: transparent;
}

@container vh-combined-tracker (max-width: 600px) {

  .vh-combined-tracker-state-trigger h2 {
    font-size: 18px;
  }

  .vh-combined-tracker-toolbar {
    align-items: center;
    gap: 8px;
  }

  .vh-combined-tracker-tabs {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .vh-combined-tracker-tabs button {
    min-width: 0;
    min-height: 38px;
    width: 100%;
    padding-inline: clamp(4px, 2cqw, 16px);
    white-space: nowrap;
  }

  .vh-combined-tracker-tab-qualifier {
    display: none;
  }

  .vh-combined-tracker-race-picker {
    flex: none;
  }

  .vh-combined-tracker-race-trigger,
  .vh-combined-tracker-view-label {
    padding-inline: clamp(8px, 2.5cqw, 16px);
    white-space: nowrap;
  }

}

/* Single-tracker embeds keep all navigation in one header. */
.vh-combined-tracker--single .vh-combined-tracker-intro {
  flex-wrap: nowrap;
  align-items: center;
  padding-bottom: 20px;
}

.vh-combined-tracker--single .vh-combined-tracker-intro-copy {
  flex: 1 1 auto;
}

@container vh-combined-tracker (max-width: 600px) {
  .vh-combined-tracker--single .vh-combined-tracker-intro {
    flex-wrap: wrap;
  }

  .vh-combined-tracker--single .vh-combined-tracker-intro-copy {
    flex-basis: 100%;
  }

  .vh-combined-tracker--single .vh-combined-tracker-actions {
    width: 100%;
    margin-left: 0;
  }

  .vh-combined-tracker--single .vh-combined-tracker-race-picker {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .vh-combined-tracker--single .vh-combined-tracker-race-trigger {
    justify-content: space-between;
    width: 100%;
  }
}

@container vh-combined-tracker (max-width: 480px) {
  .vh-combined-tracker-toolbar {
    flex-wrap: wrap;
  }

  .vh-combined-tracker-tabs,
  .vh-combined-tracker-skeleton--tabs {
    flex-basis: 100%;
  }

  .vh-combined-tracker-toolbar .vh-combined-tracker-actions {
    width: 100%;
    margin-left: 0;
  }

  .vh-combined-tracker-toolbar .vh-combined-tracker-race-picker {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .vh-combined-tracker-toolbar .vh-combined-tracker-race-trigger {
    justify-content: space-between;
    width: 100%;
  }
}

@container vh-combined-tracker (max-width: 640px) {
  .vh-combined-tracker-skeleton-title { font-size: 18px; }
  .vh-combined-tracker--skeleton .campaign-tracker-timeline,
  .vh-combined-tracker--skeleton .early-vote-margin-card { height: var(--vh-mobile-details-height); }
  .vh-combined-tracker-map-loading__key { top: 16px; left: 16px; }
  .vh-combined-tracker-map-loading__status { bottom: 16px; left: 16px; }
}

/* The modeled card is the sole detail panel here, so selection needs no frame. */
.vh-combined-tracker .early-vote-margin-card.is-map-selected,
.vh-combined-tracker .early-vote-margin-card.is-map-selectable:hover {
  border-color: var(--votehub-outline);
  box-shadow: none;
}

.vh-combined-tracker .early-vote-margin-card.is-map-selected .early-vote-map-view-button {
  background: transparent;
}

.vh-combined-tracker-view-label {
  border-color: transparent;
  background: var(--vh-color-surface-raised, #fff);
}

.vh-combined-tracker-view-link:hover .vh-combined-tracker-view-label {
  background: var(--vh-dark-menu-item-hover, #f8f7fb);
}

@container vh-combined-tracker (max-width: 480px) {
  .vh-combined-tracker-skeleton--tabs { height: 48px; }
}

@scope (.vh-combined-tracker) {
.campaign-tracker-shell {
  display: flow-root;
}

.campaign-tracker-shell a {
  text-decoration: none;
}

.campaign-tracker-dashboard {
  --ct-line: var(--votehub-outline);
  --ct-gray-light: #d9d9d9;
  --ct-orange-dark: #d35400;
  --ct-purple-dark: #351c71;
  --ct-display: "TT Norms Pro", "Avenir Next", Avenir, Georgia, serif;
  --ct-body: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.campaign-tracker-dashboard {
  width: min(calc(100% - 64px), 1440px);
  margin: 32px auto 48px;
  color: var(--votehub-ink);
}

.campaign-tracker-card {
  position: relative;
  border-radius: 16px;
  background: var(--vh-color-surface-raised, #ffffff);
}

.campaign-tracker-panel-status {
  margin: 6px 0;
  color: var(--votehub-muted);
  font-size: 0.78rem;
}

.campaign-tracker-cardbox {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.campaign-tracker-cardbox-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 8px 24px;
  border: 1px solid var(--ct-line);
  border-radius: 16px 16px 0 0;
  background: var(--vh-color-surface-raised, #ffffff);
}

.campaign-tracker-cardbox-title {
  grid-column: 2;
  min-width: 0;
  color: var(--votehub-muted);
  font-family: var(--ct-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 1.338px;
  line-height: 13.98px;
  text-align: center;
  text-transform: uppercase;
}

.campaign-tracker-cardbox-title[data-align="start"] {
  grid-column: 1 / 3;
  justify-self: start;
  color: var(--votehub-ink);
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}

.campaign-tracker-cardbox-action {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-self: end;
  min-width: 0;
}

.campaign-tracker-cardbox-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.campaign-tracker-cardbox-link:hover .campaign-tracker-cardbox-head,
.campaign-tracker-cardbox-link:hover .campaign-tracker-cardbox-body {
  border-color: var(--votehub-purple);
}

.campaign-tracker-cardbox-link:hover .campaign-tracker-cardbox-title {
  color: var(--vh-color-accent-text-secondary, #7c3aed);
}

.campaign-tracker-cardbox-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--votehub-purple) 35%, transparent);
  outline-offset: 3px;
}

.campaign-tracker-cardbox-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px 24px 24px 24px;
  border: 1px solid var(--ct-line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: var(--vh-color-surface-raised, #ffffff);
}

.campaign-tracker-dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.campaign-tracker-timeline {
  flex: 1 1 0;
  min-height: 550px;
  margin-top: 14px;
}

.campaign-tracker-dash-left {
  display: flex;
  flex-direction: column;

  min-height: 0;
}

.campaign-tracker-dash-right {
  display: flex;
  flex-direction: column;
  gap: 18px;

  min-height: 0;
  min-width: 0;
}

.campaign-tracker-map-hero {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: var(--ct-map-aspect, 1);
  overflow: hidden;
  border: 1px solid var(--ct-line);
  border-radius: 16px;
  background: transparent;
}

.campaign-tracker-map-key {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  border: 1px solid var(--ct-line);
  border-radius: 8px;
  background: var(--vh-color-surface-raised, #ffffff);
}

.campaign-tracker-map-key-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--votehub-ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.campaign-tracker-map-key-item[aria-pressed="false"] {
  opacity: 0.4;
}

.campaign-tracker-map-key-pin {
  width: 12px;
  height: 16px;
  flex: none;
}

.campaign-tracker-map-note-inline {
  position: absolute;
  right: 140px;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  margin: 0;
  color: var(--votehub-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.campaign-tracker-map-logo {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  width: auto;
  height: 16px;
  opacity: 1;
}

.campaign-tracker-map {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.campaign-tracker-state-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.campaign-tracker-state-path {
  fill: var(--votehub-white);
  stroke: var(--votehub-ink);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.campaign-tracker-map-city-dot {
  fill: var(--votehub-muted);
}

.campaign-tracker-map-city-label {
  fill: var(--votehub-muted);
  font-family: var(--ct-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  paint-order: stroke;
  stroke: var(--votehub-white);
  stroke-width: 3;
  stroke-linejoin: round;
}

.campaign-tracker-timeline .campaign-tracker-cardbox-body {
  justify-content: flex-start;
  min-height: 0;
}

.campaign-tracker-tl-count {
  color: var(--votehub-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

.campaign-tracker-tl-scroll {
  flex: 1 1 auto;
  min-height: 0;
  margin: -14px -24px -24px 0;
  padding: 14px 24px 24px 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.campaign-tracker-tl-scroll::-webkit-scrollbar {
  display: none;
}

.campaign-tracker-tl-scroll:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--votehub-purple) 35%, transparent);
  outline-offset: 2px;
}

.campaign-tracker-tl-day+.campaign-tracker-tl-day {
  margin-top: 28px;
}

.campaign-tracker-tl-daylabel {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--votehub-muted);
  font-family: var(--ct-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 1.338px;
  line-height: 13.98px;
  text-transform: uppercase;
}

.campaign-tracker-tl-events {
  --ct-tl-dot: 9px;
  --ct-tl-camera: 16px;
  --ct-tl-mark-top: 3px;

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.campaign-tracker-tl-events::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7.5px;
  width: 1px;
  background: var(--ct-line);
  content: "";
}

.campaign-tracker-tl-event {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-width: 0;
}

.campaign-tracker-tl-marker {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 16px;
  justify-content: center;
  align-items: flex-start;
}

.campaign-tracker-tl-dot {
  width: var(--ct-tl-dot);
  height: var(--ct-tl-dot);
  margin-top: var(--ct-tl-mark-top);
  border-radius: 50%;
}
.campaign-tracker-tl-camera {
  width: var(--ct-tl-camera);
  height: var(--ct-tl-camera);
  margin-top: calc(var(--ct-tl-mark-top) + (var(--ct-tl-dot) - var(--ct-tl-camera)) / 2);
}

.campaign-tracker-tl-camera path {
  stroke-width: 2.25;
}

.campaign-tracker-tl-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.campaign-tracker-tl-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.campaign-tracker-tl-link::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
}

.campaign-tracker-tl-link:hover .campaign-tracker-tl-title {
  color: var(--vh-color-accent-text-secondary, #7c3aed);
  text-decoration: underline;
}

.campaign-tracker-tl-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--votehub-purple) 35%, transparent);
  outline-offset: 3px;
}

.campaign-tracker-tl-candname {
  font-family: var(--ct-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 13.98px;
  text-transform: uppercase;
}

.campaign-tracker-tl-title {
  display: -webkit-box;
  color: var(--votehub-ink);
  font-family: var(--ct-display);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  -webkit-box-orient: vertical;
}

.campaign-tracker-tl-place {
  color: var(--votehub-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.campaign-tracker-tl-none {
  margin: 0;
  padding-left: 36px;
  color: var(--votehub-muted);
  font-size: 0.8125rem;
  font-style: italic;
}

@media (max-width: 1000px) {
  .campaign-tracker-dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {

  .campaign-tracker-map-note-inline {
    font-size: 0.65rem;
  }
  .campaign-tracker-map-hero {
    display: grid;
    grid-template-areas:
      "key  key"
      "map  map"
      "note logo";
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    aspect-ratio: auto;
    padding: 12px;
  }

  .campaign-tracker-map-hero>.campaign-tracker-map-key,
  .campaign-tracker-map-hero>.campaign-tracker-map-note-inline,
  .campaign-tracker-map-hero>.campaign-tracker-map-logo {
    position: static;
  }

  .campaign-tracker-map-key {
    grid-area: key;
    justify-self: start;
    gap: 12px;
    padding: 6px 12px;
  }

  .campaign-tracker-map-key-item {
    font-size: 0.875rem;
  }

  .campaign-tracker-map {
    grid-area: map;
    height: auto;
    aspect-ratio: var(--ct-map-aspect, 1);
  }

  .campaign-tracker-map-note-inline {
    grid-area: note;
  }

  .campaign-tracker-map-logo {
    grid-area: logo;
    justify-self: end;
    height: 12px;
  }

  .campaign-tracker-cardbox-head,
  .campaign-tracker-cardbox-body {
    padding-inline: 16px;
  }

  .campaign-tracker-dashboard {
    width: calc(100% - 32px);
    margin-block: 20px 32px;
  }
}

/* Dark mode: the tinted card bodies, map plate and light greys were fixed
   light values. Party colours and pins are unchanged. */
[data-theme="dark"] :scope .campaign-tracker-dashboard {
  --ct-gray-light: #4a4a58;
  --ct-orange-dark: #f0883e;
  --ct-purple-dark: #c4b5fd;
}

[data-theme="dark"] :scope .campaign-tracker-state-path {
  fill: #2c2c38;
  stroke: #c4c4d0;
}

[data-theme="dark"] :scope .campaign-tracker-map-city-label {
  stroke: #2c2c38;
}

.campaign-tracker-skel {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--vh-color-skeleton, #e8ebf2);
  border-radius: 8px;
}

.campaign-tracker-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    100deg,
    transparent 32%,
    var(--vh-dark-skeleton-shine, rgba(255, 255, 255, 0.85)) 50%,
    transparent 68%
  );
  animation: campaign-tracker-skel-shimmer 1.6s ease-in-out infinite;
}

@keyframes campaign-tracker-skel-shimmer {
  to {
    transform: translateX(100%);
  }
}

.campaign-tracker-skel-pill {
  border-radius: 999px;
}

.campaign-tracker-skel-circle {
  border-radius: 50%;
}

.campaign-tracker-skel-soft {
  background: var(--vh-dark-skeleton, #edf0f6);
}

.campaign-tracker-skel-inverse {
  background: var(--vh-dark-surface-raised, rgba(255, 255, 255, 0.3));
}

.campaign-tracker-skel-inverse::after {
  background: linear-gradient(
    100deg,
    transparent 32%,
    var(--vh-dark-skeleton-shine, rgba(255, 255, 255, 0.55)) 50%,
    transparent 68%
  );
}

@media (prefers-reduced-motion: reduce) {
  .campaign-tracker-skel::after {
    content: none;
  }
}

.campaign-tracker-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.campaign-tracker-map {
  position: relative;
}

.campaign-tracker-map-skel {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.campaign-tracker-map-skel-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.campaign-tracker-map-skel .campaign-tracker-state-path {
  stroke: #ccd2de;
}

.campaign-tracker-panel-status-skel {
  width: min(100%, 240px);
  height: 14px;
  margin: 6px 0;
}

.early-vote-skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--vh-color-skeleton, #e8ebf2);
  border-radius: 8px;
}

.early-vote-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
      transparent 32%,
      var(--vh-dark-skeleton-shine, rgb(255 255 255 / 85%)) 50%,
      transparent 68%);
  transform: translateX(-100%);
  animation: early-vote-skeleton-shimmer 1.6s ease-in-out infinite;
}

.early-vote-skeleton.is-pill {
  border-radius: 999px;
}

.early-vote-skeleton.is-circle {
  border-radius: 50%;
}

@keyframes early-vote-skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

.early-vote-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.early-vote-tracker-shell a,
.early-vote-tracker-shell a:hover,
.early-vote-tracker-shell a:focus {
  text-decoration: none;
}

.early-vote-tracker-shell {
  display: flow-root;
  background: var(--vh-color-surface-raised, #ffffff);
}

.early-vote-margin-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  container-type: inline-size;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--votehub-outline);
  border-radius: 16px;
  background: var(--vh-color-surface-raised, #ffffff);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.early-vote-margin-card.is-map-selectable:hover {
  border-color: color-mix(in srgb, var(--votehub-purple) 48%, var(--votehub-outline));
}

.early-vote-margin-card.is-map-selected {
  border-color: var(--votehub-purple);
  box-shadow: 0 0 0 1px var(--votehub-purple);
}

.early-vote-margin-card-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--votehub-outline);
  background: var(--vh-color-surface-raised, #ffffff);
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
}

.early-vote-margin-card-title {
  margin: 0;
  color: var(--vh-color-accent-text-secondary, #7c3aed);
  font-family: var(--ct-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 0.875rem;
  letter-spacing: 1.338px;
  text-transform: uppercase;
}

.early-vote-map-view-button {
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: default;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.early-vote-map-view-button:hover {
  background: transparent;
}

.early-vote-map-view-button:focus-visible {
  outline: 2px solid var(--votehub-purple);
  outline-offset: 2px;
}

.early-vote-margin-card.is-map-selected .early-vote-map-view-button {
  background: color-mix(in srgb, var(--votehub-purple) 13%, transparent);
}

.early-vote-margin-header-actions {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 2px;
  transform: translateY(-50%);
}

.early-vote-margin-methodology-info {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--vh-color-accent-text-secondary, #7c3aed);
  cursor: pointer;
}

.early-vote-margin-methodology-info svg {
  display: block;
  width: 16px;
  height: 16px;
}

.early-vote-margin-methodology-info:hover {
  background: color-mix(in srgb, var(--votehub-purple) 10%, transparent);
}

.early-vote-margin-methodology-info:focus-visible {
  outline: 2px solid var(--votehub-purple);
  outline-offset: 1px;
}

.early-vote-margin-methodology {
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--votehub-purple) 30%, transparent);
  border-radius: 7px;
  background: var(--vh-color-surface-raised, #ffffff);
  color: var(--vh-color-accent-text-secondary, #7c3aed);
  cursor: pointer;
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 150ms ease;
}

.early-vote-margin-methodology:hover {
  border-color: var(--votehub-purple);
}

.early-vote-margin-methodology,
.early-vote-tracker-shell .early-vote-margin-methodology {
  text-decoration: none;
}

.early-vote-margin-methodology:focus-visible {
  outline: 2px solid var(--votehub-purple);
  outline-offset: 1px;
}

.early-vote-margin-header-actions {
  top: 50%;
  right: 8px;
  left: auto;
  width: auto;
  transform: translateY(-50%);
}

.early-vote-margin-methodology {
  display: none;
}

.early-vote-note {
  position: relative;
  z-index: 6;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.early-vote-note-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--votehub-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.early-vote-note-icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--vh-color-accent-text-secondary, #7c3aed);
}

.early-vote-note-button:hover,
.early-vote-note-button[aria-expanded="true"] {
  color: var(--vh-color-accent-text-secondary, #7c3aed);
}

.early-vote-note-popover {
  position: absolute;
  z-index: 5;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, 74vw);
  padding: 12px 14px;
  border: 1px solid var(--votehub-outline);
  border-radius: 10px;
  background: var(--vh-color-surface-raised, #ffffff);
  box-shadow: 0 12px 28px rgb(16 24 40 / 0.12);
  color: var(--votehub-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
}

.early-vote-note-popover[hidden] {
  display: none;
}

.early-vote-margin-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px 24px 6px 24px;
  background: var(--vh-color-surface-raised, #ffffff);
}

.early-vote-margin-card-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--votehub-outline);
  background: var(--vh-color-surface-raised, #ffffff);
}

.early-vote-margin-card-footer .early-vote-note-popover {
  top: auto;
  bottom: calc(100% + 10px);
}

.early-vote-margin-card-footer-label {
  color: var(--votehub-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.early-vote-margin-overview {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "margin margin" "left right";
  gap: 12px 20px;
}

.early-vote-margin-person.is-left {
  grid-area: left;
}

.early-vote-margin-person.is-right {
  grid-area: right;
}

.early-vote-margin-readout {
  grid-area: margin;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.early-vote-margin-readout-label {
  color: var(--votehub-muted);
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1029em;
  text-transform: uppercase;
}

.early-vote-margin-readout-value {
  color: var(--evt-margin-color);
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 2.375rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.early-vote-margin-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.early-vote-margin-person.is-right {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.early-vote-margin-person-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.early-vote-margin-person.is-right .early-vote-margin-person-text {
  align-items: flex-end;
  text-align: right;
}

.early-vote-margin-fullname {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  color: var(--votehub-ink);
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}


.early-vote-margin-share {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--evt-candidate-color);
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.early-vote-margin-share-unit {
  font-size: 0.348em;
  font-weight: 600;
  letter-spacing: 0;
}

.early-vote-margin-subline {
  overflow: hidden;
  color: var(--votehub-muted);
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.early-vote-margin-votes-short {
  display: none;
}

.early-vote-margin-donut {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: var(--evt-donut, 64px);
  height: var(--evt-donut, 64px);
}

.early-vote-margin-donut>* {
  grid-area: 1 / 1;
}

.early-vote-margin-ring {
  width: 100%;
  height: 100%;
}

.early-vote-margin-ring-track,
.early-vote-margin-ring-arc {
  fill: none;
  stroke-width: 11;
}

.early-vote-margin-ring-track {
  stroke: var(--votehub-outline);
}

.early-vote-margin-ring-arc {
  stroke-linecap: butt;
  transform: rotate(-90deg);
  transform-origin: center;
}

.early-vote-margin-ring-arc.is-mirrored {
  transform: scaleX(-1) rotate(-90deg);
}

.early-vote-margin-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 57%;
  height: 57%;
  border-radius: 50%;
  object-fit: cover;
}

.early-vote-margin-avatar.is-loading {
  background: var(--votehub-outline);
  animation: early-vote-margin-pulse 1.6s ease-in-out infinite;
}

@keyframes early-vote-margin-pulse {
  50% {
    opacity: 0.5;
  }
}

.early-vote-margin-track {
  position: relative;
  height: 20px;
  margin-top: 12px;
  margin-bottom: 26px;
}

.early-vote-margin-axis {
  position: absolute;
  top: 10px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgb(138 138 138 / 0.45);
}

.early-vote-margin-scale-point {
  position: absolute;
  z-index: 3;
  top: 0;
  height: 20px;
  color: var(--votehub-muted);
}

.early-vote-margin-scale-tick {
  position: absolute;
  top: 5px;
  left: 0;
  width: 1px;
  height: 10px;
  background: currentColor;
  transform: translateX(-0.5px);
}

.early-vote-margin-scale-point.is-even .early-vote-margin-scale-tick {
  top: -5px;
  width: 2px;
  height: 30px;
  transform: translateX(-1px);
}

.early-vote-margin-scale-label {
  position: absolute;
  top: 27px;
  left: 0;
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.early-vote-margin-scale-point.is-start .early-vote-margin-scale-label {
  transform: none;
}

.early-vote-margin-scale-point.is-end .early-vote-margin-scale-label {
  transform: translateX(-100%);
}

.early-vote-margin-range {
  position: absolute;
  top: 0;
  height: 20px;
  background: color-mix(in srgb, var(--evt-segment-color) 12%, transparent);
}

.early-vote-margin-cap {
  position: absolute;
  top: 0;
  width: 2px;
  height: 20px;
  background: var(--evt-segment-color);
  transform: translateX(-1px);
}

.early-vote-margin-marker {
  position: absolute;
  z-index: 4;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--evt-margin-color);
  box-shadow: 0 0 0 2px var(--votehub-white);
  transform: translateX(-6px);
}

.early-vote-margin-card {
  width: 100%;
  overflow: hidden;
  margin: 0;
}

.early-vote-margin-card-header {
  border-radius: 15px 15px 0 0;
}

.early-vote-margin-card-body {
  justify-content: flex-start;
  padding: 0;
  border-radius: 0;
}

.early-vote-margin-card-footer {
  padding: 10px 20px;
  border-radius: 0 0 15px 15px;
  background: var(--vh-dark-surface, #fafafa);
}

/* Use the source tracker’s mobile hierarchy at every panel width. */
.early-vote-margin-overview {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
}

.early-vote-margin-person,
.early-vote-margin-person.is-right {
  display: grid;
  flex: 1 0 auto;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 12px;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-bottom: 1px solid var(--votehub-outline);
  border-radius: 0;
  background: transparent;
}

.early-vote-margin-person-text {
  display: contents;
}

.early-vote-margin-share {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  gap: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.0658em;
  font-variant-numeric: tabular-nums;
}

.early-vote-margin-fullname {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.3;
  white-space: nowrap;
}

.early-vote-margin-subline {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  overflow: visible;
  font-size: 0.6875rem;
  line-height: 1.5;
  text-overflow: clip;
  white-space: nowrap;
}

.early-vote-margin-person.is-right .early-vote-margin-person-text {
  align-items: initial;
  text-align: left;
}

.early-vote-margin-donut {
  --evt-donut: 44px;
  grid-column: 1;
  grid-row: 1 / 3;
}

.early-vote-margin-ring {
  display: none;
}

.early-vote-margin-avatar {
  width: 44px;
  height: 44px;
}

.early-vote-margin-share-unit {
  font-size: 1em;
  font-weight: inherit;
}

.early-vote-margin-votes-long {
  display: none;
}

.early-vote-margin-votes-short {
  display: inline;
}

.early-vote-margin-readout {
  order: -1;
  flex: 1 0 auto;
  justify-content: center;
  width: 100%;
  gap: 4px;
  margin: 0;
  padding: 16px 20px 14px;
  border: 0;
  border-bottom: 1px solid var(--votehub-outline);
  background: var(--vh-dark-surface, #fafafa);
}

.early-vote-margin-readout-label {
  font-size: 0.75rem;
  line-height: normal;
  letter-spacing: 0;
}

.early-vote-margin-readout-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.0576em;
}

.early-vote-margin-track {
  height: 48px;
  margin: 16px 24px 10px;
}

.early-vote-margin-axis {
  top: 11px;
}

.early-vote-margin-scale-point.is-even .early-vote-margin-scale-tick {
  top: 0;
  height: 22px;
}

.early-vote-margin-scale-label {
  top: 30px;
  font-size: 0.6875rem;
}

.early-vote-margin-scale-point.is-even .early-vote-margin-scale-label {
  font-size: 0.875rem;
}

.early-vote-margin-card-header {
  min-height: 38px;
  padding: 9px 40px;
}

@container (max-width: 360px) {

  .early-vote-margin-person,
  .early-vote-margin-person.is-right {
    padding-inline: 14px;
    column-gap: 10px;
  }

  .early-vote-margin-fullname {
    gap: 5px;
  }

  .early-vote-margin-share {
    font-size: 1.5rem;
  }

  .early-vote-margin-card-title {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }
}

.early-vote-config-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.early-vote-config-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {

  .early-vote-margin-avatar.is-loading {
    animation: none;
  }
}

.early-vote-geography {
  width: min(calc(100% - 40px), 1450px);
  margin: 0 auto 72px;
}

.early-vote-map {
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 1px solid var(--votehub-outline);
  border-radius: 16px;
  background: transparent;
}

.early-vote-map-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.early-vote-map-city-dot {
  fill: var(--votehub-muted);
}

.early-vote-map-city-label {
  fill: var(--votehub-muted);
  font-family: var(--ct-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  paint-order: stroke;
  stroke: var(--votehub-white);
  stroke-width: 3;
  stroke-linejoin: round;
}

.early-vote-map-tooltip {
  --evt-tooltip-x: 12px;
  --evt-tooltip-y: 12px;
  position: absolute;
  z-index: 4;
  display: none;
  width: 13rem;
  max-width: calc(100% - 1.5rem);
  pointer-events: none;
  transform: translate(var(--evt-tooltip-x), var(--evt-tooltip-y));
}

.early-vote-map-tooltip.is-left {
  --evt-tooltip-x: calc(-100% - 12px);
}

.early-vote-map-tooltip.is-above {
  --evt-tooltip-y: calc(-100% - 12px);
}

.early-vote-map-tooltip-panel {
  overflow: hidden;
  border: 1px solid var(--votehub-outline);
  border-radius: 12px;
  background: var(--vh-color-surface-raised, #ffffff);
  box-shadow: 0 10px 28px rgb(19 29 43 / 16%);
}

.early-vote-map-tooltip-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
}

.early-vote-map-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  background: color-mix(in srgb, var(--evt-tooltip-color) 13%, transparent);
  color: color-mix(in srgb, var(--evt-tooltip-color) 70%, var(--votehub-ink));
}

.early-vote-map-tooltip-icon svg {
  width: 21px;
  height: 21px;
}

.early-vote-map-tooltip-heading {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.early-vote-map-tooltip-eyebrow {
  margin: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--evt-tooltip-color, var(--vh-color-accent-text-secondary, #7c3aed)) 70%, var(--votehub-ink));
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.early-vote-map-tooltip-title {
  margin: 0;
  overflow: hidden;
  color: var(--votehub-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.early-vote-map-tooltip-context {
  margin: 0;
  overflow: hidden;
  color: var(--votehub-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.early-vote-map-tooltip-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
  padding: 0.58rem 0.7rem 0.65rem;
  border-top: 1px solid var(--votehub-outline);
  background: color-mix(in srgb, var(--evt-tooltip-color) 5%, transparent);
}

.early-vote-map-tooltip-detail>span {
  display: grid;
  min-width: 0;
  color: var(--votehub-copy);
  font-size: 12px;
  font-weight: 600;
}

.early-vote-map-tooltip-detail small {
  overflow: hidden;
  color: var(--votehub-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.early-vote-map-tooltip-detail strong {
  color: color-mix(in srgb, var(--evt-tooltip-color) 70%, var(--votehub-ink));
  font-size: 19px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.early-vote-map-tooltip-race-header {
  display: grid;
  gap: 0.12rem;
  padding: 0.36rem 0.5rem 0.3rem;
}

.early-vote-map-tooltip-race-header .early-vote-map-tooltip-title {
  font-size: 11px;
  font-weight: 700;
}

.early-vote-map-tooltip-race-header .early-vote-map-tooltip-context {
  font-size: 9px;
}

.early-vote-map-tooltip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.early-vote-map-tooltip-table th,
.early-vote-map-tooltip-table td {
  padding: 0.28rem 0.4rem;
  text-align: right;
  white-space: nowrap;
}

.early-vote-map-tooltip-table thead th {
  border-bottom: 2px solid var(--votehub-outline);
  color: var(--votehub-muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.early-vote-map-tooltip-table th:first-child {
  width: 72%;
  max-width: 9.25rem;
  overflow: hidden;
  color: var(--votehub-copy);
  text-align: left;
  text-overflow: ellipsis;
}

.early-vote-map-tooltip-table tbody th,
.early-vote-map-tooltip-table tbody td {
  border-bottom: 1px solid var(--votehub-outline);
  font-size: 11px;
}

.early-vote-map-tooltip-table tbody tr:last-child th,
.early-vote-map-tooltip-table tbody tr:last-child td {
  border-bottom: 0;
}

.early-vote-map-tooltip-table tbody td:last-child {
  font-weight: 700;
}

.early-vote-map-tooltip-table.has-ranges {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
}

.early-vote-map-tooltip-table.has-ranges :is(thead, tbody, tr) {
  display: contents;
}

.early-vote-map-tooltip-table.has-ranges th:first-child {
  width: auto;
  max-width: none;
}

/* Shared columns fit complete bounds and center their labels and values. */
.early-vote-map-tooltip-table.has-ranges :is(th, td):not(:first-child) {
  text-align: center;
}

.early-vote-map-tooltip-table.has-ranges tbody td {
  font-weight: 700;
}

.early-vote-map-tooltip-table.has-ranges small {
  font-size: 0.75em;
}

.early-vote-map-tooltip-candidate {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  min-width: 0;
}

.early-vote-map-tooltip-candidate-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.early-vote-map-tooltip-margin {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.25rem 0.5rem 0.5rem;
  border-top: 1px solid var(--votehub-outline);
  color: var(--votehub-muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.early-vote-map-tooltip-margin strong {
  color: var(--votehub-ink);
}

@media (min-width: 1001px) and (hover: hover) and (pointer: fine) {
  .early-vote-map-tooltip {
    display: block;
  }
}

.early-vote-map-symbols {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
}

.early-vote-map-legend {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  pointer-events: none;
}

.early-vote-map-legend-scale {
  display: flex;
  align-items: flex-start;
}

.early-vote-map-legend-values {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.early-vote-map-legend-values span {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 11px;
  color: var(--votehub-ink);
  white-space: nowrap;
}

.early-vote-map-legend-line {
  flex: 1 1 auto;
  min-width: 8px;
  height: 0.7px;
  background: var(--votehub-ink);
}

.early-vote-map-legend-label {
  margin-top: 7px;
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--votehub-ink);
  white-space: nowrap;
}

@media (max-width: 640px) {

  .early-vote-map-legend-values span {
    font-size: 9px;
  }

  .early-vote-map-legend-label {
    font-size: 10px;
  }
}

.early-vote-map-symbol-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(124 58 237 / 28%);
  border-radius: 8px;
  background: var(--vh-dark-surface-raised, rgb(255 255 255 / 94%));
  color: var(--vh-color-accent-text-secondary, #7c3aed);
  cursor: pointer;
}

.early-vote-map-symbol-toggle:hover {
  background: var(--vh-dark-menu-item-hover, #f5f0ff);
}

.early-vote-map-symbol-toggle:focus-visible {
  outline: 2px solid var(--votehub-purple);
  outline-offset: 2px;
}

.early-vote-map-symbol-toggle:disabled {
  opacity: 0.45;
  cursor: default;
}

.early-vote-map-symbol-icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.early-vote-map-symbol-icon::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  content: "";
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #e6c866;
  border: 1px solid rgb(160 122 26 / 42%);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.early-vote-map-symbol-icon[data-mode="none"]::before {
  border: 2px dotted #6b7280;
  background: rgb(107 114 128 / 7%);
  box-shadow: none;
}

.early-vote-map-symbol-icon[data-mode="remaining"]::before {
  background: #5e9e94;
  border-color: rgb(44 105 97 / 48%);
}

.early-vote-map-watermark {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  left: 16px;
  width: 115.2px;
  opacity: 1;
}

.early-vote-map-watermark:hover {
  opacity: 1;
}

.early-vote-map-watermark:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--votehub-purple);
  outline-offset: 3px;
}

.early-vote-map-votehub-logo {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: 50%;
  display: block;
  width: auto;
  height: 16px;
  opacity: 1;
  pointer-events: none;
  transform: translateX(-50%);
}

.early-vote-geography-contents {
  --evt-report-column: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--evt-report-column);
  align-items: stretch;
  gap: 24px;
  height: clamp(620px, 72vh, 840px);
  margin-top: 0;
  transition: grid-template-columns 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1000px) {
  .early-vote-map {
    height: auto;
  }
}

@media (max-width: 760px) {
  .early-vote-map-votehub-logo {
    height: 12px;
  }
}

@media (max-width: 640px) {
  .early-vote-geography {
    width: min(calc(100% - 24px), 1450px);
    margin-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }

  .early-vote-map {
    height: auto;
  }
}

.early-vote-l2-logo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2596 / 749;
}

.early-vote-l2-logo img {
  position: absolute;
  top: -53.405%;
  left: -5.431%;
  width: 115.562%;
  height: 206.809%;
  max-width: none;
}

.early-vote-l2-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--votehub-muted);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.1338em;
  text-transform: uppercase;
}

.early-vote-l2-credit:focus-visible {
  outline: 2px solid var(--votehub-purple);
  outline-offset: 3px;
}

.early-vote-methodology-more,
.early-vote-tracker-shell .early-vote-methodology-more {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin-top: 16px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--votehub-purple) 30%, transparent);
  border-radius: 7px;
  background: var(--vh-color-surface-raised, #ffffff);
  color: var(--vh-color-accent-text-secondary, #7c3aed);
  cursor: pointer;
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 150ms ease;
}

.early-vote-methodology-more:hover,
.early-vote-tracker-shell .early-vote-methodology-more:hover {
  border-color: var(--votehub-purple);
}

.early-vote-methodology-more:focus-visible {
  outline: 2px solid var(--votehub-purple);
  outline-offset: 1px;
}

.early-vote-dialog-backdrop {
  --votehub-purple: #7c3aed;
  --votehub-ink: var(--vh-color-text, #1a1a1a);
  --votehub-muted: var(--vh-color-text-muted, #737373);
  --votehub-copy: var(--vh-color-text-secondary, #4a4a4a);
  --votehub-outline: var(--vh-color-border-subtle, #e5e5e5);
  --votehub-white: #fff;
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(16 24 40 / 42%);
  box-sizing: border-box;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
}

.early-vote-dialog-backdrop * {
  box-sizing: border-box;
}

.early-vote-dialog {
  display: flex;
  width: min(520px, 100%);
  max-height: min(80vh, 640px);
  flex-direction: column;
  border: 1px solid var(--votehub-outline);
  border-radius: 12px;
  background: var(--vh-color-surface-raised, #ffffff);
  box-shadow: 0 24px 60px rgb(16 24 40 / 24%);
}

.early-vote-dialog:focus {
  outline: none;
}

.early-vote-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 0;
}

.early-vote-dialog-title {
  margin: 0;
  color: var(--votehub-muted);
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: normal;
  text-transform: uppercase;
}

.early-vote-dialog-close {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--votehub-muted);
  cursor: pointer;
}

.early-vote-dialog-close svg {
  display: block;
  width: 16px;
  height: 16px;
}

.early-vote-dialog-close:hover {
  background: color-mix(in srgb, var(--votehub-purple) 10%, transparent);
  color: var(--vh-color-accent-text-secondary, #7c3aed);
}

.early-vote-dialog-close:focus-visible {
  outline: 2px solid var(--votehub-purple);
  outline-offset: 1px;
}

.early-vote-dialog-body {
  overflow-y: auto;
  padding: 10px 24px 24px;
  color: var(--votehub-copy);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.early-vote-dialog-body p {
  margin: 0 0 12px;
}

.early-vote-dialog-body p:last-child {
  margin-bottom: 0;
}

.early-vote-l2-mark {
  display: block;
  width: 28px;
  height: auto;
}

.early-vote-coverage {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  line-height: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.early-vote-coverage-unavailable {
  color: var(--votehub-muted);
}

.early-vote-coverage-info {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--vh-color-accent-text-secondary, #7c3aed);
  cursor: pointer;
}

.early-vote-coverage-info:hover {
  background: color-mix(in srgb, var(--votehub-purple) 10%, transparent);
}

.early-vote-coverage-info:focus-visible {
  outline: 2px solid var(--votehub-purple);
  outline-offset: 1px;
}

.early-vote-coverage-info svg {
  display: block;
  width: 16px;
  height: 16px;
  transform: translateY(-2px);
}

.early-vote-hero {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: min(calc(100% - 40px), 1450px);
  margin: 48px auto 24px;
}

.early-vote-forecast-card {
  border-radius: 16px;
  transition: box-shadow 150ms ease;
}

.early-vote-forecast-card .early-vote-cardbox-head,
.early-vote-forecast-card .early-vote-cardbox-body {
  transition: border-color 150ms ease;
}

.early-vote-forecast-card.is-map-selectable:hover .early-vote-cardbox-head,
.early-vote-forecast-card.is-map-selectable:hover .early-vote-cardbox-body {
  border-color: color-mix(in srgb, var(--votehub-purple) 48%, var(--votehub-outline));
}

.early-vote-forecast-card.is-map-selected {
  box-shadow: 0 0 0 1px var(--votehub-purple);
}

.early-vote-forecast-card.is-map-selected .early-vote-cardbox-head,
.early-vote-forecast-card.is-map-selected .early-vote-cardbox-body {
  border-color: var(--votehub-purple);
}

.early-vote-forecast-card.is-map-selected .early-vote-map-view-button {
  background: color-mix(in srgb, var(--votehub-purple) 13%, transparent);
}

.early-vote-forecast-card {
  flex: 0 0 360px;
}

.early-vote-cardbox {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.early-vote-cardbox-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 8px 24px;
  border: 1px solid var(--votehub-outline);
  border-radius: 16px 16px 0 0;
  background: var(--vh-color-surface-raised, #ffffff);
}

.early-vote-cardbox-title {
  grid-column: 2;
  min-width: 0;
  color: var(--votehub-muted);
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1.338px;
  line-height: 0.875rem;
  text-align: center;
  text-transform: uppercase;
}

.early-vote-forecast-card.is-map-selected .early-vote-cardbox-title {
  color: var(--vh-color-accent-text-secondary, #7c3aed);
}

.early-vote-cardbox-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px 24px 24px;
  border: 1px solid var(--votehub-outline);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: var(--vh-color-surface-raised, #ffffff);
}

.early-vote-forecast {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.early-vote-forecast-tier {
  display: block;
  width: auto;
  max-width: 100%;
  height: 44px;
}

.early-vote-forecast-sub {
  margin: 0;
  color: var(--votehub-ink);
  font-size: 1.125rem;
  line-height: 1.45;
}

.early-vote-forecast-sub span {
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-weight: 600;
}

.early-vote-forecast-cap {
  margin: 8px 0 0;
  color: var(--votehub-muted);
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 1.338px;
  line-height: 13.98px;
  text-transform: uppercase;
}

.early-vote-forecast-empty {
  margin: 0;
  color: var(--votehub-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
}

.early-vote-margin-skeleton {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
}

.early-vote-margin-skeleton-avatar {
  width: 44px;
  height: 44px;
}

.early-vote-margin-skeleton-track {
  flex: 0 0 48px;
  width: auto;
  height: 48px;
}

.early-vote-margin-skeleton-tick {
  position: absolute;
  top: 6px;
  width: 1px;
  height: 10px;
  background: #a5a5ab;
}

.early-vote-margin-skeleton-tick:nth-child(4) {
  top: 0;
  height: 22px;
}

.early-vote-forecast-card[aria-busy="true"] .early-vote-forecast-tier {
  width: 172px;
}

.early-vote-map-skeleton {
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.early-vote-map-unavailable {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  margin: 0;
  padding: 24px;
  place-items: center;
  background: transparent;
  color: var(--votehub-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 1100px) {
  .early-vote-hero {
    flex-direction: column;
  }

  .early-vote-forecast-card {
    flex-basis: auto;
    order: -1;
  }
}

@media (max-width: 640px) {
  .early-vote-hero {
    gap: 8px;
    width: min(calc(100% - 32px), 1450px);
    margin: 32px auto 20px;
  }

  .early-vote-forecast-card {
    order: -1;
  }

  .early-vote-forecast-card .early-vote-cardbox-head {
    min-height: 30px;
    padding: 6px 12px;
  }

  .early-vote-forecast-card .early-vote-cardbox-title {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    line-height: 1;
  }

  .early-vote-forecast-card .early-vote-cardbox-body {
    min-height: 74px;
    padding: 14px 12px 15px;
  }

  .early-vote-forecast-card .early-vote-forecast {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .early-vote-forecast-card .early-vote-forecast-tier {
    height: 28px;
  }

  .early-vote-forecast-card .early-vote-forecast-sub {
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .early-vote-forecast-card .early-vote-forecast-cap {
    margin: 3px 0 0;
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    line-height: 1.15;
  }

  .early-vote-forecast-card[aria-busy="true"] .early-vote-forecast>.early-vote-skeleton {
    width: 96px !important;
    height: 28px !important;
  }

  .early-vote-forecast-empty {
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .early-vote-cardbox-head,
  .early-vote-cardbox-body {
    padding-inline: 16px;
  }

  .early-vote-margin-skeleton-avatar {
    width: 44px;
    height: 44px;
  }

  .early-vote-margin-skeleton-track {
    width: auto;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .early-vote-skeleton::after {
    content: none;
  }
}

/* The L2 wordmark is black on transparent. Invert it for dark surfaces and
   rotate the hue back so the red mark stays red. */
[data-theme="dark"] :scope .early-vote-l2-logo img {
  filter: invert(1) hue-rotate(180deg);
}

/* County and state borders read as black on dark surfaces; light keeps white counties. */
[data-theme="dark"] :scope .early-vote-map-feature,
[data-theme="dark"] :scope .vh-combined-tracker-state-outline {
  stroke: #000;
}

.early-vote-footer-coverage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
}

.early-vote-margin-card-footer .early-vote-coverage-info {
  position: static;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  line-height: 1;
}

.early-vote-margin-card-footer .early-vote-coverage-info svg {
  display: block;
}

.early-vote-cast-progress {
  display: grid;
  grid-template-columns: auto auto minmax(40px, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--votehub-muted);
}

.early-vote-cast-label {
  font-size: 0.75rem;
  white-space: nowrap;
}

.early-vote-cast-value {
  color: var(--evt-accent-text);
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.early-vote-cast-track {
  overflow: hidden;
  height: 8px;
  border-radius: 99px;
  background: var(--votehub-outline);
}

.early-vote-cast-track > span {
  display: block;
  height: 100%;
  border-radius: 99px 0 0 99px;
  background: var(--evt-accent-text);
}

/* Range readings use the compact panel's stacked candidate rows. */
.has-share-ranges .early-vote-margin-share.is-range { font-size: clamp(1rem, 2cqw, 1.5rem); gap: 4px; letter-spacing: -.03em; white-space: nowrap; font-weight: 500; }
.has-share-ranges .early-vote-margin-share-unit { font-size: .65em; }
.early-vote-margin-share-separator { font-weight: 300; }
.early-vote-margin-card-footer.has-cast-progress { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.has-cast-progress .early-vote-footer-coverage { min-width: 0; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--votehub-outline); }
.early-vote-margin-card { --evt-accent-text: var(--votehub-purple); }

.has-share-ranges .early-vote-margin-share-label { font-weight: 500; }

}
/* The two active dashboards share the combined tracker's layout. */
.vh-combined-tracker {
  --vh-desktop-tracker-height: 530px;
  --vh-mobile-map-height: clamp(300px, 92cqw, 420px);
  --vh-mobile-details-height: 460px;
}
.vh-combined-tracker .campaign-tracker-card { background: transparent; }
.vh-combined-tracker .campaign-tracker-dash-grid { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 24px; margin-bottom: 0; }
.vh-combined-tracker .campaign-tracker-map-hero,
.vh-combined-tracker .campaign-tracker-timeline { height: var(--vh-desktop-tracker-height); }
.vh-combined-tracker .campaign-tracker-map-hero { aspect-ratio: auto; background: var(--vh-color-surface-raised, #ffffff); }
.vh-combined-tracker .campaign-tracker-timeline { min-height: 0; margin-top: 0; }
.vh-combined-tracker .early-vote-tracker-dashboard { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); align-items: stretch; column-gap: 24px; }
.vh-combined-tracker .early-vote-geography { grid-column: 1; grid-row: 1; width: 100%; margin: 0; }
.vh-combined-tracker .early-vote-geography-contents { display: block; height: var(--vh-desktop-tracker-height); }
.vh-combined-tracker .early-vote-geography-contents > .early-vote-map { height: 100%; background: var(--vh-color-surface-raised, #ffffff); }
.vh-combined-tracker .early-vote-map-svg { display: block; width: 100%; height: 100%; }
.vh-combined-tracker .early-vote-map-votehub-logo { top: auto; bottom: 14px; }
.vh-combined-tracker .early-vote-hero { display: flex; flex-direction: column; width: 100%; height: var(--vh-desktop-tracker-height); margin: 0; }
.vh-combined-tracker .early-vote-margin-card { height: 100%; min-height: 0; }
.vh-combined-tracker .early-vote-dialog-backdrop { z-index: 1000; }
@container vh-combined-tracker (max-width: 760px) {
  .vh-combined-tracker .campaign-tracker-dash-grid,
  .vh-combined-tracker .early-vote-tracker-dashboard { display: flex; flex-direction: column; gap: 20px; }
  .vh-combined-tracker .campaign-tracker-timeline { flex: none; }
  .vh-combined-tracker .early-vote-geography { order: -1; margin-bottom: 0; }
  .vh-combined-tracker .early-vote-hero { width: 100%; }
}

@container vh-combined-tracker (max-width: 640px) {
  .vh-combined-tracker .campaign-tracker-dash-grid { gap: 16px; margin-bottom: 0; }
  .vh-combined-tracker .campaign-tracker-map-hero { grid-template-rows: auto minmax(0, 1fr) auto; height: var(--vh-mobile-map-height); }
  .vh-combined-tracker .campaign-tracker-map {
    position: absolute;
    grid-area: unset;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
  .vh-combined-tracker .campaign-tracker-timeline { height: var(--vh-mobile-details-height); min-height: 0; }
  .vh-combined-tracker .campaign-tracker-timeline .campaign-tracker-cardbox-head { display: flex; justify-content: space-between; gap: 8px; }
  .vh-combined-tracker .campaign-tracker-timeline .campaign-tracker-cardbox-title { font-size: 11px; letter-spacing: .07em; text-align: left; }
  .vh-combined-tracker .campaign-tracker-timeline .campaign-tracker-tl-count { font-size: 11px; }

  .vh-combined-tracker .early-vote-hero { height: var(--vh-mobile-details-height); }
  .vh-combined-tracker .early-vote-tracker-dashboard { gap: 16px; }
  .vh-combined-tracker .early-vote-geography-contents { height: var(--vh-mobile-map-height); }
  .vh-combined-tracker .early-vote-map-votehub-logo { top: 14px; bottom: auto; }
}

/* A single map card owns both tabs; the dashboards supply only data layers. */
.vh-combined-tracker-dashboard { position: relative; display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 24px; }
.vh-combined-tracker-tooltip-layer { position: absolute; z-index: 60; inset: 0; overflow: visible; pointer-events: none; }
.vh-combined-tracker-map { position: relative; height: var(--vh-desktop-tracker-height); min-width: 0; background: var(--vh-color-surface-raised, #fff); border: 1px solid var(--votehub-outline); border-radius: 16px; overflow: hidden; --ct-line: var(--votehub-outline); --ct-display: "TT Norms Pro", "Avenir Next", Avenir, Georgia, serif; }
.vh-combined-tracker-map-svg { display: block; width: 100%; height: 100%; }
.vh-combined-tracker-map-svg,
.vh-combined-tracker-map-svg * { user-select: none; -webkit-user-select: none; }
.vh-combined-tracker-map-chrome { position: absolute; inset: 0; pointer-events: none; }
.vh-combined-tracker-map-chrome[hidden] { display: block; visibility: hidden; }
.vh-combined-tracker-map-chrome button,
.vh-combined-tracker-map-chrome a { pointer-events: auto; }
.vh-combined-tracker-map-logo { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: auto; height: 16px; pointer-events: none; }
.vh-combined-tracker-map-status { position: absolute; left: 12px; bottom: 10px; font-size: 12px; }
.vh-combined-tracker-map-loading { position: absolute; z-index: 1; inset: 0; border-radius: 15px; }
.vh-combined-tracker-map-status-skeleton { position: absolute; z-index: 3; left: 12px; bottom: 10px; width: 148px; height: 12px; border-radius: 4px; }
.vh-combined-tracker .campaign-tracker-dash-left,
.vh-combined-tracker .early-vote-geography { display: none; }
.vh-combined-tracker .campaign-tracker-dash-grid,
.vh-combined-tracker .early-vote-tracker-dashboard { display: block; }
.vh-combined-tracker-details { min-width: 0; }
.vh-combined-tracker .vh-combined-tracker-map .campaign-tracker-map-key { position: absolute; top: 16px; left: 16px; right: auto; max-width: calc(100% - 32px); margin: 0; }
.vh-combined-tracker .vh-combined-tracker-map .campaign-tracker-map-note-inline { position: absolute; bottom: 16px; left: 16px; margin: 0; }
@container vh-combined-tracker (max-width: 640px) {
  .vh-combined-tracker-map { height: var(--vh-mobile-map-height); }
  .vh-combined-tracker-dashboard { gap: 16px; }
  .vh-combined-tracker-skeleton-panel { height: var(--vh-mobile-details-height); }
}
.vh-combined-tracker .campaign-tracker-timeline { flex: none; }
.vh-combined-tracker .vh-combined-tracker-map .early-vote-map-legend { bottom: 14px; }

@container vh-combined-tracker (max-width: 640px) {
  .vh-combined-tracker-map-logo { height: 12px; top: 14px; }
  .vh-combined-tracker .vh-combined-tracker-map .early-vote-map-symbols { top: 16px; }
}

.vh-combined-tracker-map-logo--campaign { top: auto; left: auto; right: 20px; bottom: 20px; transform: none; }
@container vh-combined-tracker (max-width: 640px) {
  .vh-combined-tracker-map-logo--campaign { top: auto; right: 16px; bottom: 16px; }
}

/* Early vote gives the map more width while sharing the campaign tracker’s
   desktop and mobile heights. */
.vh-combined-tracker-dashboard[data-tracker="early-vote"] {
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 20px;
}

/* Both trackers switch layout together, including their loading state. */
@container vh-combined-tracker (max-width: 760px) {
  .vh-combined-tracker-dashboard,
  .vh-combined-tracker-dashboard[data-tracker="early-vote"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* Dedicated monochrome wordmark variant. */
html[data-theme="dark"] .vh-combined-tracker-map-logo { content: url("https://cdn.votehub.com/src/assets/votehub-logo-dark.svg"); }

/* Dialogs are portalled to the document body so the backdrop dims the
   entire page, including the WordPress header. */
.early-vote-dialog-backdrop {
  --votehub-purple: #7c3aed;
  --votehub-muted: var(--vh-color-text-muted, #737373);
  --votehub-copy: var(--vh-color-text-secondary, #4a4a4a);
  --votehub-outline: var(--vh-color-border-subtle, #e5e5e5);
  --votehub-white: #fff;
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(16 24 40 / 42%);
  box-sizing: border-box;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
}

.early-vote-dialog-backdrop * {
  box-sizing: border-box;
}

.early-vote-dialog {
  display: flex;
  width: min(520px, 100%);
  max-height: min(80vh, 640px);
  flex-direction: column;
  border: 1px solid var(--votehub-outline);
  border-radius: 12px;
  background: var(--vh-color-surface-raised, #ffffff);
  box-shadow: 0 24px 60px rgb(16 24 40 / 24%);
}

.early-vote-dialog:focus {
  outline: none;
}

.early-vote-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 0;
}

.early-vote-dialog-title {
  margin: 0;
  color: var(--votehub-muted);
  font-family: "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: normal;
  text-transform: uppercase;
}

.early-vote-dialog-close {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--votehub-muted);
  cursor: pointer;
}

.early-vote-dialog-close svg {
  display: block;
  width: 16px;
  height: 16px;
}

.early-vote-dialog-close:hover {
  background: color-mix(in srgb, var(--votehub-purple) 10%, transparent);
  color: var(--vh-color-accent-text-secondary, #7c3aed);
}

.early-vote-dialog-close:focus-visible {
  outline: 2px solid var(--votehub-purple);
  outline-offset: 1px;
}

.early-vote-dialog-body {
  overflow-y: auto;
  padding: 10px 24px 24px;
  color: var(--votehub-copy);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.early-vote-dialog-body p {
  margin: 0 0 12px;
}

.early-vote-dialog-body p:last-child {
  margin-bottom: 0;
}

.early-vote-dialog .early-vote-methodology-more {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin-top: 16px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--votehub-purple) 30%, transparent);
  border-radius: 7px;
  background: var(--vh-color-surface-raised, #ffffff);
  color: var(--vh-color-accent-text-secondary, #7c3aed);
  font: 600 0.75rem/1 "TT Norms Pro", "Avenir Next", Avenir, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.early-vote-dialog .early-vote-methodology-more:hover {
  border-color: var(--votehub-purple);
}

.early-vote-dialog .early-vote-methodology-more:focus-visible {
  outline: 2px solid var(--votehub-purple);
  outline-offset: 1px;
}

/* congress-control */
.vh-congress-control {
  --vh-cc-text: var(--text-primary, #1a1a1a);
  --vh-cc-muted: var(--text-muted, #737373);
  --vh-cc-surface: var(--bg-surface, #eef0f7);
  --vh-cc-unfilled: #e7eaf3;
  --vh-cc-dem: #287eae;
  --vh-cc-gop: #d63333;
  position: relative;
  display: block;
  width: 100%;
  /* Reserve the same scaled height before the loader can measure the bar. */
  height: min(58px, calc(100cqi * 58 / 1240));
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--vh-color-surface-raised, #fff);
  color: var(--vh-cc-text);
  font-family: "TT Norms Pro", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vh-congress-control::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
  border: 1px solid var(--vh-color-border-subtle, #e5e5e5);
  border-radius: inherit;
  pointer-events: none;
}

.vh-congress-control__bar {
  display: flex;
  align-items: center;
  width: max(100%, 1240px);
  min-width: 0;
  transform: scale(min(1, calc(100cqi / 1240px)));
  transform-origin: left top;
}

.vh-congress-control__heading {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 0 0 clamp(168px, 14cqi, 270px);
  align-items: center;
  height: 58px;
  margin-right: -18px;
  padding: 0 38px 0 30px;
}

.vh-congress-control__heading::before,
.vh-congress-control__item::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--vh-color-surface-raised, #fff);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}

.vh-congress-control__heading::after,
.vh-congress-control__item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 15px;
  bottom: 0;
  width: 24px;
  background: linear-gradient(to top,
      var(--vh-cc-accent, var(--vh-cc-unfilled)) 0 var(--vh-cc-fill, 0%),
      color-mix(in srgb, var(--vh-cc-accent, var(--vh-cc-unfilled)) 23%, var(--vh-cc-unfilled)) var(--vh-cc-fill, 0%) 100%);
  clip-path: polygon(0 0, 8px 0, 24px 50%, 8px 100%, 0 100%, 16px 50%);
}

[data-theme="dark"] .vh-congress-control {
  --vh-cc-unfilled: var(--vh-color-secondary-hover, #30303d);
}

.vh-congress-control__label {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--vh-dark-text-secondary, #555b69);
  font-size: clamp(10px, 0.75cqi, 15px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.vh-congress-control__track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.vh-congress-control__list {
  display: flex;
  min-width: 100%;
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.vh-congress-control__item {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: flex-start;
  height: 58px;
  min-width: 0;
  margin-left: -18px;
  padding: 0 clamp(24px, 2cqi, 40px) 0 clamp(28px, 2.3cqi, 46px);
}

.vh-congress-control__item:nth-child(1) {
  z-index: 4;
}

.vh-congress-control__item:nth-child(2) {
  z-index: 3;
}

.vh-congress-control__item:nth-child(3) {
  z-index: 2;
}

.vh-congress-control__item:nth-child(4) {
  z-index: 1;
}

.vh-congress-control__item:last-child::before {
  clip-path: none;
}

.vh-congress-control__item--dem-sweep,
.vh-congress-control__item--gop-sweep {
  flex-grow: 0.85;
}

.vh-congress-control__item--split-left,
.vh-congress-control__item--split-right {
  flex-grow: 1.15;
}

.vh-congress-control__percent {
  flex: none;
  color: var(--vh-cc-accent, var(--vh-cc-muted));
  font-size: clamp(34px, 2.45cqi, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vh-congress-control__copy {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  margin-inline: auto;
}

/* The font's visible glyphs sit above the center of their line boxes. */
.vh-congress-control__percent,
.vh-congress-control__copy {
  transform: translateY(2px);
}

.vh-congress-control__line {
  display: block;
  font-size: clamp(12px, 0.8cqi, 16px);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.vh-congress-control__party {
  font-weight: 700;
}

.vh-congress-control__party--dem {
  color: var(--vh-cc-dem);
}

.vh-congress-control__party--gop {
  color: var(--vh-cc-gop);
}

.vh-congress-control__status {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin: 0;
  padding: 0 36px;
  color: var(--vh-cc-muted);
  font-size: 0.875rem;
}

.vh-congress-control__skeleton {
  position: relative;
  display: block;
  flex: none;
  overflow: hidden;
  border-radius: 4px;
  background: var(--vh-cc-surface);
}

.vh-congress-control__skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 32%, color-mix(in srgb, var(--vh-color-surface-raised, #fff) 85%, transparent) 50%, transparent 68%);
  animation: vh-congress-control-shimmer 1.6s ease-in-out infinite;
}

.vh-congress-control__skeleton--percent {
  width: 86px;
  height: 34px;
}

.vh-congress-control__skeleton--line {
  width: 150px;
  max-width: 100%;
  height: 11px;
}

.vh-congress-control__skeleton--short {
  width: 120px;
}

@keyframes vh-congress-control-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-congress-control__skeleton::after {
    animation: none;
  }
}

/* forecast-previews */
.vh-forecast-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  font-family: "TT Norms Pro", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vh-forecast-previews__card {
  min-width: 0;
}

.vh-forecast-previews .vh-forecast-previews__card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--vh-color-border-subtle, #e5e5e5);
  border-radius: 16px;
  background: var(--vh-color-surface-raised, #fff);
  color: var(--vh-color-text, #1a1a1a);
  text-align: center;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.vh-forecast-previews .vh-forecast-previews__card-link:hover {
  border-color: var(--vh-dark-focus, #8ab9d7);
  background: var(--vh-dark-menu-item-hover, #f5faff);
  color: var(--vh-color-text, #1a1a1a);
  text-decoration: none;
}

.vh-forecast-previews .vh-forecast-previews__card-link:focus-visible {
  outline: 3px solid #026eb6;
  outline-offset: 3px;
}

.vh-forecast-previews .vh-forecast-previews__card-link:active {
  background: var(--vh-dark-menu-item-active, #eaf5fc);
}

.vh-forecast-previews__map {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1088 / 624;
  overflow: hidden;
}

.vh-forecast-previews__skeleton {
  display: block;
  border-radius: 4px;
  background: linear-gradient(100deg, var(--vh-dark-skeleton, #e9edf0) 20%, var(--vh-dark-skeleton-shine, #f5f7f8) 40%, var(--vh-dark-skeleton, #e9edf0) 60%);
  background-size: 200% 100%;
  animation: vh-forecast-previews-shimmer 1.6s linear infinite;
}

.vh-forecast-previews__map-skeleton-shape {
  fill: var(--vh-dark-skeleton, #e9edf0);
  animation: vh-forecast-previews-map-pulse 1.6s ease-in-out infinite;
}

@keyframes vh-forecast-previews-shimmer {
  to {
    background-position-x: -200%;
  }
}

@keyframes vh-forecast-previews-map-pulse {
  50% {
    fill: var(--vh-dark-skeleton-shine, #f5f7f8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-forecast-previews__skeleton {
    animation: none;
  }

  .vh-forecast-previews__map-skeleton-shape {
    animation: none;
  }
}

.vh-forecast-previews__map svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.vh-forecast-previews__shape {
  fill: none;
  stroke: #f4f4f4;
  stroke-linejoin: round;
  stroke-width: 0.8px;
  vector-effect: non-scaling-stroke;
}

.vh-forecast-previews__map--senate .vh-forecast-previews__shape,
.vh-forecast-previews__map--governor .vh-forecast-previews__shape {
  stroke-width: 1px;
}

.vh-forecast-previews__state-outline {
  fill: none;
  stroke: #f4f4f4;
  stroke-linejoin: round;
  stroke-width: 0.8px;
  vector-effect: non-scaling-stroke;
}

.vh-forecast-previews__flip-outline {
  fill: none;
  pointer-events: none;
  stroke: #000;
  stroke-linejoin: round;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.vh-forecast-previews__map--senate .vh-forecast-previews__flip-outline,
.vh-forecast-previews__map--governor .vh-forecast-previews__flip-outline {
  stroke-width: 1.5px;
}

.vh-forecast-previews__map-status {
  position: absolute;
  inset: auto 8px 8px;
  padding: 3px;
  border-radius: 4px;
  background: var(--vh-dark-surface-raised, rgb(255 255 255 / 88%));
  color: var(--vh-dark-text-secondary, #555);
  font-size: 11px;
}

.vh-forecast-previews__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.vh-forecast-previews__label {
  color: var(--vh-color-text-muted, #737373);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 1.338px;
  text-transform: uppercase;
}

.vh-forecast-previews__label-skeleton {
  width: 54px;
  height: 16px;
}

.vh-forecast-previews__card--house .vh-forecast-previews__label-skeleton {
  width: 46px;
}

.vh-forecast-previews__card--governor .vh-forecast-previews__label-skeleton {
  width: 112px;
}

.vh-forecast-previews__headline {
  display: block;
  width: 100%;
  min-height: 1.05em;
  margin: 0;
  color: var(--vh-color-text, #1a1a1a);
  font-size: clamp(15px, 1.8cqi, 21px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.078px;
}

.vh-forecast-previews__headline-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}

.vh-forecast-previews__headline-skeleton-line {
  width: 82%;
  height: 0.72em;
}

.vh-forecast-previews__headline-skeleton-line--short {
  display: none;
  width: 58%;
}

.vh-forecast-previews__headline strong {
  font-weight: inherit;
}

.vh-forecast-previews__seats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-top: 10px;
}

.vh-forecast-previews__seat-counts {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
}

.vh-forecast-previews__seat-bar {
  display: flex;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--vh-dark-border-subtle, #e5e5e5);
}

.vh-forecast-previews__seat-bar-dem {
  background: #287eae;
}

.vh-forecast-previews__seat-bar-gop {
  background: #d63333;
}

.vh-forecast-previews__seat-count-skeleton {
  width: 34px;
  height: 14px;
}

.vh-forecast-previews__seat-bar-skeleton {
  width: 100%;
  height: 8px;
}

.vh-forecast-previews__dem {
  color: #287eae;
}

.vh-forecast-previews__gop {
  color: #d63333;
}

@container votehub-element (max-width: 820px) {
  .vh-forecast-previews {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .vh-forecast-previews .vh-forecast-previews__card-link {
    flex-direction: row;
    gap: 12px;
    padding: 12px;
    text-align: left;
  }

  .vh-forecast-previews__map {
    flex: 0 0 38%;
    max-width: 180px;
  }

  .vh-forecast-previews__copy {
    flex: 1;
    align-items: flex-start;
    width: auto;
    min-width: 0;
  }

  .vh-forecast-previews__headline {
    min-height: 0;
    font-size: clamp(14px, 4cqi, 21px);
  }

  .vh-forecast-previews__headline-skeleton {
    align-items: flex-start;
  }

  .vh-forecast-previews__headline-skeleton-line--short {
    display: block;
  }

  .vh-forecast-previews__card--governor .vh-forecast-previews__headline-skeleton-line--short {
    display: none;
  }
}

[data-theme="dark"] .vh-forecast-previews__dem {
  color: color-mix(in srgb, #287eae 68%, #fff);
}

[data-theme="dark"] .vh-forecast-previews__gop {
  color: color-mix(in srgb, #d63333 68%, #fff);
}

/* Matches the forecast app's inactive-state treatment; light mode keeps #f1f2f4. */
[data-theme="dark"] .vh-forecast-previews__no-race {
  fill: color-mix(in srgb, var(--vh-color-text-muted) 34%, var(--vh-color-surface-raised));
  opacity: 0.48;
}

[data-theme="dark"] .vh-forecast-previews__shape,
[data-theme="dark"] .vh-forecast-previews__state-outline {
  stroke: var(--vh-color-surface-raised);
}
/* polling-averages */
.vh-polling-averages {
  --vh-polling-accent: var(--accent-text-secondary, #7c3aed);
  --vh-polling-label: var(--vh-dark-accent-text, color-mix(in srgb, var(--votehub-purple-primary, #7c3aed) 70%, transparent));
  --vh-polling-text: var(--text-primary, #1a1a1a);
  --vh-polling-muted: var(--text-muted, #737373);
  --vh-polling-stroke: var(--stroke-soft, #e5e5e5);
  --vh-polling-surface: var(--bg-surface, #eef0f7);
  --vh-polling-base: var(--bg-base, #f8f9fc);
  --vh-polling-elevated: var(--bg-elevated, #ffffff);
  --vh-polling-divider: var(--secondary-border, #d2d2d7);
  --vh-polling-fade: 28px;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  color: var(--vh-polling-text);
  font-family: "TT Norms Pro", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vh-polling-averages__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  /* As a flex item this defaults to min-width: auto, which in horizontal mode
     refuses to shrink below the row's full content width and drags the page
     into sideways scrolling. */
  min-width: 0;
  max-height: 625px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
  /* Scrolling stays available; only the scrollbar itself is hidden. */
  scrollbar-width: none;
  /* Each edge only fades once there is content scrolled past it, so nothing is
     dimmed at rest. The two lengths are driven from the scroll position. */
  --vh-polling-fade-start: 0px;
  --vh-polling-fade-end: 0px;
  mask-image: linear-gradient(to bottom,
      transparent 0,
      #000 var(--vh-polling-fade-start),
      #000 calc(100% - var(--vh-polling-fade-end)),
      transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0,
      #000 var(--vh-polling-fade-start),
      #000 calc(100% - var(--vh-polling-fade-end)),
      transparent 100%);
}

.vh-polling-averages__list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.vh-polling-averages__list:focus-visible {
  outline: 2px solid var(--vh-polling-accent);
  outline-offset: 2px;
}

.vh-polling-averages__race {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--vh-polling-stroke);
  border-radius: 16px;
  background: var(--vh-polling-elevated);
}

.vh-polling-averages__race--linked {
  padding: 0;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.vh-polling-averages__race--linked:hover {
  border-color: color-mix(in srgb, var(--vh-polling-accent) 45%, var(--vh-polling-stroke));
  background: color-mix(in srgb, var(--vh-polling-accent) 2%, var(--vh-dark-surface-raised, white));
}

.vh-polling-averages__race-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px;
  border-radius: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.vh-polling-averages__race-link:focus-visible {
  outline: 3px solid var(--vh-polling-accent);
  outline-offset: 2px;
}

.vh-polling-averages__race-title {
  min-width: 0;
  margin: 0;
  color: var(--vh-polling-label);
  font-size: 0.875rem;
  font-weight: 600;
  /* Pixel line boxes throughout, so a late webfont swap changes the glyphs
     without changing any row height. */
  line-height: 18px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.vh-polling-averages__candidates {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vh-polling-averages__candidate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.vh-polling-averages__identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vh-polling-averages__candidate-name {
  min-width: 0;
  overflow: hidden;
  color: var(--vh-polling-text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vh-polling-averages__trend {
  /* Gives the absolutely positioned screen-reader text a containing block. The
     scroll container is static, so without this it escapes the overflow clip
     and stretches the page in horizontal mode. */
  position: relative;
  flex: none;
  min-width: 0;
  overflow: hidden;
  color: var(--vh-polling-muted);
  --vh-polling-trend-up: #2ab56f;
  --vh-polling-trend-down: #f269a9;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vh-polling-averages__trend--up {
  color: var(--vh-polling-trend-up);
}

.vh-polling-averages__trend--down {
  color: var(--vh-polling-trend-down);
}

.vh-polling-averages__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.vh-polling-averages__number {
  display: flex;
  flex: none;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px;
  color: var(--vh-polling-color, var(--vh-polling-muted));
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.vh-polling-averages__candidate-value {
  font-size: 1.75rem;
  line-height: 32px;
  letter-spacing: -0.045em;
}

.vh-polling-averages__candidate-percent {
  font-size: 0.8125rem;
  line-height: 16px;
}

.vh-polling-averages__lead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--vh-polling-stroke);
  font-size: 10px;
  line-height: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vh-polling-averages__lead-label {
  min-width: 0;
  overflow: hidden;
  color: var(--vh-polling-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vh-polling-averages__lead-value {
  flex: none;
  color: var(--vh-polling-text);
  font-weight: 700;
  white-space: nowrap;
}

.vh-polling-averages__status {
  margin: 0;
  color: var(--vh-polling-muted);
  font-size: var(--vh-text-xs, 0.75rem);
  line-height: var(--vh-leading-standard, 1.4);
}

.vh-polling-averages__skeleton {
  /* Padding reserves the rest of the line box while the painted bar stays
     thin, so swapping skeleton for text moves nothing. */
  background-clip: content-box;
  position: relative;
  display: block;
  flex: none;
  overflow: hidden;
  border-radius: 4px;
  background: var(--vh-polling-surface);
}

.vh-polling-averages__skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: inherit;
  background-clip: content-box;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 32%, color-mix(in srgb, var(--bg-elevated, var(--vh-color-surface-raised, #ffffff)) 85%, transparent) 50%, transparent 68%);
  animation: vh-polling-averages-shimmer 1.6s ease-in-out infinite;
}

.vh-polling-averages__title-skeleton {
  width: min(60%, 180px);
  height: 18px;
  padding: 4.5px 0;
}

.vh-polling-averages__name {
  width: 118px;
  max-width: 100%;
  height: 20px;
  padding: 4.5px 0;
}

.vh-polling-averages__name--1 {
  width: 96px;
}

.vh-polling-averages__name--2 {
  width: 138px;
}

.vh-polling-averages__trend-skeleton {
  width: 76px;
  height: 14px;
  padding: 2.5px 0;
}

.vh-polling-averages__value {
  width: 58px;
  height: 32px;
  padding: 2.5px 0;
  border-radius: 4px;
}

.vh-polling-averages__lead-label-skeleton {
  width: 48px;
  max-width: 65%;
  height: 18px;
  padding: 4.5px 0;
}

.vh-polling-averages__lead-value-skeleton {
  width: 80px;
  height: 18px;
  padding: 4.5px 0;
}

@keyframes vh-polling-averages-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-polling-averages__race--linked {
    transition: none;
  }

  .vh-polling-averages__skeleton::after {
    animation: none;
  }
}

/* Horizontal mode: the same race cards laid out in a scrolling row. Opt in
   with data-layout. */
.vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__list {
  flex-direction: row;
  align-items: stretch;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  mask-image: linear-gradient(to right,
      transparent 0,
      #000 var(--vh-polling-fade-start),
      #000 calc(100% - var(--vh-polling-fade-end)),
      transparent 100%);
  -webkit-mask-image: linear-gradient(to right,
      transparent 0,
      #000 var(--vh-polling-fade-start),
      #000 calc(100% - var(--vh-polling-fade-end)),
      transparent 100%);
}

.vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__race {
  /* Give short races room to breathe while long names can still widen a column. */
  flex: none;
  width: auto;
  min-width: 300px;
  padding: 16px 20px;
  gap: 18px;
}

.vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__race--linked {
  padding: 0;
}

.vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__race-link {
  gap: 18px;
  padding: 16px 20px;
}

.vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__race-title {
  white-space: nowrap;
}

/* Let the name track absorb spare width while the polling value stays fixed. */
.vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__candidates {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) max-content;
  align-items: center;
  gap: 18px 10px;
}

.vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__candidate {
  display: contents;
}

.vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__identity {
  padding-right: 8px;
}

.vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__candidate-name {
  overflow: visible;
  text-overflow: clip;
}

@container votehub-element (max-width: 400px) {
  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__race {
    width: fit-content;
    min-width: 180px;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__race--linked {
    padding: 0;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__race-link {
    gap: 12px;
    padding: 12px;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__race-title {
    font-size: 0.6875rem;
    line-height: 16px;
    letter-spacing: 0.06em;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__candidates {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px 6px;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__identity {
    padding-right: 0;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__candidate-name {
    overflow: hidden;
    font-size: 0.8125rem;
    line-height: 17px;
    text-overflow: ellipsis;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__trend {
    font-size: 0.625rem;
    line-height: 12px;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__candidate-value {
    font-size: 1.375rem;
    line-height: 26px;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__candidate-percent {
    font-size: 0.6875rem;
    line-height: 14px;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__lead {
    gap: 6px;
    padding-top: 6px;
    font-size: 9px;
    line-height: 16px;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__title-skeleton {
    height: 16px;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__name {
    height: 17px;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__trend-skeleton {
    height: 12px;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__value {
    height: 26px;
  }

  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__lead-label-skeleton,
  .vh-polling-averages[data-layout="horizontal"] .vh-polling-averages__lead-value-skeleton {
    height: 16px;
  }
}

/* power-index */
.vh-power-index,
.vh-power-index * {
    box-sizing: border-box
}

.vh-power-index {
    --vh-power-dem: #287eae;
    --vh-power-gop: #d63333;
    --vh-power-purple: var(--vh-dark-accent-text-secondary, #7c3aed);
    --vh-power-muted: var(--vh-dark-text-muted, #737373);
    --vh-power-line: var(--vh-dark-border-subtle, #e5e5e5);
    display: block;
    width: 100%;
    max-width: 265px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--vh-power-line);
    border-radius: 16px;
    background: var(--vh-color-surface-raised, #fff);
    color: var(--vh-color-text, #1a1a1a);
    font-family: "Avenir Next", Avenir, Arial, sans-serif
}

.vh-power-index__header {
    padding: 9px 16px 8px;
    border-bottom: 1px solid var(--vh-power-line);
    font-family: "TT Norms Pro", "Avenir Next", Avenir, Arial, sans-serif;
    text-align: center;
    text-transform: uppercase
}

.vh-power-index__header strong,
.vh-power-index__header small {
    display: block
}

.vh-power-index__header strong {
    margin: 0 0 3px;
    color: var(--vh-power-purple);
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 1.34px
}

.vh-power-index__header small {
    color: var(--vh-power-muted);
    font-size: 8px;
    font-style: italic;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 1.34px
}

.vh-power-index__body {
    padding: 8px 16px 4px
}

.vh-power-index__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 20px
}

.vh-power-index__value {
    font-family: "TT Norms Pro", "Avenir Next", Avenir, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -.46px
}

.vh-power-index__value--dem {
    color: var(--vh-power-dem)
}

.vh-power-index__value--gop {
    color: var(--vh-power-gop)
}

.vh-power-index__value--even {
    color: var(--vh-power-purple)
}

.vh-power-index__actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.vh-power-index__actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--vh-power-muted);
    font: 500 11px/16px inherit;
    cursor: pointer
}

.vh-power-index__actions button svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.vh-power-index__actions a {
    color: var(--vh-power-purple);
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap
}

.vh-power-index__actions button:focus-visible,
.vh-power-index__actions a:focus-visible {
    outline: 2px solid var(--vh-power-purple);
    outline-offset: 2px
}

.vh-power-index__chart {
    height: 124px;
    margin-top: 16px;
}

.vh-power-index__plot {
    position: relative;
    height: 100px;
    margin-right: 30px
}

.vh-power-index__plot svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100px;
    overflow: visible
}

.vh-power-index__plot path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke
}

.vh-power-index__grid {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom, transparent 0 calc(25% - 1px), var(--vh-power-line) calc(25% - 1px) 25%);
    border-bottom: 1px dashed var(--vh-power-line)
}

.vh-power-index__grid::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    border-top: 1px solid var(--vh-power-muted)
}

.vh-power-index__axis {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% + 4px);
    width: 26px;
    color: var(--vh-power-muted);
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    text-align: right
}

.vh-power-index__axis i {
    position: absolute;
    right: 0;
    font-style: normal;
    white-space: nowrap;
    transform: translateY(-50%)
}

.vh-power-index__axis i:nth-child(1) {
    top: 0;
    color: var(--vh-power-gop)
}

.vh-power-index__axis i:nth-child(2) {
    top: 25%;
    color: var(--vh-power-gop)
}

.vh-power-index__axis i:nth-child(3) {
    top: 50%;
    color: var(--vh-power-purple)
}

.vh-power-index__axis i:nth-child(4) {
    top: 75%;
    color: var(--vh-power-dem)
}

.vh-power-index__axis i:nth-child(5) {
    top: 100%;
    color: var(--vh-power-dem)
}

.vh-power-index__months {
    display: flex;
    justify-content: space-between;
    min-height: 16px;
    padding-top: 5px;
    margin-right: 30px;
    color: var(--vh-power-muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 16px
}

.vh-power-index__explainer,
.vh-power-index__status {
    display: flex;
    align-items: center;
    height: 124px;
    margin: 8px 0 0;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--vh-power-line);
    border-radius: 8px;
    background: var(--vh-dark-surface, #fafafa);
    color: var(--vh-dark-text-muted, #727272);
    font-size: 12px;
    font-style: italic;
    font-weight: 500;
    line-height: 16px
}

.vh-power-index__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 15px;
    border-top: 1px solid var(--vh-power-line)
}

.vh-power-index__footer span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vh-power-muted);
    font-family: "TT Norms Pro", "Avenir Next", Avenir, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: .48px
}

.vh-power-index__footer span i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #45d27a
}

.vh-power-index__footer strong {
    color: #00c781;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.04em
}

.vh-power-index__skeleton {
    display: block;
    border-radius: 999px;
    background: linear-gradient(100deg, var(--vh-dark-skeleton, #e9edf0) 20%, var(--vh-dark-skeleton-shine, #f6f7f8) 40%, var(--vh-dark-skeleton, #e9edf0) 60%);
    background-size: 200% 100%;
    animation: vh-power-shimmer 1.6s linear infinite
}

.vh-power-index__skeleton--value {
    width: 58px;
    height: 14px
}

.vh-power-index__skeleton--chart {
    position: absolute;
    inset: 8px 0;
    width: 100%;
    border-radius: 8px;
    opacity: .65
}

@keyframes vh-power-shimmer {
    to {
        background-position-x: -200%
    }
}

@media(prefers-reduced-motion:reduce) {
    .vh-power-index__skeleton {
        animation: none
    }
}
.vh-power-index {
  --vh-power-purple: var(--votehub-purple-primary, #7c3aed);
  --vh-power-muted: var(--text-muted, #737373);
  --vh-power-line: var(--stroke-soft, #e5e5e5);
  display: flex;
  max-width: none;
  height: 260px;
  flex-direction: column;
  background: var(--bg-elevated, var(--vh-color-surface-raised, #fff));
  box-shadow: none;
  color: var(--text-primary, var(--vh-color-text, #1a1a1a));
  font-family: "TT Norms Pro", "Avenir Next", Avenir, Arial, sans-serif;
}

.vh-power-index__body {
  flex: 1;
  min-height: 0;
}

.vh-power-index__logo {
  display: block;
  flex: none;
  width: 54px;
  height: 16px;
}

.vh-power-index__header {
  display: flex;
  flex: 0 0 43px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 6px 16px;
  text-align: center;
  border-bottom: 1px solid var(--vh-power-line);
  background: transparent;
}

.vh-power-index__header strong {
  margin: 0;
  color: var(--vh-color-kalshi-brand, #00b67a);
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 1.1px;
}

.vh-power-index__footer {
  flex: 0 0 30px;
  align-items: center;
  justify-content: flex-end;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-top: 1px solid var(--vh-power-line);
  background: transparent;
}

.vh-power-index__header small {
  margin-top: 1px;
  font-size: 9px;
  line-height: 11px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.vh-power-index__value {
  font-size: 20px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

.vh-power-index__actions button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: var(--vh-power-muted);
}

.vh-power-index__actions button svg {
  width: 18px;
  height: 18px;
}

.vh-power-index__actions button:hover,
.vh-power-index__actions button[aria-expanded="true"] {
  color: var(--vh-power-purple);
  background: color-mix(in srgb, var(--vh-power-purple) 8%, transparent);
}

.vh-power-index__footer>a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 6px 16px;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.vh-power-index__footer .vh-power-index__footer-brand {
  display: flex;
  flex: none;
  align-items: center;
}

.vh-power-index__footer .vh-power-index__logo {
  margin: 0;
}

.vh-power-index__footer>a:focus-visible {
  outline: 2px solid var(--vh-power-purple);
  outline-offset: -3px;
}

.vh-power-index--compact {
  height: 100%;
  min-height: 0;
}

.vh-power-index--compact .vh-power-index__header {
  flex-basis: 37px;
  min-height: 37px;
  padding: 4px 12px;
}

.vh-power-index--compact .vh-power-index__header strong {
  font-size: 9px;
  line-height: 12px;
}

.vh-power-index--compact .vh-power-index__header small {
  font-size: 8px;
  line-height: 10px;
}

.vh-power-index--compact .vh-power-index__body {
  padding: 5px 12px 2px;
}

.vh-power-index--compact .vh-power-index__topline {
  min-height: 18px;
}

.vh-power-index--compact .vh-power-index__value {
  font-size: 16px;
  line-height: 18px;
}

.vh-power-index--compact .vh-power-index__actions button {
  width: 18px;
  height: 18px;
}

.vh-power-index--compact .vh-power-index__actions button svg {
  width: 14px;
  height: 14px;
}

.vh-power-index--compact .vh-power-index__chart {
  height: 60px;
  margin-top: 2px;
}

.vh-power-index--compact .vh-power-index__plot {
  height: 44px;
  margin-right: 27px;
}

.vh-power-index--compact .vh-power-index__plot svg {
  height: 44px;
}

.vh-power-index--compact .vh-power-index__axis {
  width: 23px;
  font-size: 8px;
}

.vh-power-index--compact .vh-power-index__months {
  min-height: 12px;
  margin-right: 27px;
  padding-top: 2px;
  font-size: 8px;
  line-height: 10px;
}

.vh-power-index--compact .vh-power-index__explainer,
.vh-power-index--compact .vh-power-index__status {
  height: 60px;
  margin-top: 2px;
  padding: 7px;
  font-size: 10px;
  line-height: 12px;
}

/* kalshi-market */
.vh-kalshi-market,
.vh-kalshi-market * {
  box-sizing: border-box;
}

.vh-kalshi-market {
  --vh-kalshi-purple: var(--votehub-purple-primary, #7c3aed);
  --vh-kalshi-text: var(--text-primary, #1a1a1a);
  --vh-kalshi-muted: var(--text-muted, #737373);
  --vh-kalshi-line: var(--stroke-soft, #e5e5e5);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 161px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--vh-kalshi-line);
  border-radius: 16px;
  background: var(--bg-elevated, var(--vh-color-surface-raised, #fff));
  box-shadow: none;
  color: var(--vh-kalshi-text);
  font-family: "TT Norms Pro", "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, sans-serif;
  text-decoration: none;
}

.vh-kalshi-market--compact {
  height: 100%;
  min-height: 0;
}

.vh-kalshi-market[href] {
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.vh-kalshi-market[href]:hover {
  border-color: color-mix(in srgb, var(--vh-kalshi-purple) 40%, var(--vh-kalshi-line));
  background: color-mix(in srgb, var(--vh-kalshi-purple) 2%, var(--vh-dark-surface-raised, white));
}

.vh-kalshi-market[href]:focus-visible {
  outline: 3px solid var(--vh-kalshi-purple);
  outline-offset: 2px;
}

.vh-kalshi-market__header {
  display: flex;
  flex: 0 0 43px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 6px 16px;
  text-align: center;
  border-bottom: 1px solid var(--vh-kalshi-line);
  background: transparent;
}

.vh-kalshi-market__header h2 {
  margin: 0;
  color: var(--vh-color-kalshi-brand, #00b67a);
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.vh-kalshi-market__header p {
  margin: 1px 0 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--vh-kalshi-muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vh-kalshi-market__values {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
  padding: 8px 16px;
}

.vh-kalshi-market__values--single {
  display: flex;
}

.vh-kalshi-market__stat {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5px 2px;
  border: 0;
  border-radius: 0;
  text-align: center;
}

.vh-kalshi-market__stat--yes {
  background: transparent;
  color: #265cff;
}

.vh-kalshi-market__stat--no {
  background: transparent;
  color: #9300db;
}

.vh-kalshi-market__stat--forecast {
  background: transparent;
  color: var(--vh-kalshi-forecast-color, #07875f);
}

.vh-kalshi-market__stat strong {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.vh-kalshi-market__stat>span:last-child {
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: var(--vh-kalshi-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.vh-kalshi-market__footer {
  display: flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: flex-end;
  height: 30px;
  min-height: 30px;
  padding: 6px 16px;
  border-top: 1px solid var(--vh-kalshi-line);
  background: transparent;
}

.vh-kalshi-market__footer-brand {
  display: flex;
  flex: none;
  align-items: center;
}

.vh-kalshi-market__logo {
  display: block;
  flex: none;
  width: 54px;
  height: 16px;
}

.vh-kalshi-market__status {
  display: grid;
  flex: 1;
  place-items: center;
  margin: 0;
  padding: 12px;
  color: var(--vh-kalshi-muted);
  font-size: 11px;
}

.vh-kalshi-market__skeleton {
  display: block;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--vh-dark-skeleton, #e9edf0) 20%, var(--vh-dark-skeleton-shine, #f6f7f8) 40%, var(--vh-dark-skeleton, #e9edf0) 60%);
  background-size: 200% 100%;
  animation: vh-kalshi-shimmer 1.6s linear infinite;
}

.vh-kalshi-market__skeleton--value {
  width: 60%;
  height: 25px;
}

.vh-kalshi-market__skeleton--label {
  width: 42%;
  height: 8px;
  margin-top: 7px;
}

@keyframes vh-kalshi-shimmer {
  to {
    background-position-x: -200%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-kalshi-market__skeleton {
    animation: none;
  }

  .vh-kalshi-market[href] {
    transition: none;
  }
}

.vh-kalshi-market__stat+.vh-kalshi-market__stat {
  border-left: 1px solid var(--vh-kalshi-line);
}

.vh-kalshi-market__footer .vh-kalshi-market__logo {
  margin: 0;
}

@media (max-width: 781px) {
  .vh-home-mobile-strip [data-compact="true"] .vh-kalshi-market__logo {
    width: 43px;
    height: 11px;
  }
}

.vh-kalshi-market--compact .vh-kalshi-market__header {
  flex-basis: 37px;
  min-height: 37px;
  padding: 4px 12px;
}

.vh-kalshi-market--compact .vh-kalshi-market__header h2 {
  font-size: 9px;
  line-height: 12px;
}

.vh-kalshi-market--compact .vh-kalshi-market__header p {
  font-size: 8px;
  line-height: 10px;
}

/* Dark mode lifts each value color toward white so it reads on dark cards;
   a color supplied by the page (data-value-color) keeps its hue. Kalshi's
   brand kit defines only its greens, so these are VoteHub's own colors. */
[data-theme="dark"] .vh-kalshi-market__stat--yes { color: color-mix(in srgb, #265cff 62%, #fff); }
[data-theme="dark"] .vh-kalshi-market__stat--no { color: color-mix(in srgb, #9300db 62%, #fff); }
[data-theme="dark"] .vh-kalshi-market__stat--forecast {
  color: color-mix(in srgb, var(--vh-kalshi-forecast-color, #07875f) 60%, #fff);
}

/* pro-cta */
.vh-pro-cta,
.vh-pro-cta * {
  box-sizing: border-box;
}

.vh-pro-cta {
  --vh-pro-purple: var(--votehub-purple-primary, #7c3aed);
  --vh-pro-purple-dark: var(--vh-dark-accent-text, var(--votehub-purple-dark, #351c71));
  --vh-pro-muted: var(--text-muted, #737373);
  --vh-pro-line: var(--stroke-soft, #e5e5e5);
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
  max-width: none;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--vh-pro-line);
  border-radius: 16px;
  background: var(--bg-elevated, var(--vh-color-surface-raised, #fff));
  box-shadow: none;
  color: var(--text-primary, var(--vh-color-text, #1a1a1a));
  font-family: "TT Norms Pro", "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, sans-serif;
}

.vh-pro-cta__message {
  min-width: 0;
  flex: 1 1 auto;
}

.vh-pro-cta h2 {
  margin: 0 0 5px;
  color: var(--vh-pro-purple-dark);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.vh-pro-cta__message p {
  margin: 0;
  color: var(--vh-pro-muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.42;
}

.vh-pro-cta__button {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid var(--vh-pro-purple);
  border-radius: 10px;
  background: var(--vh-pro-purple);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.vh-pro-cta__button:hover {
  border-color: #6a2fdb;
  background: #6a2fdb;
  color: #fff;
}

.vh-pro-cta__button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--vh-pro-purple) 35%, transparent);
  outline-offset: 2px;
}

.vh-pro-cta__button span {
  font-size: 16px;
  line-height: 1;
}

.vh-pro-cta--compact {
  gap: 12px;
  padding: 15px 16px;
}

.vh-pro-cta--compact h2 {
  font-size: 14px;
}

.vh-pro-cta--compact .vh-pro-cta__message p {
  font-size: 12px;
}

.vh-pro-cta--compact .vh-pro-cta__button {
  min-height: 38px;
  font-size: 12px;
}

.vh-pro-cta--feature {
  padding: 22px;
}

.vh-pro-cta--feature h2 {
  font-size: 19px;
}

@container votehub-element (min-width: 520px) {
  .vh-pro-cta {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 20px 22px;
  }

  .vh-pro-cta__button {
    min-width: 150px;
  }

  .vh-pro-cta--compact {
    gap: 20px;
    padding: 14px 16px;
  }

  .vh-pro-cta--feature {
    gap: 32px;
    padding: 24px 28px;
  }

  .vh-pro-cta--feature h2 {
    font-size: 20px;
  }

  .vh-pro-cta--feature .vh-pro-cta__message p {
    font-size: 14px;
  }

  .vh-pro-cta--feature .vh-pro-cta__button {
    min-width: 180px;
  }
}

@container votehub-element (max-width: 280px) {
  .vh-pro-cta {
    gap: 13px;
    padding: 15px;
  }

  .vh-pro-cta h2 {
    font-size: 15px;
  }

  .vh-pro-cta__message p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-pro-cta__button {
    transition: none;
  }
}

/* social-feed */
.vh-social-feed {
  --vh-social-text: var(--text-primary, #1a1a1a);
  --vh-social-muted: var(--text-muted, #737373);
  --vh-social-border: var(--stroke-soft, #e5e5e5);
  --vh-social-skeleton: var(--bg-surface, #eceff6);
  --vh-social-purple: var(--votehub-purple-primary, #7c3aed);
  width: 100%;
  max-width: 1500px;
  min-width: 0;
  margin-inline: auto;
  color: var(--vh-social-text);
  font-family: "TT Norms Pro", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vh-social-feed__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.vh-social-feed__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.vh-social-feed__toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  min-height: 50px;
}

.vh-social-feed__toggle {
  display: flex;
  flex: none;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--vh-social-border);
  border-radius: 13px;
  background: var(--bg-elevated, var(--vh-color-surface-raised, #fff));
}

.vh-social-feed__toggle-button {
  min-width: 88px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--vh-color-text-secondary, #4a4a4a);
  font: 600 13px/1.2 "TT Norms Pro", "Avenir Next", sans-serif;
  cursor: pointer;
}

.vh-social-feed__toggle-button[aria-pressed="true"] {
  border-color: var(--vh-dark-focus, #c9b6ff);
  background: var(--vh-dark-menu-item-active, #eff0f8);
  color: var(--vh-dark-accent-text, var(--vh-social-purple));
}

.vh-social-feed__search {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--vh-social-border);
  border-radius: 13px;
  background: var(--bg-elevated, var(--vh-color-surface-raised, #fff));
  color: var(--vh-social-muted);
}

.vh-social-feed__search svg {
  flex: none;
}

.vh-social-feed__search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--vh-social-purple);
  font: 400 14px/1.4 "TT Norms Pro", "Avenir Next", sans-serif;
}

.vh-social-feed__search input::placeholder {
  color: var(--vh-social-muted);
  opacity: 1;
}

.vh-social-feed__search input::-webkit-search-cancel-button {
  display: none;
}

.vh-social-feed__clear {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vh-social-purple);
  cursor: pointer;
}

.vh-social-feed button:focus-visible,
.vh-social-feed a:focus-visible,
.vh-social-feed__feed:focus-visible,
.vh-social-feed__search:focus-within {
  outline: 2px solid var(--vh-social-purple);
  outline-offset: 2px;
}

.vh-social-feed__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  align-items: start;
  justify-content: center;
  gap: 1.5rem;
}

.vh-social-feed__feed {
  min-width: 0;
  height: 920px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  --vh-social-fade-start: 0px;
  --vh-social-fade-end: 0px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--vh-social-fade-start), #000 calc(100% - var(--vh-social-fade-end)), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--vh-social-fade-start), #000 calc(100% - var(--vh-social-fade-end)), transparent 100%);
}

.vh-social-feed__feed::-webkit-scrollbar {
  display: none;
}

.vh-social-feed__posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  width: 100%;
}

.vh-social-feed__lane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vh-social-feed__lane-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vh-social-feed__lane-empty {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--vh-social-border);
  border-radius: 16px;
  color: var(--vh-social-muted);
}

.vh-social-feed__post {
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--vh-social-border);
  border-radius: 16px;
  background: var(--bg-elevated, var(--vh-color-surface-raised, #fff));
}

.vh-social-feed__sentinel {
  flex: none;
  width: 100%;
  height: 1px;
}

.vh-social-feed__post-lead {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.vh-social-feed__post-content {
  flex: 1 1 auto;
  min-width: 0;
}

.vh-social-feed__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.vh-social-feed__post:not(.vh-social-feed__post--compact) .vh-social-feed__header {
  min-height: 44px;
}

.vh-social-feed__post:not(.vh-social-feed__post--compact) .vh-social-feed__topic {
  margin-top: 3px;
}

.vh-social-feed__post--compact .vh-social-feed__header {
  justify-content: flex-start;
}

.vh-social-feed__post--compact .vh-social-feed__topic {
  max-width: 100%;
}

.vh-social-feed__post--compact .vh-social-feed__media {
  margin-left: 0;
}

.vh-social-feed__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.vh-social-feed__avatar-image {
  display: block;
  object-fit: cover;
  background: var(--vh-social-skeleton);
}

.vh-social-feed__avatar[data-shape="square"] {
  border-radius: 10px;
}

.vh-social-feed__avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--vh-social-purple);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.vh-social-feed__identity {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 44px;
}

.vh-social-feed__identity-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.vh-social-feed__display-name {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vh-social-feed__role {
  min-width: 0;
  overflow: hidden;
  color: var(--vh-social-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vh-social-feed__byline {
  color: var(--vh-social-muted);
  font-size: 11px;
  line-height: 15px;
}

.vh-social-feed__source {
  display: grid;
  align-self: end;
  justify-self: end;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--vh-social-muted);
  text-decoration: none;
}

.vh-social-feed__source:hover {
  color: var(--vh-social-purple);
}

.vh-social-feed__name {
  width: 102px;
  height: 15px;
}

.vh-social-feed__badge {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.vh-social-feed__handle {
  width: 142px;
  max-width: 70%;
  height: 12px;
}

.vh-social-feed__topic-placeholder {
  width: 66px;
  height: 22px;
  border-radius: 6px;
}

.vh-social-feed__source-placeholder {
  width: 78px;
  height: 11px;
}

.vh-social-feed__more {
  align-self: flex-start;
  flex: none;
  color: var(--vh-social-muted);
}

.vh-social-feed__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 9px 0 0;
}

.vh-social-feed__post-text {
  margin: 7px 0 0;
  font-family: "Avenir Next", "Avenir", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.vh-social-feed__emoji {
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 0.88em;
  line-height: 1;
  vertical-align: -0.06em;
}

.vh-social-feed__quote {
  display: flex;
  min-width: 0;
  min-height: 82px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--vh-social-border);
  border-radius: 11px;
  color: var(--vh-social-text);
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease;
}

.vh-social-feed__quote:hover {
  border-color: color-mix(in srgb, var(--vh-social-purple) 38%, var(--vh-social-border));
  background: color-mix(in srgb, var(--vh-social-purple) 3%, var(--vh-dark-surface-raised, white));
}

.vh-social-feed__quote-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 10px 11px;
}

.vh-social-feed__quote-header {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 30px;
}

.vh-social-feed__quote-avatar {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--vh-social-skeleton);
  object-fit: cover;
}

.vh-social-feed__quote-avatar[data-shape="square"] {
  border-radius: 6px;
}

.vh-social-feed__quote-avatar--fallback {
  display: grid;
  place-items: center;
  background: var(--vh-social-purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.vh-social-feed__quote-identity {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 30px;
  gap: 0;
  font-size: 12px;
  line-height: 15px;
  white-space: nowrap;
}

.vh-social-feed__quote-identity strong,
.vh-social-feed__quote-identity span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vh-social-feed__quote-identity strong {
  font-weight: 600;
}

.vh-social-feed__quote-identity span {
  color: var(--vh-social-muted);
  font-size: 11px;
}

.vh-social-feed__quote-text {
  display: -webkit-box;
  overflow: hidden;
  font-family: "Avenir Next", "Avenir", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.vh-social-feed__quote-media {
  position: relative;
  display: block;
  flex: 0 0 88px;
  width: 88px;
  background: var(--vh-social-skeleton);
}

.vh-social-feed__quote-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vh-social-feed__quote-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 50%;
  background: rgb(0 0 0 / 62%);
  color: #fff;
  transform: translate(-50%, -50%);
}

.vh-social-feed__line {
  width: 96%;
  height: 14px;
}

.vh-social-feed__line--medium {
  width: 85%;
}

.vh-social-feed__line--short {
  width: 58%;
}

.vh-social-feed__media {
  margin-top: 14px;
  margin-left: 56px;
  overflow: hidden;
  border: 1px solid var(--vh-social-border);
  border-radius: 10px;
}

.vh-social-feed__media-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1.8 / 1;
  border-radius: 0;
}

.vh-social-feed__media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--vh-social-border);
}

.vh-social-feed__media-grid[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.vh-social-feed__media-grid img,
.vh-social-feed__media-grid video {
  display: block;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: contain;
  background: var(--vh-social-skeleton);
}

.vh-social-feed__media-grid img {
  object-fit: cover;
}

.vh-social-feed__media-grid[data-count="1"] img,
.vh-social-feed__media-grid[data-count="1"] video {
  aspect-ratio: 1.8 / 1;
}

.vh-social-feed__media-grid[data-count="1"] img {
  aspect-ratio: 1.8 / 1;
  object-fit: cover;
}

.vh-social-feed__video-preview {
  position: relative;
  display: block;
  color: #fff;
  background: var(--vh-social-skeleton);
}

.vh-social-feed__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 88%);
  border-radius: 50%;
  background: rgb(0 0 0 / 62%);
  box-shadow: 0 2px 12px rgb(0 0 0 / 30%);
  transform: translate(-50%, -50%);
  transition: background 120ms ease, transform 120ms ease;
}

.vh-social-feed__video-preview:hover .vh-social-feed__play,
.vh-social-feed__video-preview:focus-visible .vh-social-feed__play {
  background: rgb(0 0 0 / 78%);
  transform: translate(-50%, -50%) scale(1.06);
}

.vh-social-feed__video-preview:focus-visible {
  outline: 3px solid var(--vh-social-accent, #7c3aed);
  outline-offset: -3px;
}

.vh-social-feed__post-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--vh-social-border);
}

.vh-social-feed__topic {
  display: inline-block;
  flex: none;
  max-width: 38%;
  overflow: hidden;
  padding: 1px 0;
  color: var(--vh-social-topic-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.vh-social-feed__wire-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--vh-social-muted);
  font-size: 11px;
  white-space: nowrap;
}

.vh-social-feed__wire-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--vh-social-muted);
  font-size: 12px;
  line-height: 1.5;
}

.vh-social-feed__wire-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.vh-social-feed__wire-divider {
  color: var(--vh-dark-text-muted, #b8bec7);
}

.vh-social-feed__wire-meta time {
  white-space: nowrap;
}

.vh-social-feed__post-footer .vh-social-feed__actions {
  margin: 13px 0 0;
}

.vh-social-feed__post-footer .vh-social-feed__action {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.vh-social-feed__message {
  padding: 35px 20px;
  border: 1px solid var(--vh-social-border);
  border-radius: 12px;
  text-align: center;
}

.vh-social-feed__message p {
  margin: 0 0 12px;
}

.vh-social-feed__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 18px 0 0 56px;
  color: var(--vh-social-muted);
}

.vh-social-feed__action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 19px;
  height: 20px;
}

.vh-social-feed__count {
  width: 19px;
  height: 10px;
}

.vh-social-feed__rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.vh-social-feed__panel {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--vh-social-border);
  border-radius: 16px;
  background: var(--bg-elevated, var(--vh-color-surface-raised, #fff));
}

.vh-social-feed__panel-title {
  width: 65%;
  height: 18px;
  margin-bottom: 6px;
}

.vh-social-feed__panel-line {
  width: 95%;
  height: 13px;
}

.vh-social-feed__panel-line--short {
  width: 73%;
}

.vh-social-feed__categories-panel {
  gap: 0;
  padding: 20px 18px 10px;
}

.vh-social-feed__categories-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 76px);
  align-items: baseline;
  gap: 8px;
  padding-inline: 6px;
  padding-bottom: 12px;
}

.vh-social-feed__categories-heading h2 {
  grid-column: 1 / 3;
  min-width: 0;
  margin: 0;
  color: var(--vh-dark-accent-text-secondary, #7c3aed);
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
}

.vh-social-feed__categories-heading>span {
  grid-column: 3;
  justify-self: end;
  color: var(--vh-social-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
}

.vh-social-feed__all {
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--vh-social-border);
  border-radius: 7px;
  background: var(--vh-color-surface-raised, #fff);
  color: var(--vh-color-accent-text, #351c71);
  font: 600 12px/1.2 "TT Norms Pro", "Avenir Next", sans-serif;
  cursor: pointer;
}

.vh-social-feed__all[aria-pressed="true"] {
  border-color: var(--vh-social-purple);
  background: var(--vh-social-purple);
  color: #fff;
}

.vh-social-feed__category-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vh-social-feed__category-list li {
  min-width: 0;
  border-top: 1px solid var(--vh-social-border);
}

.vh-social-feed__category-list li:has(.vh-social-feed__category[aria-pressed="true"]),
.vh-social-feed__category-list li:has(.vh-social-feed__category[aria-pressed="true"])+li,
.vh-social-feed__category-list li:has(.vh-social-feed__category:hover),
.vh-social-feed__category-list li:has(.vh-social-feed__category:hover)+li {
  border-top-color: transparent;
}

.vh-social-feed__category-loading {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  min-height: 68px;
  padding: 5px 6px;
}

.vh-social-feed__category-loading .vh-social-feed__skeleton {
  width: 100%;
  height: 16px;
}

.vh-social-feed__category-loading .vh-social-feed__skeleton:first-child {
  height: 38px;
}

.vh-social-feed__category {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(0, 76px);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 5px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.vh-social-feed__category:hover,
.vh-social-feed__category[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--vh-social-topic-color) 30%, white);
  background: color-mix(in srgb, var(--vh-social-topic-color) 7%, var(--vh-dark-surface-raised, white));
}

.vh-social-feed__category-rank {
  color: var(--vh-social-topic-color);
  font-size: 43px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}

.vh-social-feed__category-name {
  min-width: 0;
  overflow: hidden;
  color: var(--vh-social-topic-color);
  font-size: 15px;
  font-weight: 700;
  line-height: 19px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vh-social-feed__category-score {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  color: var(--vh-social-topic-color);
  min-width: 0;
  white-space: nowrap;
}

.vh-social-feed__category-count {
  max-width: 100%;
  font-size: 21px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.vh-social-feed__category-rank[data-double="true"] {
  font-size: 37px;
}

.vh-social-feed__skeleton {
  position: relative;
  display: block;
  flex: none;
  max-width: 100%;
  overflow: hidden;
  border-radius: 5px;
  background: var(--vh-social-skeleton);
}

.vh-social-feed__skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 25%, var(--vh-dark-skeleton-shine, rgb(255 255 255 / 72%)) 50%, transparent 75%);
  animation: vh-social-feed-shimmer 1.7s ease-in-out infinite;
}

@keyframes vh-social-feed-shimmer {
  to {
    transform: translateX(100%);
  }
}

@container votehub-element (max-width: 1140px) {
  .vh-social-feed__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .vh-social-feed__rail {
    display: none;
  }

  .vh-social-feed__toolbar-controls {
    grid-row: 1;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .vh-social-feed__search {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .vh-social-feed__toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .vh-social-feed__toggle-button {
    width: 100%;
  }

}

@container votehub-element (max-width: 780px) {
  .vh-social-feed__feed {
    height: clamp(520px, 72dvh, 740px);
  }

  .vh-social-feed__posts {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .vh-social-feed__post {
    padding: 16px;
  }

  .vh-social-feed__body,
  .vh-social-feed__post-text,
  .vh-social-feed__media,
  .vh-social-feed__actions,
  .vh-social-feed__post-footer {
    margin-left: 0;
  }

  .vh-social-feed__media {
    width: 100%;
  }

  .vh-social-feed__media-placeholder {
    aspect-ratio: 1.8 / 1;
  }

  .vh-social-feed__quote-media {
    flex-basis: 96px;
    width: 96px;
  }
}

@container votehub-element (max-width: 420px) {
  .vh-social-feed__quote-media {
    flex-basis: 76px;
    width: 76px;
  }

  .vh-social-feed__quote-text {
    -webkit-line-clamp: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-social-feed__skeleton::after {
    animation: none;
  }
}
/* Select the loading layout in CSS so shortcode and React skeletons agree. */
.vh-social-feed__desktop-only { display: contents; }
.vh-social-feed__mobile-only { display: none; }
@container votehub-element (max-width: 780px) {
  .vh-social-feed__mobile-only { display: contents; }
  .vh-social-feed__desktop-only { display: none; }
}

