/* v2.9.20: one place for workspace layout; no statistical or map geometry changes. */
body #explore #v2918-shell.v2920-ready { --view-gap:16px; }
body #explore #v2918-shell.v2920-ready .v2918-header {align-items:start;gap:16px;}
body #explore #v2918-shell.v2920-ready .v2918-tabs {flex-wrap:wrap;overflow:visible;justify-content:flex-start;}
body #explore #v2918-shell.v2920-ready .v2920-secondary-nav {padding:12px 0 16px;}
body #explore #v2918-shell.v2920-ready .v2920-secondary-nav>summary {display:inline-block;list-style:none;font-size:11px;color:#56748c;cursor:pointer;margin-right:12px;}
body #explore #v2918-shell.v2920-ready .v2920-secondary-items {display:inline-flex;gap:6px;flex-wrap:wrap;min-width:0;}
body #explore #v2918-shell.v2920-ready .v2918-menu-item {text-align:center;padding:9px 12px;min-height:42px;}
body #explore #v2918-shell.v2920-ready .v2918-menu-item.is-active {background:#145b9b;border-color:#145b9b;color:white;}
/* Remove inherited auto margins: a full-width select alone did not fill its grid cell. */
body #explore #v2918-shell.v2920-ready .v2918-controls {
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 width:100%!important;max-width:none!important;box-sizing:border-box;
 gap:10px 14px!important;align-items:end!important;padding:14px!important;
}
body #explore #v2918-shell.v2920-ready .v2918-controls :is(.city-picker,.metric-picker) {display:contents!important;}
body #explore #v2918-shell.v2920-ready .v2918-controls :is(.city-picker-control,.year-picker-label,.metric-picker>label) {
 width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;
 justify-self:stretch!important;box-sizing:border-box;align-self:end!important;
}
body #explore #v2918-shell.v2920-ready .v2918-controls .city-picker-control {grid-column:1!important;grid-row:1!important;}
body #explore #v2918-shell.v2920-ready .v2918-controls .year-picker-label {grid-column:2!important;grid-row:1!important;}
body #explore #v2918-shell.v2920-ready .v2918-controls .metric-picker>label:first-child {grid-column:3!important;grid-row:1!important;}
body #explore #v2918-shell.v2920-ready .v2918-controls .metric-picker>label:nth-child(2) {grid-column:4!important;grid-row:1!important;}
body #explore #v2918-shell.v2920-ready .v2918-controls select {width:100%!important;max-width:100%!important;min-width:0!important;height:44px!important;}
body #explore #v2918-shell.v2920-ready .v2918-controls .city-picker-count {grid-column:1/-1!important;grid-row:2!important;}
body #explore #v2918-shell.v2920-ready .v2918-controls #data-error {grid-column:1/-1!important;grid-row:3!important;}
body #explore #v2918-shell.v2920-ready .v2920-view-guide {margin:0 0 16px;padding:11px 14px;background:#edf7fb;border-left:3px solid #2796b6;border-radius:0 8px 8px 0;color:#365e76;font-size:13px;line-height:1.7;}
/* Map: only selected-city identity, the mapped measure and a route to details. */
body #explore #v2918-shell.v2920-ready[data-v2918-view="map"] .detail>:is(.metric-grid,.detail-section-control,.city-detail-tabs,.city-detail-content) {display:none!important;}
body #explore #v2918-shell.v2920-ready[data-v2918-view="map"] .detail>.active-metric-card {display:block!important;margin:14px 0!important;}
body #explore #v2918-shell.v2920-ready[data-v2918-view="map"] .info-column {height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;}
body #explore #v2918-shell.v2920-ready[data-v2918-view="map"] .info-column>.detail {flex:none!important;overflow:visible!important;height:auto!important;max-height:none!important;}
body #explore #v2918-shell.v2920-ready .v2920-open-basic {display:none;}
body #explore #v2918-shell.v2920-ready[data-v2918-view="map"] .v2920-open-basic {display:block;width:100%;margin-top:12px;min-height:44px;}
/* Basic and analytical views occupy the whole canvas, rather than a map sidebar. */
body #explore #v2918-shell.v2920-ready:not([data-v2918-view="map"])>.workspace {
 display:block!important;grid-template-columns:none!important;height:auto!important;
 min-height:0!important;max-height:none!important;overflow:visible!important;
}
body #explore #v2918-shell.v2920-ready:not([data-v2918-view="map"])>.workspace>.map-column {display:none!important;}
body #explore #v2918-shell.v2920-ready:not([data-v2918-view="map"])>.workspace>.info-column {
 display:block!important;width:100%!important;position:static!important;height:auto!important;
 min-height:0!important;max-height:none!important;overflow:visible!important;
}
body #explore #v2918-shell.v2920-ready:not([data-v2918-view="map"]) .info-column>:is(.detail,#tools):not([hidden]) {
 display:block!important;position:static!important;width:100%!important;height:auto!important;
 min-height:0!important;max-height:none!important;overflow:visible!important;box-sizing:border-box;
}
body #explore #v2918-shell.v2920-ready[data-v2918-view="basic"] .detail {padding:clamp(16px,2.5vw,28px)!important;}
body #explore #v2918-shell.v2920-ready[data-v2918-view="basic"] .detail>.active-metric-card {display:none!important;}
body #explore #v2918-shell.v2920-ready[data-v2918-view="basic"] .detail>.metric-grid {display:grid!important;grid-template-columns:2fr 1fr!important;gap:14px!important;}
body #explore #v2918-shell.v2920-ready[data-v2918-view="basic"] .detail>.detail-section-control {max-width:420px;margin:18px 0!important;}
body #explore #v2918-shell.v2920-ready[data-v2918-view="basic"] #city-pane-overview:not([hidden]) {display:grid!important;grid-template-columns:1fr 1.5fr;gap:16px;align-items:start;}
body #explore #v2918-shell.v2920-ready[data-v2918-view="basic"] #city-pane-overview .extra-stats {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
/* Each tool keeps its native condition controls above a readable result area. */
body #explore #v2918-shell.v2920-ready #tools .tool-content {padding:clamp(14px,2.4vw,28px)!important;max-height:none!important;overflow:visible!important;}
body #explore #v2918-shell.v2920-ready #tools .tool-panel:not([hidden]) {width:100%!important;max-width:none!important;min-width:0;box-sizing:border-box;}
body #explore #v2918-shell.v2920-ready #tools :is(h3,h4) {line-height:1.5;}
body #explore #v2918-shell.v2920-ready #tools :is(select,input) {min-height:44px;box-sizing:border-box;max-width:100%;}
body #explore #v2918-shell.v2920-ready #tools :is(.compare-selects,.v08-ranking-head,.discovery-controls,.report-controls) {padding:16px;background:#f4f8fb;border:1px solid #dfebf2;border-radius:12px;margin:0 0 20px;gap:14px;}
body #explore #v2918-shell.v2920-ready #tools .compare-selects {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;}
body #explore #v2918-shell.v2920-ready #tools .compare-selects label {display:grid;gap:7px;min-width:0;}
body #explore #v2918-shell.v2920-ready #tools .v08-ranking-head {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);}
body #explore #v2918-shell.v2920-ready #tools .v08-ranking-head label {min-width:0;}
body #explore #v2918-shell.v2920-ready #tools :is(.discovery-presets,.ai-nav-examples,.report-actions) {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;}
body #explore #v2918-shell.v2920-ready #tools :is(.discovery-presets,.ai-nav-examples,.report-actions) button {min-height:44px;white-space:normal;}
body #explore #v2918-shell.v2920-ready #tools .external-stat-list {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
body #explore #v2918-shell.v2920-ready #tools .external-stat-item {min-width:0;gap:8px;flex-wrap:wrap;}
body #explore #v2918-shell.v2920-ready #tools :is(#report-table,#report-pref) {max-width:100%;overflow-x:auto;}
body #explore #v2918-shell.v2920-ready #tools .ai-nav-input-line {display:flex;gap:10px;}
body #explore #v2918-shell.v2920-ready #tools .ai-nav-input-line input {flex:1;min-width:0;}
body #explore #v2918-shell.v2920-ready #tools .v09-story-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
body #explore #v2918-shell.v2920-ready :is(.v2919-reference,.v2919-external-note) {display:none!important;}
/* Existing hidden attributes remain authoritative on every analytical tab. */
body #explore #v2918-shell.v2920-ready .info-column>:is(.detail,#tools)[hidden],
body #explore #v2918-shell.v2920-ready #tools .tool-panel[hidden] {display:none!important;}
@media(max-width:1059px){
 body #explore #v2918-shell.v2920-ready .v2918-header {flex-direction:column;}
 body #explore #v2918-shell.v2920-ready .v2918-controls {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 body #explore #v2918-shell.v2920-ready .v2918-controls .metric-picker>label:first-child {grid-column:1!important;grid-row:2!important;}
 body #explore #v2918-shell.v2920-ready .v2918-controls .metric-picker>label:nth-child(2) {grid-column:2!important;grid-row:2!important;}
 body #explore #v2918-shell.v2920-ready .v2918-controls .city-picker-count {grid-row:3!important;}
 body #explore #v2918-shell.v2920-ready .v2918-controls #data-error {grid-row:4!important;}
 body #explore #v2918-shell.v2920-ready #tools .external-stat-list {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:620px){
 body #explore #v2918-shell.v2920-ready .v2920-secondary-nav {display:block;}
 body #explore #v2918-shell.v2920-ready .v2920-secondary-nav>summary {display:block;margin:0;padding:12px;border:1px solid #d8e6ef;border-radius:8px;font-size:12px;}
 body #explore #v2918-shell.v2920-ready .v2920-secondary-nav>summary::after {content:"⌄";float:right;}
 body #explore #v2918-shell.v2920-ready .v2920-secondary-nav[open] .v2920-secondary-items {margin-top:8px;}
 body #explore #v2918-shell.v2920-ready .v2920-secondary-nav.is-active>summary {background:#e4f2fa;color:#145b9b;}
 body #explore #v2918-shell.v2920-ready .v2918-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;}
 body #explore #v2918-shell.v2920-ready .v2918-tab {white-space:normal;}
 body #explore #v2918-shell.v2920-ready .v2920-secondary-items {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
 body #explore #v2918-shell.v2920-ready .v2918-menu-item {min-width:0;}
 body #explore #v2918-shell.v2920-ready[data-v2918-view="basic"] #city-pane-overview:not([hidden]) {grid-template-columns:1fr;}
 body #explore #v2918-shell.v2920-ready[data-v2918-view="basic"] #city-pane-overview .extra-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 body #explore #v2918-shell.v2920-ready #tools :is(.external-stat-list,.v09-story-grid,.report-controls) {grid-template-columns:1fr;}
 body #explore #v2918-shell.v2920-ready #tools .ai-nav-input-line {flex-direction:column;}
}
@media print{
 body #explore #v2918-shell.v2920-ready :is(.v2920-secondary-nav,.v2920-view-guide,.v2920-open-basic) {display:none!important;}
 body #explore #v2918-shell.v2920-ready #tools :is(#report-table,#report-pref) {overflow:visible;}
}

body #explore #v2918-shell.v2920-ready .v2920-secondary-nav>summary:focus-visible {outline:3px solid #46a5d3;outline-offset:2px;}

/* Give the detail selector enough content height; legacy 35px clipped its text. */
body #explore #v2918-shell.v2920-ready[data-v2918-view="basic"] .detail-section-control select {
 height:44px!important;min-height:44px!important;padding:8px 12px!important;line-height:1.4!important;
}
@media(max-width:620px){
 body #explore #v2918-shell.v2920-ready[data-v2918-view="basic"] .detail>.metric-grid {grid-template-columns:1fr!important;}
 body #explore #v2918-shell.v2920-ready[data-v2918-view="basic"] .metric-grid>.mini-metric {display:none!important;}
}
