
/* Governor page cohesion layer
   Scope: body.cmep-governor-page (/governor/)
   Purpose: bring the Governor forecast page onto the same visual system as House/Senate without changing data logic.
*/

body.cmep-governor-page{
  --gov-bg:#f3f5f8;
  --gov-bg-soft:#eef2f7;
  --gov-surface:#ffffff;
  --gov-surface-2:#f8fafc;
  --gov-surface-3:#eef2f7;
  --gov-border:#d8dee8;
  --gov-border-strong:#b9c3d1;
  --gov-text:#172033;
  --gov-strong:#08111f;
  --gov-muted:#5d6b7f;
  --gov-subtle:#7b8798;
  --gov-shadow:0 18px 38px rgba(15,23,42,.08);
  --gov-shadow-soft:0 8px 20px rgba(15,23,42,.06);
  --gov-radius:22px;
  --gov-radius-sm:16px;
  --gov-shell:1360px;

  --bg-page:var(--gov-bg);
  --bg-card:var(--gov-surface);
  --bg-card-subtle:var(--gov-surface-2);
  --border-subtle:var(--gov-border);
  --text-main:var(--gov-text);
  --text-muted:var(--gov-muted);
  --text-strong:var(--gov-strong);
  --shadow-soft:var(--gov-shadow);
  --shadow-subtle:var(--gov-shadow-soft);

  --bg:var(--gov-bg);
  --card:var(--gov-surface);
  --card-2:var(--gov-surface-2);
  --border:var(--gov-border);
  --text:var(--gov-text);
  --muted:var(--gov-muted);

  margin:0;
  background:
    radial-gradient(circle at 50% -18%, rgba(148,163,184,.22), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, var(--gov-bg) 34%, var(--gov-bg) 100%);
  color:var(--gov-text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}

@media (prefers-color-scheme:dark){
  body.cmep-governor-page{
    --gov-bg:#020617;
    --gov-bg-soft:#08111f;
    --gov-surface:#0b1220;
    --gov-surface-2:#101827;
    --gov-surface-3:#121c2d;
    --gov-border:#223047;
    --gov-border-strong:#334155;
    --gov-text:#e5eaf3;
    --gov-strong:#f8fafc;
    --gov-muted:#a7b2c3;
    --gov-subtle:#8996aa;
    --gov-shadow:0 24px 60px rgba(0,0,0,.45);
    --gov-shadow-soft:0 12px 32px rgba(0,0,0,.32);
    background:
      radial-gradient(circle at 50% -16%, rgba(71,85,105,.24), transparent 34rem),
      linear-gradient(180deg, #020617 0%, var(--gov-bg) 100%);
  }
}

body.cmep-governor-page .governor-main{
  padding:0 0 2.5rem;
}

body.cmep-governor-page .container{
  width:min(var(--gov-shell), calc(100% - 2rem));
  max-width:none;
  margin:0 auto;
  padding:1.05rem 0;
}

body.cmep-governor-page .governor-top-container{
  padding-top:1.4rem;
  padding-bottom:.35rem;
}

body.cmep-governor-page .governor-hero,
body.cmep-governor-page .cmep-page-hero{
  background:linear-gradient(180deg, color-mix(in srgb, var(--gov-surface) 96%, transparent), color-mix(in srgb, var(--gov-surface-2) 98%, transparent));
  border:1px solid var(--gov-border);
  border-radius:28px;
  box-shadow:var(--gov-shadow);
  padding:clamp(1.6rem, 3.5vw, 3rem);
  text-align:center;
  overflow:hidden;
  position:relative;
}

body.cmep-governor-page .governor-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,118,186,.12), transparent 18rem),
    radial-gradient(circle at 80% 0%, rgba(238,34,12,.10), transparent 18rem);
}

body.cmep-governor-page .governor-hero > *{
  position:relative;
  z-index:1;
}

body.cmep-governor-page .governor-hero h1{
  margin:0;
  color:var(--gov-strong);
  font-size:clamp(2rem, 5vw, 4.4rem);
  line-height:.95;
  letter-spacing:-.065em;
  font-weight:950;
}

body.cmep-governor-page .governor-hero__lede{
  max-width:760px;
  margin:1rem auto 0;
  color:var(--gov-muted);
  font-size:clamp(1rem, 1.65vw, 1.18rem);
  line-height:1.55;
  font-weight:600;
}

body.cmep-governor-page .card{
  background:linear-gradient(180deg, color-mix(in srgb, var(--gov-surface) 98%, transparent), var(--gov-surface));
  border:1px solid var(--gov-border);
  border-radius:var(--gov-radius);
  box-shadow:var(--gov-shadow);
  padding:1.15rem;
  margin:0 0 1.15rem;
  color:var(--gov-text);
}

body.cmep-governor-page .card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin:0 0 1rem;
  padding:0 0 .85rem;
  border-bottom:1px solid color-mix(in srgb, var(--gov-border) 82%, transparent);
}

body.cmep-governor-page .card-title{
  color:var(--gov-strong);
  font-size:clamp(1.28rem, 2.1vw, 1.75rem);
  line-height:1.05;
  letter-spacing:-.035em;
  font-weight:950;
  margin:0;
}

body.cmep-governor-page .card-subtitle{
  color:var(--gov-muted);
  font-size:.95rem;
  line-height:1.45;
  font-weight:650;
  margin:.38rem 0 0;
}

body.cmep-governor-page .legend{
  max-width:none;
  margin:.2rem auto .75rem;
  padding:0;
  gap:.45rem;
}

body.cmep-governor-page .legend-item{
  min-height:1.72rem;
  padding:.36rem .7rem;
  border-radius:999px;
  font-size:.72rem;
  line-height:1;
  font-weight:850;
  letter-spacing:.018em;
  box-shadow:none;
}

body.cmep-governor-page .cmep-house-national-map-shell,
body.cmep-governor-page .cmep-house-national-inset-card{
  border-color:var(--gov-border) !important;
  background:var(--gov-surface-2) !important;
  box-shadow:var(--gov-shadow-soft) !important;
}

body.cmep-governor-page .btn,
body.cmep-governor-page button.cmep-map-reset{
  appearance:none;
  border:1px solid var(--gov-border-strong) !important;
  background:var(--gov-surface) !important;
  color:var(--gov-text) !important;
  font-weight:850;
  box-shadow:0 8px 18px rgba(15,23,42,.08);
}

body.cmep-governor-page .btn:hover,
body.cmep-governor-page button.cmep-map-reset:hover{
  background:var(--gov-surface-3) !important;
  color:var(--gov-strong) !important;
}

body.cmep-governor-page .cl-card-section .card-title{
  margin-bottom:0;
}

