/* Shared vocabulary from Journey 3. Page layout lives in noah.css. */
:root {
    --bg: #05070f;                        /* page night-navy */
    --surface: rgba(14, 19, 34, 0.92);    /* panels, cards, controls */
    --surface-soft: rgba(14, 19, 34, 0.7);
    --ink: #e8ecf5;                       /* primary ivory text */
    --ink-strong: #ffffff;
    --ink-muted: rgba(232, 236, 245, 0.72);
    --ink-faint: rgba(232, 236, 245, 0.45);
    --line: rgba(110, 168, 255, 0.16);    /* hairline borders */
    --line-strong: rgba(110, 168, 255, 0.4);
    --accent: #6ea8ff;                    /* actions and links */
    --accent-strong: #a0c4ff;             /* hover / active */
    --accent-wash: rgba(110, 168, 255, 0.08);
    --gold: #d4af5a;                      /* scripture, progress, emphasis */
    --gold-bright: #e8c878;
    --font-body: 'EB Garamond', Georgia, serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-body: 16px;
    --text-heading: 20px;
    --text-title: 24px;
    --card-radius: 4px;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, .35);
    --label-shadow: 0 1px 3px var(--bg), 0 0 6px var(--bg);
    --land: #222a3a;
    --coast: rgba(140,170,220,.38);
    --river: rgba(110,150,200,.6);
    --ramp-1: #304674;
    --ramp-2: #4a90d9;
    --ramp-3: #6ea8ef;
    --ramp-4: var(--gold-bright);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 400 var(--text-body)/1.4 var(--font-body); color: var(--ink); background: var(--bg); width: 100vw; height: 100dvh; overflow: hidden; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
button, input, select, summary { font-family: var(--font-body); font-size: var(--text-sm); }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--card-radius); padding: 6px 12px; cursor: pointer; }
button:hover, button.active { background: var(--accent-wash); border-color: var(--accent); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button[hidden], [hidden] { display: none !important; }
summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: var(--ink); }
summary::marker { color: var(--accent); }
p + p { margin-top: 8px; }
#main-map { position: absolute; inset: 0; z-index: 1; background: var(--bg); }
#main-map.leaflet-container { background: var(--bg); font-family: var(--font-body); }
.hillshade-tiles { filter: invert(1); mix-blend-mode: screen; opacity: .08; }
.leaflet-zoom-anim .hillshade-tiles { opacity: 0; }
.nation-label, .travel-dot-label, .babel-scatter-label, .people-group-label { background: transparent; border: 0; pointer-events: none !important; text-align: center; }
.nation-label { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.travel-dot-label, .babel-scatter-label { text-align: left; }
.people-group-label { font-family: var(--font-display); font-size: var(--text-xs); color: var(--ink-muted); text-shadow: var(--label-shadow); }
.people-group-label .pg-name, .people-group-label span { font-family: inherit !important; font-size: var(--text-xs) !important; font-style: normal !important; color: var(--ink-muted) !important; }
.people-group-label .pg-pop { font-size: var(--text-xs); }
