/* Mobile layout: headings and legends never overlay map geography. */
@media(max-width:1024px){
 html,body{height:auto!important;min-width:0!important;width:100%!important;overflow:auto!important}
 body>.app{display:flex!important;flex-direction:column!important;height:auto!important;max-height:none!important;min-height:100dvh;overflow:visible!important;width:100%!important}
 .app>header{display:grid!important;grid-template-columns:100px minmax(0,1fr)!important;min-height:70px;height:auto!important;width:100%!important}
 .brand{padding:8px!important;height:auto!important}.brandmark{font-size:20px!important}.brandmark span{font-size:10px!important}
 .headtitle{padding:10px!important;min-width:0}.headtitle .big{font-size:20px!important;line-height:1.15}.headtitle .small{font-size:9px!important;letter-spacing:.5px!important}.headright{display:none!important}
 .app>nav{width:100%!important;max-height:180px;overflow:auto!important;padding:8px!important;border-bottom:1px solid var(--line)}
 .app>main,.app>aside{display:block!important;width:100%!important;height:auto!important;min-width:0!important;max-height:none!important;overflow:visible!important;padding:10px!important}
 .kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}.kpi{height:auto!important;min-height:62px;padding:7px!important}.kpi b{font-size:17px!important}
 .mapwrap{display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;max-height:none!important;width:100%!important;overflow:hidden!important}
 .mapwrap>svg#map{order:2;position:static!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:5/3;flex:none!important;margin:0!important}
 .mapwrap>.maphead{position:static!important;order:0!important;max-width:none!important;width:auto!important;margin:8px!important;padding:9px!important;pointer-events:auto!important;transform:none!important}
 .maphead b{font-size:13px!important}.maphead div{font-size:11px!important;line-height:1.4}
 .mapwrap>.back{position:static!important;order:1!important;align-self:flex-start;margin:0 8px 8px!important;transform:none!important}
 .mapwrap>#olaNationalLegend,.mapwrap>.legend,.mapwrap>.status{position:static!important;order:3!important;inset:auto!important;transform:none!important;width:auto!important;max-width:none!important;margin:8px!important;flex:none!important;z-index:auto!important}
 .app>footer{display:flex!important;flex-wrap:wrap;gap:12px;padding:12px!important;width:100%!important;height:auto!important;min-height:60px}.quick{flex-wrap:wrap;gap:10px}.method{text-align:left!important}
 #resultbar{display:flex!important;flex-wrap:wrap;gap:6px!important}#resultbar select{max-width:100%!important}
 .card,.body,.blk{min-width:0!important;overflow-wrap:anywhere}nav button,select{touch-action:manipulation}
}