body.cmep-governor-page .cl-controls{
  align-items:flex-start;
  margin:.15rem 0 1rem;
}

body.cmep-governor-page .cl-seg{
  border-color:var(--gov-border);
  background:var(--gov-surface-2);
}

body.cmep-governor-page .cl-seg button{
  color:var(--gov-muted);
}

body.cmep-governor-page .cl-seg button.active{
  background:var(--gov-surface);
  color:var(--gov-strong);
  box-shadow:var(--gov-shadow-soft);
}

body.cmep-governor-page .cl-stats{
  background:var(--gov-surface-2);
  border-color:var(--gov-border);
}

body.cmep-governor-page .cmep-by-state-controls{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:.75rem;
  margin:0 0 1rem;
}

body.cmep-governor-page .cmep-by-state-filter{
  width:100%;
  min-height:2.85rem;
  border:1px solid var(--gov-border);
  border-radius:999px;
  background:var(--gov-surface-2);
  color:var(--gov-text);
  padding:.72rem 1rem;
  font-size:.95rem;
  font-weight:650;
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}

body.cmep-governor-page .cmep-by-state-filter::placeholder{ color:var(--gov-subtle); }
body.cmep-governor-page .cmep-by-state-filter:focus{
  border-color:var(--gov-border-strong);
  background:var(--gov-surface);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--gov-border-strong) 20%, transparent);
}

body.cmep-governor-page .cmep-by-state-meta{
  color:var(--gov-muted);
  font-size:.82rem;
  font-weight:800;
  white-space:nowrap;
}

body.cmep-governor-page #cmep-governor-map-tooltip{
  border-color:var(--gov-border);
  background:var(--gov-surface);
  color:var(--gov-text);
  border-radius:18px;
  box-shadow:var(--gov-shadow);
}

@media (max-width:760px){
  body.cmep-governor-page .container{
    width:min(100% - 1rem, var(--gov-shell));
    padding:.65rem 0;
  }
  body.cmep-governor-page .governor-top-container{
    padding-top:.75rem;
  }
  body.cmep-governor-page .governor-hero,
  body.cmep-governor-page .cmep-page-hero{
    border-radius:22px;
    padding:1.45rem 1rem;
  }
  body.cmep-governor-page .governor-hero h1{
    font-size:clamp(2.05rem, 12vw, 3.1rem);
    letter-spacing:-.06em;
  }
  body.cmep-governor-page .governor-hero__lede{
    font-size:.96rem;
    line-height:1.48;
  }
  body.cmep-governor-page .card{
    border-radius:18px;
    padding:.9rem;
    margin-bottom:.8rem;
  }
  body.cmep-governor-page .card-header{
    margin-bottom:.8rem;
    padding-bottom:.72rem;
  }
  body.cmep-governor-page .cmep-house-national-map-shell{
    min-height:420px !important;
  }
  body.cmep-governor-page #cmep-governor-map-host{
    height:420px !important;
  }
  body.cmep-governor-page .cmep-by-state-controls{
    grid-template-columns:1fr;
    align-items:stretch;
  }
  body.cmep-governor-page .cmep-by-state-meta{
    white-space:normal;
  }
}

/* Header parity correction: match House/Senate forecast page hero exactly. */
body.cmep-governor-page #cm-nav a.active,
body.cmep-governor-page #cm-nav a.is-active,
body.cmep-governor-page #cm-nav a.selected,
body.cmep-governor-page #cm-nav a.current,
body.cmep-governor-page #cm-nav a[aria-current="page"]{
  background:var(--gov-surface-3) !important;
  color:var(--gov-strong) !important;
  box-shadow:none !important;
}

body.cmep-governor-page .governor-main{
  width:100% !important;
  min-width:0 !important;
  padding:0 0 2.5rem !important;
}

body.cmep-governor-page .container,
body.cmep-governor-page .governor-top-container{
  width:min(100%,var(--gov-shell)) !important;
  max-width:var(--gov-shell) !important;
  margin:0 auto !important;
  padding:clamp(14px,2.2vw,30px) clamp(12px,2.4vw,34px) !important;
}

body.cmep-governor-page .governor-top-container{
  padding-bottom:0 !important;
}

body.cmep-governor-page .governor-hero,
body.cmep-governor-page .cmep-page-hero.governor-hero{
  width:100% !important;
  max-width:none !important;
  margin:0 auto clamp(18px,2vw,28px) !important;
  padding:clamp(22px,3vw,44px) clamp(18px,4vw,54px) !important;
  border:1px solid var(--gov-border) !important;
  border-radius:clamp(22px,2.4vw,34px) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(148,163,184,.16), transparent 34rem),
    linear-gradient(180deg,var(--gov-surface),var(--gov-surface-2)) !important;
  box-shadow:var(--gov-shadow) !important;
  text-align:center !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  position:relative !important;
}

body.cmep-governor-page .governor-hero::before,
body.cmep-governor-page .cmep-page-hero.governor-hero::before{
  content:none !important;
  display:none !important;
}

body.cmep-governor-page #governor-title,
body.cmep-governor-page .governor-hero h1{
  display:block !important;
  width:min(100%,980px) !important;
  margin:0 auto !important;
  color:var(--gov-strong) !important;
  font-size:clamp(2.1rem,4.4vw,4rem) !important;
  line-height:.96 !important;
  letter-spacing:-.065em !important;
  font-weight:1000 !important;
  text-align:center !important;
  text-wrap:balance;
  position:relative !important;
  z-index:1 !important;
}

body.cmep-governor-page .governor-hero__lede{
  display:block !important;
  width:min(100%,860px) !important;
  max-width:none !important;
  margin:.82rem auto 0 !important;
  color:var(--gov-muted) !important;
  font-size:clamp(.95rem,1.42vw,1.1rem) !important;
  line-height:1.43 !important;
  font-weight:700 !important;
  text-align:center !important;
  text-wrap:balance;
  position:relative !important;
  z-index:1 !important;
}

@media (max-width:760px){
  body.cmep-governor-page .header-inner{
    padding:.58rem .45rem .72rem !important;
    gap:.42rem !important;
  }
  body.cmep-governor-page #cm-nav{
    gap:.22rem !important;
  }
  body.cmep-governor-page #cm-nav a{
    padding:.38rem .58rem !important;
    font-size:.82rem !important;
  }
  body.cmep-governor-page .governor-top-container{
    padding:14px 12px 0 !important;
  }
  body.cmep-governor-page .governor-hero,
  body.cmep-governor-page .cmep-page-hero.governor-hero{
    border-radius:22px !important;
    padding:1.45rem 1rem !important;
  }
  body.cmep-governor-page .governor-hero h1,
  body.cmep-governor-page #governor-title{
    font-size:clamp(2.05rem,12vw,3.1rem) !important;
    letter-spacing:-.06em !important;
  }
  body.cmep-governor-page .governor-hero__lede{
    font-size:.96rem !important;
    line-height:1.48 !important;
  }
}


