/* One-screen desktop composition; keep the intrinsic SVG projection unchanged.
   On small/short windows retain the readable, naturally scrolling v18 layout. */
@media (min-width:1000px) and (min-height:700px) {
  body{height:100svh;display:grid;grid-template-rows:64px minmax(0,1fr);padding:0 24px 16px}
  .aqua-header{width:100%;max-width:1800px;height:64px;padding:0;justify-self:center}
  .aqua-header h1{margin:0;padding:0;font-size:28px}
  main{width:100%;max-width:1800px;height:100%;min-height:0;margin:0;padding:0;gap:12px;grid-template-rows:minmax(0,1fr) auto;align-items:stretch;justify-self:center}
  /* SVG's default xMidYMid meet keeps land, pins and vectors in the same
     undistorted 1586:992 projection, with room for the complete legend. */
  #map{width:100%;height:100%;min-height:0;aspect-ratio:auto;align-self:stretch}
  .legend-panel{max-height:none;overflow:visible;padding:0}
  .legend-panel h2{margin:0 0 6px;font-size:15px;line-height:20px}
  #legend{grid-template-columns:repeat(8,minmax(0,1fr));gap:2px 12px}
  .legend-entry{grid-template-columns:24px minmax(0,1fr);gap:6px;min-height:28px;padding:3px 6px;font-size:14px;line-height:20px}
}
@media (min-width:1000px) and (max-width:1699px) and (min-height:700px) {
  #legend{grid-template-columns:repeat(7,minmax(0,1fr))}
}
@media (min-width:1000px) and (max-width:1399px) and (min-height:700px) {
  #legend{grid-template-columns:repeat(6,minmax(0,1fr))}
}
