.page-atlas { background: #0b151a; }
.atlas {
    --atlas-ink: #eef8f7;
    --atlas-muted: #a6bdc3;
    --atlas-accent: #7ce9d3;
    --atlas-pink: #f5a8cb;
    --atlas-line: #2b454e;
    --atlas-panel: #12232b;
    color: var(--atlas-ink);
    background: radial-gradient(ellipse at 0 25%, #163b4140, transparent 50%), #0b151a;
}
.atlas a:hover { color: var(--atlas-accent); }
.atlas :is(a, button, input, select):focus-visible { outline: 3px solid var(--atlas-pink); outline-offset: 4px; }

.atlas-content { padding-bottom: 48px; }
.atlas h1 {
    margin: 0 0 16px;
}
.atlas section[id] { scroll-margin-top: 25px; }
[data-atlas-map-marker-layer] { position: absolute; top: 0; left: 0; z-index: 1; transform-origin: 0 0; pointer-events: none; }
[data-atlas-map-marker] { position: absolute; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; color: #102c31; font: 800 8px/1 ui-sans-serif, sans-serif; transform-origin: 50% 50%; pointer-events: auto; cursor: pointer; touch-action: manipulation; }
[data-atlas-map-marker]:not([hidden]) { display: grid; place-items: center; }
[data-atlas-map-marker]::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 24px; height: 24px; border: 2px solid #e4fff3; border-radius: 50%; background: #f5a8cb; box-shadow: 0 2px 8px #06151fcc; }
[data-atlas-map-marker] > span { position: relative; z-index: 1; }
[data-atlas-map-marker]:hover::before, [data-atlas-map-marker][aria-expanded=true]::before { background: #a0ffe3; border-color: #fff; box-shadow: 0 0 0 3px #0b2729, 0 0 0 5px #7ce9d3; }
.atlas [data-atlas-map-marker]:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
[data-atlas-map-marker-card] { position: absolute; z-index: 3; right: 12px; bottom: 12px; width: min(290px, calc(100% - 24px)); max-height: min(440px, calc(100% - 24px), 70vh); max-height: min(440px, calc(100% - 24px), 70svh); overflow: auto; overscroll-behavior: contain; border: 1px solid #65908e; border-radius: 4px; background: #132b34; color: #eaf6f2; box-shadow: 0 12px 30px #03111799; text-align: left; }
.atlas-map-marker-card-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 12px; border-bottom: 1px solid #3e5d63; background: #16353e; }
.atlas-map-marker-card-header h3 { margin: 0; min-width: 0; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
[data-atlas-map-marker-close] { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 1px solid #98e4d2; border-radius: 3px; background: #7ce9d3; color: #0b2729; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
[data-atlas-map-marker-card] img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.atlas-map-marker-card-body { padding: 13px; }
.atlas-map-marker-card-body .editorial-image figcaption { flex-wrap: wrap; gap: 6px 12px; font-size: 12px; line-height: 1.6; }
.atlas-map-marker-card-body .editorial-image figcaption a, .atlas-map-marker-card-body small { font-size: 12px; }
.atlas-map-marker-card-body p { margin: 0 0 12px; color: #bcd3d5; font-size: 13px; line-height: 1.65; }
[data-atlas-map-marker-card] a { color: #9bf0dc; font-size: 13px; }
[data-atlas-map-marker-card] a:focus-visible, [data-atlas-map-marker-close]:focus-visible { outline: 3px solid #f5a8cb; outline-offset: 3px; }
@media (max-width: 400px) { [data-atlas-map-marker-card] { right: 10px; bottom: 10px; width: calc(100% - 20px); max-height: min(calc(100% - 20px), 70vh); max-height: min(calc(100% - 20px), 70svh); } }

.atlas-intro {
    max-width: 65ch;
    margin: 0 0 1.15rem;
    color: var(--atlas-muted);
    line-height: 1.55;
}
.atlas-directory { margin: clamp(1.5rem, 4vw, 3rem) 0; }
.atlas-directory h2 { margin: 0 0 .9rem; font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.2; }
.atlas-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    align-items: start;
    gap: .8rem;
}
.atlas-directory-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--atlas-line);
    border-radius: 6px;
    background: var(--atlas-panel);
}
.atlas-directory-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    align-items: center;
    gap: .65rem;
    min-block-size: 72px;
}
.atlas-directory-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; }
.atlas-directory-outline { display: block; fill: #7ce9d321; stroke: var(--atlas-accent); stroke-width: 1.5px; stroke-linejoin: round; }
.atlas-directory-meta { margin: .2rem 0 0; color: var(--atlas-muted); font-size: .85rem; }
.atlas-directory-examples { margin: .65rem 0 .2rem; min-block-size: 3lh; font-size: .93rem; line-height: 1.45; }
.atlas-directory-guides { display: flex; flex-wrap: wrap; gap: 0 .8rem; min-block-size: 44px; margin-bottom: .3rem; font-size: .9rem; }
.atlas-directory-card a { color: var(--atlas-accent); text-underline-offset: .18em; }
.atlas-directory-map-link,
.atlas-directory-guides a { display: inline-flex; align-items: center; min-block-size: 44px; line-height: 1.35; }
.atlas-directory-card summary {
    padding: .65rem 0;
    border-top: 1px solid var(--atlas-line);
    min-height: 44px;
    color: var(--atlas-ink);
    font-weight: 600;
    cursor: pointer;
}
.atlas-directory-card summary:focus-visible { outline: 2px solid var(--atlas-pink); outline-offset: 2px; }
.atlas-directory-card ul { margin: 0; padding-inline-start: 1.25rem; }
.atlas-directory-card li a { display: inline-flex; align-items: center; min-height: 44px; }
