
.atlas { padding:24px 0 48px; background: linear-gradient(126deg,#f4faff,#e3f2fc 64%,#edf7f5); }
.atlas > .container { width:calc(100% - 64px); max-width:1680px; }
body:has(> main.atlas) .header-inner { min-height:80px; }
.atlas .intro :is(h1,h2) { font-size:clamp(32px,3.3vw,52px); font-weight:700; line-height:1.16; letter-spacing:-.02em; text-wrap:balance; margin:0 0 12px; color:#0a263b; }
.atlas .intro :is(h1,h2) span { color:#3e913e; }
.atlas .intro p { font-size:clamp(16px,1.2vw,20px); line-height:1.55; text-wrap:pretty; margin:0; color:#405769; }
.atlas .viewer { margin-top:24px; display:grid; grid-template-columns:minmax(0,1fr) clamp(360px,29vw,460px); height:clamp(420px,calc(100svh - 330px),780px); overflow:hidden; border-radius:18px; border:1px solid #cfdee5; background:white; box-shadow:0 16px 44px #102f4010; }
.atlas .stage { position:relative; isolation:isolate; overflow:hidden; background:#08192b; min-height:0; }
.atlas #map, .atlas .world-preview { position:absolute; inset:0; }
.atlas #map { opacity:0; pointer-events:none; }
.atlas #map.ready { opacity:1; pointer-events:auto; }
.atlas .world-preview { display:grid; place-items:center; }
.atlas .sphere { width:min(82%,460px); position:relative; }
.atlas .sphere img { width:100%; height:auto; display:block; filter:drop-shadow(0 0 9px #5086ba75); }
.atlas #preview-point { position:absolute; inset:0; pointer-events:none; }
.atlas .preview-pin { position:absolute; transform:translate(-50%,-100%); pointer-events:auto; }
.atlas .stage-title, .atlas .reset { position:absolute; top:18px; }
.atlas .stage-title { left:18px; pointer-events:none; }
.atlas .test-chip, .atlas .record-tag { display:inline-flex; align-items:center; gap:8px; border-radius:20px; font-size:12px; font-weight:700; padding:7px 12px; line-height:1.2; }
.atlas .test-chip { background:#d9f7df; color:#174d2e; }
.atlas .test-chip i { width:7px; height:7px; background:#348147; border-radius:50%; }
.atlas .reset { right:16px; background:#13283de6; color:white; border:1px solid #68809480; border-radius:7px; display:flex; align-items:center; gap:8px; padding:10px 12px; font-size:14px; min-height:44px; }
.atlas .small-icon { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.6; }
.atlas .reset:hover { background:#26435a; }
.atlas .caption { position:absolute; pointer-events:none; left:16px; bottom:35px; display:flex; align-items:center; gap:9px; color:#fff; font-size:12px; background:#102439db; padding:5px 8px; border-radius:4px; }
.atlas .axis { color:#bcecbc; font-weight:700; }
.atlas .tree-pin { border:0; background:none; padding:4px; display:grid; justify-items:center; gap:5px; color:white; }
.atlas .tree-pin .pin-dot { display:grid; place-items:center; width:37px; height:37px; border-radius:50% 50% 50% 5px; transform:rotate(-45deg); background:#257b3e; border:2px solid #ebffe8; box-shadow:0 2px 12px #071b27a6; }
.atlas .pin-dot svg { width:22px; height:22px; transform:rotate(45deg); }
.atlas .pin-name { background:#fff; color:#152b32; box-shadow:0 2px 6px #0003; padding:5px 10px; font-size:14px; font-weight:700; border-radius:5px; }
.atlas .tree-pin:hover .pin-dot, .atlas .tree-pin[aria-pressed=true] .pin-dot { background:#125c2b; }
.atlas .inspector { padding:24px; min-height:0; height:100%; overflow-y:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; scroll-margin-top:96px; }
.atlas .record-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.atlas .record-head :is(h2,h3) { font-size:clamp(23px,2.3vw,34px); }
.atlas .record-tag { color:#465f70; background:#eef3f6; }
.atlas .photo { width:100%; display:block; border-radius:9px; height:clamp(160px,14vw,215px); object-fit:cover; object-position:center 48%; }
.atlas .inspector h3 { font-size:clamp(24px,2.2vw,34px); margin:16px 0 3px; line-height:1.1; }
.atlas .location { font-size:15px; margin:0 0 12px; }
.atlas .facts { margin:0; font-size:15px; }
.atlas .facts div { display:flex; justify-content:space-between; gap:12px; align-items:baseline; padding:9px 0; border-top:1px solid var(--line); }
.atlas .facts dt { color:#516678; }
.atlas .facts dd { margin:0; text-align:right; font-weight:600; overflow-wrap:anywhere; }
.atlas .proof { margin-top:12px; width:100%; font-size:15px; min-height:44px; padding:12px; }
.atlas .proof .icon { width:18px; height:18px; }
.atlas .footnote { font-size:14px; margin:12px 0 0; display:flex; align-items:center; gap:8px; }
.atlas .footnote .icon { width:16px; height:16px; }
.atlas .tree-pin:focus-visible, .atlas .reset:focus-visible { outline-color:#b3ff9a; }
.atlas [hidden] { display:none!important; }
@media(max-width:800px) {
.atlas > .container { width:calc(100% - 32px); }
.atlas .viewer { grid-template-columns:1fr; height:auto; }
.atlas .stage { height:clamp(320px,80vw,460px); min-height:0; }
.atlas .sphere { width:min(70%,365px); max-width:88%; }
.atlas .inspector { padding:20px; height:auto; max-height:540px; }
.atlas .photo { height:clamp(170px,42vw,240px); }
.atlas { padding-bottom:40px; }
.atlas .intro p { line-height:1.5; }
}
.atlas-heading { display:flex; align-items:center; gap:40px; justify-content:space-between; }
.atlas .intro { flex:1; min-width:0; }
.atlas .tally { flex-shrink:0; border-left:2px solid #c4dbd2; padding:0 0 2px 22px; }
.atlas .tally strong { font-size:16px; color:#33684a; }
.atlas .tally dl { display:flex; align-items:flex-start; gap:24px; margin:6px 0 0; }
.atlas .tally dl div { display:flex; flex-direction:column-reverse; }
.atlas .tally dd { font-size:clamp(38px,3.2vw,50px); margin:0; font-weight:700; line-height:1.12; }
.atlas .tally dt, .atlas .directory-count { color:#526672; font-size:15px; }
.atlas .pin-dot b { transform:rotate(45deg); }
.atlas .directory-count { margin:0 0 13px; }
.atlas .directory-tree { display:flex; align-items:center; width:100%; text-align:left; gap:12px; padding:16px 2px; border:0; border-top:1px solid var(--line); background:white; font-size:17px; line-height:1.35; }
.atlas .directory-tree:hover { background:#f4faf6; }
.atlas .directory-tree strong, .atlas .directory-tree small { display:block; }
.atlas .directory-tree small { margin-top:4px; color:#526672; font-size:15px; }
.atlas .tree-number { display:grid; place-items:center; width:38px; height:38px; flex-shrink:0; border-radius:50%; color:#27663e; background:#edf5ee; font-size:15px; font-weight:bold; }
.atlas .directory-tree span:last-child { margin-left:auto; padding-right:5px; color:#37634e; }
.atlas .directory-back { border:0; background:transparent; padding:4px 0; margin-bottom:12px; color:#246436; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:1350px) {
.atlas-heading { display:grid; gap:20px; }
.atlas .tally { padding-left:12px; } }
@media(max-width:600px) {
.atlas .tally dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.atlas .tally dd { font-size:32px; }
.atlas .tally dt { font-size:12px; line-height:1.4; }
}
.atlas .flat-world { width:100%; position:relative; }
.atlas .flat-world img { width:100%; display:block; }
.atlas .world-preview { overflow:hidden; align-content:center; }
.atlas .preview-pin { transform:translate(-100%,0); }
.atlas .preview-pin.area-preview { transform:translate(0,-100%); }
.atlas .area-pin .pin-dot { background:#916020; }
.atlas .area-pin:hover .pin-dot { background:#6a4516; }
.atlas .area-number { background:#fff2da; color:#754c12; }
.atlas .photo-caption { font-size:12px; color:#516678; margin:6px 0; }
.atlas .gallery-controls { display:flex; gap:12px; }
.atlas .gallery-step { background:white; border:1px solid var(--line); padding:5px 9px; border-radius:5px; font-size:13px; }


/* Separate the nearby labels, keeping a small dot on each actual coordinate. */
.atlas .preview-pin { transform:translate(-50%,0); }
.atlas .preview-pin.area-preview { transform:translate(-50%,-100%); }
.atlas .tree-pin { width:44px; height:44px; padding:0; border:0; }
.atlas .tree-pin::after { content:""; width:8px; height:8px; position:absolute; left:50%; top:0; transform:translate(-50%,-50%); border:1px solid white; border-radius:50%; background:#257b3e; }
.atlas .tree-pin .pin-dot, .atlas .tree-pin .pin-name { position:absolute; left:50%; }
.atlas .tree-pin .pin-dot { top:7px; width:32px; height:32px; transform:translateX(-50%); border-radius:50%; font-size:14px; }
.atlas .pin-dot b { transform:none; }
.atlas .pin-name { top:43px; transform:translateX(-50%); white-space:nowrap; }
.atlas .area-pin::after { top:100%; background:#916020; }
.atlas .area-pin .pin-dot { top:auto; bottom:7px; }
.atlas .area-pin .pin-name { top:auto; bottom:43px; }
.atlas .preview-pin .tree-pin { position:relative; }
.atlas .area-pin.label-below::after { top:0; }
.atlas .area-pin.label-below .pin-dot { top:7px; bottom:auto; }
.atlas .area-pin.label-below .pin-name { top:43px; bottom:auto; }
@media(max-width:600px) {
.atlas .tree-pin .pin-name { display:none; }
.atlas .tree-pin:focus-visible .pin-name { display:block; pointer-events:none; }
.atlas .tree-pin { width:32px; height:34px; }
}

/* Home-page section: shared explorer, sized to the surrounding content. */
.atlas[data-embedded] { padding:72px 0 64px; margin-top:48px; scroll-margin-top:96px; }
.atlas[data-embedded] > .container { width:calc(100% - 128px); max-width:1440px; }
.atlas[data-embedded] .atlas-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:32px; align-items:center; }
.atlas[data-embedded] .intro h2 { font-size:clamp(30px,2.8vw,46px); line-height:1.15; letter-spacing:-.025em; }
.atlas[data-embedded] .intro p { max-width:58ch; font-size:18px; }
.atlas[data-embedded] .tally { padding-left:24px; }
.atlas[data-embedded] .tally dl { gap:22px; }
.atlas[data-embedded] .tally dd { font-size:38px; }
.atlas[data-embedded] .tally dt { font-size:13px; }
.atlas[data-embedded] .viewer { height:clamp(500px,68svh,680px); grid-template-columns:minmax(0,1fr) 340px; margin-top:32px; }
.atlas[data-embedded] .record-head h3 { font-size:28px; letter-spacing:-.025em; }
.atlas[data-embedded] .inspector { scroll-margin-top:112px; }
.atlas .footnote { line-height:1.5; }
.atlas .directory-tree > span:nth-child(2) { min-width:0; overflow-wrap:anywhere; }
.atlas .gallery-step { min-height:40px; }
.atlas .directory-back { min-height:40px; }
.atlas .forest-noscript { padding:20px; color:#405769; }
@media(max-width:1200px) {
  .atlas[data-embedded] .atlas-heading { grid-template-columns:1fr; gap:24px; }
  .atlas[data-embedded] .tally { border-left:0; padding:0; }
  .atlas[data-embedded] .tally dl { gap:32px; }
}
@media(max-width:800px) {
  .atlas[data-embedded] { margin-top:32px; padding:44px 0; }
  .atlas[data-embedded] > .container { width:calc(100% - 32px); }
  .atlas[data-embedded] .intro p { font-size:16px; }
  .atlas[data-embedded] .tally dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
  .atlas[data-embedded] .tally dd { font-size:32px; }
  .atlas[data-embedded] .tally dt { font-size:12px; }
  .atlas[data-embedded] .viewer { grid-template-columns:1fr; height:auto; margin-top:24px; }
  .atlas[data-embedded] .stage { height:clamp(330px,88vw,460px); }
  .atlas[data-embedded] .inspector { max-height:480px; padding:20px; }
  .atlas[data-embedded] .footnote { font-size:12px; align-items:flex-start; }
}
