html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; color: var(--bs-black); background: var(--bs-white); font-family: var(--bs-font); font-size: 16px; line-height: 1.5; }
button, select { font-family: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--bs-mango); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.map-shell { max-width: 1216px; margin: auto; padding: 32px 24px; }
.map-intro { display: flex; gap: 24px; justify-content: space-between; align-items: end; padding-bottom: 24px; }
.map-eyebrow { display: block; color: var(--bs-dark-cyan); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.map-intro h1, .map-intro h2 { font-size: clamp(28px,3.2vw,40px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0; color: var(--bs-stormy-teal); }
.map-intro p { max-width: 380px; margin: 0; color: var(--bs-stormy-teal); font-size: 16px; }
be-smart-partner-map { display: block; }
/* Factoid summary removed: the host page's stats section carries these numbers. */
.map-shell .viz be-smart-viz-factoids { display: none; }
/* flex-direction must be pinned here: the bundle's component style is column-below-992px and would win the direction while these overrides supply the rest, mangling the 769-991px band. */
.map-shell .viz.viz-hero .hero-filters { display: flex; flex-direction: row; flex-wrap: wrap; align-items: end; gap: 24px; max-width: none; padding: 24px 0; margin: 0; border: 0; }
.map-shell .viz .filter-select-wrap { display: flex; flex-direction: row; gap: 16px; flex: 1 1 520px; width: auto; }
.map-shell .viz.viz-hero be-smart-state-select, .map-shell .viz.viz-hero be-smart-type-select { flex: 1 1 0; max-width: none; min-width: 0; }
.map-shell .viz.viz-hero be-smart-state-select label, .map-shell .viz.viz-hero be-smart-type-select label { display: block; margin: 0 0 10px; color: var(--bs-stormy-teal); font-size: 16px; font-weight: 500; line-height: 1.15; }
.map-shell .viz.viz-hero be-smart-state-select > select, .map-shell .viz.viz-hero be-smart-type-select > select { width: 100%; max-width: none; min-height: 48px; padding: 14px 40px 10px 16px; border: 1px solid rgba(0,204,166,.5); border-radius: var(--bs-radius); background-color: var(--bs-field); font-family: var(--bs-font); color: var(--bs-stormy-teal); font-weight: 400; font-size: 16px; }
.map-shell .viz .graph-dot-legend { margin: 0; }
.map-shell .viz .resolution-select { display: flex; flex-direction: row; gap: 12px; align-items: end; flex-wrap: wrap; }
.map-shell .viz .resolution-select-label { width: 100%; margin: 0 0 -2px; font-size: 14px; line-height: 1; font-weight: 500; color: var(--bs-stormy-teal); }
.map-shell .viz .resolution-select-option-wrap { display: flex; gap: 8px; }
.map-shell .viz .resolution-select-option { box-sizing: border-box; height: 48px; min-height: 48px; padding: 12px 13px 8px; border: 1px solid var(--map-divider-color); border-radius: var(--bs-radius); font-size: 14px; font-weight: 500; color: var(--bs-stormy-teal); background: white; opacity: 1; cursor: pointer; white-space: nowrap; }
.map-shell .viz .resolution-select-option::before { width: 10px; height: 10px; min-width: 10px; flex: 0 0 10px; margin: 0 8px 0 0; }
.map-shell .viz .resolution-select-option-statewide.active { background: rgba(157,65,169,.08); border-color: var(--bs-grape); }
.map-shell .viz .resolution-select-option-regionwide.active { background: var(--bs-field); border-color: var(--bs-dark-cyan); }
.map-shell .viz .resolution-select-option:not(.active) { color: #536369; }
.map-shell .viz .resolution-select-option:not(.active)::before { background: transparent; border: 1px solid currentColor; }
.map-shell .viz .resolution-select-clear-filters { min-height: 48px; border: 0; padding: 8px 4px; background: transparent; color: var(--bs-stormy-teal); font: 500 14px var(--bs-font); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.map-shell .viz.viz-hero .row-chart-hero { min-height: 0; max-height: none; border: 1px solid var(--map-divider-color); border-radius: 12px 12px 0 0; border-bottom: 0; overflow: clip; }
.map-shell .viz .viz-responsive { width: 100%; padding-top: 62%; }
.map-shell .viz highcharts-chart { left: 0; width: 100%; overflow: clip !important; }
.map-shell .viz.viz-hero.viz-map .highcharts-series-1 .highcharts-point { stroke: white; stroke-width: 1.5px; }
.map-shell .viz.viz-hero.viz-map .highcharts-series-1 .highcharts-point:focus, .map-shell .viz.viz-hero.viz-map .highcharts-series-1 .highcharts-point:hover, .map-shell .viz.viz-hero.viz-map .highcharts-series-1 .highcharts-point.highcharts-point-proxy-select { stroke: var(--bs-stormy-teal); stroke-width: 2px; outline: none; }
.map-shell .viz.viz-hero.viz-map .chart-toggle { background: white; border: 1px solid var(--map-divider-color); border-radius: 8px; color: var(--bs-stormy-teal); text-shadow: none; box-shadow: none; font: 500 14px var(--bs-font); padding: 10px 14px; text-transform: none; }
.map-shell .viz .chart-toggles-wrap { position: absolute; top: 0; right: 0; z-index: 1; width: auto; pointer-events: none; }
.map-shell .viz .chart-toggle { pointer-events: auto; }
/* Footer of the map card: white, framed, divided from the map by its own top border. */
.map-help { background: white; border: 1px solid var(--map-divider-color); border-radius: 0 0 12px 12px; color: var(--bs-stormy-teal); font-size: 14px; margin: 0; padding: 14px 20px; }
.map-message { padding: 20px; background: var(--bs-field); color: var(--bs-stormy-teal); border-radius: 8px; }
[hidden] { display: none !important; }
/* Original coordinates remain in Highcharts; accessible HTML targets handle selection. */
.map-shell .highcharts-series-1, .map-shell .highcharts-series-1.highcharts-data-labels { visibility: hidden !important; pointer-events: none; }
.map-marker-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.map-navigation { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.map-shell .map-navigation button { box-sizing: border-box; width: 44px; height: 44px; padding: 0; border: 1px solid var(--bs-dark-cyan); border-radius: 0; background: white; color: #333; font: 700 24px/1 var(--bs-font); cursor: pointer; }
.map-shell .map-navigation button:first-child { border-radius: 12px 12px 0 0; }
.map-shell .map-navigation button:last-child { border-radius: 0 0 12px 12px; }
.map-shell .map-marker { position: absolute; display: grid; place-items: center; box-sizing: border-box; transform: translate(-50%,-50%); margin: 0; padding: 0; border: 2px solid white; border-radius: 50%; background: var(--bs-dark-cyan); color: white; font: 700 15px/1 var(--bs-font); text-align: center; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.map-shell .map-marker.statewide { background: var(--bs-grape); }
.map-shell .map-marker.mixed { background: linear-gradient(135deg,var(--bs-grape) 49%,var(--bs-dark-cyan) 51%); }
.map-marker:hover, .map-marker[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--bs-stormy-teal); }
.map-marker:focus-visible { outline: 3px solid var(--bs-mango); outline-offset: 3px; z-index: 1; }
.map-marker span { pointer-events: none; transform: translateY(1px); }
.map-shell .map-navigation button span { display: inline-block; transform: translateY(2px); }
.map-shell .viz .chart-toggles-wrap { z-index: 4; }
.map-shell .initiative-browser { position: absolute; z-index: 10; display: flex; flex-direction: column; margin: 0; min-height: 0; border: 1px solid var(--map-divider-color); border-radius: 12px; background: white; color: var(--bs-black); box-shadow: 0 8px 32px #004a5a30, 0 2px 8px #004a5a18; font: 400 15px/1.5 var(--bs-font); text-align: left; pointer-events: auto; overflow-anchor: none; }
.map-shell .initiative-browser::before { content: ''; position: absolute; width: 12px; height: 12px; background: var(--popover-arrow-fill,white); border: solid var(--map-divider-color); border-width: 0; transform: rotate(45deg); pointer-events: none; }
.map-shell .initiative-browser[data-side="left"]::before { left: -7px; top: calc(var(--popover-arrow) - 6px); border-width: 0 0 1px 1px; }
.map-shell .initiative-browser[data-side="right"]::before { right: -7px; top: calc(var(--popover-arrow) - 6px); border-width: 1px 1px 0 0; }
.map-shell .initiative-browser[data-side="none"]::before { display: none; }
/* min-height matches the 44px pager buttons + padding, so the header keeps its height when the pager hides (single initiative). */
.map-shell .initiative-browser-header { display: flex; flex-shrink: 0; align-items: center; gap: 12px; min-height: 52px; background: var(--bs-grape); color: white; padding: 4px 16px; border-radius: 11px 11px 0 0; }
.map-shell .initiative-browser-header h2 { display: flex; align-items: baseline; flex-wrap: nowrap; gap: .32em; text-align: left; margin: 0; color: white; font: 700 20px/1.2 var(--bs-font); letter-spacing: -.02em; }
.map-shell .initiative-page { font: inherit; white-space: nowrap; }
.map-shell .initiative-browser-header h2:focus { outline: none; }
.map-shell .viz .initiative-browser button { box-sizing: border-box; position: static; margin: 0; min-height: 44px; cursor: pointer; font-family: var(--bs-font); text-transform: none; letter-spacing: normal; }
/* The close control is a small dot hung outside the popover's top-right corner; clicking the map also closes. */
.map-shell .viz .initiative-browser .initiative-browser-close { position: absolute; top: -12px; right: -12px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 1px solid var(--map-divider-color); border-radius: 50%; background: white; color: var(--bs-stormy-teal); box-shadow: 0 2px 8px #004a5a30; }
.map-shell .viz .initiative-browser .initiative-browser-close:hover { background: var(--bs-field); }
.map-shell .viz .initiative-browser .initiative-zoom { display: flex; align-items: center; justify-content: flex-start; flex-shrink: 0; width: 100%; height: 44px; padding: 8px 20px; text-align: left; border: 0; border-bottom: 1px solid var(--map-divider-color); border-radius: 0; background: transparent; color: var(--bs-dark-cyan); font: 500 13px/1.5 var(--bs-font); text-decoration: underline; text-underline-offset: 3px; }
/* The pager holds the header's right edge (where the close button once sat): ghost arrow buttons. */
.map-shell .initiative-pager { display: flex; flex-shrink: 0; align-items: center; gap: 0; margin-left: auto; padding: 0; border: 0; }
.map-shell .initiative-pager[hidden] { display: none; }
.map-shell .viz .initiative-browser .initiative-previous, .map-shell .viz .initiative-browser .initiative-next { display: grid; place-items: center; width: 36px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: white; }
.map-shell .viz .initiative-browser .initiative-previous:hover:not(:disabled), .map-shell .viz .initiative-browser .initiative-next:hover:not(:disabled) { background: #ffffff18; }
.map-shell .viz .initiative-browser button:disabled { opacity: .45; background: white; cursor: default; }
.map-shell .viz .initiative-browser .initiative-pager button:disabled { background: transparent; opacity: .35; }
.map-shell .initiative-pager .bs-caret { width: 12px; height: 18px; opacity: 1; }
.map-shell .initiative-popover-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 0 0 11px 11px; }
.map-shell .initiative-scope.statewide { color: var(--bs-grape); }
.map-shell .initiative-scope.regionwide { color: var(--bs-dark-cyan); }
.map-shell .initiative-detail { padding: 20px; overflow-wrap: anywhere; }
.map-shell .initiative-category { display: inline-block; padding: 5px 8px 3px; border: 1px solid rgba(0,204,166,.32); border-radius: 6px; background: var(--bs-field); color: var(--bs-stormy-teal); font: 500 12px/1.4 var(--bs-font); }
.map-shell .initiative-detail h3 { text-align: left; color: var(--bs-stormy-teal); font: 700 24px/1.2 var(--bs-font); letter-spacing: -.02em; margin: 14px 0; }
.map-shell .initiative-location { margin: 0 0 6px; }
.map-shell .initiative-scope { margin: 0 0 16px; font-size: 13px; font-weight: 500; }
.map-shell .initiative-description { white-space: pre-line; margin: 0 0 16px; }
.map-shell .initiative-learn-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 0; color: var(--bs-grape); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
/* Solid carets match the live site's fa-caret-right button motif. */
.bs-caret { display: inline-block; flex-shrink: 0; width: 6px; height: 10px; background: currentColor; clip-path: polygon(0 0,100% 50%,0 100%); opacity: .5; vertical-align: middle; }
.bs-caret-left { transform: rotate(180deg); }
/* GT America's visible lettering sits above the center of its line box.
   Correct the text optically without moving the controls, carets or hit areas. */
.map-shell .initiative-browser-header h2,
.map-shell .initiative-zoom-label { transform: translateY(.1em); }
.map-shell .initiative-browser-close svg { display: block; width: 10px; height: 10px; }
@media (max-width:768px) {
 .map-shell { padding: 24px 16px; }
 .map-intro { display: block; }
 .map-intro p { margin-top: 16px; }
 .map-shell .viz.viz-hero .hero-filters { gap: 20px; align-items: stretch; }
 .map-shell .viz .filter-select-wrap { flex: 1 1 auto; width: 100%; flex-direction: column; gap: 16px; }
 .map-shell .viz .graph-dot-legend { width: 100%; }
 .map-shell .viz .resolution-select { gap: 10px; flex-direction: row; align-items: center; justify-content: flex-start; }
 .map-shell .viz .resolution-select-option { padding: 10px; }
 .map-shell .viz .viz-responsive { padding-top: 110%; }
 .map-shell .initiative-detail { padding: 12px; }
 .map-shell .initiative-browser-header { padding-inline: 12px; }
 .map-shell .initiative-browser-header h2 { font-size: 18px; }
 .map-shell .initiative-detail h3 { font-size: 21px; }
 .map-shell .viz .initiative-browser .initiative-zoom { padding-inline: 12px; }
 .map-shell .viz .initiative-browser .initiative-previous, .map-shell .viz .initiative-browser .initiative-next { width: 32px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