/* Governor map section parity: align the map card, legend pills, reset buttons, and map tooltip with House/Senate. */
body.cmep-governor-page{
  --solid-d:#0076BA;
  --likely-d:#00A2FF;
  --lean-d:#56C1FF;
  --toss-up:#929292;
  --lean-r:#FF968D;
  --likely-r:#FF644E;
  --solid-r:#EE220C;
  --gov-pill-h:1.72rem;
  --gov-pill-px:.68rem;
  --gov-pill-fs:.72rem;
  --gov-pill-weight:850;
}

body.cmep-governor-page #cmep-governor-map-card{
  overflow:visible !important;
}

body.cmep-governor-page #cmep-governor-map-card .card-header{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:.42rem !important;
  margin:0 auto clamp(14px,1.7vw,22px) !important;
  padding:0 !important;
  border-bottom:0 !important;
}

body.cmep-governor-page #cmep-governor-map-card .card-header > div{
  width:100% !important;
  min-width:0 !important;
  text-align:center !important;
}

body.cmep-governor-page #cmep-governor-map-card .card-title{
  margin:0 auto !important;
  color:var(--gov-strong) !important;
  font-size:clamp(1.38rem,2.25vw,2.1rem) !important;
  line-height:1.05 !important;
  letter-spacing:-.035em !important;
  font-weight:950 !important;
  text-align:center !important;
  text-wrap:balance !important;
}

body.cmep-governor-page #cmep-governor-map-card .card-subtitle{
  max-width:820px !important;
  margin:.25rem auto 0 !important;
  color:var(--gov-muted) !important;
  font-size:.94rem !important;
  line-height:1.45 !important;
  font-weight:650 !important;
  text-align:center !important;
}

body.cmep-governor-page #cmep-governor-map-card .card-body{
  padding:0 !important;
}

body.cmep-governor-page #cmep-governor-map-card .cmep-house-national-map-wrap{
  display:grid !important;
  gap:.9rem !important;
  overflow:visible !important;
}

body.cmep-governor-page #cmep-governor-map-card .legend,
body.cmep-governor-page #cmep-governor-map-card .cmep-house-national-map-legend{
  max-width:none !important;
  margin:.2rem auto .75rem !important;
  padding:0 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  gap:.45rem !important;
}

body.cmep-governor-page #cmep-governor-map-card .legend-item,
body.cmep-governor-page #cmep-governor-map-tooltip .ct-chip,
body.cmep-governor-page .rating-pill,
body.cmep-governor-page .race-rating-pill,
body.cmep-governor-page .cl-pill,
body.cmep-governor-page .pill{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:var(--gov-pill-h) !important;
  padding:.36rem var(--gov-pill-px) !important;
  border-radius:999px !important;
  border:1px solid transparent !important;
  font-size:var(--gov-pill-fs) !important;
  font-weight:var(--gov-pill-weight) !important;
  line-height:1 !important;
  letter-spacing:.018em !important;
  white-space:nowrap !important;
  text-transform:none !important;
  box-shadow:none !important;
}

body.cmep-governor-page #cmep-governor-map-card .legend-item{color:#fff !important;}
body.cmep-governor-page :where(.leg-solid-D,.solid-D,.solid-d,.rating-pill.solid-D,.rating-pill.solid-d,.ct-chip.solid-D,.ct-chip.solid-d){background:var(--solid-d) !important;color:#fff !important;border-color:transparent !important;}
body.cmep-governor-page :where(.leg-likely-D,.likely-D,.likely-d,.rating-pill.likely-D,.rating-pill.likely-d,.ct-chip.likely-D,.ct-chip.likely-d){background:var(--likely-d) !important;color:#fff !important;border-color:transparent !important;}
body.cmep-governor-page :where(.leg-lean-D,.lean-D,.lean-d,.rating-pill.lean-D,.rating-pill.lean-d,.ct-chip.lean-D,.ct-chip.lean-d){background:var(--lean-d) !important;color:#fff !important;border-color:transparent !important;}
body.cmep-governor-page :where(.leg-toss-up,.toss-up,.rating-pill.toss-up,.ct-chip.toss-up){background:var(--toss-up) !important;color:#fff !important;border-color:transparent !important;}
body.cmep-governor-page :where(.leg-lean-R,.lean-R,.lean-r,.rating-pill.lean-R,.rating-pill.lean-r,.ct-chip.lean-R,.ct-chip.lean-r){background:var(--lean-r) !important;color:#fff !important;border-color:transparent !important;}
body.cmep-governor-page :where(.leg-likely-R,.likely-R,.likely-r,.rating-pill.likely-R,.rating-pill.likely-r,.ct-chip.likely-R,.ct-chip.likely-r){background:var(--likely-r) !important;color:#fff !important;border-color:transparent !important;}
body.cmep-governor-page :where(.leg-solid-R,.solid-R,.solid-r,.rating-pill.solid-R,.rating-pill.solid-r,.ct-chip.solid-R,.ct-chip.solid-r){background:var(--solid-r) !important;color:#fff !important;border-color:transparent !important;}
body.cmep-governor-page :where(.ct-chip.no-election,.ct-chip.no-race,.ct-chip.map-no-election,.rating-none,.pill-neutral){background:#475569 !important;color:#fff !important;border-color:#475569 !important;}
body.cmep-governor-page :where(.inc-D-pill,.pill-dem,.pill-d,.pill.d,.pill.D){background:var(--solid-d) !important;color:#fff !important;border-color:transparent !important;}
body.cmep-governor-page :where(.inc-R-pill,.pill-rep,.pill-r,.pill.R){background:var(--solid-r) !important;color:#fff !important;border-color:transparent !important;}
body.cmep-governor-page :where(.pill-flip,.flip-pill){background:var(--flip-gold,#f6ce46) !important;color:#111827 !important;border-color:transparent !important;text-transform:uppercase !important;letter-spacing:.06em !important;}

body.cmep-governor-page #cmep-governor-map-card .cmep-house-national-map-shell,
body.cmep-governor-page #cmep-governor-map-card .cmep-house-national-inset-card{
  border:1px solid var(--gov-border) !important;
  background:var(--gov-surface-2) !important;
  box-shadow:var(--gov-shadow-soft) !important;
}

body.cmep-governor-page #cmep-governor-map-card .cmep-house-national-map-shell{
  border-radius:18px !important;
  overflow:hidden !important;
}

body.cmep-governor-page #cmep-governor-map-card .cmep-house-national-inset-card{
  border-radius:14px !important;
  overflow:hidden !important;
}

body.cmep-governor-page #cmep-governor-map-card .cmep-map-reset,
body.cmep-governor-page #cmep-governor-map-card button.cmep-map-reset{
  min-height:auto !important;
  padding:.5rem .8rem !important;
  border-radius:999px !important;
  border:1px solid var(--gov-border-strong) !important;
  background:var(--gov-surface) !important;
  color:var(--gov-text) !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:850 !important;
  box-shadow:0 8px 18px rgba(15,23,42,.08) !important;
}

body.cmep-governor-page #cmep-governor-map-card .cmep-map-reset:hover,
body.cmep-governor-page #cmep-governor-map-card button.cmep-map-reset:hover{
  background:var(--gov-surface-3) !important;
  color:var(--gov-strong) !important;
}

body.cmep-governor-page #cmep-governor-map-tooltip{
  z-index:9999 !important;
  max-width:min(340px,calc(100vw - 18px)) !important;
  padding:10px 14px !important;
  border:1px solid var(--gov-border) !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.94) !important;
  color:var(--gov-text) !important;
  box-shadow:0 18px 42px rgba(15,23,42,.18) !important;
  backdrop-filter:blur(12px) saturate(135%) !important;
  -webkit-backdrop-filter:blur(12px) saturate(135%) !important;
  overflow:visible !important;
}

body.cmep-governor-page #cmep-governor-map-tooltip .cmep-governor-map-tooltip-link{
  display:block !important;
  color:inherit !important;
  text-decoration:none !important;
}

body.cmep-governor-page #cmep-governor-map-tooltip .ct-head{
  margin:0 0 .35rem !important;
  color:var(--gov-strong) !important;
  font-size:.95rem !important;
  line-height:1.12 !important;
  letter-spacing:-.01em !important;
  font-weight:900 !important;
}

body.cmep-governor-page #cmep-governor-map-tooltip .ct-summary{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:.35rem !important;
  margin:0 0 .45rem !important;
}

body.cmep-governor-page #cmep-governor-map-tooltip .ct-chip{
  width:auto !important;
  min-width:auto !important;
  max-width:100% !important;
  margin:0 !important;
}

body.cmep-governor-page #cmep-governor-map-tooltip .ct-rows{
  display:grid !important;
  gap:.36rem !important;
}

