/*
Theme Name: Co-op States
Theme URI: https://www.coopstates.com/
Author: Co-op States
Description: Viewport-height U.S. cooperative atlas with a state/territory selector, side gutters, and alphabetized footer navigation.
Version: 1.0.11
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: coop-states
*/
:root { --cs-navy:#071c4a; --cs-ocean:#0855a3; --cs-sky:#eaf7ff; --cs-gold:#b27a10; --cs-ink:#122b50; --cs-page:#fff;
  /* The WordPress toolbar sits above site content and consumes visible height. */
  --cs-admin-bar-height:0px; --cs-admin-map-width-offset:0px; --cs-admin-map-half-offset:0px;
  --cs-font-display:'Russo One','Tauri',Arial,sans-serif;
  --cs-font-nav:'Tauri',Arial,Helvetica,sans-serif;
  --cs-font-label:'Bungee',Arial,Helvetica,sans-serif;
  --cs-font-reading:'Source Sans 3',Arial,Helvetica,sans-serif;
  --cs-font-condensed:'Roboto Condensed',Arial,Helvetica,sans-serif;
}
body { --cs-available-height:calc(100vh - var(--cs-admin-bar-height)); }
@supports (height:100dvh) {
 body { --cs-available-height:calc(100dvh - var(--cs-admin-bar-height)); }
}
body.admin-bar { --cs-admin-bar-height:32px; --cs-admin-map-width-offset:42.6667px; --cs-admin-map-half-offset:21.33335px; }
@media (max-width:782px) { body.admin-bar { --cs-admin-bar-height:46px; --cs-admin-map-width-offset:61.3333px; --cs-admin-map-half-offset:30.66665px; } }
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cs-page);color:var(--cs-ink);font-family:var(--cs-font-reading);line-height:1.5}
img{max-width:100%;height:auto}
a{color:#12619d}
a:hover,a:focus-visible{color:#064f89}
:focus-visible{outline:3px solid #f6a900;outline-offset:3px}
.cs-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cs-skip-link{position:absolute;top:-100px;left:8px;background:#fff;padding:10px 14px;z-index:1000}
.cs-skip-link:focus{top:8px}
/* The homepage has NO traditional sitewide header. Logged-in users get the
   whole VISIBLE viewport below the 32px/46px WordPress admin toolbar. The
   desktop atlas maintains 1.3333 width:height map geometry with equal rails. */
.cs-atlas-viewport{height:var(--cs-available-height);width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;background:#fff}
.cs-atlas{height:100%;width:max(100%,calc(133.333333vh + 212px - var(--cs-admin-map-width-offset)));display:grid;grid-template-columns:minmax(106px,1fr) auto minmax(106px,1fr);grid-template-rows:minmax(0,1fr);position:relative;isolation:isolate}
@supports (height:100dvh) {.cs-atlas{width:max(100%,calc(133.333333dvh + 212px - var(--cs-admin-map-width-offset)))}}
.cs-map{height:100%;width:auto;min-height:0;aspect-ratio:1448 / 1086;position:relative;user-select:none;-webkit-user-select:none;touch-action:pan-y;cursor:default}
.cs-map-image{height:100%;max-height:100%;width:auto;max-width:none;display:block;pointer-events:none}
.cs-map:focus-visible{outline:3px solid #f5ad12;outline-offset:-4px}
/* Canvas strokes trace jurisdiction boundaries from the existing PNG hotspot mask.
   The underlying map is never replaced or recolored. */
.cs-map-outline{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;display:block}
.cs-map-outline--selected{z-index:2}
.cs-gutter{min-width:0;position:relative;z-index:2;overflow:hidden;padding:clamp(8px,1.2vw,18px) clamp(6px,1vw,16px)}
.cs-gutter--left{display:flex;flex-direction:column;align-items:flex-start}
.cs-gutter--right{display:flex;flex-direction:column;align-items:flex-start}
.cs-brand{display:block;width:100%;max-width:250px;line-height:0}
.cs-brand img{width:100%;height:auto;display:block;object-fit:contain}
.cs-primary-nav{padding-top:8px;display:block}
.cs-primary-nav a{position:relative;display:inline-block;padding:7px 0;color:var(--cs-gold);font-family:'Tauri',Arial,Helvetica,sans-serif;font-size:clamp(0.7rem,.95vw,.95rem);font-weight:400;letter-spacing:.08em;text-transform:uppercase;text-decoration:none!important;border:0!important;box-shadow:none;transition:color .18s ease,text-shadow .18s ease}
.cs-primary-nav a:hover,.cs-primary-nav a:focus-visible{color:#fff;text-shadow:0 0 4px rgba(36,168,255,.98),0 0 10px rgba(36,168,255,.86),0 0 18px rgba(36,168,255,.68),0 0 28px rgba(36,168,255,.46);outline:none}
.cs-gutter-content{width:100%;margin-top:clamp(48px,8vh,108px)}
.cs-gutter--right .cs-gutter-content{margin-top:clamp(72px,15vh,190px)}
.cs-gutter h2{font-family:var(--cs-font-nav);font-weight:400;font-size:clamp(.7rem,.92vw,1.05rem);line-height:1.2;margin:0 0 10px;color:var(--cs-navy)}
.cs-jurisdiction{font-family:var(--cs-font-display);font-weight:400;font-size:clamp(.88rem,1.3vw,1.45rem);line-height:1.15;word-wrap:break-word;margin:0;color:#075a9c}
.cs-keyboard-select{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cs-keyboard-select:focus{clip-path:none;position:fixed;top:8px;left:8px;width:260px;height:44px;background:#fff;z-index:9999;border:2px solid var(--cs-navy);padding:5px}
.cs-map-status{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* The footer follows the full visible-height first screen; it never overlays the atlas. */
.cs-footer{position:relative;background:#f5f9fc;border-top:1px solid #a4c1d5;padding:24px clamp(14px,3vw,46px) 28px}
.cs-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap;margin:0 auto;max-width:1600px}
.cs-footer-links{list-style:none;display:flex;align-items:center;gap:clamp(13px,2vw,30px);flex-wrap:wrap;padding:0;margin:0}
.cs-footer-links li{margin:0;padding:0}
.cs-footer-links a,.cs-uplink{font-family:var(--cs-font-nav);letter-spacing:.06em;font-size:.85rem;text-transform:uppercase;text-decoration:none;color:#935f00;white-space:nowrap;font-weight:400}
.cs-footer-links a:hover,.cs-footer-links a:focus-visible,.cs-uplink:hover,.cs-uplink:focus-visible{color:#0379c4;text-decoration:underline}
.cs-search{display:flex;align-items:stretch;gap:0;min-width:min(100%,250px);width:min(320px,100%);height:40px;border:1px solid #acc4d5;border-radius:6px;overflow:hidden;background:#fff}
.cs-search input[type=search]{border:0;outline:0;min-width:0;flex:1;width:100%;padding:8px 12px;font-family:inherit;font-size:1rem;color:var(--cs-ink)}
.cs-search button{border:0;background:#0b83cf;color:white;padding:0 14px;cursor:pointer;font-size:1.1rem}
.cs-search button:hover,.cs-search button:focus-visible{background:#07588d}
/* All non-home pages use the SAME top-left position and size as Home.
   The rail is calculated from the same CONTENT width used by the homepage
   atlas. Using vw here would include vertical scrollbar width and make the
   inner-page logo a few pixels too large. No header bar or Videos link. */
.cs-inner-viewport{width:100%;min-height:var(--cs-available-height);background:var(--cs-page)}
.cs-inner-layout{display:flex;align-items:stretch;min-height:var(--cs-available-height);width:100%;position:relative}
.cs-inner-rail{flex:0 0 max(106px,calc(50% - 66.6666665vh + var(--cs-admin-map-half-offset)))}
@supports (height:100dvh){.cs-inner-rail{flex-basis:max(106px,calc(50% - 66.6666665dvh + var(--cs-admin-map-half-offset)))}}
.cs-main-content{flex:1 1 auto;min-width:0;width:auto;max-width:none;min-height:0;margin:0;padding:clamp(28px,5vh,60px) clamp(22px,4vw,70px) 70px}
.cs-page-title{font-family:var(--cs-font-display);font-weight:400;font-size:clamp(2rem,5vw,3.3rem);line-height:1.15;color:var(--cs-navy);margin:8px 0 28px}
.cs-listing{border-top:1px solid #d4e3eb;padding:16px 0}
.cs-listing h2{margin:0;font-size:1.35rem;font-family:var(--cs-font-condensed);font-weight:700}
.cs-listing p{margin:8px 0 0}
.cs-post-body{overflow-wrap:anywhere;font-family:var(--cs-font-reading)}
.cs-post-body h2,.cs-post-body h3,.cs-post-body h4{font-family:var(--cs-font-condensed);font-weight:700}
.cs-gold-eyebrow{font-family:var(--cs-font-label);font-weight:400}
/* Match Anaheim Dreams' prominent Bungee COMING SOON treatment on empty pages. */
.cs-coming-soon{margin:0;color:var(--cs-gold);font-family:var(--cs-font-label);font-size:clamp(2.2rem,5vw,4rem);font-weight:400;letter-spacing:.04em;line-height:1.08}
.cs-pagination{padding:25px 0}
.cs-not-found{color:#445b74}
@media(max-width:600px){
 .cs-atlas{grid-template-columns:106px auto 106px}
 /* On phones, keep the wordmark precisely where Home puts it, but allow
    other pages' text to use the FULL screen width below the mark. */
 .cs-inner-layout{display:block}
 .cs-inner-rail{position:absolute;top:0;left:0;width:106px;min-height:0}
 .cs-main-content{width:100%;padding:125px 19px 55px}
 .cs-gutter{padding:9px 6px}
 .cs-gutter-content{margin-top:70px}
 .cs-gutter--right .cs-gutter-content{margin-top:145px}
 .cs-jurisdiction{font-family:var(--cs-font-display);font-weight:400;font-size:.86rem}
 .cs-gutter h2{font-family:var(--cs-font-nav);font-weight:400;font-size:.72rem}
 .cs-primary-nav a{font-size:.76rem}
 .cs-footer-inner{align-items:stretch}
 .cs-search{width:100%}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

/* 1.0.5 — Anaheim Dreams-inspired footer with Co-op States search-first layout.
   The separately styled .cs-uplink is intentionally NOT changed here. */
.cs-footer {
  color:#dce5ef;
  background:#020b18;
  border-top:4px solid #b27a10;
  padding:30px clamp(18px,3.25vw,52px) 28px;
}
.cs-footer-inner {
  display:grid;
  grid-template-columns:minmax(155px,21%) minmax(0,1fr);
  align-items:start;
  gap:18px clamp(22px,3vw,50px);
  width:100%;
  max-width:1500px;
  margin:0 auto;
}
.cs-footer-identity { min-width:0; }
.cs-footer-brand {
  font-family:var(--cs-font-display);
  font-size:clamp(.95rem,1.15vw,1.2rem);
  font-weight:400;
  line-height:1.3;
  color:#fff;
  margin:0 0 7px;
}
.cs-footer-copyright {
  color:rgba(255,255,255,.66);
  font-family:var(--cs-font-reading);
  font-size:clamp(.7rem,.86vw,.85rem);
  line-height:1.4;
  margin:0;
}
.cs-footer-right { width:100%;min-width:0;display:flex;flex-direction:column;gap:16px; }
.cs-footer-right .cs-search {
  width:100%;
  min-width:0;
  max-width:none;
  height:42px;
  border:1px solid rgba(242,210,125,.45);
  border-radius:5px;
  background:#fff;
}
.cs-footer-right .cs-search input[type=search] { font-family:var(--cs-font-reading); }
.cs-footer-nav {
  min-width:0;
  width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  padding-bottom:5px;
}
.cs-footer-nav .cs-footer-links {
  list-style:none;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  width:max-content;
  min-width:100%;
  gap:clamp(10px,1.25vw,20px);
  margin:0;
  padding:0;
}
.cs-footer-nav .cs-footer-links li { margin:0;padding:0;flex:none; }
.cs-footer-nav .cs-footer-links a {
  color:#f2d27d;
  text-decoration:none;
  font-family:var(--cs-font-nav);
  font-weight:400;
  font-size:clamp(.72rem,.84vw,.88rem);
  line-height:1.35;
  letter-spacing:0;
  white-space:nowrap;
  text-transform:none;
}
.cs-footer-nav .cs-footer-links a:hover,
.cs-footer-nav .cs-footer-links a:focus-visible {
  color:#fff;
  text-decoration:underline;
}
@media (max-width:700px) {
  .cs-footer { padding:22px 16px 25px; }
  .cs-footer-inner { grid-template-columns:minmax(0,1fr); gap:17px; }
  .cs-footer-right { gap:13px; }
  .cs-footer-nav .cs-footer-links { gap:14px; }
  .cs-footer-nav .cs-footer-links a { font-size:.8rem; }
}

/* 1.0.6 — Three-line copyright. The © lives in its own grid column,
   so the name and rights notice begin at the exact same x-position as the year.
   HOME uplinks and all map selectors retain their 1.0.5 styling. */
.cs-footer-copyright {
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  column-gap:.35em;
  align-items:start;
}
.cs-copyright-symbol { white-space:nowrap; }
.cs-copyright-lines { display:block; min-width:0; }
.cs-copyright-lines > span { display:block; }


/* 1.0.7 — USA Political Leadership panel in the EXISTING left atlas rail.
   Map geometry, footer, inner-page HOME uplinks, and right gutter stay unchanged. */
.cs-leadership[hidden]{display:none!important}
.cs-leadership{width:100%;max-width:100%;margin-top:clamp(11px,1.65vh,18px);font-family:var(--cs-font-reading);font-size:clamp(.70rem,.84vw,.90rem);line-height:1.27;color:#193c60;overflow-wrap:normal}
.cs-leadership-person{margin:0 0 clamp(12px,2vh,20px)}
.cs-leadership h3{font-family:var(--cs-font-condensed);font-size:clamp(.74rem,.9vw,.99rem);font-weight:700;line-height:1.16;color:#506579;margin:0 0 3px;letter-spacing:.015em}
.cs-leadership-person p{font-weight:600;margin:0;line-height:1.24;overflow-wrap:break-word}
.cs-party{display:inline;white-space:nowrap;font-weight:800;letter-spacing:0;font-family:var(--cs-font-reading)}
.cs-party--r{color:#b32831}
.cs-party--d{color:#1859b0}
.cs-party--i-r{color:#77575c}
.cs-party--i-d{color:#546b83}
.cs-party--g{color:#147742}
.cs-leadership-chamber{border-top:1px solid #d1deea;padding-top:clamp(8px,1.1vh,12px);margin-top:clamp(7px,1.1vh,12px)}
.cs-leadership-chamber h3{color:#193c60;font-size:clamp(.78rem,.95vw,1.03rem);margin-bottom:2px}
.cs-leadership-total{font-size:.91em;color:#506579;margin:0 0 6px}
.cs-leadership-counts{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:clamp(5px,.65vw,12px);row-gap:2px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}
.cs-leadership-counts > span{white-space:nowrap}
.cs-leadership-counts .cs-party{font-weight:800}
.cs-leadership-vacancy{color:#637081}
.cs-leadership-bar{display:flex;overflow:hidden;width:100%;height:6px;background:#aebac5;border-radius:6px;margin-top:7px}
.cs-leadership-bar > span{display:block;height:100%;flex:0 0 auto}
.cs-leadership-bar--r{background:#b32831}
.cs-leadership-bar--d{background:#1859b0}
.cs-leadership-bar--i-r{background:#77575c}
.cs-leadership-bar--i-d{background:#546b83}
.cs-leadership-bar--g{background:#147742}
.cs-leadership-bar--vacant{background:#aebac5}
.cs-leadership-nonvoting{color:#506579;font-size:.88em;line-height:1.25;margin:6px 0 0}
.cs-leadership-date{border-top:1px solid #d1deea;margin:11px 0 0;padding-top:8px;color:#637081;font-size:.83em;line-height:1.24}
@media (max-width:700px){
 .cs-leadership{font-size:.69rem;margin-top:12px}
 .cs-leadership h3{font-size:.77rem}
 .cs-leadership-person{margin-bottom:13px}
 .cs-leadership-bar{height:5px;margin-top:5px}
 .cs-leadership-chamber{padding-top:8px;margin-top:8px}
}


/* Theme 1.0.8: USA co-op rail, detail sections, lightbox and consistent anchors.
   This does not change the map's full-viewport geometry, footer or HOME uplinks. */
[hidden]{display:none!important}
.cs-gutter-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:2px;width:100%;min-width:0}
.cs-gutter-heading h2{min-width:0;overflow-wrap:break-word;line-height:1.2;margin-bottom:10px}
.cs-section-actions{flex:none;display:flex;align-items:center;gap:2px;margin-top:-3px}
.cs-image-button,.cs-scroll-arrow{width:25px;height:25px;display:flex;align-items:center;justify-content:center;padding:3px;border:0;background:transparent;border-radius:4px;cursor:pointer;color:#0379c4;text-decoration:none;flex-shrink:0}
.cs-image-button:hover,.cs-image-button:focus-visible,.cs-scroll-arrow:hover,.cs-scroll-arrow:focus-visible{background:#e7f3ff;color:#064e84;outline-offset:0}
.cs-image-button svg,.cs-scroll-arrow svg{height:19px;width:19px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;fill:none}
.cs-coop-overview{width:100%;max-width:100%;color:#193c60;margin-top:12px;font-family:var(--cs-font-reading);font-size:clamp(.67rem,.80vw,.87rem);line-height:1.21}
.cs-coop-stat{margin-bottom:11px;display:flex;flex-direction:column}
.cs-coop-stat strong{font-family:var(--cs-font-display);font-weight:400;font-size:clamp(1.02rem,1.47vw,1.6rem);line-height:1.1;color:#075a9c}
.cs-coop-stat span{font-size:.91em;color:#4b6279}
.cs-coop-caption{font-size:.83em;line-height:1.24;color:#677789;margin:3px 0 10px}
.cs-coop-sectors{border-top:1px solid #d1deea;margin-top:12px;padding-top:8px;display:flex;flex-direction:column;gap:9px}
.cs-coop-sectors>div{display:flex;flex-direction:column;align-items:flex-start;gap:1px}
.cs-coop-sectors>div span{font-size:.95em;overflow-wrap:break-word;color:#4b6279}
.cs-coop-sectors>div strong{font-size:1.1em;font-weight:800;color:#193c60;font-variant-numeric:tabular-nums}
.cs-coop-sectors>div small{font-size:.85em;line-height:1.25;color:#4b6279}
.cs-detail-area{max-width:1440px;margin:0 auto;padding:clamp(30px,5vw,72px) clamp(18px,5vw,72px) clamp(42px,6vw,90px);font-family:var(--cs-font-reading);color:#193c60}
.cs-detail-intro h1{font-family:var(--cs-font-display);font-size:clamp(1.7rem,3.6vw,3rem);line-height:1.17;font-weight:400;color:var(--cs-navy);margin:0 0 11px}
.cs-detail-eyebrow{font-family:var(--cs-font-label);color:#935f00;font-size:clamp(.75rem,1.1vw,1.05rem);margin:0 0 6px}
.cs-detail-instruction{max-width:75ch;color:#546b83;margin:0 0 38px}
.cs-detail-section{border-top:2px solid #c4d8e7;padding:25px 0 32px;scroll-margin-top:54px}
.cs-detail-section:target{border-color:#dca020}
.cs-detail-section h2{font-family:var(--cs-font-display);font-weight:400;color:var(--cs-navy);font-size:clamp(1.45rem,2.3vw,2.1rem);line-height:1.15;margin:0 0 4px}
.cs-detail-jurisdiction{font-family:var(--cs-font-nav);font-size:1rem;color:#075a9c;margin:0 0 24px}
.cs-detail-prose{max-width:1100px;line-height:1.6}
.cs-detail-prose h3{font-family:var(--cs-font-condensed);font-size:1.25rem;margin:0 0 6px;color:#193c60}
.cs-detail-prose p{margin:0 0 11px}
.cs-detail-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:16px;margin-bottom:19px}
.cs-detail-cards article{background:#f3f8fc;border:1px solid #cddfed;border-radius:8px;padding:17px}
.cs-detail-party-legend{display:flex;flex-wrap:wrap;gap:10px 22px;font-size:.94rem;margin:7px 0 16px}
.cs-detail-party-legend>span{white-space:normal}
.cs-data-note{font-size:.88rem;color:#596e80;max-width:100ch}
.cs-detail-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:16px;margin-bottom:20px}
.cs-detail-summary>div{background:#f3f8fc;border:1px solid #cddfed;border-radius:7px;padding:14px 18px;display:flex;flex-direction:column;gap:3px}
.cs-detail-summary strong{font-family:var(--cs-font-display);font-size:clamp(1.7rem,3vw,2.45rem);font-weight:400;color:#075a9c}
.cs-detail-summary span{color:#4b6279;font-size:.92rem}
.cs-data-table-wrap{overflow-x:auto;margin:24px 0}
.cs-data-table{border-collapse:collapse;width:100%;font-size:.95rem;min-width:550px}
.cs-data-table caption{text-align:left;font-family:var(--cs-font-condensed);font-size:1.18rem;font-weight:700;margin-bottom:8px}
.cs-data-table th,.cs-data-table td{text-align:left;vertical-align:top;padding:11px 14px;border-bottom:1px solid #d1deea}
.cs-data-table th{font-weight:700}
.cs-data-table thead{background:#eaf3fa}
.cs-source-list{padding-left:22px;line-height:1.9;overflow-wrap:anywhere}
.cs-research-pending{padding:17px 21px;border-left:4px solid #b27a10;background:#f8fafc;max-width:72ch}
.cs-open-illustration{border:1px solid #0e72ae;color:#075a9c;background:#f0f7fd;border-radius:5px;font:inherit;font-weight:600;cursor:pointer;padding:8px 13px}
.cs-open-illustration:hover{background:#e5f2fc}
.cs-lightbox{width:min(95vw,1320px);max-width:95vw;max-height:94vh;margin:auto;padding:0;background:#020b18;color:white;border:1px solid #d1ae4e;border-radius:8px;overflow:auto}
.cs-lightbox::backdrop{background:rgba(0,9,21,.88)}
.cs-lightbox-inner{position:relative;padding:45px 12px 10px;display:flex;flex-direction:column;align-items:center}
.cs-lightbox-close{position:absolute;right:10px;top:5px;border:0;background:transparent;color:#fff;cursor:pointer;font:32px/1 Arial,sans-serif;width:36px;height:36px}
.cs-lightbox img{display:block;max-height:calc(94vh - 108px);max-width:100%;width:auto;height:auto;object-fit:contain}
.cs-lightbox p{margin:9px 4px 5px;font-size:.9rem;color:#f2d27d;text-align:center}
@media(max-width:700px){.cs-gutter-heading{flex-wrap:wrap;gap:0}.cs-section-actions{margin:-5px 0 6px}.cs-coop-overview{font-size:.67rem;margin-top:9px}.cs-coop-sectors{gap:7px}.cs-detail-area{padding:28px 18px 48px}.cs-detail-section{scroll-margin-top:15px}.cs-detail-cards{grid-template-columns:1fr}.cs-detail-party-legend{flex-direction:column;gap:5px}}

/* Keep narrow existing gutters readable: icon controls sit BELOW their headings. */
.cs-gutter-heading{display:block}
.cs-gutter-heading h2{width:100%;margin:0 0 5px}
.cs-section-actions{margin:0 0 8px;justify-content:flex-start}

/* 1.0.9 — Bring Political Leadership closer beneath Videos without moving the brand,
   changing the map dimensions, or moving the Co-op Data gutter. */
.cs-gutter--left .cs-gutter-content { margin-top:20px; }
.cs-ca-leadership .cs-leadership-person { margin-bottom:clamp(7px,1vh,12px); }
.cs-ca-leadership .cs-leadership-chamber { margin-top:clamp(5px,.7vh,9px); padding-top:clamp(5px,.7vh,9px); }
.cs-ca-leadership .cs-leadership-total { margin-bottom:3px; }
.cs-ca-leadership .cs-leadership-bar { margin-top:4px; }
.cs-ca-leadership .cs-leadership-date { margin-top:7px; padding-top:6px; }
/* Do not allow hidden dynamic content to occupy space; native [hidden] visibility
   is essential when switching between USA, California and other jurisdictions. */
.cs-atlas-page [data-cs-ca-only][hidden] { display:none!important; }
@media(max-width:700px) {
 .cs-gutter--left .cs-gutter-content { margin-top:16px; }
 .cs-ca-leadership { margin-top:8px; }
 .cs-ca-leadership .cs-leadership-person { margin-bottom:9px; }
 .cs-ca-leadership .cs-leadership-chamber { margin-top:5px; padding-top:5px; }
 .cs-ca-leadership .cs-leadership-date { margin-top:6px; padding-top:5px; }
}
