/* A locally rendered SVG and native links; no map engine or tile requests. */
.hero-location:has(.cb-state-explorer){display:block;min-width:0}
.cb-state-explorer{margin-top:16px}
.cb-map-instruction{margin:0;color:var(--muted-foreground);font-size:1rem}
.cb-state-map{display:block;width:100%;height:auto;margin:20px 0 12px;overflow:visible}
.cb-state-map path{fill:#c9d9d0;stroke:#596d61;stroke-width:1;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.cb-state-map a{cursor:pointer}
.cb-state-map a:hover path,.cb-state-map a:focus-visible path{fill:#245440;stroke:#163d2c;stroke-width:2}
.cb-state-map a:focus-visible{outline:3px solid var(--ring);outline-offset:4px}
.cb-state-map .cb-state-unavailable{fill:#e4e4e7}
.cb-map-caption{display:flex;flex-direction:column;gap:2px;margin:0 0 18px;font-size:.875rem;color:var(--muted-foreground)}
.cb-map-caption [data-map-label]{font-size:1rem;font-weight:600;color:var(--foreground);min-height:1.5em}
.cb-state-picker{border:1px solid var(--border);border-radius:8px;background:var(--card)}
.cb-state-picker summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 16px;cursor:pointer;font-size:1rem;font-weight:600;list-style:none}
.cb-state-picker summary::-webkit-details-marker{display:none}
.cb-state-picker summary span{font-size:1.25rem}
.cb-state-picker[open] summary span{transform:rotate(45deg)}
.cb-state-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;gap:4px;border-top:1px solid var(--border)}
.cb-state-list a{display:flex;align-items:center;min-height:48px;padding:10px 8px;font-size:1rem;border-radius:5px;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
.cb-state-list a:hover{background:var(--secondary)}
.cb-map-territories{font-size:1rem;margin-top:18px;min-height:44px}
.cb-map-skip{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.cb-map-skip:focus{position:static;display:block;width:auto;height:auto;clip-path:none;padding:12px;background:var(--card)}
@media(max-width:600px){.cb-state-map{margin-top:16px}.cb-state-list{grid-template-columns:1fr 1fr}.cb-state-list a{font-size:1rem}.cb-map-caption{margin-bottom:16px}}
@media(forced-colors:active){.cb-state-map path{fill:ButtonFace;stroke:ButtonText}.cb-state-map a:hover path,.cb-state-map a:focus-visible path{fill:Highlight;stroke:HighlightText}}

@media(min-width:1100px){.home-hero:has(.cb-state-explorer){grid-template-columns:minmax(320px,.8fr) minmax(0,1.4fr)}}
.hero-location:has(.cb-state-explorer)>.text-link{display:flex;width:fit-content;max-width:100%;min-height:44px;margin-top:8px;flex-wrap:wrap}

/* Labels are drawn once with native SVG text; small states get full-size HTML links. */
.cb-state-abbr{font-family:var(--sans);font-size:28px;font-weight:600;fill:#163d2c;text-anchor:middle;dominant-baseline:middle;pointer-events:none;stroke:none}
.cb-state-map a:hover .cb-state-abbr,.cb-state-map a:focus-visible .cb-state-abbr{fill:#fff}
.cb-map-viewport{max-width:100%;border-radius:6px}
.cb-small-states{margin:8px 0 18px}
.cb-small-states>p{font-size:.875rem;font-weight:600;color:var(--muted-foreground);margin:0 0 8px}
.cb-small-state-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.cb-small-state-links a{display:flex;align-items:center;gap:7px;min-height:48px;padding:8px;border:1px solid var(--border);border-radius:6px;background:var(--card);font-size:.875rem;line-height:1.3;overflow-wrap:anywhere}
.cb-small-state-links strong{font-size:1rem;color:var(--primary)}
.cb-small-state-links a:hover{border-color:var(--primary);background:var(--secondary)}

@media(max-width:600px){.cb-small-state-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(forced-colors:active){.cb-state-abbr{fill:ButtonText}.cb-state-map a:hover .cb-state-abbr,.cb-state-map a:focus-visible .cb-state-abbr{fill:HighlightText}}

.cb-small-state-links strong{flex:0 0 2ch;white-space:nowrap;overflow-wrap:normal}

/* Fit the entire geography; move crowded abbreviations to full-size links. */
.cb-state-explorer{container-type:inline-size}
.cb-state-map{min-width:0;max-width:100%}
.cb-small-state-links .cb-compact-state-link{display:none}
@container (max-width:400px){
 .cb-state-abbr{font-size:42px}
 .cb-state-abbr.cb-compact-label{display:none}
 .cb-small-state-links .cb-compact-state-link{display:flex}
 .cb-small-state-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (max-width:290px){.cb-small-state-links a{flex-direction:column;align-items:flex-start;gap:4px}.cb-small-state-links strong{flex-basis:auto}}

.cb-state-abbr{paint-order:stroke fill;stroke:#f4f6f4;stroke-width:2px;stroke-linejoin:round}

/* Compact shortcuts retain generous touch targets and full accessible names. */
@container (max-width:400px){
 .cb-small-state-links{grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:6px}
 .cb-small-state-links a{min-height:44px;min-width:44px;padding:8px 4px;align-items:center;justify-content:center;flex-direction:row}
 .cb-small-state-links strong{flex:0 0 auto;font-size:1rem}
 .cb-small-state-links a>span{display:none}
}
@media(min-width:1100px){
 .home-hero:has(.cb-state-explorer){align-items:start}
 .home-hero:has(.cb-state-explorer) .hero-copy{padding-top:32px}
}
/* Homepage hierarchy: search first, then a dedicated map with its navigation. */
.cb-home-intro{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;padding-block:56px 48px}
.cb-home-intro h1{font-size:clamp(2.25rem,4vw,3.25rem);line-height:1.15;letter-spacing:-.04em;margin:0}
.cb-home-intro h1 em{font-style:normal;color:var(--primary)}
.cb-home-search .lead{margin:0 0 20px;font-size:1.125rem}
.cb-home-search-note{margin:12px 0 0;font-size:.875rem;color:var(--muted-foreground)}
.cb-home-map-heading{display:flex;align-items:end;justify-content:space-between;gap:32px;margin-bottom:24px}
.cb-home-map-heading h2{margin:0;font-size:2rem}
.cb-home-map-heading>p{max-width:350px;color:var(--muted-foreground);font-size:1rem;margin:0}
.cb-home-map-card{padding:28px;border:1px solid var(--border);border-radius:12px;background:var(--secondary)}
.cb-home-map-card .cb-state-explorer{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:32px;margin:0;container-type:normal}
.cb-map-geography{min-width:0;container-type:inline-size}
.cb-map-navigation{min-width:0;container-type:inline-size;border-left:1px solid var(--border);padding-left:24px}
.cb-map-navigation h3{font-size:1.125rem;margin:0 0 16px}
.cb-map-navigation .cb-state-picker{margin-bottom:24px}
.cb-map-navigation>.text-link{display:flex;min-height:44px;align-items:center;font-size:1rem;gap:8px;margin-top:8px}
.cb-map-navigation .cb-small-states{margin-bottom:16px}
.cb-map-navigation .cb-state-list{grid-template-columns:1fr}
.cb-home-map-card .cb-state-map{margin-top:12px}
.cb-home-map-card .cb-map-caption{margin-bottom:0}
@media(max-width:900px){
 .cb-home-intro{grid-template-columns:1fr;gap:24px;padding-block:36px}
 .cb-home-map-heading{display:block}.cb-home-map-heading>p{margin-top:12px;max-width:none}
 .cb-home-map-card{padding:20px}
 .cb-home-map-card .cb-state-explorer{grid-template-columns:1fr;gap:24px}
 .cb-map-navigation{border-left:0;border-top:1px solid var(--border);padding:24px 0 0}
 .cb-map-navigation .cb-state-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Keep the open state picker contained while every link remains keyboard reachable. */
.cb-map-navigation .cb-state-list{max-height:min(440px,60vh);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:10px}
