#peak-atlas { margin-top: 1.5rem; }
#peak-atlas [hidden] { display: none; }
.atlas-filters { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0 0 1rem; }
.atlas-filters label, label.atlas-filters { display: block; font-size: .88rem; font-weight: 700; }
.atlas-filters select { margin-top: .15rem; }
.atlas-desk { display: grid; grid-template-columns: minmax(0,1fr) minmax(14rem,27%); background: #e5ecdf; border-radius: .55rem; overflow: hidden; }
.map-frame { color: #eaf3e8; background: #113c42; padding: clamp(.85rem,3vw,1.65rem); }
.map-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .7rem 1.3rem; }
.map-date { font: 650 .82rem/1.4 "IBM Plex Mono",ui-monospace,monospace; letter-spacing: .02em; margin: 0; color: #baddd5; }
.map-heading h2, .route-readout h2 { color: inherit; font-size: clamp(1.35rem,2.6vw,2rem); letter-spacing: -.025em; margin: .2rem 0; line-height: 1.14; }
.map-key { display:flex; flex-wrap:wrap; gap:.25rem .9rem; font-size:.8rem; }
.map-key span { display:inline-flex; gap:.4rem; align-items:center; }
.map-key span::before, .map-dot::before { content:""; width:.53rem; height:.53rem; background:#95e8c4; border-radius:50%; display:block; }
.map-key span:nth-child(2)::before, .map-dot.same::before { border-radius:1px; background:#ffbb80; }
.map-key span:nth-child(3)::before, .map-dot.tie::before { background:#e2e7fc; border-radius:0; transform:rotate(45deg) scale(.8); }
.map-inner { padding: .9rem .35rem 0; }
.map-top, .map-bottom { text-align:center; font-size:.76rem; color:#c0dbd8; }
.map-top { padding-bottom:.35rem; }
.map-bottom { padding-top:.35rem; }
.map-space { height:clamp(14rem,27vw,21rem); position:relative; isolation:isolate; border:1px solid #597a7a;
  background-color:#0e3037; background-image:linear-gradient(to right, #35575c 1px, transparent 1px),linear-gradient(to top,#35575c 1px, transparent 1px); background-size:12.5% 12.5%; }
.map-space::before, .map-space::after { content:""; position:absolute; z-index:-1; background:#b2c9bd; }
.map-space::before { left:50%; width:1px; inset-block:0; }
.map-space::after { top:50%; height:1px; inset-inline:0;}
.quad { position:absolute; z-index:-1; padding:.15rem .33rem; font:650 .69rem/1.2 ui-monospace,monospace; color:#bed5cf; background:#163d42; }
.q-nw,.q-sw {left:2px;} .q-ne,.q-se {right:2px;} .q-nw,.q-ne {top:2px;} .q-sw,.q-se {bottom:2px;}
.map-dot { position:absolute; display:grid; place-items:center; width:16px; height:16px; transform:translate(-50%,-50%); }
.map-dot::before { outline:1px solid #123637; }
.map-dot:hover, .map-dot[aria-current=true] { z-index:1; }
.map-dot:hover::before { outline:2px solid white; }
.route-pin { position:absolute; z-index:2; pointer-events:none; width:1rem; height:1rem; border:2px solid white; border-radius:50%; transform:translate(-50%,-50%); }
.route-pin span { position:absolute; color:#153f42; background:#f3f4db; font:700 .78rem/1.3 ui-monospace,monospace; padding:0 .22rem; border-radius:2px; left:50%; bottom:1.1rem; transform:translateX(-50%); }
.map-axis { display:flex; justify-content:space-between; font-size:.8rem; margin:.5rem 0 .25rem; gap:.3rem; }
.map-scale { margin:.4rem 0 0; font-size:.79rem; color:#c2dcd3; }
.route-readout { padding:clamp(1rem,2.4vw,1.65rem); }
.route-readout label { margin-top:.7rem; }
.outcome { font-weight:700; color:#325b52; margin:.7rem 0; }
.gap-readings { margin:0; }
.gap-readings dt { color:#34595c; font-size:.82rem; }
.gap-readings dd { font-size:1.08rem; font-weight:700; margin:0 0 .55rem; }
.raw-values { font-size:.88rem; margin: .65rem 0 1rem; white-space:nowrap; }
#peak-atlas .raw-values th, #peak-atlas .raw-values td { padding:.25rem .17rem; min-width:0; }
.raw-values caption { padding:0 0 .25rem; text-align:left; font-weight:700; }
#atlas-profile { font-weight:700; }
#atlas-count { font-size:.93rem; }
@media(max-width:720px) { .atlas-desk { grid-template-columns:1fr; } .route-readout { width:100%; } .atlas-filters select { min-height:2.6rem; } }

.map-scale a { color: inherit; }
.map-selection { display: none; }
@media (max-width:720px) {
  .map-selection { display: block; margin: .7rem 0 0; color: #eaf3e8; font-size: .85rem; }
}
.view-switch { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--line); margin: .8rem 0 1rem; }
.view-switch a { display: block; padding: .5rem .8rem; font-weight: 650; text-decoration: none; border-bottom: 3px solid transparent; }
.view-switch a[aria-current="page"] { border-color: var(--teal); }
.view-switch a:hover { text-decoration: underline; }
.view-switch [hidden] { display: none; }
body[data-tool="routemirror"]:not(.recordpage) #peak-atlas { margin-top: 0; }
@media (max-width: 540px) {
  .atlas-filters:has(#atlas-axis) { display: grid; grid-template-columns: 4.9rem minmax(0,1fr); gap: .45rem .65rem; }
  .atlas-filters label:has(#atlas-axis) { grid-column: 1 / -1; }
  .atlas-filters select { margin-top: 0; }
}
