/* A map-first mobile results view. Shared top navigation stays visible. */
.map-info-icon{display:none}
@media(max-width:800px){
 body[data-surface=results]{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body[data-surface=results]>.site-header{flex:none;position:relative;z-index:1200}
 body[data-surface=results]>.site-header .site-menu{position:absolute;top:100%;left:0;right:0;max-height:calc(100dvh - 110px);overflow:auto;box-shadow:0 8px 18px #17213a16}
 body[data-surface=results]>main{box-sizing:border-box;flex:1;min-height:0;width:100%;max-width:none;display:flex;flex-direction:column;overflow-y:auto;padding:8px 12px 0}
 body[data-surface=results] .explorer-heading{flex:none;min-height:44px;padding:0 0 6px;gap:8px}
 body[data-surface=results] .explorer-heading>div{display:flex;align-items:baseline;gap:10px;min-width:0}
 body[data-surface=results] .explorer-heading h1{font-size:19px;line-height:1.2;letter-spacing:-.03em}
 body[data-surface=results] #result-count{font-size:11px;margin:0}
 body[data-surface=results] #open-filters{width:44px;height:44px;min-height:44px;padding:10px;position:relative;flex:none}
 body[data-surface=results] #open-filters>span:first-of-type{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
 body[data-surface=results] #filter-count{position:absolute;top:-3px;right:-3px;font-size:10px;line-height:16px;border-radius:8px;background:#eef1ff;color:#2444ed}
 body[data-surface=results]:has(#results-toolbar:not([hidden])) .explorer-heading{position:relative;min-height:0;height:0;padding:0;overflow:visible}
 body[data-surface=results]:has(#results-toolbar:not([hidden])) .explorer-heading>div{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body[data-surface=results]:has(#results-toolbar:not([hidden])) #open-filters{position:absolute;right:0;top:0;z-index:2}
 body[data-surface=results] #results-toolbar{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:4px 6px;align-items:center;margin:0 0 6px}
 body[data-surface=results] #results-toolbar>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body[data-surface=results] #result-category{grid-column:1;grid-row:1;width:100%;min-width:0;min-height:44px;height:44px;margin:0;padding:8px 24px 8px 10px;font-size:16px;border-radius:12px;appearance:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23626b7a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;background-size:12px}
 body[data-surface=results] .results-display{grid-column:2;grid-row:1;padding:2px;border-radius:12px}
 body[data-surface=results] .results-display button{flex:none;min-height:44px!important;padding:8px!important;font-size:12px;line-height:1.2}
 body[data-surface=results] #balance-legend{grid-column:1/3;grid-row:2;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;align-items:center}
 body[data-surface=results] .balance-scale-labels{grid-column:1;grid-row:1;font-size:10px;gap:6px}
 body[data-surface=results] .legend-color-name{display:none}
 body[data-surface=results] .balance-scale{grid-column:1;grid-row:2;min-width:0;min-height:6px;height:6px;border:0}
 body[data-surface=results] #balance-legend>p{grid-column:2;grid-row:1/3;margin:0;font-size:10px;line-height:1.35;max-width:80px}
 body[data-surface=results] .balance-insufficient-swatch{width:12px;height:10px;margin-right:3px}
 body[data-surface=results] #heat-legend{grid-column:1/3;grid-row:2;font-size:10px;gap:7px}
 body[data-surface=results] #heat-legend>span{max-width:65px;line-height:1.25}
 body[data-surface=results] .heat-explanation{grid-column:3;grid-row:2;padding:0;min-width:0}
 body[data-surface=results] .heat-explanation>summary{display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:0;list-style:none;color:#536078;border-radius:12px;background:#f5f6fa}
 body[data-surface=results] .heat-explanation>summary::-webkit-details-marker{display:none}
 body[data-surface=results] .heat-explanation>summary:before,body[data-surface=results] .heat-explanation>summary:after{content:none}
 body[data-surface=results] .map-info-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body[data-surface=results] .map-info-icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
 body[data-surface=results] .heat-explanation[open]{grid-column:1/-1;grid-row:3;border:1px solid #e1e5ec;border-radius:14px;padding:0 12px 8px;background:#f8f9fb}
 body[data-surface=results] .heat-explanation[open]>summary{width:100%;justify-content:space-between;gap:10px;background:transparent}
 body[data-surface=results] .heat-explanation[open] .map-info-label{position:static;clip-path:none;width:auto;height:auto;white-space:normal;font-size:13px}
 body[data-surface=results] .heat-explanation p{font-size:12px;line-height:1.5;margin:8px 0}
 body[data-surface=results] .heat-explanation #heat-status{font-weight:600;color:#364760}
 body[data-surface=results] #cell-scope{grid-column:1/-1;grid-row:auto;padding:6px 10px}
 body[data-surface=results] #explorer-workspace{flex:1;min-height:0;margin:0}
 body[data-surface=results] #explorer-workspace[data-display=map]{display:flex;min-height:230px}
 body[data-surface=results] .map-column{display:flex;flex:1;min-width:0;min-height:0}
 body[data-surface=results] #cu-map{flex:1;width:100%;height:auto;min-height:230px;border-radius:14px}
 body[data-surface=results] .map-caption{display:none}
 body[data-surface=results] #explorer-workspace[data-display=list]{flex:1 0 auto}
 body[data-surface=results] #explorer-workspace[data-display=list] .map-column{display:none}
 body[data-surface=results] #cu-status:not(:empty){flex:none;font-size:12px;margin:6px 0}
 body[data-surface=results]>.explore-dock{position:static;transform:none;flex:none;align-self:center;width:100%;max-width:none;margin:0;padding:4px 12px max(4px,env(safe-area-inset-bottom));display:flex;justify-content:center;gap:6px;border:0;border-radius:0;background:#fff;box-shadow:none}
 body[data-surface=results]>.explore-dock button{min-height:44px;width:110px;padding:8px 12px;flex-direction:row;gap:8px;border-radius:12px;font-size:12px}
 body[data-surface=results]>.explore-dock svg{width:18px;height:18px}
}