body.cmep-governor-page #cmep-governor-map-tooltip .ct-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:.8rem !important;
}

body.cmep-governor-page #cmep-governor-map-tooltip .ct-left{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
}

body.cmep-governor-page #cmep-governor-map-tooltip .ct-name{
  color:var(--gov-strong) !important;
  font-weight:850 !important;
  line-height:1.15 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

body.cmep-governor-page #cmep-governor-map-tooltip .ct-right{
  text-align:right !important;
  white-space:nowrap !important;
}

body.cmep-governor-page #cmep-governor-map-tooltip .ct-pct{
  font-weight:900 !important;
  font-variant-numeric:tabular-nums !important;
}
body.cmep-governor-page #cmep-governor-map-tooltip .ct-pct.d{color:var(--solid-d) !important;}
body.cmep-governor-page #cmep-governor-map-tooltip .ct-pct.r{color:var(--solid-r) !important;}

@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]):not(.light) body.cmep-governor-page:not(.light):not(.light-mode) #cmep-governor-map-tooltip{
    background:rgba(12,20,34,.94) !important;
    box-shadow:0 18px 46px rgba(0,0,0,.42) !important;
  }
}

@media (max-width:720px){
  body.cmep-governor-page{--gov-pill-h:1.64rem;--gov-pill-px:.58rem;--gov-pill-fs:.68rem;}
  body.cmep-governor-page #cmep-governor-map-card .card-header{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    text-align:center !important;
  }
  body.cmep-governor-page #cmep-governor-map-card .legend,
  body.cmep-governor-page #cmep-governor-map-card .cmep-house-national-map-legend{
    justify-content:flex-start !important;
  }
  body.cmep-governor-page #cmep-governor-map-tooltip.mobile{
    left:50% !important;
    right:auto !important;
    bottom:calc(env(safe-area-inset-bottom,0px) + 16px) !important;
    width:min(340px,calc(100vw - 18px)) !important;
    max-width:calc(100vw - 18px) !important;
    transform:translateX(-50%) !important;
    pointer-events:auto !important;
  }
}

/* Governor ratings changelog parity: exact House/Senate changelog treatment. */
body.cmep-governor-page .cl-card-section{
  overflow:visible !important;
}

body.cmep-governor-page .cl-card-section .card-header{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:.42rem !important;
  margin:0 auto clamp(14px,1.7vw,22px) !important;
  padding:0 !important;
  border-bottom:0 !important;
}

body.cmep-governor-page .cl-card-section .card-header>div{
  width:100% !important;
  text-align:center !important;
}

body.cmep-governor-page .cl-card-section .card-title{
  margin:0 auto !important;
  color:var(--gov-strong) !important;
  font-size:clamp(1.38rem,2.25vw,2.1rem) !important;
  line-height:1.05 !important;
  letter-spacing:-.035em !important;
  font-weight:950 !important;
  text-align:center !important;
  text-wrap:balance !important;
}

body.cmep-governor-page .cl-card-section .cl-controls{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:0 !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  text-align:center !important;
  margin:0 0 1rem !important;
}

