/* ==========================================================================
   scroll-page.css — the structure the scroll pages share (Astral Sea, Beastlands, Non-existence):
   the fixed top bar and the depth gauge on the left. Colours and the gauge's little marker belong to each page,
   set through these variables (on :root in the page's own CSS):

     --sp-links-z          stacking of the top bar
     --sp-links-bg         top of the bar's fade      --sp-links-bg0   its transparent end (same colour, alpha 0)
     --sp-end              colour of the gauge's first label       --sp-end-opacity
     --sp-end-last         colour of its last label
     --sp-line             the gauge's vertical line
     --sp-here             colour of the section you are in

   Load after site.css and before the page's own CSS (the page keeps its link colours, the marker (.gauge-stops a::before)
   and its rules for narrow screens).
   ========================================================================== */

/* --- Top links --- */
.page-links {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: var(--sp-links-z);
    display: flex; gap: 18px;
    padding: 12px 16px 22px;
    font-size: 0.8rem;
    background: linear-gradient(var(--sp-links-bg), var(--sp-links-bg0));
}

/* --- Depth gauge --- */
.depth-gauge {
    position: fixed; left: 22px; top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--ink-soft);
}
.gauge-end { font-family: var(--font-fantasy); color: var(--sp-end); opacity: var(--sp-end-opacity, 0.8); }
.gauge-end:last-child { color: var(--sp-end-last); }
.gauge-stops {
    list-style: none;
    margin: 0; padding: 0 0 0 6px;
    border-left: 1px solid var(--sp-line);
    display: flex; flex-direction: column; gap: 14px;
}
.gauge-stops a {
    position: relative;
    display: block;
    padding-left: 14px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.3s ease;
}
.gauge-stops a.here { color: var(--sp-here); }
