/* Generated from 2026-us-house/index.html inline styles — do not edit by hand; run build-house-hub-page-css.js */
:root {
      color-scheme: dark;
    }

    html:has(body.house-hub-page) {
      background: #050608;
      overflow-x: hidden;
      max-width: 100%;
    }

    body {
      background: #0b0e13;
      color: #e5e7eb;
    }

    body.sleek-home {
      font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
      background: #050608;
      color: #e2e8f0;
    }

    body.sleek-home h1,
    body.sleek-home h2,
    body.sleek-home h3,
    body.sleek-home h4 {
      font-family: "Plus Jakarta Sans", "DM Sans", ui-sans-serif, system-ui, sans-serif;
    }

    body.sleek-home #mainHeader {
      position: relative;
      z-index: 50;
      background: rgba(5, 6, 8, 0.92);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(51, 65, 85, 0.45);
      overflow: visible;
    }

    body.sleek-home footer {
      background: #0a0c10 !important;
      border-top: 1px solid rgba(51, 65, 85, 0.45) !important;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    body.sleek-home .sleek-home-header-logo {
      transform: scale(1.18) translateY(1px);
      transform-origin: left center;
    }

    /* Hub seat bar layout (inline — works even if forecast-hub-map-ui.css is missing on deploy) */
    #houseHubSeatBar.pollsmax-hub-seat-bar,
    #govHubSeatBar.pollsmax-hub-seat-bar {
      display: flex !important;
      flex-direction: column !important;
      align-items: stretch !important;
      justify-content: flex-start !important;
      gap: 0 !important;
      min-height: 0 !important;
      position: relative !important;
      top: -16px !important;
    }

    #houseHubSeatBar .pollsmax-hub-seat-bar-party,
    #govHubSeatBar .pollsmax-hub-seat-bar-party {
      display: grid !important;
      grid-template-columns: 1fr auto 1fr !important;
      align-items: center !important;
      column-gap: 0.5rem !important;
      letter-spacing: normal !important;
      margin: 0 0 10px !important;
      padding: 0 !important;
      position: static !important;
      top: auto !important;
      bottom: auto !important;
      flex: 0 0 auto !important;
      order: 1 !important;
    }

    #houseHubSeatBar .pollsmax-hub-seat-bar-party .forecast-hub-bar-party-heading:first-of-type,
    #govHubSeatBar .pollsmax-hub-seat-bar-party .forecast-hub-bar-party-heading:first-of-type {
      justify-self: start !important;
    }

    #houseHubSeatBar .pollsmax-hub-seat-bar-party .forecast-hub-bar-party-heading:last-of-type,
    #govHubSeatBar .pollsmax-hub-seat-bar-party .forecast-hub-bar-party-heading:last-of-type {
      justify-self: end !important;
    }

    #houseHubSeatBar .pollsmax-hub-seat-bar-party .forecast-hub-bar-party-heading,
    #govHubSeatBar .pollsmax-hub-seat-bar-party .forecast-hub-bar-party-heading {
      letter-spacing: normal !important;
    }

    #houseHubSeatBar .pollsmax-hub-seat-bar-caption,
    #govHubSeatBar .pollsmax-hub-seat-bar-caption {
      display: inline-block !important;
      width: max-content !important;
      max-width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      position: relative !important;
      top: 2px !important;
      letter-spacing: 0 !important;
      font-kerning: normal !important;
      font-variant-numeric: normal !important;
      font-feature-settings: normal !important;
      font-size: 0.75rem !important;
      color: #64748b !important;
      text-align: center !important;
      line-height: 1.3 !important;
      flex: 0 0 auto !important;
      justify-self: center !important;
      grid-column: 2 !important;
      white-space: nowrap !important;
    }

    #houseHubSeatBar .pollsmax-hub-seat-bar-caption .eh-bar-caption-n,
    #houseHubSeatBar .pollsmax-hub-seat-bar-caption .eh-bar-caption-tail,
    #govHubSeatBar .pollsmax-hub-seat-bar-caption .eh-bar-caption-n,
    #govHubSeatBar .pollsmax-hub-seat-bar-caption .eh-bar-caption-tail {
      letter-spacing: inherit !important;
      font-variant-numeric: normal !important;
      font-feature-settings: normal !important;
    }

    #houseHubSeatBar .pollsmax-hub-seat-bar-rail,
    #govHubSeatBar .pollsmax-hub-seat-bar-rail {
      margin: 0 0 1.25rem !important;
      flex: 0 0 auto !important;
      order: 2 !important;
      position: relative !important;
    }

    @media (min-width: 768px) {
      body.house-hub-page .forecast-hub-map-stage,
      body.gov-hub-page .forecast-hub-map-stage {
        top: -25px !important;
      }

      body.house-hub-page .forecast-hub-map-legend-shell {
        margin-top: -41px !important;
      }

      body.gov-hub-page .forecast-hub-map-legend-shell {
        margin-top: -35px !important;
      }
    }

    body.house-hub-page .forecast-hub-seat-block {
      position: relative;
    }

    body.house-hub-page .house-hub-map-flow-box {
      position: relative;
      display: block;
      width: 100%;
      min-height: 0;
      clear: both;
    }

    body.house-hub-page .house-hub-map-zoom-spacer {
      display: none;
      width: 100%;
      margin-top: 0;
      pointer-events: none;
    }

    body.house-hub-page .house-hub-map-zoom-viewport {
      position: relative;
      width: 100%;
      overflow: hidden;
      z-index: 2;
      touch-action: none;
    }

    /* Desktop: match post–map-zoom clip geometry on first paint (prevents ~20px jump when zoom JS boots). */
    @media (min-width: 768px) {
      body.house-hub-page .house-hub-map-flow-box:has(#houseHubMapZoomViewport) .house-hub-map-zoom-spacer {
        display: block;
        height: 678px;
      }

      body.house-hub-page #houseHubMapZoomViewport {
        position: absolute;
        top: -1px;
        left: 0;
        width: 100%;
        height: 664px;
        overflow: hidden;
      }

      body.house-hub-page #houseHubMapZoomViewport #houseHubMapStage:not([data-vector-zoom="1"]) {
        transform: none;
      }

      /* Offsets live on the zoom viewport — avoid double-applying Senate stage top/margin. */
      body.house-hub-page #houseHubMapZoomViewport #houseHubMapStage.forecast-hub-map-stage {
        top: 0 !important;
        margin-top: 0 !important;
      }

      body.house-hub-page .house-hub-map-flow-box ~ .forecast-hub-map-legend-shell {
        margin-top: -41px !important;
        position: relative;
        z-index: 3;
      }
    }

    body.house-hub-page .house-hub-map-zoom-viewport.house-hub-map-zoom-viewport--absolute {
      position: absolute;
    }

    body.house-hub-page .house-hub-map-zoom-viewport:not(.house-hub-map-zoom-viewport--absolute) {
      overflow: visible;
    }

    body.house-hub-page .house-hub-map-flow-box:has(.house-hub-map-zoom-viewport--absolute) .house-hub-map-zoom-spacer {
      display: block;
    }

    body.house-hub-page .house-hub-map-zoom-viewport--active {
      cursor: default;
    }

    body.house-hub-page .house-hub-map-zoom-viewport--dragging {
      cursor: grabbing !important;
    }

    body.house-hub-page #houseHubMapZoomViewport.house-hub-map-zoom-viewport--active #houseHubMapStage:not([data-vector-zoom="1"]) {
      will-change: transform;
      backface-visibility: hidden;
    }

    body.house-hub-page #houseHubMapZoomViewport.house-hub-map-zoom-viewport--active #houseHubMapStage[data-vector-zoom="1"] {
      position: absolute;
      transform: none !important;
      width: auto !important;
      max-width: none !important;
      will-change: auto;
      backface-visibility: visible;
    }

    body.house-hub-page #houseHubMapZoomViewport.house-hub-map-zoom-viewport--active #houseHubMapStage[data-vector-zoom="1"] #houseCdMap {
      shape-rendering: geometricPrecision;
    }

    /* District borders: mild zoom thin. White outlines: stronger (--house-map-outline-stroke-scale). */
    body.house-hub-page #houseCdMap path.house-cd {
      stroke-width: calc(0.35 * var(--house-map-stroke-scale, 1));
    }

    body.house-hub-page #houseCdMap path.et-house-flip-outline:not([data-house-stroke-base]) {
      stroke-width: calc(var(--house-flip-outline-w, 1.35) * var(--house-map-outline-stroke-scale, 1)) !important;
    }

    body.house-hub-page #houseCdMap path.et-map-hover-outline:not([data-house-stroke-base]) {
      stroke-width: calc(var(--house-hover-outline-w, 1.75) * var(--house-map-outline-stroke-scale, 1)) !important;
    }

    @media (max-width: 767px) {
      /* No transform on stage — keeps SVG flip zebra + white outlines visible on iOS. */
      body.house-hub-page #houseHubMapZoomViewport.house-hub-map-zoom-viewport--mobile #houseHubMapStage {
        transform: none !important;
        width: auto !important;
        max-width: none !important;
      }

      body.house-hub-page #houseHubMapZoomViewport.house-hub-map-zoom-viewport--mobile g.et-house-flip-outline-layer {
        visibility: visible !important;
      }

      body.house-hub-page #houseHubMapZoomViewport.house-hub-map-zoom-viewport--mobile #houseHubMapStage[data-mobile-vector-zoom="1"],
      body.house-hub-page #houseHubMapZoomViewport.house-hub-map-zoom-viewport--mobile.house-hub-map-zoom-viewport--dragging #houseHubMapStage[data-mobile-vector-zoom="1"] {
        will-change: auto;
        backface-visibility: visible;
      }

      body.house-hub-page #houseHubMapZoomViewport.house-hub-map-zoom-viewport--mobile #houseHubMapStage[data-mobile-vector-zoom="1"] #houseCdMap {
        shape-rendering: geometricPrecision;
      }
    }

    body.house-hub-page .house-hub-map-zoom-steps {
      display: inline-flex;
      align-items: center;
      align-self: center;
      gap: 0;
      flex-shrink: 0;
      overflow: hidden;
      border-radius: 5px;
      border: 1px solid rgba(51, 65, 85, 0.85);
      height: calc(1.25rem + 2px);
    }

    body.house-hub-page .house-hub-map-zoom-btn {
      appearance: none;
      border: none;
      border-right: 1px solid rgba(51, 65, 85, 0.85);
      background: #0c1018;
      color: #e2e8f0;
      width: calc(1.32rem + 2px);
      height: calc(1.25rem + 2px);
      border-radius: 0;
      font-size: 0.875rem;
      font-weight: 700;
      line-height: 0;
      display: grid;
      place-items: center;
      cursor: pointer;
      padding: 0;
    }

    body.house-hub-page .house-hub-map-zoom-btn__glyph {
      display: block;
      line-height: 1;
      font-size: 0.95rem;
      font-weight: 700;
    }

    body.house-hub-page #houseHubMapZoomOut .house-hub-map-zoom-btn__glyph {
      transform: none;
    }

    body.house-hub-page #houseHubMapZoomToggleRow {
      display: flex;
      align-items: center;
      align-self: center;
    }

    body.house-hub-page .house-hub-map-zoom-btn:last-child {
      border-right: none;
    }

    body.house-hub-page .house-hub-map-zoom-btn:hover {
      background: #1e293b;
      color: #fff;
    }

    body.house-hub-page .house-hub-map-zoom-btn:focus-visible {
      outline: 2px solid #64748b;
      outline-offset: 2px;
    }

    body.house-hub-page .house-hub-map-zoom-steps[hidden] {
      display: none !important;
    }

    #houseHubSeatBar .pollsmax-hub-seat-bar-majority,
    #govHubSeatBar .pollsmax-hub-seat-bar-majority {
      position: absolute !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      top: 100% !important;
      margin: 0.35rem 0 0 !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 3px !important;
      width: max-content !important;
      max-width: 100% !important;
      pointer-events: none !important;
      color: #94a3b8 !important;
    }

    body.sleek-home .sleek-eyebrow {
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #64748b;
    }

    .pill {
      background: #0f172a;
      border: 1px solid #1e293b;
    }

    .sleek-chart-stage {
      position: relative;
      background-color: #0c0f14;
      border: 1px solid rgba(51, 65, 85, 0.5);
      border-radius: 0;
      padding: 0.5rem 0.65rem;
      overflow: visible;
    }

    .odds-chart-stage {
      padding-left: 0.5rem;
    }

    .sleek-chart-stage canvas {
      display: block;
    }

    .sleek-poll-sidebar {
      background: #0a0c10;
      border: 1px solid rgba(51, 65, 85, 0.5);
      border-radius: 0;
    }

    .sleek-poll-sidebar-head {
      background: #0f1218;
      border-bottom: none;
    }

    .sleek-poll-list>li,
    .sleek-poll-list>div {
      border-bottom: 1px solid rgba(51, 65, 85, 0.35);
    }

    .sleek-poll-list>li:last-child,
    .sleek-poll-list>div:last-child {
      border-bottom: none;
    }

    .sleek-poll-list>li {
      padding: calc(0.76rem - 1px) 0.75rem;
      border-radius: 0 !important;
      background: transparent !important;
      margin-bottom: 0 !important;
      transition: background 0.12s ease;
    }

    .sleek-poll-list>li:hover {
      background: rgba(15, 23, 42, 0.35) !important;
    }

    .sleek-poll-list .text-slate-400.text-center {
      padding: 1.75rem 0.75rem;
    }

    @media (min-width: 1024px) {
      body.house-hub-page .senate-search-left-col {
        align-self: stretch;
      }

      body.house-hub-page .senate-search-poll-sidebar.house-search-poll-sidebar--compact {
        height: auto !important;
        max-height: none !important;
        flex: 0 0 auto !important;
      }

      body.house-hub-page .senate-search-poll-sidebar.house-search-poll-sidebar--compact .sleek-poll-list {
        flex: 0 0 auto !important;
        min-height: 0 !important;
      }

      body.house-hub-page .senate-search-left-col+div:has(.house-search-poll-sidebar--compact) {
        height: auto !important;
        align-self: flex-start;
      }
    }

    select.sleek-select {
      border-radius: 0;
      cursor: pointer;
      border-bottom: 1px solid rgba(71, 85, 105, 0.9) !important;
      border-top: none !important;
      border-left: none !important;
      border-right: none !important;
      background: transparent !important;
      box-shadow: none !important;
      color: #e2e8f0;
      padding: 0.35rem 1.5rem 0.35rem 0;
      font-size: 0.875rem;
    }

    .search-poll-head-wrap {
      min-width: 0;
    }

    .search-poll-head-wrap>.border-b {
      padding-bottom: calc(1rem - 5px);
    }

    .search-poll-head-text-row {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 1.35rem;
      min-width: 0;
      margin-top: 7px;
    }

    .search-poll-head-text-col {
      min-width: 0;
      flex: 1;
      display: flex;
      flex-direction: column;
      margin-left: -4px;
    }

    .search-poll-flag-rail {
      display: none;
      flex-shrink: 0;
      line-height: 0;
      align-self: flex-start;
    }

    .search-poll-flag-rail.is-visible {
      display: block;
      margin-top: 5px;
    }

    .search-poll-flag-img {
      display: block;
      width: auto;
      height: 34px;
      max-height: 34px;
      max-width: 52px;
      border-radius: 3px;
    }

    .hub-search-trend-eyebrow {
      font-variant: all-small-caps;
      letter-spacing: 0.14em;
      font-weight: 600;
      font-size: 0.875rem;
      color: #64748b;
      line-height: 1.2;
      position: relative;
      top: 1px;
    }

    .search-poll-state-heading {
      margin-top: 5px;
      position: relative;
      top: 0px;
      font-size: 1.1875rem;
      line-height: 1.75rem;
    }

    .search-poll-state-heading #entityLink .house-search-district-state {
      transition: color 0.2s ease;
    }

    .search-poll-state-heading #entityLink .house-search-district-tail {
      color: #cbd5e1;
      font-weight: 300;
      letter-spacing: -0.02em;
      transition: color 0.2s ease;
    }

    body.house-hub-page .search-poll-state-heading.group:hover #entityLink {
      color: #94a3b8;
    }

    body.house-hub-page .search-poll-state-heading.group:hover #entityLink .house-search-district-state {
      color: #94a3b8;
    }

    body.house-hub-page .search-poll-state-heading.group:hover #entityLink .house-search-district-tail {
      color: #475569;
    }

    .search-poll-state-heading #entityArrow {
      transform: translateX(2px);
    }

    .search-poll-state-heading.group:hover #entityArrow {
      transform: translateX(4.7px);
    }

    .senate-right-divider-inset {
      position: relative;
      border-bottom: none !important;
    }

    /* Content nudge: moves headings, charts, internal borders, hover UI; full-width ::after rules stay on the section (untransformed). */
    .senate-right-content-nudge-up {
      transform: translateY(-2px);
    }

    /* translate3d helps compositing; poll row gains an extra 1px up via margin (see HTML). */
    .senate-search-polls-content-nudge {
      transform: translate3d(0, -3px, 0);
      will-change: transform;
      --et-hub-search-chart-margin-adjust: -8px;
      /* Bottom align via ET.HUB_SEARCH_CHART_BOTTOM_ALIGN_POLLS_V1 in shared.js; trim unused when enabled */
      --et-hub-search-chart-height-trim: 0px;
    }

    section.senate-search-polls-section {
      margin-top: 31px;
    }

    /* Prerendered search shell — no full-section "Loading…" overlay while chart JS loads. */
    body.house-hub-page section.senate-search-polls-section.pollsmax-lazy-section-host::before {
      content: none;
      display: none;
    }

    /* One bottom rule only: main grid already has border-b; section ::after sat ~1px higher = double line. */
    section.senate-search-polls-section.senate-right-divider-inset::after {
      content: none;
    }

    /* Search US House Polls: rule from column divider rightward only (aligned via --senate-search-rule-left). */
    .senate-search-polls-rule-wrap {
      position: relative;
      padding-top: calc(2rem + 7px);
      min-height: 1px;
    }

    .senate-search-polls-rule-wrap::after {
      content: "";
      position: absolute;
      left: var(--senate-search-rule-left, 0px);
      right: -1rem;
      bottom: 0;
      height: 1px;
      background: rgba(30, 41, 59, 0.8);
      z-index: 1;
    }

    @media (min-width: 1024px) {
      body.house-hub-page:not(.forecast-hub-races-aside-collapsed) .senate-races-aside.house-races-aside--full {
        position: relative;
        z-index: 1;
      }

      body.house-hub-page .senate-search-polls-section {
        position: relative;
        z-index: 2;
      }

      body.house-hub-page .senate-search-polls-rule-wrap {
        z-index: 3;
      }

      body.house-hub-page .senate-search-polls-rule-wrap::after {
        z-index: 10;
      }

      body.house-hub-page .house-races-list-bottom-mask {
        z-index: 2;
      }
    }

    @media (min-width: 640px) {
      .senate-search-polls-rule-wrap::after {
        right: -1.5rem;
      }
    }

    @media (min-width: 1024px) {
      .senate-search-polls-rule-wrap::after {
        right: -2.5rem;
      }

      body.house-hub-page:not(.forecast-hub-races-aside-collapsed) .senate-search-polls-rule-wrap::after {
        left: var(--house-search-rule-left-bleed, var(--senate-search-rule-left, 0px));
      }

      /* Instant full-bleed left on first paint; JS refines via --house-search-rule-left-bleed. */
      body.house-hub-page:not(.forecast-hub-races-aside-collapsed):not(.house-hub-search-rule-synced) .senate-search-polls-rule-wrap::after {
        left: 50% !important;
        right: auto !important;
        width: 3000px !important;
        max-width: none !important;
        margin-left: -1500px !important;
      }
    }

    @media (min-width: 1280px) {
      .senate-search-polls-rule-wrap::after {
        right: -3.5rem;
      }
    }

    /* Under race list: past prior right edge (+38px; 2px shorter on right than +40). */
    .hub-aside-races-bottom-rule {
      height: 1px;
      margin-top: 10px;
      margin-left: -1rem;
      width: calc(100% + 1rem + 38px);
      max-width: none;
      background: rgba(30, 41, 59, 0.8);
    }

    @media (min-width: 640px) {
      .hub-aside-races-bottom-rule {
        margin-left: -1.5rem;
        width: calc(100% + 1.5rem + 38px);
      }
    }

    @media (min-width: 1024px) {
      .hub-aside-races-bottom-rule {
        margin-left: -2.5rem;
        width: calc(100% + 2.5rem + 38px);
      }
    }

    @media (min-width: 1280px) {
      .hub-aside-races-bottom-rule {
        margin-left: -3.5rem;
        width: calc(100% + 3.5rem + 38px);
      }
    }

    /* All Senate Races heading rule: full width of head wrap (15px shorter on right than former bleed) */
    .hub-aside-head-rule {
      position: relative;
      border-bottom: none !important;
    }

    .hub-aside-head-rule::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 1px;
      background: rgba(30, 41, 59, 0.8);
    }

    /* Full-width rule from the aside vertical divider to the right column edge */
    .senate-right-divider-inset::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 1px;
      background: rgba(30, 41, 59, 0.8);
    }

    .senate-race-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: .75rem;
      padding: .75rem .35rem;
      border-bottom: 1px solid rgba(51, 65, 85, .35);
      transition: background .15s ease;
    }

    .senate-race-row:last-child {
      border-bottom: none;
    }

    .senate-race-row:hover {
      background: rgba(15, 23, 42, .38);
    }

    .senate-race-flag {
      width: 36px;
      height: 24px;
      object-fit: cover;
      border: none;
      border-radius: 2px;
    }

    .senate-race-cands>div+div {
      margin-top: -2px;
    }

    .senate-race-cands>div:first-child {
      position: relative;
      top: -2px;
    }

    .senate-race-cands>div:last-child {
      position: relative;
      top: 2px;
    }

    .senate-race-cands>div:only-child {
      position: relative;
      top: 0 !important;
    }

    .senate-race-state {
      transition: color .15s ease;
    }

    .senate-race-row:hover .senate-race-state {
      color: #cbd5e1;
    }

    .senate-race-row--static {
      cursor: pointer;
    }

    .senate-races-aside {
      container-type: inline-size;
      container-name: senate-races-aside;
    }

    .senate-race-cands-hub {
      font-size: 0.8125rem;
      line-height: 1.15;
    }

    .senate-race-cand-line {
      display: flex;
      flex-wrap: nowrap;
      justify-content: flex-end;
      align-items: baseline;
      gap: 0.2rem;
      white-space: nowrap;
    }

    .senate-race-cand-line+.senate-race-cand-line {
      margin-top: -1px;
    }

    /* Hub race-list sort row narrow layout: see et-sleek-header-compact-style in shared.js */

    .senate-sort-btn {
      color: #64748b;
      font-size: .72rem;
      font-weight: 600;
      letter-spacing: .14em;
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      gap: .25rem;
      cursor: pointer;
      user-select: none;
    }

    .senate-sort-btn:hover {
      color: #94a3b8;
    }

    .senate-sort-arrow {
      font-size: .64rem;
      line-height: 1;
    }

    .senate-races-sort-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .senate-races-sort-metrics {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-left: auto;
      min-width: 0;
      flex: 1;
    }

    .senate-sort-cands-col {
      flex: 1;
      min-width: 0;
      display: flex;
      justify-content: flex-end;
    }

    .senate-races-sort-row .senate-sort-margin {
      width: 5.5rem;
      flex-shrink: 0;
      justify-content: flex-end;
    }

    @media (min-width: 1024px) {
      .senate-races-aside {
        position: relative;
      }

      /* Full-height aside rule shows immediately while HTML streams; JS swaps to section vline. */
      body.house-hub-page:not(.forecast-hub-races-aside-collapsed):not(.house-hub-vline-synced) .senate-races-aside::after {
        display: block;
      }

      body.house-hub-page:not(.forecast-hub-races-aside-collapsed).house-hub-vline-synced .senate-races-aside::after {
        display: none;
      }

      body.house-hub-page:not(.forecast-hub-races-aside-collapsed).house-hub-vline-synced .house-hub-main-column-vline {
        display: block;
      }

      .senate-races-aside::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: -15px;
        width: 1px;
        background: rgba(30, 41, 59, 0.8);
      }

      .senate-right-content {
        margin-left: 2px;
        margin-right: -2px;
      }
    }

    .senate-map-divider {
      position: relative;
    }

    /* Negative right pulls line to viewport edge (matches main grid px-4 / sm:px-6 / lg:px-10 / xl:px-14). */
    .senate-map-divider::after {
      content: "";
      position: absolute;
      left: 15px;
      right: -1rem;
      bottom: 0;
      height: 1px;
      background: rgba(30, 41, 59, 0.8);
    }

    #houseHubSimulationChartsSection.senate-right-divider-inset::after {
      right: -1rem;
    }

    /* Seat distribution section bottom rule — same inset left + full bleed right as map */
    .senate-right-content>section.senate-right-divider-inset:first-of-type::after {
      left: 15px;
      right: -1rem;
    }

    @media (min-width: 640px) {

      .senate-map-divider::after,
      .senate-right-content>section.senate-right-divider-inset:first-of-type::after,
      #houseHubSimulationChartsSection.senate-right-divider-inset::after {
        right: -1.5rem;
      }
    }

    /* Meet aside ::after vertical rule: cancel .senate-right-content margin-left */
    @media (min-width: 1024px) {

      .senate-map-divider::after,
      .senate-right-content>section.senate-right-divider-inset:first-of-type::after {
        left: 13px;
        right: -2.5rem;
      }

      .senate-right-divider-inset::after {
        left: -2px;
      }

      body.house-hub-page #houseForecastBucketsSection.senate-right-divider-inset::after {
        left: var(--house-hub-section-rule-left, 13px);
        right: -2.5rem;
      }

      #houseHubSimulationChartsSection.senate-right-divider-inset::after {
        left: var(--house-hub-section-rule-left, 13px);
        right: -2.5rem;
      }
    }

    @media (min-width: 1280px) {

      .senate-map-divider::after,
      .senate-right-content>section.senate-right-divider-inset:first-of-type::after,
      #houseHubSimulationChartsSection.senate-right-divider-inset::after {
        right: -3.5rem;
      }
    }

    #senateTable li>div:last-child>span,
    #houseTable li>div:last-child>span {
      font-size: .95rem !important;
      padding: .55rem .65rem !important;
      border-radius: .48rem !important;
    }

    #mapTip {
      position: fixed;
      pointer-events: none;
      z-index: 50;
      background: #0b1220;
      border: 1px solid #1f2937;
      padding: .68rem .84rem calc(.68rem + 2px) .84rem;
      border-radius: 0;
      box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
      font-size: 1rem;
      opacity: 0;
      visibility: hidden;
    }

    body.house-hub-page #mapTip.eh-map-tip--no-polls {
      min-width: 228px;
      width: 228px;
      max-width: min(228px, calc(100vw - 24px));
    }

    #mapTip .font-semibold {
      font-size: 1.04rem;
    }

    #mapTip .text-sm {
      font-size: .97rem;
      line-height: 1.3;
    }

    #houseCdMap {
      display: block;
      width: 100%;
      max-width: 1178px;
      height: auto;
      aspect-ratio: 1000 / 600;
      margin: 0 auto;
    }

    body.house-hub-page #houseCdMap {
      height: 664px;
      aspect-ratio: auto;
    }

    #senateTable li>div:last-child,
    #houseTable li>div:last-child {
      border: none !important;
    }

    /* Header nav dropdowns (same as home) */
    body.sleek-home .sleek-nav-dropdown {
      list-style: none;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      width: 10rem;
      max-width: min(100vw - 1.5rem, 10rem);
      background: #0a0c10;
      border: 1px solid rgba(51, 65, 85, 0.5);
      border-radius: 0;
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
      font-size: 0.875rem;
      font-weight: 500;
      line-height: 1.32;
    }

    body.sleek-home .sleek-nav-dropdown li {
      border-bottom: 1px solid rgba(51, 65, 85, 0.35);
    }

    body.sleek-home .sleek-nav-dropdown li:last-child {
      border-bottom: none;
    }

    body.sleek-home .sleek-nav-dropdown a {
      display: block;
      padding: 0.5rem 0.55rem;
      color: #e2e8f0;
      text-decoration: none;
      text-align: left;
      transition: background 0.12s ease, color 0.12s ease;
    }

    body.sleek-home .sleek-nav-dropdown a:hover {
      background: rgba(15, 23, 42, 0.5);
      color: #f8fafc;
    }

    body.sleek-home .sleek-nav-dropdown a.sleek-nav-dropdown-lead {
      font-weight: 600;
      letter-spacing: 0.01em;
    }

    html:not([data-pollsmax-theme="light"]) body.sleek-home .sleek-nav-dropdown a.sleek-nav-dropdown-lead {
      background: var(--pm-nav-dropdown-lead-bg, #181d26);
      color: #f1f5f9;
    }

    html:not([data-pollsmax-theme="light"]) body.sleek-home .sleek-nav-dropdown a.sleek-nav-dropdown-lead:hover {
      background: var(--pm-nav-dropdown-lead-bg-hover, #232c38);
      color: #fff;
    }

    body.sleek-home .sleek-nav-dropdown--races {
      width: 9rem;
      max-width: min(100vw - 1.5rem, 9rem);
    }

    @media (prefers-reduced-motion: reduce) {
      body.sleek-home .sleek-nav-dropdown {
        transition: opacity 0.12s ease, visibility 0.12s !important;
        transform: none !important;
      }
    }

    body.house-hub-page .eh-head-collapse-btn {
      position: absolute;
      z-index: 2;
      right: 1rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      margin: 0;
      border: none;
      background: transparent;
      color: #94a3b8;
      cursor: pointer;
      line-height: 0;
      transition: color 0.12s ease;
    }

    body.house-hub-page .eh-head-collapse-btn:hover {
      color: #f8fafc;
    }

    body.house-hub-page .eh-head-collapse-btn:focus-visible,
    body.house-hub-page .forecast-hub-aside-collapse-toggle:focus-visible {
      outline: 2px solid #a855f7;
      outline-offset: 3px;
      border-radius: 2px;
    }

    body.house-hub-page .eh-head-collapse-btn .eh-head-chevron {
      display: block;
      width: 1.5rem;
      height: 1.5rem;
    }

    body.house-hub-page .eh-head-collapse-btn--page {
      display: none !important;
    }

    body.house-hub-page .eh-head-collapse-btn--strip {
      top: 50%;
      transform: translateY(-50%);
      display: none;
    }

    body.house-hub-page .sleek-sitelinks-strip--forecast-hub .eh-head-collapse-btn--strip {
      position: static;
      top: auto;
      transform: none;
    }

    body.house-hub-page.forecast-hub-page-head--collapsed .eh-head-collapse-btn--page {
      display: none;
    }

    body.house-hub-page.forecast-hub-page-head--collapsed .eh-head-collapse-btn--strip {
      display: inline-flex;
    }

    body.house-hub-page.forecast-hub-page-head--collapsed .forecast-hub-page-head {
      display: none;
    }

    body.house-hub-page .sleek-sitelinks-strip--forecast-hub {
      position: relative;
    }

    body.house-hub-page .sleek-sitelinks-strip .forecast-hub-head-expand-slot {
      display: none;
      margin-left: auto;
      flex-shrink: 0;
      align-items: center;
    }

    body.house-hub-page.forecast-hub-page-head--collapsed .sleek-sitelinks-strip .forecast-hub-head-expand-slot {
      display: inline-flex;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero[data-forecast-hub-accent="house"] {
      border-bottom: 3px solid #a855f7;
      background-color: #050608;
      background-image: linear-gradient(0deg,
          rgba(168, 85, 247, 0.24) 0%,
          rgba(168, 85, 247, 0.12) 22%,
          rgba(168, 85, 247, 0.045) 52%,
          #050608 80%,
          #050608 100%);
    }

    html[data-pollsmax-theme="light"] body.house-hub-page .forecast-hub-page-head--forecast-hero[data-forecast-hub-accent="house"] {
      border-bottom: 3px solid #a855f7;
      background-color: #ffffff;
      background-image: var(--pm-light-glow-purple-soft, linear-gradient(0deg, rgba(168, 85, 247, 0.12) 0%, rgba(168, 85, 247, 0.06) 22%, rgba(168, 85, 247, 0.022) 52%, #ffffff 80%, #ffffff 100%));
    }

    /* Desktop hero layout — mobile spacing comes from forecast-hub-head-hero.css */
    @media (min-width: 768px) {
    body.house-hub-page .forecast-hub-page-head--forecast-hero .state-race-page-head-pad {
      padding-top: 1.35rem;
      padding-bottom: 1.5rem;
      overflow: visible;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .state-race-page-head-text--with-detail {
      display: block;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-top {
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      gap: 1rem 1.75rem;
      margin-bottom: 0;
      overflow: visible;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-right.forecast-hub-head-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: space-between;
      align-self: stretch;
      flex: 0 0 auto;
      gap: 0.85rem 1rem;
      margin-left: auto;
      min-height: 100%;
      transform: translateY(9px);
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-identity {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      min-width: 0;
      flex: 1 1 auto;
      text-align: left;
      align-self: flex-end;
      margin-right: auto;
      transform: translateY(4px);
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-flag-row {
      display: flex;
      align-items: center;
      gap: calc(0.65rem + 3px);
      margin: 0;
      font-size: clamp(1.9rem, 3.65vw, 2.35rem);
      line-height: 1.2;
      transform: none;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-state {
      margin: 0;
      font-family: "Plus Jakarta Sans", "DM Sans", ui-sans-serif, system-ui, sans-serif;
      font-size: 1em;
      font-weight: 800;
      letter-spacing: -0.02em;
      line-height: 1.2;
      color: #fff;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-race.forecast-hub-head-eyebrow {
      margin: 0 0 0.55rem;
      padding: 0;
      transform: none;
      font-family: "Plus Jakarta Sans", "DM Sans", ui-sans-serif, system-ui, sans-serif;
      font-size: clamp(0.95rem, 1.85vw, 1.12rem);
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      line-height: 1.2;
      color: #94a3b8;
      text-align: left;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary.forecast-hub-head-election-details {
      flex: 0 0 auto;
      align-self: flex-end;
      width: auto;
      padding-top: 0;
      margin-top: auto;
      margin-left: 0;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-detail-row {
      display: block;
      margin: 0;
      width: auto;
      text-align: right;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-toggle {
      margin: 0 !important;
      margin-top: 0 !important;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-control--chevron-right {
      flex-direction: row;
      gap: 0.4rem;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-more {
      width: 100%;
      min-width: 0;
      margin-top: 0.85rem;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-more .state-race-page-more-panel {
      margin-top: 0.65rem;
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-chevron {
      transform: rotate(180deg);
    }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-toggle[aria-expanded="true"] .state-race-page-more-chevron {
      transform: rotate(0deg);
    }

    body.house-hub-page .forecast-hub-page-head .forecast-hub-page-head-text .forecast-hub-head-more-toggle {
      grid-column: 2;
      grid-row: 2;
      justify-self: end;
      align-self: baseline;
    }
    }

    @media (min-width: 768px) and (max-width: 900px) {
      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-top {
        flex-wrap: wrap;
        align-items: flex-end;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-identity {
        flex: 1 1 auto;
        min-width: min(100%, 12rem);
        margin-right: 0;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-right.forecast-hub-head-right {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: flex-end;
        gap: 0.75rem 1rem;
      }

    body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary.forecast-hub-head-election-details {
        margin-top: 0;
      }
    }

    @media (min-width: 640px) {
      body.house-hub-page .eh-head-collapse-btn {
        right: 1.5rem;
      }
    }

    @media (min-width: 1024px) {
      body.house-hub-page .eh-head-collapse-btn {
        right: 2.5rem;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .forecast-hub-page-head .rf-head-identity--title-fit {
        overflow: visible;
        min-width: 0;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .forecast-hub-page-head .rf-head-identity--title-fit .rf-head-race {
        position: relative;
        z-index: 0;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .forecast-hub-page-head .rf-head-identity--title-fit .rf-head-flag-row {
        position: relative;
        z-index: 2;
        overflow: visible;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .forecast-hub-page-head .rf-head-state:not(.rf-head-state--wrap) {
        white-space: nowrap;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .forecast-hub-page-head .rf-head-state--wrap {
        white-space: normal;
        overflow-wrap: anywhere;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .forecast-hub-page-head .forecast-hub-head-align-text,
      body.forecast-hub-races-aside-collapsed.house-hub-page .forecast-hub-page-head .state-race-page-more-panel,
      body.forecast-hub-races-aside-collapsed.house-hub-page .forecast-hub-page-head .state-race-page-more-panel.is-open {
        margin-left: var(--forecast-hub-head-content-left, 0);
        width: var(--forecast-hub-head-content-width, 100%);
        max-width: var(--forecast-hub-head-content-width, 100%);
        box-sizing: border-box;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page main>.grid,
      body.forecast-hub-races-aside-collapsed.house-hub-page main>.forecast-hub-page-grid {
        grid-template-columns: minmax(0, 1fr);
        overflow-x: visible !important;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-right-content {
        grid-column: 1 / -1 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100%;
        max-width: min(1178px, 100%);
        overflow-x: visible !important;
        --house-hub-section-rule-left: 0px !important;
      }

      /* Drop aside-era left inset so map / charts / search center like Senate hub. */
      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-right-content .forecast-hub-map-head-area,
      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-right-content .senate-map-divider > .sleek-map-pane > div[class*="pl-4"],
      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-right-content > #houseForecastBucketsSection,
      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-right-content > #houseHubSimulationChartsSection,
      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-right-content .senate-search-polls-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .forecast-hub-aside-expand-row {
        display: flex;
        transform: translate(-2px, 5px);
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-map-divider::after,
      body.forecast-hub-races-aside-collapsed.house-hub-page .forecast-hub-map-legend-shell--collapsed .forecast-hub-map-below-rule::after,
      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-right-content>section.senate-right-divider-inset:first-of-type::after,
      body.forecast-hub-races-aside-collapsed.house-hub-page #houseForecastBucketsSection.senate-right-divider-inset::after,
      body.forecast-hub-races-aside-collapsed.house-hub-page #houseHubSimulationChartsSection.senate-right-divider-inset::after {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
      }

      /* Line above Search House Polls (buckets/charts bottom rule): allow viewport bleed. */
      body.forecast-hub-races-aside-collapsed.house-hub-page #houseForecastBucketsSection.senate-right-divider-inset,
      body.forecast-hub-races-aside-collapsed.house-hub-page #houseHubSimulationChartsSection.senate-right-divider-inset,
      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-search-polls-section,
      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-search-polls-rule-wrap {
        overflow: visible !important;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-search-polls-rule-wrap::after {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-search-polls-rule-wrap {
        padding-top: calc(2rem + 3px);
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-search-left-col,
      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-search-left-col+div {
        height: auto !important;
        max-height: none !important;
        align-self: flex-start;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-search-poll-sidebar {
        height: auto !important;
        max-height: none !important;
        flex: none !important;
      }

      body.forecast-hub-races-aside-collapsed.house-hub-page .senate-search-poll-sidebar .sleek-poll-list {
        flex: 0 0 auto !important;
        flex-grow: 0 !important;
        min-height: 0 !important;
      }
    }

    @media (min-width: 1280px) {
      body.house-hub-page .eh-head-collapse-btn {
        right: 3.5rem;
      }
    }

    html[data-pollsmax-theme="light"] body.house-hub-page .eh-head-collapse-btn {
      color: #64748b;
    }

    html[data-pollsmax-theme="light"] body.house-hub-page .eh-head-collapse-btn:hover {
      color: #0f172a;
    }

    body.house-hub-page .house-hub-main {
      position: relative;
    }

    body.house-hub-page .house-hub-main-column-vline {
      display: none;
      position: absolute;
      width: 1px;
      background: rgba(30, 41, 59, 0.8);
      pointer-events: none;
      z-index: 5;
    }

    body.house-hub-page .senate-races-aside.house-races-aside--full {
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    @media (min-width: 1024px) {
      body.house-hub-page:not(.forecast-hub-races-aside-collapsed) .senate-races-aside.house-races-aside--full {
        align-self: start;
        overflow: hidden;
        padding-bottom: 0;
        box-sizing: border-box;
      }

      body.house-hub-page:not(.forecast-hub-races-aside-collapsed) .hub-aside-races-bottom-rule {
        display: none;
      }

      body.house-hub-page:not(.forecast-hub-races-aside-collapsed) .house-races-aside-body--scroll {
        overflow: hidden;
      }

      body.house-hub-page:not(.forecast-hub-races-aside-collapsed) .house-races-list-scroll-wrap--active {
        overflow: hidden;
      }
    }

    body.house-hub-page .senate-races-aside.house-races-aside--full>.hub-aside-head-rule {
      flex-shrink: 0;
    }

    body.house-hub-page .house-races-aside-body--scroll {
      display: flex;
      flex-direction: column;
      min-height: 0;
      flex: 1 1 auto;
    }

    body.house-hub-page .house-races-sort-row--sticky {
      flex-shrink: 0;
      z-index: 4;
      background: #050608;
      padding-top: 4px;
      padding-bottom: 8px;
    }

    html[data-pollsmax-theme="light"] body.house-hub-page .house-races-sort-row--sticky {
      background: #f8fafc;
    }

    body.house-hub-page .house-races-list-scroll-wrap {
      position: relative;
      flex: 1 1 auto;
      min-height: 0;
      max-height: 100%;
      display: flex;
      flex-direction: column;
    }

    body.house-hub-page #allHouseRaceRows.house-races-list--scroll {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      padding-right: 2px;
    }

    /* One row of scroll slack so the last district (WY-AL) clears the bottom mask */
    @media (min-width: 1024px) {
      body.house-hub-page:not(.forecast-hub-races-aside-collapsed) #allHouseRaceRows.house-races-list--scroll {
        padding-bottom: 56px;
        scroll-padding-bottom: 56px;
      }
    }

    body.house-hub-page .house-races-list-bottom-mask {
      display: none;
      position: absolute;
      left: 0;
      right: 2px;
      bottom: 0;
      height: 50px;
      pointer-events: none;
      z-index: 2;
      background: #050608;
    }

    @media (min-width: 1024px) {
      body.house-hub-page:not(.forecast-hub-races-aside-collapsed) .house-races-list-bottom-mask {
        display: block;
      }

      body.house-hub-page:not(.forecast-hub-races-aside-collapsed):not(.house-hub-aside-scroll-ready) .house-races-list-bottom-mask {
        display: none;
      }
    }

    html[data-pollsmax-theme="light"] body.house-hub-page .house-races-list-bottom-mask {
      background: #f8fafc;
    }

    body.house-hub-page .house-hub-chip-dash,
    body.house-hub-page .house-hub-aside-dash {
      color: #64748b;
      font-size: 0.8125rem;
      line-height: 1.15;
      font-weight: 400;
    }

    body.house-hub-page .senate-race-cands-col .house-hub-aside-dash {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      width: 100%;
      min-height: 30px;
    }

    body.house-hub-page .senate-race-rating-col .house-hub-chip-dash {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      width: 100%;
    }

    body.house-hub-page .house-buckets-scroll {
      display: flex;
      gap: 0;
      overflow-x: auto;
      align-items: stretch;
      width: 100%;
      padding-bottom: 0.35rem;
    }

    body.house-hub-page .house-bucket-col {
      min-width: 0;
      width: auto;
      flex: 1 1 0;
      border: 1px solid rgba(51, 65, 85, 0.5);
      background: #0a0c10;
      transition: flex-grow 0.18s ease;
      container-type: inline-size;
      container-name: house-bucket-col;
    }

    body.house-hub-page .house-bucket-col+.house-bucket-col {
      margin-left: -1px;
    }

    body.house-hub-page .house-bucket-col--expanded {
      flex-grow: 1.5;
    }

    body.house-hub-page .house-bucket-col--expanded.house-bucket-col--expanded-no-flag {
      flex-grow: 1.5;
      flex-shrink: 0;
    }

    body.house-hub-page .house-bucket-col--compressed {
      flex-grow: 0.92;
    }

    body.house-hub-page .house-bucket-col-head {
      width: 100%;
      border: 0;
      cursor: pointer;
      text-align: left;
      display: flex;
      padding: 0.62rem 0.68rem 0;
      background: #0f1218;
    }

    body.house-hub-page .house-bucket-col-head:hover {
      background: #131824;
    }

    body.house-hub-page .house-bucket-col-head-main {
      width: 100%;
    }

    body.house-hub-page .house-bucket-col-head-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.55rem;
      transform: translateY(-2px);
    }

    body.house-hub-page .house-bucket-col-rule {
      width: calc(100% + 1.36rem);
      height: 4px;
      border-radius: 0;
      margin: 0.52rem -0.68rem 0;
    }

    body.house-hub-page .house-bucket-col-count {
      font-size: 0.75rem;
      color: #94a3b8;
      font-variant-numeric: tabular-nums;
    }

    body.house-hub-page .house-bucket-col-title {
      margin: 0;
      font-size: 0.9rem;
      font-weight: 700;
      color: #fff;
    }

    body.house-hub-page .house-bucket-list {
      display: flex;
      flex-direction: column;
      min-height: calc(44rem - 5px);
      max-height: calc(44rem - 5px);
      overflow-y: auto;
    }

    body.house-hub-page .house-bucket-item {
      display: grid;
      grid-template-columns: 17px 4.5rem minmax(0, 1fr);
      align-items: center;
      column-gap: 0.35rem;
      padding: 0.52rem 0.62rem;
      border-bottom: 1px solid rgba(51, 65, 85, 0.28);
      text-decoration: none;
      transition: background 0.12s ease;
    }

    body.house-hub-page .house-bucket-item:last-child {
      border-bottom: none;
    }

    body.house-hub-page .house-bucket-item:hover {
      background: rgba(15, 23, 42, 0.35);
    }

    body.house-hub-page .house-bucket-flag {
      width: 17px;
      height: auto;
      border-radius: 1px;
    }

    body.house-hub-page .house-bucket-code {
      color: #fff;
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      text-align: left;
      white-space: nowrap;
      justify-self: start;
    }

    body.house-hub-page .house-bucket-name {
      min-width: 0;
      font-size: 0.8rem;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      justify-self: start;
      text-align: left;
      margin-left: -32px;
    }

    body.house-hub-page .house-bucket-name--open {
      font-style: italic;
      overflow: visible;
      text-overflow: clip;
      padding-right: 0.45rem;
    }

    @container house-bucket-col (max-width: 124px) {
      body.house-hub-page .house-bucket-flag {
        display: none;
      }

      body.house-hub-page .house-bucket-item {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: calc(0.35rem - 3px);
      }

      body.house-hub-page .house-bucket-name {
        margin-left: 0;
      }
    }

    body.house-hub-page .house-bucket-col--expanded .house-bucket-name {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      line-height: 1.15;
    }

    #houseHubMapStage[data-house-map-prerendered="1"] .pollsmax-map-skeleton {
      display: none !important;
    }

    #houseCdMap[data-house-map-prerendered="1"] path.house-cd {
      cursor: pointer;
    }

    @media (max-width: 767px) {
      body.house-hub-page #houseCdMap path.house-cd.house-hub-map-tap-active.house-district--flip-d,
      body.house-hub-page #houseCdMap path.house-cd.house-hub-map-tap-active.house-district--flip-r {
        filter: brightness(0.88);
      }
    }

    body.house-hub-page .forecast-hub-map-source-head .race-view-toggle .forecast-hub-map-source__btn--polling-disabled {
      color: #475569;
      cursor: default;
      pointer-events: none;
    }

    body.house-hub-page .forecast-hub-map-source-head .race-view-toggle .forecast-hub-map-source__btn--polling-disabled[data-source-tip] {
      pointer-events: auto;
    }

    body.house-hub-page .forecast-hub-map-source-head .race-view-toggle .forecast-hub-map-source__btn--polling-disabled:hover {
      color: #475569;
    }

    html[data-pollsmax-theme="light"] body.house-hub-page .forecast-hub-map-source-head .race-view-toggle .forecast-hub-map-source__btn--polling-disabled {
      color: #94a3b8;
    }

    html[data-pollsmax-theme="light"] body.house-hub-page .forecast-hub-map-source-head .race-view-toggle .forecast-hub-map-source__btn--polling-disabled:hover {
      color: #94a3b8;
    }

    /* Mobile hero — centered stack (overrides desktop-left hero rules above) */
    @media (max-width: 767px) {
      body.house-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-head-align-text {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-top {
        display: flex !important;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center !important;
        gap: 1.15rem;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-flag-row {
        justify-content: center;
        font-size: clamp(1.9rem, 3.65vw, 2.35rem);
        line-height: 1.2;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-state {
        margin: 0;
        font-family: "Plus Jakarta Sans", "DM Sans", ui-sans-serif, system-ui, sans-serif;
        font-size: 1em;
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.2;
        color: #fff;
        text-align: center !important;
        width: 100%;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-race.forecast-hub-head-eyebrow {
        margin: 0 0 0.55rem;
        padding: 0;
        transform: none;
        font-family: "Plus Jakarta Sans", "DM Sans", ui-sans-serif, system-ui, sans-serif;
        font-size: clamp(0.95rem, 1.85vw, 1.12rem);
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        line-height: 1.2;
        color: #94a3b8;
        text-align: center;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-identity {
        display: flex !important;
        flex: none;
        width: 100%;
        min-width: 0;
        margin-right: 0;
        align-self: center;
        align-items: center;
        text-align: center;
        transform: none;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-race.forecast-hub-head-eyebrow {
        text-align: center;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-flag-row {
        display: flex !important;
        justify-content: center;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-right.forecast-hub-head-right {
        display: flex !important;
        flex: none !important;
        width: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center !important;
        align-self: center;
        justify-content: flex-start !important;
        gap: 0.35rem !important;
        margin-left: 0;
        min-height: 0 !important;
        transform: none;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary.forecast-hub-head-election-details {
        align-self: center;
        width: 100%;
        margin-top: 0 !important;
        margin-left: 0;
        padding-top: 0;
        padding-bottom: 0.15rem;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-detail-row {
        display: block;
        margin: 0 !important;
        width: auto;
        text-align: center;
      }

      body.house-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-control--chevron-right {
        justify-content: center;
      }
    }