body.cmep-governor-page .cl-card-section .cl-seg{
  display:inline-flex !important;
  gap:4px !important;
  padding:4px !important;
  border:1px solid var(--border-subtle,#d4d4d8) !important;
  border-radius:999px !important;
  background:rgba(148,163,184,.12) !important;
  box-shadow:none !important;
}

body.cmep-governor-page .cl-card-section .cl-seg button,
body.cmep-governor-page .cl-card-section .cl-seg.sm button{
  border:0 !important;
  background:transparent !important;
  color:var(--text-muted,#6b7280) !important;
  padding:.28rem .65rem !important;
  border-radius:999px !important;
  min-height:auto !important;
  font-weight:800 !important;
  font-size:.73rem !important;
  line-height:normal !important;
  white-space:nowrap !important;
  cursor:pointer !important;
  box-shadow:none !important;
}

body.cmep-governor-page .cl-card-section .cl-seg button.active{
  background:var(--bg-card,#fff) !important;
  color:var(--text-main,#111827) !important;
  box-shadow:0 1px 3px rgba(15,23,42,.12) !important;
}

@media (prefers-color-scheme:dark){
  body.cmep-governor-page .cl-card-section .cl-seg button.active{
    background:rgba(255,255,255,.08) !important;
  }
}

body.cmep-governor-page .cl-card-section .cl-stats{
  display:flex;
  justify-content:center;
  gap:16px;
  align-items:center;
  width:auto;
  padding:.5rem 1rem !important;
  margin:0 0 1rem !important;
  background:var(--bg-page,#f3f4f6) !important;
  border:1px solid var(--border-subtle,#d4d4d8) !important;
  border-radius:12px !important;
  box-shadow:none !important;
}

body.cmep-governor-page .cl-card-section .cl-stat{
  text-align:center !important;
}

body.cmep-governor-page .cl-card-section .cl-sv{
  font-size:1.1rem !important;
  font-weight:950 !important;
  letter-spacing:-.03em !important;
  color:var(--text-strong,#000) !important;
  line-height:1 !important;
}

body.cmep-governor-page .cl-card-section .cl-sv.d{color:#0076BA !important;}
body.cmep-governor-page .cl-card-section .cl-sv.r{color:#EE220C !important;}

body.cmep-governor-page .cl-card-section .cl-sl{
  font-size:.62rem !important;
  font-weight:800 !important;
  text-transform:uppercase !important;
  letter-spacing:.06em !important;
  color:var(--text-muted,#6b7280) !important;
  margin-top:2px !important;
}

body.cmep-governor-page .cl-card-section .cl-sdiv{
  width:1px !important;
  background:var(--border-subtle,#d4d4d8) !important;
  align-self:stretch !important;
}

body.cmep-governor-page #cl-gov-body{
  display:block !important;
}

body.cmep-governor-page .cl-card-section .cl-day-group{
  margin-bottom:12px !important;
  display:block !important;
}

body.cmep-governor-page .cl-card-section .cl-day-label{
  font-size:.67rem !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.08em !important;
  color:var(--text-muted,#6b7280) !important;
  margin-bottom:6px !important;
  padding:0 2px !important;
  text-align:left !important;
}

body.cmep-governor-page .cl-card-section .cl-entry{
  background:var(--bg-page,#f3f4f6) !important;
  border:1px solid var(--border-subtle,#d4d4d8) !important;
  border-radius:12px !important;
  padding:8px 11px !important;
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  margin-bottom:5px !important;
  text-decoration:none !important;
  color:inherit !important;
  box-shadow:none !important;
  transition:transform 140ms ease-out, box-shadow 140ms ease-out !important;
}

body.cmep-governor-page .cl-card-section .cl-entry:hover{
  transform:translateY(-1px) !important;
  box-shadow:0 4px 12px rgba(15,23,42,.08) !important;
  background:var(--bg-page,#f3f4f6) !important;
  border-color:var(--border-subtle,#d4d4d8) !important;
}

body.cmep-governor-page .cl-card-section .cl-dir{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:15px !important;
  height:15px !important;
  border-radius:50% !important;
  border:0 !important;
  font-size:.54rem !important;
  font-weight:900 !important;
  line-height:1 !important;
  flex-shrink:0 !important;
}

body.cmep-governor-page .cl-card-section .cl-dir.d{
  background:rgba(0,118,186,.12) !important;
  color:#0076BA !important;
}
body.cmep-governor-page .cl-card-section .cl-dir.r{
  background:rgba(238,34,12,.12) !important;
  color:#EE220C !important;
}

body.cmep-governor-page .cl-card-section .cl-info{
  flex:1 !important;
  min-width:0 !important;
  display:block !important;
}

body.cmep-governor-page .cl-card-section .cl-name{
  font-weight:900 !important;
  font-size:.83rem !important;
  color:var(--text-strong,#000) !important;
  line-height:normal !important;
  letter-spacing:normal !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

body.cmep-governor-page .cl-card-section .cl-sub{
  font-size:.67rem !important;
  color:var(--text-muted,#6b7280) !important;
  font-weight:400 !important;
  line-height:normal !important;
  margin-top:1px !important;
}

body.cmep-governor-page .cl-card-section .cl-pills{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:4px !important;
  flex-wrap:nowrap !important;
  flex-shrink:0 !important;
  padding-left:0 !important;
}

body.cmep-governor-page .cl-card-section .cl-arr{
  color:var(--text-muted,#6b7280) !important;
  font-size:.74rem !important;
  font-weight:400 !important;
}

body.cmep-governor-page .cl-card-section .cl-pill{
  border-radius:999px !important;
  padding:.18rem .48rem !important;
  min-height:auto !important;
  border:0 !important;
  font-size:.63rem !important;
  line-height:normal !important;
  font-weight:900 !important;
  color:#fff !important;
  white-space:nowrap !important;
  box-shadow:none !important;
}

body.cmep-governor-page .cl-card-section .cl-pill.solid-d{background:#0076BA !important;}
body.cmep-governor-page .cl-card-section .cl-pill.likely-d{background:#00A2FF !important;}
body.cmep-governor-page .cl-card-section .cl-pill.lean-d{background:#56C1FF !important;color:#082840 !important;}
body.cmep-governor-page .cl-card-section .cl-pill.toss-up{background:#929292 !important;}
body.cmep-governor-page .cl-card-section .cl-pill.lean-r{background:#FF968D !important;color:#3d0800 !important;}
body.cmep-governor-page .cl-card-section .cl-pill.likely-r{background:#FF644E !important;}
body.cmep-governor-page .cl-card-section .cl-pill.solid-r{background:#EE220C !important;}

body.cmep-governor-page .cl-card-section .cl-msg{
  text-align:center !important;
  color:var(--text-muted,#6b7280) !important;
  padding:16px 0 !important;
  font-size:.84rem !important;
  min-height:0 !important;
  display:block !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  font-weight:400 !important;
}

@media (max-width:720px){
  body.cmep-governor-page .cl-card-section .cl-controls{
    justify-content:center !important;
    overflow:visible !important;
    flex-wrap:wrap !important;
    padding-bottom:0 !important;
  }
  body.cmep-governor-page .cl-card-section .cl-entry{
    display:flex !important;
    align-items:center !important;
  }
  body.cmep-governor-page .cl-card-section .cl-pills{
    padding-left:0 !important;
  }
}

/* CMEP_CHANGELOG_MENU_HOUSE_PARITY_20260629
   Keep Governor changelog range control visually identical to House. */
body.cmep-governor-page .cl-controls,
body.cmep-governor-page .cl-card-section .cl-controls{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:12px !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  text-align:center !important;
  margin:0 0 1rem !important;
  overflow:visible !important;
}
body.cmep-governor-page .cl-seg,
body.cmep-governor-page .cl-card-section .cl-seg{
  display:inline-flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:4px !important;
  padding:4px !important;
  border:1px solid var(--gov-border) !important;
  border-radius:999px !important;
  background:var(--gov-surface-2) !important;
  box-shadow:none !important;
}
body.cmep-governor-page .cl-seg button,
body.cmep-governor-page .cl-card-section .cl-seg button,
body.cmep-governor-page .cl-card-section .cl-seg.sm button{
  appearance:none !important;
  border:0 !important;
  background:transparent !important;
  color:var(--gov-muted) !important;
  border-radius:999px !important;
  min-height:34px !important;
  padding:.48rem .86rem !important;
  font-size:.82rem !important;
  line-height:1 !important;
  font-weight:850 !important;
  letter-spacing:.005em !important;
  white-space:nowrap !important;
  cursor:pointer !important;
  box-shadow:none !important;
}
body.cmep-governor-page .cl-seg button.active,
body.cmep-governor-page .cl-card-section .cl-seg button.active{
  background:var(--gov-strong) !important;
  color:var(--gov-surface) !important;
  box-shadow:none !important;
}
@media (prefers-color-scheme:dark){
  body.cmep-governor-page .cl-card-section .cl-seg button.active{
    background:var(--gov-strong) !important;
    color:var(--gov-surface) !important;
  }
}
@media (max-width:720px){
  body.cmep-governor-page .cl-controls,
  body.cmep-governor-page .cl-card-section .cl-controls{justify-content:center !important; overflow:visible !important; flex-wrap:wrap !important; padding-bottom:0 !important;}
  body.cmep-governor-page .cl-seg button,
  body.cmep-governor-page .cl-card-section .cl-seg button{min-height:32px !important; padding:.44rem .74rem !important; font-size:.78rem !important;}
}

/* CMEP_GOV_CHANGELOG_PILL_STANDARD_20260629
   Match House/Senate changelog rating-pill contract exactly. */
body.cmep-governor-page{
  --gov-pill-h:1.72rem;
  --gov-pill-px:.68rem;
  --gov-pill-fs:.72rem;
  --gov-pill-weight:850;
}

body.cmep-governor-page .cl-card-section .cl-pills,
body.cmep-governor-page #cl-gov-body .cl-pills{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:.34rem !important;
  flex-wrap:nowrap !important;
  flex-shrink:0 !important;
  padding-left:0 !important;
}

body.cmep-governor-page .cl-card-section .cl-pill,
body.cmep-governor-page #cl-gov-body .cl-pill{
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:var(--gov-pill-h) !important;
  padding:.39rem var(--gov-pill-px) !important;
  border-radius:999px !important;
  border:1px solid transparent !important;
  font-size:var(--gov-pill-fs) !important;
  line-height:1 !important;
  font-weight:var(--gov-pill-weight) !important;
  letter-spacing:.01em !important;
  white-space:nowrap !important;
  text-decoration:none !important;
  box-shadow:none !important;
  vertical-align:middle !important;
  color:#fff !important;
  text-transform:none !important;
}

body.cmep-governor-page .cl-card-section .cl-arr,
body.cmep-governor-page #cl-gov-body .cl-arr{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:var(--gov-muted) !important;
  font-size:.78rem !important;
  line-height:1 !important;
  font-weight:850 !important;
  min-width:.65rem !important;
}

body.cmep-governor-page .cl-card-section .cl-pill.solid-D,
body.cmep-governor-page .cl-card-section .cl-pill.solid-d,
body.cmep-governor-page #cl-gov-body .cl-pill.solid-D,
body.cmep-governor-page #cl-gov-body .cl-pill.solid-d{background:var(--solid-d,#0076BA) !important;color:#fff !important;}

body.cmep-governor-page .cl-card-section .cl-pill.likely-D,
body.cmep-governor-page .cl-card-section .cl-pill.likely-d,
body.cmep-governor-page #cl-gov-body .cl-pill.likely-D,
body.cmep-governor-page #cl-gov-body .cl-pill.likely-d{background:var(--likely-d,#00A2FF) !important;color:#fff !important;}

body.cmep-governor-page .cl-card-section .cl-pill.lean-D,
body.cmep-governor-page .cl-card-section .cl-pill.lean-d,
body.cmep-governor-page #cl-gov-body .cl-pill.lean-D,
body.cmep-governor-page #cl-gov-body .cl-pill.lean-d{background:var(--lean-d,#56C1FF) !important;color:#fff !important;}

body.cmep-governor-page .cl-card-section .cl-pill.toss-up,
body.cmep-governor-page #cl-gov-body .cl-pill.toss-up{background:var(--toss-up,#929292) !important;color:#fff !important;}

body.cmep-governor-page .cl-card-section .cl-pill.lean-R,
body.cmep-governor-page .cl-card-section .cl-pill.lean-r,
body.cmep-governor-page #cl-gov-body .cl-pill.lean-R,
body.cmep-governor-page #cl-gov-body .cl-pill.lean-r{background:var(--lean-r,#FF968D) !important;color:#fff !important;}

body.cmep-governor-page .cl-card-section .cl-pill.likely-R,
body.cmep-governor-page .cl-card-section .cl-pill.likely-r,
body.cmep-governor-page #cl-gov-body .cl-pill.likely-R,
body.cmep-governor-page #cl-gov-body .cl-pill.likely-r{background:var(--likely-r,#FF644E) !important;color:#fff !important;}

body.cmep-governor-page .cl-card-section .cl-pill.solid-R,
body.cmep-governor-page .cl-card-section .cl-pill.solid-r,
body.cmep-governor-page #cl-gov-body .cl-pill.solid-R,
body.cmep-governor-page #cl-gov-body .cl-pill.solid-r{background:var(--solid-r,#EE220C) !important;color:#fff !important;}

@media (max-width:720px){
  body.cmep-governor-page{
    --gov-pill-h:1.64rem;
    --gov-pill-px:.58rem;
    --gov-pill-fs:.68rem;
  }
  body.cmep-governor-page .cl-card-section .cl-pills,
  body.cmep-governor-page #cl-gov-body .cl-pills{
    gap:.28rem !important;
  }
}


/* CMEP_GOV_HEADER_AND_ALL_SEATS_HOUSE_SENATE_PARITY_20260629
   Make Governor's injected header and All Seats list use the exact House/Senate visual contract. */
body.cmep-governor-page .cm-header,
body.cmep-governor-page .cm-header header,
body.cmep-governor-page header.cm-header,
body.cmep-governor-page #cm-header{
  position:sticky !important;
  top:0 !important;
  z-index:50 !important;
  background:var(--gov-surface) !important;
  border-bottom:1px solid var(--gov-border) !important;
  box-shadow:none !important;
  color:var(--gov-text) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]):not(.light) body.cmep-governor-page:not(.light):not(.light-mode) .cm-header,
  html:not([data-theme="light"]):not(.light) body.cmep-governor-page:not(.light):not(.light-mode) .cm-header header,
  html:not([data-theme="light"]):not(.light) body.cmep-governor-page:not(.light):not(.light-mode) header.cm-header,
  html:not([data-theme="light"]):not(.light) body.cmep-governor-page:not(.light):not(.light-mode) #cm-header{
    background:var(--gov-surface) !important;
    border-bottom-color:var(--gov-border) !important;
  }
}
html[data-theme="dark"] body.cmep-governor-page .cm-header,
html.dark body.cmep-governor-page .cm-header,
body.cmep-governor-page.dark .cm-header,
body.cmep-governor-page.dark-mode .cm-header,
html[data-theme="dark"] body.cmep-governor-page #cm-header,
html.dark body.cmep-governor-page #cm-header,
body.cmep-governor-page.dark #cm-header,
body.cmep-governor-page.dark-mode #cm-header{
  background:var(--gov-surface) !important;
  border-bottom-color:var(--gov-border) !important;
}
body.cmep-governor-page .header-inner{
  max-width:1150px !important;
  padding:.8rem 1rem 1rem !important;
  gap:.55rem !important;
}
body.cmep-governor-page .logo-link,
body.cmep-governor-page .site-title,
body.cmep-governor-page #cm-header a{color:var(--gov-strong) !important;}
body.cmep-governor-page #cm-nav{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  gap:.45rem !important;
}
body.cmep-governor-page #cm-nav a{
  background:transparent !important;
  color:var(--gov-muted) !important;
  border:0 !important;
  border-radius:999px !important;
  padding:.42rem .85rem !important;
  font-size:.92rem !important;
  line-height:1.1 !important;
  font-weight:800 !important;
  box-shadow:none !important;
}
body.cmep-governor-page #cm-nav a:hover,
body.cmep-governor-page #cm-nav a.active,
body.cmep-governor-page #cm-nav a.is-active,
body.cmep-governor-page #cm-nav a.selected,
body.cmep-governor-page #cm-nav a.current,
body.cmep-governor-page #cm-nav a[aria-current="page"]{
  background:var(--gov-surface-3) !important;
  color:var(--gov-strong) !important;
  box-shadow:none !important;
}
@media (max-width:760px){
  body.cmep-governor-page .header-inner{
    padding:.58rem .45rem .72rem !important;
    gap:.42rem !important;
  }
  body.cmep-governor-page #cm-nav{gap:.22rem !important;}
  body.cmep-governor-page #cm-nav a{
    padding:.38rem .58rem !important;
    font-size:.82rem !important;
  }
}

body.cmep-governor-page #cmep-gov-by-state-card .card-header,
body.cmep-governor-page #cmep-gov-by-state-card .card-header > div{
  text-align:center !important;
  align-items:center !important;
  justify-content:center !important;
}
body.cmep-governor-page #cmep-gov-by-state-card .card-header{
  display:flex !important;
  flex-direction:column !important;
  gap:.42rem !important;
  margin:0 auto clamp(14px,1.7vw,22px) !important;
  padding:0 !important;
  border-bottom:0 !important;
}
body.cmep-governor-page #cmep-gov-by-state-card .card-title{
  margin:0 auto !important;
  color:var(--gov-strong) !important;
  font-size:clamp(1.38rem,2.25vw,2.1rem) !important;
  line-height:1.05 !important;
  letter-spacing:-.035em !important;
  font-weight:950 !important;
  text-align:center !important;
  text-wrap:balance !important;
}
body.cmep-governor-page #cmep-gov-by-state-card .card-subtitle{
  max-width:820px !important;
  margin:.25rem auto 0 !important;
  color:var(--gov-muted) !important;
  font-size:.94rem !important;
  line-height:1.45 !important;
  font-weight:650 !important;
  text-align:center !important;
}
body.cmep-governor-page #cmep-gov-by-state-card .card-body{
  display:block !important;
  padding:0 !important;
}
body.cmep-governor-page .cmep-by-state-controls{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.75rem !important;
  flex-wrap:wrap !important;
  margin:0 auto 1rem !important;
  text-align:center !important;
}
body.cmep-governor-page .cmep-by-state-filter{
  width:min(100%,420px) !important;
  min-height:2.6rem !important;
  border-radius:999px !important;
  border:1px solid var(--gov-border) !important;
  background:var(--gov-surface-2) !important;
  color:var(--gov-strong) !important;
  padding:.65rem 1rem !important;
  font-size:.95rem !important;
  line-height:1.2 !important;
  font-weight:750 !important;
  outline:none !important;
  box-shadow:none !important;
}
body.cmep-governor-page .cmep-by-state-filter:focus{
  border-color:var(--gov-border-strong) !important;
  box-shadow:0 0 0 3px rgba(100,116,139,.16) !important;
  background:var(--gov-surface-2) !important;
}
body.cmep-governor-page .cmep-by-state-meta{
  color:var(--gov-muted) !important;
  font-size:.84rem !important;
  font-weight:850 !important;
  white-space:nowrap !important;
}
body.cmep-governor-page .cmep-by-state-list{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr)) !important;
  gap:.72rem !important;
  align-items:start !important;
}
body.cmep-governor-page .cmep-by-state-list .cmep-state[open]{
  grid-column:1 / -1 !important;
}
body.cmep-governor-page .cmep-state .cmep-collapse-summary{
  min-height:4.1rem !important;
  border-radius:18px !important;
}
body.cmep-governor-page .cmep-state[open] .cmep-collapse-summary{
  border-bottom:1px solid var(--gov-border) !important;
  border-bottom-left-radius:0 !important;
  border-bottom-right-radius:0 !important;
  background:var(--gov-surface) !important;
}
body.cmep-governor-page .cmep-collapse-body{
  padding:1rem !important;
  background:linear-gradient(180deg,var(--gov-surface),var(--gov-surface-2)) !important;
}
body.cmep-governor-page .cmep-collapse-chevron{
  width:.68rem !important;
  height:.68rem !important;
  border-right:2px solid var(--gov-muted) !important;
  border-bottom:2px solid var(--gov-muted) !important;
  transform:rotate(45deg) translateY(-2px) !important;
  transition:transform 160ms ease !important;
}
body.cmep-governor-page details[open] > summary .cmep-collapse-chevron{
  transform:rotate(225deg) translate(-1px,-1px) !important;
}
body.cmep-governor-page .district-list{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr)) !important;
  gap:.85rem !important;
  margin-top:0 !important;
}
body.cmep-governor-page .district-card,
body.cmep-governor-page a.district-card{
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  gap:.78rem !important;
  padding:1rem !important;
  text-decoration:none !important;
  color:inherit !important;
  background:var(--gov-surface-2) !important;
  border:1px solid var(--gov-border) !important;
  border-radius:18px !important;
  box-shadow:var(--gov-shadow-soft) !important;
  overflow:hidden !important;
  transition:transform 120ms ease, border-color 120ms ease, background-color 120ms ease !important;
}
body.cmep-governor-page .district-card:hover,
body.cmep-governor-page a.district-card:hover{
  transform:translateY(-1px) !important;
  border-color:var(--gov-border-strong) !important;
  background:var(--gov-surface) !important;
}
body.cmep-governor-page .district-header{
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:.5rem !important;
  flex-wrap:wrap !important;
}
body.cmep-governor-page .district-right{
  display:flex !important;
  align-items:center !important;
  gap:.45rem !important;
  flex-wrap:wrap !important;
}
body.cmep-governor-page .district-name{
  display:flex !important;
  align-items:center !important;
  gap:.45rem !important;
  flex-wrap:wrap !important;
  color:var(--gov-strong) !important;
  font-size:1rem !important;
  line-height:1.15 !important;
  font-weight:900 !important;
  letter-spacing:-.01em !important;
}
body.cmep-governor-page .district-subheader{
  display:flex !important;
  align-items:center !important;
  gap:.35rem !important;
  flex-wrap:wrap !important;
  color:var(--gov-muted) !important;
  font-size:.82rem !important;
  line-height:1.15 !important;
  font-weight:650 !important;
}
body.cmep-governor-page .district-subheader:empty{display:none !important;}
body.cmep-governor-page .inc-inline{display:inline-flex !important;align-items:center !important;gap:.35rem !important;}
body.cmep-governor-page .inc-name{color:var(--gov-text) !important;font-weight:750 !important;}
body.cmep-governor-page .inc-note{color:var(--gov-muted) !important;font-weight:750 !important;}
body.cmep-governor-page .prob-row{
  display:grid !important;
  grid-template-columns:auto minmax(150px,1fr) auto !important;
  align-items:center !important;
  gap:.5rem !important;
  width:100% !important;
}
body.cmep-governor-page .prob-label{
  color:var(--gov-muted) !important;
  font-size:.82rem !important;
  font-weight:850 !important;
  font-variant-numeric:tabular-nums !important;
  white-space:nowrap !important;
}
body.cmep-governor-page .prob-label-d{color:var(--solid-d) !important;}
body.cmep-governor-page .prob-label-r{color:var(--solid-r) !important;text-align:right !important;}
body.cmep-governor-page .prob-bar-wrapper{
  min-width:0 !important;
  width:100% !important;
  display:block !important;
}
body.cmep-governor-page .prob-bar{
  position:relative !important;
  display:flex !important;
  width:100% !important;
  height:.78rem !important;
  border-radius:999px !important;
  overflow:hidden !important;
  background:var(--gov-surface) !important;
  border:1px solid var(--gov-border) !important;
}
body.cmep-governor-page .prob-bar-d{
  display:block !important;
  height:100% !important;
  background:var(--solid-d) !important;
  float:none !important;
}
body.cmep-governor-page .prob-bar-r{
  display:block !important;
  height:100% !important;
  background:var(--solid-r) !important;
  float:none !important;
  margin-left:auto !important;
}
body.cmep-governor-page .district-card .rating-pill,
body.cmep-governor-page a.district-card .rating-pill,
body.cmep-governor-page .district-card .pill,
body.cmep-governor-page a.district-card .pill{
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:var(--gov-pill-h) !important;
  padding:.39rem var(--gov-pill-px) !important;
  border-radius:999px !important;
  border:1px solid transparent !important;
  font-size:var(--gov-pill-fs) !important;
  line-height:1 !important;
  font-weight:var(--gov-pill-weight) !important;
  letter-spacing:.01em !important;
  white-space:nowrap !important;
  box-shadow:none !important;
}
body.cmep-governor-page .pill-neutral{
  background:#475569 !important;
  color:#fff !important;
  border-color:#475569 !important;
}
@media (max-width:720px){
  body.cmep-governor-page .cmep-by-state-list{grid-template-columns:1fr !important;}
  body.cmep-governor-page .cmep-collapse-body{padding:.85rem !important;}
  body.cmep-governor-page .prob-row{grid-template-columns:1fr !important;gap:.35rem !important;}
  body.cmep-governor-page .prob-label-r{text-align:left !important;}
}


/* 2026-07-04: Governor map parity with Senate map on mobile. */
body.cmep-governor-page #cmep-governor-map-card .legend,
body.cmep-governor-page #cmep-governor-map-card .cmep-house-national-map-legend{
  justify-content:center !important;
  align-items:center !important;
  row-gap:.45rem !important;
  column-gap:.45rem !important;
}
body.cmep-governor-page #cmep-governor-map-card .legend-item{
  box-sizing:border-box !important;
  flex:0 0 auto !important;
}
body.cmep-governor-page .cmep-governor-map-tooltip-link,
body.cmep-governor-page #cmep-governor-map-tooltip .cmep-governor-map-tooltip-link{
  display:block !important;
  color:inherit !important;
  text-decoration:none !important;
  cursor:pointer !important;
  min-width:0 !important;
  max-width:100% !important;
}
body.cmep-governor-page .cmep-governor-map-tooltip-link:focus-visible{
  outline:2px solid var(--flip-gold, #F6CE46) !important;
  outline-offset:4px !important;
  border-radius:18px !important;
}
body.cmep-governor-page .cmep-governor-map-tooltip-link:hover .ct-head,
body.cmep-governor-page .cmep-governor-map-tooltip-link:focus-visible .ct-head{
  text-decoration:underline !important;
  text-decoration-thickness:1.5px !important;
  text-underline-offset:3px !important;
}
@media (max-width:820px), (hover:none), (pointer:coarse){
  body.cmep-governor-page #cmep-governor-map-card .legend,
  body.cmep-governor-page #cmep-governor-map-card .cmep-house-national-map-legend{
    justify-content:center !important;
    align-items:center !important;
    margin:.2rem auto .75rem !important;
    padding:0 12px !important;
  }
  body.cmep-governor-page #cmep-governor-map-tooltip.mobile{
    position:fixed !important;
    left:50% !important;
    right:auto !important;
    top:auto !important;
    bottom:calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
    transform:translateX(-50%) !important;
    width:min(320px, calc(100vw - 28px)) !important;
    min-width:0 !important;
    max-width:calc(100vw - 28px) !important;
    max-height:min(46vh, 320px) !important;
    overflow:auto !important;
    box-sizing:border-box !important;
    margin:0 !important;
    pointer-events:auto !important;
    cursor:pointer !important;
    z-index:10000 !important;
  }
  body.cmep-governor-page #cmep-governor-map-tooltip.mobile .ct-row{gap:.75rem !important;}
}
