.atlas-home { max-width: 1050px; margin: 2rem auto; padding: clamp(1.5rem,4vw,3.5rem); }
.atlas-home h2 { font-size: clamp(2rem,4vw,3.25rem); margin: .5rem 0 1rem; }
.atlas-home p { max-width: 42rem; font-size: 1.1rem; line-height: 1.6; }
.atlas-home-actions,.atlas-place-actions { display:flex; flex-wrap:wrap; gap:.65rem; margin:1.25rem 0; }
.atlas-home-route { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1rem; margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid var(--line,#38454b); }
.atlas-home-route>div { display:grid; gap:.6rem; align-content:start; }
.atlas-home-route span,.atlas-navigation span { color:var(--muted,#b9c1c1); font-size:.9rem; }
.living-atlas { padding:.75rem 0; }
.atlas-trail { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; margin-bottom:1rem; font-size:1rem; }
.atlas-trail>*+*::before { content:'›'; color:var(--muted,#b9c1c1); margin-right:.5rem; }
.atlas-trail button { padding:.25rem .55rem; box-shadow:none; }
.atlas-trail [aria-current],#atlas-selected-trail { color:var(--text,#e2e5df); }
.atlas-navigation { display:flex; flex-wrap:wrap; align-items:center; gap:1rem; margin-bottom:1rem; }
.atlas-navigation>div { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; }
.atlas-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:1.25rem; align-items:start; }
.atlas-map { min-width:0; }
.atlas-map-heading h2 { margin:0 0 .85rem; font-size:1.8rem; }
.living-atlas .archive-page-header { margin:0; padding:0; border:0; }
.living-atlas .dossier { padding:0; border:0; background:transparent; }
.living-atlas .map-viewer-body { height:calc(100dvh - 320px); min-height:440px; }
.living-atlas #map-position { display:none; }
.atlas-place { padding:1.25rem; background:var(--panel,#15232a); border:1px solid var(--line,#38454b); border-radius:10px; }
.atlas-place-title { display:flex; align-items:start; justify-content:space-between; gap:.5rem; }
.atlas-place h3 { margin:0 0 1rem; font-size:1.3rem; }
.atlas-place p { line-height:1.6; font-size:1rem; }
.atlas-place-image { width:100%; max-height:220px; object-fit:cover; border-radius:6px; margin-bottom:.75rem; }
.atlas-place-actions { flex-direction:column; align-items:stretch; margin-bottom:0; }
.living-atlas button:not(.map-hotspot) { min-height:36px; }
@media(max-width:850px){
  .atlas-layout { grid-template-columns:minmax(0,1fr); gap:.75rem; }
  .living-atlas .map-viewer-body { height:55dvh; min-height:320px; }
  .atlas-place { padding:1rem; }
  .atlas-place-image { max-width:240px; max-height:150px; float:left; margin-right:1rem; }
  .atlas-place-actions { clear:both; }
  .atlas-home-route { grid-template-columns:1fr; }
  .atlas-navigation { gap:.6rem; }
  .living-atlas button:not(.map-hotspot) { min-height:44px; }
}

body.atlas-workspace .masthead { padding:6px; margin-bottom:8px; }
body.atlas-workspace .masthead-main { --mast-height:64px; grid-template-columns:minmax(300px,360px) minmax(0,1fr); }
body.atlas-workspace .brand-logo { width:64px; height:64px; }
body.atlas-workspace .brand .brand-title { font-size:1.5rem; margin-bottom:4px; }
body.atlas-workspace .brand-subtitle { font-size:.85rem; }
@media(max-width:650px){
 body.atlas-workspace .masthead-main { grid-template-columns:1fr; --mast-height:58px; }
 body.atlas-workspace .mast-art { display:none; }
 body.atlas-workspace .brand-logo { width:58px; height:58px; }
 .living-atlas .map-viewer-controls { gap:.25rem; }
 .living-atlas #map-download { display:none; }
 .atlas-place { max-height:38dvh; overflow:auto; }
 .living-atlas .map-viewer-body { height:48dvh; min-height:260px; }
}

.atlas-trail { position:sticky; top:0; z-index:10; padding:.5rem 0; background:var(--bg,#101b20); }
@media(max-width:850px){ .atlas-place { position:sticky; bottom:.5rem; z-index:5; } }

.atlas-exit-fullscreen { display:none; }
body.atlas-workspace #app:fullscreen { background:var(--bg,#101b20); padding:1rem; overflow:auto; }
body.atlas-workspace #app:fullscreen .atlas-exit-fullscreen { display:block; }
body.atlas-workspace #app:fullscreen .map-viewer-body { height:calc(100dvh - 230px); }
@media(max-width:850px){ body.atlas-workspace #app:fullscreen .map-viewer-body { height:55dvh; } }

.atlas-home .atlas-button,.living-atlas .atlas-button,.living-atlas .map-viewer-controls button,.living-atlas .map-viewer-controls a {
 color:var(--text,#e2e5df);background:var(--panel,#15232a);border:1px solid var(--line,#38454b);border-radius:7px;padding:.5rem .75rem;box-shadow:inset 0 1px 0 #ffffff0b;
}
.atlas-home .atlas-button:hover,.living-atlas .atlas-button:hover { background:var(--panel2,#203139); }
.atlas-home .atlas-button:focus-visible,.living-atlas button:focus-visible { outline:2px solid #baa7d0;outline-offset:3px; }
.living-atlas .dossier-back { color:var(--accent,#d6b36a);border:1px solid var(--accent,#d6b36a);background:var(--panel,#15232a);white-space:normal;text-align:left; }
.atlas-map-heading .archive-locator-row { margin-bottom:.75rem; }
.living-atlas .map-viewer-stage { position:relative; }
.atlas-compass-overlay { position:absolute;right:.75rem;top:.75rem;width:86px;z-index:4;pointer-events:none;user-select:none;filter:drop-shadow(0 2px 4px #0009); }
.atlas-compass-overlay img { display:block;width:100%;height:auto; }
@media(max-width:650px){.atlas-compass-overlay { width:62px;right:.5rem;top:.5rem; }}
@media(max-width:650px){.living-atlas .archive-locator-row { align-items:flex-start; }.living-atlas .dossier-back { max-width:65%; } }
.atlas-review-frame { width:100%;height:85dvh;min-height:650px;border:1px solid #40545a;border-radius:10px;background:#0d181c; }
.atlas-review p a { color:var(--lavender,#cbb4df); }
@media(max-width:650px){.atlas-review-frame{height:90dvh;min-height:700px;}}
