/* Territory Decision / visual evidence / Texas official county boundaries.
   Source of truth: public/territory after SHA + paid-release reconciliation.
   This one surface owns these styles; no duplicate overrides on shared pages. */
.cv-territory-explorer .cv-territory-presets{display:flex;flex-wrap:wrap;align-items:center;gap:10px 17px;padding-block:19px}
.cv-territory-presets button{appearance:none;border:0;border-bottom:1px solid #476B57;border-radius:0;
 padding:8px 0;color:#234A3A;background:transparent;font:620 .88rem/1.3 "Geist",sans-serif;cursor:pointer}
.cv-territory-presets button:hover{border-color:#171E1B;color:#171E1B}
.cv-territory-presets button:focus-visible{outline:2px solid #234A3A;outline-offset:5px}
.cv-territory-presets button:disabled{opacity:.45;cursor:not-allowed}
.cv-territory-presets p{flex-basis:100%;margin:0;color:#4C5B52;font:500 .83rem/1.55 "Geist",sans-serif}
/* Territory is one editorial stage: heading, controls, fixed-ratio atlas, then live ledger. */
.cv-territory-explorer.cv-territory-explorer{padding-top:clamp(86px,9vw,138px);border-top:0}
.cv-territory-explorer .cv-territory-explorer__header{display:block;max-width:1040px;
 margin-bottom:clamp(48px,6vw,90px)}
.cv-territory-explorer .cv-territory-explorer__header h2{
 font:580 clamp(2.4rem,4.2vw,4.35rem)/1.12 "Geist",sans-serif!important;
 letter-spacing:-.045em!important;margin:0 0 clamp(22px,3vw,36px)!important;
 max-width:none!important}
.cv-territory-explorer .cv-territory-explorer__header h2 span{display:block}
.cv-territory-explorer .cv-territory-explorer__header h2 span+span{margin-top:.13em;color:#234A3A}
.cv-territory-explorer .cv-territory-explorer__header p{max-width:63ch;
 margin:0;font-size:clamp(.99rem,1.18vw,1.14rem);line-height:1.7}
.cv-territory-explorer .cv-territory-explorer__body{display:block;min-width:0}
.cv-territory-explorer .cv-territory-explorer__controls{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:clamp(16px,2.3vw,30px);align-items:start;margin-bottom:clamp(45px,5vw,76px)}
.cv-territory-explorer .cv-territory-explorer__controls label{min-width:0}
.cv-territory-explorer .cv-territory-explorer__controls select{min-width:0}
.cv-territory-explorer .cv-territory-presets{grid-column:1/-1;min-height:80px;
 padding-block:0!important;align-content:start}
.cv-territory-explorer .cv-territory-explorer__note{grid-column:1/-1;
 max-width:82ch;padding-top:0;border-top:0;margin:0}
.cv-territory-explorer .cv-territory-explorer__results{border-top:0;padding-top:0;
 min-width:0;contain:layout}
.cv-territory-explorer .cv-territory-explorer__metric{min-height:clamp(102px,11vw,147px)}
.cv-territory-explorer .cv-territory-explorer__metric strong{
 display:block;min-width:2.3ch;line-height:1.05;font-variant-numeric:tabular-nums}
.cv-territory-map{box-sizing:border-box;width:100%;margin:0 0 clamp(70px,8vw,120px);
 padding:clamp(20px,3vw,48px);background:#E9ECE3;border:1px solid #D5DBD0;
 min-width:0}
.cv-territory-map__head{display:grid;grid-template-columns:minmax(0,1fr) minmax(205px,320px);
 align-items:start;gap:12px 32px;margin:0 0 22px}
.cv-territory-map figcaption{font:600 clamp(1.3rem,2.15vw,2rem)/1.22 "Geist",sans-serif;
 letter-spacing:-.035em;color:#171E1B}
#cv-map-readout{box-sizing:border-box;display:block;width:100%;height:3.5em;
 overflow:hidden;line-height:1.65!important;font-size:.85rem;text-align:right;
 color:#345442;font-variant-numeric:tabular-nums}
.cv-territory-map__canvas{width:100%;max-width:920px;aspect-ratio:720/630;
 margin:0 auto;position:relative;overflow:visible;contain:layout paint}
.cv-territory-map__canvas svg{display:block!important;width:100%!important;
 height:100%!important;max-height:none!important;min-height:0!important;margin:0!important}
.cv-territory-map__footer{display:flex;justify-content:space-between;align-items:end;
 flex-wrap:wrap;gap:16px 28px;margin-top:clamp(12px,2vw,24px)}
.cv-territory-map__legend{display:flex;gap:4px;align-items:center;flex:none;
 font:520 .73rem/1.4 "Geist",sans-serif;color:#345442}
.cv-territory-map__legend span:first-child{margin-right:7px}
.cv-territory-map__legend span:last-child{margin-left:7px}
.cv-territory-map__legend i{display:inline-block;width:22px;height:13px;background:#B8CFB8}
.cv-territory-map__legend i:nth-of-type(2){background:#7FAB8A}
.cv-territory-map__legend i:nth-of-type(3){background:#4C886A}
.cv-territory-map__legend i:nth-of-type(4){background:#234A3A}
.cv-territory-map__note{margin:0;max-width:67ch;font-size:.8rem;line-height:1.6;color:#4C5B52}
/* Live components below the atlas retain their reading lanes during refetches. */
.cv-territory-explorer .cv-territory-explorer__results #tx-status{
 min-height:3.2em;line-height:1.6;margin-block:8px 4px}
.cv-territory-explorer .cv-territory-explorer__window{
 display:block;min-height:2.7em;line-height:1.5;margin-bottom:12px;
 font-variant-numeric:tabular-nums}
.cv-territory-explorer .cv-source-path{margin:42px 0 32px}
.cv-territory-explorer #cv-evidence-graph{min-height:270px}
.cv-territory-explorer .cv-signal-breakdown-slot{min-height:224px;display:flex;align-items:start}
.cv-territory-explorer .cv-signal-breakdown-slot .cv-signal-breakdown{
 flex:1;margin:18px 0 22px}
.cv-territory-explorer .cv-signal-breakdown-slot__note{
 margin:24px 0;max-width:60ch;font-size:.87rem;line-height:1.6;color:#4C5B52}
.cv-territory-explorer .cv-signal-breakdown-slot__note[hidden]{display:none}
.cv-territory-explorer .cv-territory-distribution__bars{min-height:382px;align-content:start}
.cv-territory-explorer .cv-territory-explorer__table{min-height:195px}
.cv-territory-explorer .cv-territory-explorer__results[aria-busy="true"] #tx-count{opacity:.62}
.cv-territory-explorer .cv-territory-explorer__results[aria-busy="true"] :where(
 .cv-signal-breakdown-slot,.cv-territory-distribution__bars){pointer-events:none}
.cv-territory-map__county{stroke:#F4F1EA;stroke-width:1.15;vector-effect:non-scaling-stroke;
 fill:#E3E5DF;transition:fill 180ms ease,stroke-width 180ms ease;cursor:default}
.cv-territory-map__county[data-intensity="1"]{fill:#B8CFB8;cursor:pointer}
.cv-territory-map__county[data-intensity="2"]{fill:#7FAB8A;cursor:pointer}
.cv-territory-map__county[data-intensity="3"]{fill:#4C886A;cursor:pointer}
.cv-territory-map__county[data-intensity="4"]{fill:#234A3A;cursor:pointer}
.cv-territory-map__county[role="button"]:hover,
.cv-territory-map__county[role="button"]:focus-visible,
.cv-territory-map__county[data-selected="true"]{stroke:#171E1B;stroke-width:2.7;outline:none}
.cv-territory-map__note{margin:4px 0 0;max-width:75ch;font-size:.84rem;line-height:1.6;color:#4C5B52}
.cv-source-path{margin:48px 0 31px;min-width:0}
.cv-source-path h3{font:590 clamp(1.45rem,2vw,1.9rem)/1.16 "Geist",sans-serif;
 letter-spacing:-.035em;color:#171E1B;margin:0 0 22px;max-width:32ch}
.cv-evidence-graph{min-width:0}
.cv-evidence-graph__flow{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr) minmax(0,1.2fr);
 gap:clamp(16px,2.4vw,31px);align-items:start}
.cv-evidence-graph__cell{min-width:0;position:relative;display:flex;flex-direction:column;gap:5px;
 padding:15px 0 12px;border-top:1px solid #889A90}
.cv-evidence-graph__flow .cv-evidence-graph__cell:not(:last-child):after{content:"";position:absolute;
 right:-24px;top:21px;width:15px;height:1px;background:#889A90}
.cv-evidence-graph__label{font:550 .8rem/1.3 "Geist",sans-serif;color:#4C5B52}
.cv-evidence-graph__number{font:600 clamp(1.8rem,3.4vw,3.5rem)/1.05 "Geist",sans-serif;
 letter-spacing:-.035em;color:#1B3B2B;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cv-evidence-graph__cell small{font:450 .79rem/1.55 "Geist",sans-serif;color:#4C5B52}
.cv-evidence-graph__subhead{margin:22px 0 11px;color:#4C5B52;font-size:.85rem}
.cv-evidence-graph__signal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.cv-evidence-graph__signal-grid .cv-evidence-graph__cell{padding-top:10px}
.cv-evidence-graph__signal-grid .cv-evidence-graph__number{font-size:clamp(1.45rem,2.2vw,2.2rem)}
#cv-evidence-explain{font-size:.85rem;line-height:1.65;color:#4C5B52;max-width:74ch;margin:16px 0 0}
.cv-territory-alerts{margin:48px 0 24px;padding:29px 0 27px;border-top:1px solid #B2B7AC}
.cv-territory-alerts h3{font:590 clamp(1.38rem,1.85vw,1.75rem)/1.18 "Geist",sans-serif;
 margin:0 0 10px;letter-spacing:-.03em}
.cv-territory-alerts>p:first-of-type{max-width:55ch;margin:0 0 21px;font-size:.94rem;line-height:1.55;color:#4C5B52}
.cv-territory-alerts form{display:grid;grid-template-columns:1fr minmax(150px,auto);
 gap:12px 14px;align-items:end}
.cv-territory-alerts form>label[for="cv-alert-email"]{grid-column:1/-1;font-size:.89rem;font-weight:590}
.cv-territory-alerts #cv-alert-email{min-width:0;width:100%;box-sizing:border-box;min-height:48px;
 border:1px solid #889A90;background:#F4F1EA;color:#171E1B;border-radius:0;padding:12px;
 font:500 1rem/1.3 "Geist",sans-serif}
.cv-territory-alerts button{border:1px solid #234A3A;background:#234A3A;color:#F4F1EA;
 border-radius:0;min-height:48px;padding:11px 18px;font:600 .9rem/1.3 "Geist",sans-serif;cursor:pointer}
.cv-territory-alerts button:hover:not(:disabled){background:#171E1B}
.cv-territory-alerts button:disabled{opacity:.62;cursor:not-allowed}
.cv-territory-alerts :where(input,button):focus-visible{outline:3px solid #4C886A;outline-offset:3px}
.cv-territory-alerts .cv-alert-consent{grid-column:1/-1;display:flex;align-items:flex-start;
 gap:9px;font-size:.84rem;line-height:1.55;max-width:70ch;color:#4C5B52}
.cv-alert-consent input{margin-top:4px;accent-color:#234A3A;min-width:16px;min-height:16px}
.cv-alert-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.cv-territory-alerts #cv-alert-state{margin:13px 0 0;font:520 .83rem/1.5 "Geist",sans-serif;color:#345442}
.cv-territory-alerts #cv-alert-manage{margin:18px 0 10px;max-width:60ch}
#cv-alert-manage p{font-size:.88rem}
@media(max-width:900px){
 .cv-territory-explorer .cv-territory-explorer__controls{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cv-evidence-graph__flow .cv-evidence-graph__cell:not(:last-child):after{display:none}
 .cv-territory-map__head{grid-template-columns:minmax(0,1fr) minmax(170px,240px)}
}
@media(max-width:650px){
 .cv-territory-explorer.cv-territory-explorer{padding-top:72px}
 .cv-territory-explorer .cv-territory-explorer__header{margin-bottom:42px}
 .cv-territory-explorer .cv-territory-explorer__header h2{font-size:clamp(2.15rem,9vw,3rem)!important;letter-spacing:-.035em!important}
 .cv-territory-explorer .cv-territory-explorer__controls{grid-template-columns:1fr;gap:18px;margin-bottom:42px}
 .cv-territory-explorer .cv-territory-presets{min-height:120px}
 .cv-territory-explorer .cv-territory-explorer__metric{min-height:115px}
 .cv-territory-map{padding:20px 14px 23px;margin-bottom:62px}
 .cv-territory-map__head{display:block;margin-bottom:18px}
 #cv-map-readout{margin-top:8px;text-align:left;height:3.5em}
 .cv-territory-map__canvas{aspect-ratio:720/630}
 .cv-territory-map__footer{align-items:start}
 .cv-territory-explorer #cv-evidence-graph{min-height:460px}
 .cv-territory-explorer .cv-signal-breakdown-slot{min-height:224px}
 .cv-territory-explorer .cv-territory-distribution__bars{min-height:382px}
 .cv-territory-map__note{font-size:.76rem}
 .cv-evidence-graph__flow{grid-template-columns:1fr;gap:7px}
 .cv-evidence-graph__cell{padding:11px 0}
 .cv-evidence-graph__number{font-size:2rem}
 .cv-evidence-graph__signal-grid{grid-template-columns:1fr;gap:3px}
 .cv-evidence-graph__signal-grid .cv-evidence-graph__cell{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
 .cv-evidence-graph__signal-grid .cv-evidence-graph__cell small{grid-column:1/-1}
 .cv-territory-alerts form{grid-template-columns:1fr}
 .cv-territory-alerts button{width:100%}
 .cv-territory-presets{gap:7px 13px}
}
@media(prefers-reduced-motion:reduce){
 .cv-territory-map__county{transition:none}
}
@media(forced-colors:active){
 .cv-territory-map__county[role="button"]{stroke:CanvasText;stroke-width:1.8;fill:Canvas}
 .cv-territory-map__county[role="button"][data-selected="true"]{stroke:Highlight;stroke-width:4}
}