.state-directory{--atlas-selected:#a04419;--atlas-rollover:#ffe1ad;color:#293e52;max-width:1200px;padding:10px 16px 20px}
.state-directory [hidden]{display:none!important}
.state-crumb{display:flex;align-items:center;gap:9px;margin:0;font-size:.85rem;color:#4e6174}
.state-directory a{color:#235680;text-underline-offset:.16em}
.state-intro{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(270px,.9fr);align-items:center;gap:8px 24px;margin:9px 0 12px}
.state-intro h1{font-size:clamp(1.65rem,3.1vw,2.5rem);line-height:1.12;margin:0;color:#233b53;letter-spacing:-.03em}
.state-totals{margin:3px 0 0;color:#485f70;font-size:.95rem}
#state-search{max-width:39rem}
#state-search label{display:block;font-weight:700;font-size:.94rem;margin-bottom:6px}
.state-search-line{display:flex;gap:6px}
.state-search-line input{background:#fff;color:#213548;border:1px solid #91a6b9;border-radius:5px;flex:1;min-width:0;padding:8px 12px;font:inherit;min-height:43px}
.state-search-line button{border:0;background:#344e72;color:white;padding:8px 20px;border-radius:5px;font:inherit;font-weight:700;cursor:pointer}
.state-intro .street-place-search{box-sizing:border-box;width:100%;margin:0;max-width:none;padding:0;background:transparent;border:0;box-shadow:none}
.state-intro .street-place-search label{font-size:.94rem;margin-bottom:6px;color:#293e52}
.state-intro .street-place-search input,.state-intro .street-place-search button{min-height:43px;font:inherit}
.state-intro .street-place-search button{font-weight:700;background:#344e72;padding-inline:20px}
.state-intro .street-place-results{z-index:15}
.state-directory #browse{margin-top:10px}
.state-browse-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.state-browse-heading h2{margin:0;font-size:1.22rem;line-height:1.25}
.state-coverage-note{margin:14px 0 0;color:#516779;font-size:.83rem}
#state-clear{font:inherit;font-size:.91rem;font-weight:600;background:transparent;border:0;padding:6px;color:#235680;cursor:pointer;text-decoration:underline}
#state-status{margin:0;color:#354e65;font-size:.94rem}
#state-status:not(:empty){padding:8px 0}
.state-alphabet{display:flex;flex-wrap:wrap;gap:2px;margin:5px 0}
.state-alphabet a{display:grid;place-items:center;min-width:24px;min-height:24px;background:white;border:1px solid #c4d1dd;border-radius:3px;font-weight:600;text-decoration:none;font-size:.8rem}
.state-alphabet a:hover{background:#fff1d9}
.state-county-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:3px 5px}
.state-county{min-width:0;background:white;border:1px solid #c7d3de;border-radius:5px;overflow-wrap:anywhere;scroll-margin-top:12px}
.state-county:target{border-color:#516f8b;box-shadow:0 0 0 1px #516f8b}
.state-county summary{display:flex;align-items:center;gap:7px;padding:4px 8px;cursor:pointer;font-weight:650;line-height:1.25;min-height:30px;box-sizing:border-box;border-radius:4px;list-style:none;font-size:.89rem}
.state-county summary::-webkit-details-marker{display:none}
.state-county summary::before{content:'';display:block;width:6px;height:6px;flex:none;border-top:2px solid #62798a;border-right:2px solid #62798a;transform:rotate(45deg)}
.state-county[open]>summary{background:#edf3f6;border-bottom:1px solid #d7e0e7;border-radius:4px 4px 0 0}
.state-county[open]>summary::before{transform:rotate(135deg)}
.state-county>summary:is(:hover,:focus-visible,.is-hovered,.is-focused),
.atlas-empty-list:not([open]):has(.is-hovered,.is-focused)>summary{background:var(--atlas-rollover);color:#4c2c16}
.state-county small{margin-left:auto;white-space:nowrap;color:#516779;font-size:.8rem;font-weight:400;font-variant-numeric:tabular-nums}
.state-county[open]{grid-column:1/-1}
.state-county ul{list-style:none;margin:0;padding:3px 12px 5px;columns:3 9rem;column-gap:14px}
.state-county li{break-inside:avoid;border-bottom:1px solid #e5ebef}
.state-county a{display:block;padding:3px 0;line-height:1.3;font-size:.9rem;text-decoration-color:#bbccd8}
.state-county a:hover{text-decoration:underline}
.state-directory :focus-visible{outline:2px solid #245b87;outline-offset:2px}
@media(max-width:600px){
 .state-directory{padding:6px 10px 16px}
 .state-intro{grid-template-columns:minmax(0,1fr)}
 .state-county-grid{grid-template-columns:minmax(0,1fr)}
 .state-search-line button{padding-inline:14px}
 .state-county a{min-height:24px}
}

.atlas-selector{overflow:hidden;isolation:isolate;background:#fff;border:1px solid #bdccd3;border-top:4px solid #375770;border-radius:7px;scroll-margin-top:12px}
.atlas-selector>header{display:flex;justify-content:space-between;align-items:center;gap:4px 12px;flex-wrap:wrap;padding:5px 10px;border-bottom:1px solid #d3dfe2}
.atlas-selector h2,.national-directory #browse h2{margin:0;color:#263f53;font-size:1.35rem;line-height:1.2}
.atlas-legend,.atlas-legend ul,.atlas-legend li{display:flex;align-items:center;gap:6px}
.atlas-legend{flex-wrap:wrap;column-gap:12px;color:#405a65;font-size:.77rem}
.atlas-legend>span{font-weight:700}.atlas-legend ul{list-style:none;margin:0;padding:0;gap:5px 12px;flex-wrap:wrap}
.atlas-legend i{width:13px;height:10px;border:1px solid #72978c;background:var(--land);border-radius:2px}
.map-tone-0{--land:#eaedeb}.map-tone-1{--land:#e0ead8}.map-tone-2{--land:#bed5bc}.map-tone-3{--land:#96bb9e}.map-tone-4{--land:#6ca58e}
.atlas-plot{overflow:auto;background-color:#f2f7f7;background-image:linear-gradient(#dae5e74f 1px,transparent 1px),linear-gradient(90deg,#dae5e74f 1px,transparent 1px);background-size:32px 32px}
.atlas-plot svg{display:block;width:100%;height:auto;max-height:460px;margin:0 auto;touch-action:manipulation}
.atlas-plot .atlas-state{max-height:390px}
.atlas-plot.atlas-enlarged{height:min(62vh,480px)}
.atlas-plot.atlas-enlarged svg{width:max(170%,880px);max-height:none}
.atlas-region{cursor:pointer;outline:none}
.atlas-shape{fill:var(--land);stroke:#70968a;stroke-width:.85;stroke-linejoin:round}
.atlas-state .atlas-shape{stroke-width:.8}
.atlas-region:is(:hover,:focus,.is-hovered,.is-focused) .atlas-shape{fill:var(--atlas-rollover);stroke:#854315;stroke-width:2}
.state-directory .atlas-region:focus-visible{outline:none}
.state-directory .atlas-region:focus-visible :is(.atlas-shape,.atlas-tag){stroke:#51290d;stroke-width:2.8}
.atlas-plot text{font-family:Arial,sans-serif;text-anchor:middle;fill:#193d3c;cursor:pointer}
.atlas-abbr{font-size:10.3px;font-weight:700;letter-spacing:.07em}
.atlas-state-count{font-size:12.5px;font-weight:700}
.atlas-county-name{font-size:11px;font-weight:600}.atlas-county-count{font-size:13px;font-weight:700}
.atlas-region:is(:hover,:focus,.is-hovered,.is-focused) text{fill:#4c2c16}
.atlas-tag{fill:#fff;stroke:#a8bfba;stroke-width:.8}
.atlas-leader{fill:none;stroke:#76928e;stroke-width:.9;pointer-events:none}
.atlas-call-label{font-size:11px;font-weight:700}
.atlas-region:is(:hover,:focus,.is-hovered,.is-focused) .atlas-tag{fill:var(--atlas-rollover)}
.atlas-map-foot{display:flex;align-items:center;gap:3px 8px;flex-wrap:wrap;border-top:1px solid #d3dfe2;padding:4px 9px;font-size:.79rem;color:#49636b}
.atlas-map-foot small{margin-left:auto;font-size:.73rem}
.atlas-enlarge{border:1px solid #aec1cb;background:#fff;border-radius:4px;padding:3px 8px;color:#284d65;font:inherit;font-size:.8rem;font-weight:600;cursor:pointer}
.atlas-tooltip{position:fixed;z-index:9999;pointer-events:none;max-width:min(85vw,350px);background:#193e4e;color:#fff;border-radius:5px;padding:10px 15px;box-shadow:0 3px 12px #102a372e;line-height:1.18}
.atlas-tooltip strong,.atlas-tooltip span{display:block}.atlas-tooltip strong{font-size:1.22rem}.atlas-tooltip span{font-size:.84rem;margin-top:4px;color:#e0eded}
.atlas-artwork{position:relative}
.atlas-artwork .atlas-svg-credit{display:none}
.atlas-copyright{position:absolute;right:5px;bottom:4px;padding:1px 4px;background:#fffffff0;border-radius:2px;color:#263a40;font:700 12px/1.3 Arial,sans-serif;pointer-events:none}
.atlas-region[aria-current="true"] :is(.atlas-shape,.atlas-tag){fill:var(--atlas-selected);stroke:#643214;stroke-width:1.8}
.atlas-region[aria-current="true"] text{fill:white}
.state-directory:not(.state-filtering) .state-county.is-selected{border-color:var(--atlas-selected)}
.state-directory:not(.state-filtering) .state-county.is-selected>summary,
.state-county.is-selected>summary:is(.is-hovered,.is-focused){background:var(--atlas-selected);color:white}
.state-county.is-selected>summary small{color:inherit}
.state-county.is-selected>summary::before{border-color:currentColor}
.state-county>summary:focus-visible{outline:2px solid #86badd;outline-offset:-3px}
.state-intro-copy .country-return{margin-top:7px}
.state-list-actions{display:flex;align-items:center;gap:8px;font-size:.83rem}
.directory-list-scroll{overflow-y:auto;overscroll-behavior-y:auto;scrollbar-gutter:stable;overflow-anchor:none;min-height:0;padding:2px}
.state-directory[data-state-code] #browse{display:flex;flex-direction:column;max-height:var(--list-room,55dvh);min-width:0}
.state-directory #browse>:not(#county-scroll){flex:none}
.state-directory .state-coverage-note{margin:5px 0}
.atlas-empty-list{margin:14px 0;color:#485f70}.atlas-empty-list>summary{cursor:pointer;font-size:.88rem}
.atlas-empty p{margin:9px 13px;font-size:.88rem}
[data-county-zoom] .atlas-state{aspect-ratio:630/453}
#county-map.county-detail .atlas-plot{height:clamp(300px,calc(var(--map-room,65vh) - 95px),466px)}
#county-map.county-detail .atlas-state{width:100%;height:100%;min-width:var(--county-span);min-height:var(--county-span);max-height:none;touch-action:pan-x pan-y pinch-zoom}
.county-detail .atlas-artwork{padding-bottom:20px;background:#f2f7f7}
.county-detail .atlas-copyright{bottom:1px}
.atlas-selector>header h2{margin-right:auto}
[data-county-zoom] #county-map>header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
.state-directory :is(.county-parent-link,.county-zoom-out){grid-area:1/2;justify-self:end}
.state-directory :is(.county-parent-link,.county-zoom-out){border:1px solid #70396e;border-radius:4px;padding:5px 9px;background:#70396e;color:white;font:600 .82rem/1.35 Arial,sans-serif;text-decoration:none;cursor:pointer}
.state-directory :is(.county-parent-link,.county-zoom-out):hover{background:#542852}
.county-detail .atlas-enlarge,.county-detail .atlas-legend,.county-place-hint:empty{display:none}
.county-place-hint{color:#394e50}
.county-overview{width:74px;height:74px;padding:2px;flex:none;border:1px solid #95a89d;border-radius:4px;background:#eff3ed;cursor:crosshair}
.county-overview svg{display:block;width:100%;height:100%}
.county-overview path{fill:#f8edce;stroke:#836245;stroke-width:1;vector-effect:non-scaling-stroke}
.county-overview .overview-dots{fill:none;stroke:#7e624b;stroke-width:1.6;stroke-linecap:round}
.county-overview .overview-window{fill:#c260241c;stroke:#923b12;stroke-width:2;vector-effect:non-scaling-stroke}
.atlas-map-foot:has(.county-overview:not([hidden])){display:grid;grid-template-columns:auto 1fr;column-gap:9px}
.atlas-map-foot:has(.county-overview:not([hidden])) .county-overview{grid-row:span 2}
.atlas-map-foot:has(.county-overview:not([hidden])) small{margin-left:0}
.county-detail .atlas-plot,.county-detail .atlas-state{cursor:zoom-out}
#county-map.county-detail .atlas-region{pointer-events:none}
#county-map.county-detail .atlas-region text{visibility:hidden}
#county-map.county-detail .atlas-region .atlas-shape{fill:#e4e9e2;stroke:#aab9af;stroke-width:.8px;vector-effect:non-scaling-stroke}
.county-detail-outline{fill:#fbf3db;stroke:#a04419;stroke-width:1.5px;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.county-place-marks{transition:opacity .15s ease-out}
.county-moving .county-place-marks{opacity:0;visibility:hidden}
.county-place-leader{fill:none;stroke:#677b71;stroke-width:1;pointer-events:none}
.county-place-leader:is(.place-hover,.place-focus){stroke:#a04419;stroke-width:2.5}
.county-place-link{cursor:pointer}
.state-directory .county-place-link:focus-visible{outline:none}
.county-place-link rect{fill:#fffdf5;fill-opacity:.92}
.county-place-dot{fill:#935022;stroke:white;stroke-width:1.2}
.atlas-plot .county-place-link text{fill:#174b67;text-anchor:start;font:16px Arial,sans-serif;text-decoration:underline}
.county-place-link:is(:hover,:focus,.place-hover,.place-focus) rect{fill:var(--atlas-rollover);fill-opacity:1;stroke:#854315;stroke-width:1}
.county-place-link:is(:hover,:focus,.place-hover,.place-focus) circle{fill:#994216;stroke:#582705}
.state-county a:is(.place-hover,.place-focus){background:var(--atlas-rollover);color:#4c2c16}
@media(prefers-reduced-motion:reduce){.county-place-marks{transition:none}}
.national-directory #browse{background:#fff;border:1px solid #c6d2d9;border-radius:6px;padding:8px 12px}
.national-directory #state-scroll{max-height:var(--state-list-room,35dvh);margin-top:5px}
.national-directory .atlas-plot:not(.atlas-enlarged) .atlas-national{max-height:clamp(150px,var(--national-art-height,38dvh),460px)}
.national-directory .us-state-list{columns:5 150px;column-gap:22px;margin:0;padding:0}
.national-directory .us-state-list li{padding:0;border-bottom:1px solid #e2e8ea}
.national-directory .us-state-list a{display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding:3px 1px;font-size:.88rem;line-height:1.35;text-decoration:none}
.national-directory .us-state-list a:is(:hover,:focus,.is-hovered,.is-focused){background:var(--atlas-rollover);color:#4c2c16;text-decoration:underline}
.national-directory .us-state-list small{color:#536c76;font-size:.78rem;font-variant-numeric:tabular-nums}
.national-directory .us-state-list a{padding-inline:5px;border-radius:3px}
.national-directory .us-state-list a[aria-current="true"]{background:var(--atlas-selected);color:white;font-weight:700}
.national-directory .us-state-list a[aria-current="true"] small{color:inherit}
@media(min-width:800px){
 .atlas-plot:not(.atlas-enlarged) .atlas-national .atlas-abbr{font-size:14px}
 .atlas-plot:not(.atlas-enlarged) .atlas-national .atlas-state-count{font-size:16px}
 .atlas-plot:not(.atlas-enlarged) .atlas-national .atlas-call-label{font-size:14px}
 .state-directory:not(.national-directory){display:grid;grid-template-columns:minmax(0,1.14fr) minmax(0,1fr);gap:0 14px;align-items:start}
 .state-directory:not(.national-directory)>.state-crumb,.state-directory:not(.national-directory)>.state-intro{grid-column:1/-1}
 .state-directory:not(.national-directory) #browse{margin:0}
 .atlas-plot .atlas-state,.state-map-column .atlas-plot.atlas-enlarged{max-height:clamp(150px,calc(var(--map-room,65dvh) - 135px),470px)}
 .state-map-return{display:none}
}
@media(max-width:799px){
 #county-map.county-detail .atlas-plot{height:clamp(298px,90vw,420px)}
 .state-map-column .atlas-plot:not(.atlas-enlarged) .atlas-state{max-height:clamp(135px,calc(var(--map-room,55dvh) * .39),285px)}
 .state-map-column .atlas-plot.atlas-enlarged{height:clamp(200px,38dvh,360px)}
 .state-alphabet{flex-wrap:nowrap;overflow-x:auto}
}
@media(max-width:600px){
 .state-directory[data-state-code] .state-intro{margin:4px 0 7px;gap:4px}
 #state-query,.state-search-line button{min-height:35px;padding-block:5px}
 #state-search label{margin-bottom:3px}
 .state-directory[data-state-code] .state-totals{margin-top:0}
 .state-map-column .atlas-plot:not(.atlas-enlarged) .atlas-state{max-height:clamp(125px,calc(var(--map-room,55dvh) * .32),215px)}
 .state-directory[data-state-code] #browse{margin-top:6px}
 .state-map-column .atlas-map-foot small{font-size:.67rem}
 .atlas-selector>header,.atlas-map-foot{padding:4px 8px}
 .atlas-legend ul{gap:4px 7px}.atlas-map-foot small{margin-left:0}
 .national-directory #browse{padding:12px}
 .national-directory .us-state-list{columns:2;column-gap:14px}
 .national-directory .us-state-list a{padding-block:5px}
 .atlas-plot:not(.atlas-enlarged) .atlas-abbr{display:none}
 .atlas-plot:not(.atlas-enlarged) .atlas-state-count{font-size:19px;transform:translateY(-8px)}
}

/* Australian selectors: retain readable state names and a useful map size on phones. */
@media(max-width:799px){
 .state-map-column .atlas-plot:not(.atlas-enlarged) .atlas-state{max-height:280px}
}
@media(max-width:600px){
 .national-directory .atlas-plot:not(.atlas-enlarged) .atlas-abbr{display:block;font-size:25px}
 .national-directory .atlas-plot:not(.atlas-enlarged) .atlas-state-count{display:none}
 .national-directory .atlas-plot:not(.atlas-enlarged) .atlas-call-label{font-size:24px}
}
