/* Approved centered layout: original logos, SVG, stars and data requests are preserved. */
body[data-map-layout] .map-data-details{margin:0 0 10px;font-size:12px;color:#36566c}
body[data-map-layout] .map-data-details summary{cursor:pointer;min-height:32px;display:list-item;padding:5px 8px}
body[data-map-layout] .map-data-details[open] summary{margin-bottom:6px}

/* Equal side columns put the map exactly on the viewport's horizontal centre. */
@media (min-width:700px), (min-width:581px) and (orientation:landscape){
 html body[data-map-layout] .shell{width:min(1540px,100%);padding:10px clamp(12px,1.5vw,24px) 22px;margin-inline:auto}
 html body[data-map-layout] .grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr) minmax(0,1fr)!important;gap:clamp(10px,1.2vw,18px)!important;align-items:start}
 html body[data-map-layout] .grid>.left{display:grid!important;grid-column:1!important;grid-row:1!important;min-width:0;gap:12px}
 html body[data-map-layout] .grid>.center{display:grid!important;grid-column:2!important;grid-row:1!important;min-width:0;gap:12px;justify-self:stretch}
 html body[data-map-layout] .grid>.right{display:grid!important;grid-column:3!important;grid-row:1!important;grid-template-columns:minmax(0,1fr)!important;min-width:0;gap:12px}
 html body[data-map-layout] .right>section:first-child{grid-row:auto!important}
 html body[data-map-layout] .map{width:100%;min-height:0!important;margin:0}
 html body[data-map-layout] .map svg{display:block;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:600/680;margin:0 auto}
 html body[data-map-layout] .map .maphead{justify-content:center;text-align:center;gap:2px 8px;padding:10px 8px 0;font-size:12px!important}
 html body[data-map-layout] .map .attribution{position:relative!important;font-size:10px!important;padding:6px 8px}
 html body[data-map-layout] .center .panel{margin-top:0!important}
 html body[data-map-layout] .panel{min-width:0;padding:clamp(10px,1.2vw,18px)!important;border-radius:18px!important}
 html body[data-map-layout] .panel h2{font-size:clamp(14px,1.5vw,19px)!important;line-height:1.5!important;overflow-wrap:anywhere}
 html body[data-map-layout] .filtermeta{margin-bottom:10px!important;padding:8px 12px;font-size:12px!important}
 html body[data-map-layout] .shell>p[role="status"]{margin:0 0 10px!important;font-size:12px;line-height:1.6}
}
@media (min-width:581px) and (max-width:1100px){
 html body[data-map-layout] .stats{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 html body[data-map-layout] .stat{padding:12px!important;min-height:132px!important;row-gap:5px}
 html body[data-map-layout] .stat h3{font-size:13px!important;min-height:30px}
 html body[data-map-layout] .stat strong{font-size:clamp(24px,17cqi,30px)!important}
 html body[data-map-layout] .ranking{flex-wrap:wrap;gap:8px;padding:12px 0}
 html body[data-map-layout] .ranknum{width:24px;height:30px;font-size:18px}
 html body[data-map-layout] .thumb{width:auto!important;flex:1;min-height:58px;height:58px}
 html body[data-map-layout] .rankinfo{flex:1 0 100%;width:100%;min-width:0}
 html body[data-map-layout] .rankinfo h3{font-size:15px!important}
 html body[data-map-layout] .rankinfo .area{font-size:19px!important}
 html body[data-map-layout] .rankinfo p,html body[data-map-layout] .rankinfo small{font-size:12px!important;line-height:1.65!important}
 html body[data-map-layout] .barrow{grid-template-columns:20px minmax(0,1fr)!important;gap:4px 6px}
 html body[data-map-layout] .barrow .bar,html body[data-map-layout] .barrow .amount{grid-column:2!important;min-width:0;text-align:left}
 html body[data-map-layout] .donutrow{display:grid!important;grid-template-columns:minmax(0,1fr);justify-items:center;gap:12px}
 html body[data-map-layout] .donut{width:120px;height:120px}
 html body[data-map-layout] .donutcenter{width:84px;height:84px}
 html body[data-map-layout] .legend{min-width:0;width:100%}
 html body[data-map-layout] .legend p{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:5px;align-items:start}
 html body[data-map-layout] .legend span{white-space:normal;overflow-wrap:anywhere}
}
