/* The dark theme (#624): a member's pick. Every page links this sheet off (media "not all", BaseLayout.astro); the worker
   turns it on for a member whose pick is dark (media "all") or follows the device for system (media
   "(prefers-color-scheme: dark)", src/routing/member-paint.ts), and the theme switch flips the same media
   (src/scripts/theme.ts). A guest always gets the light page. It comes after every sheet of the page, so its :root wins
   the ties. Only roles switch: the palette stays, and every component written with roles reads on it without a rule of
   its own. Palette A Graphite: the page a step under its boxes, lines a step over them. Text reads at 7:1 or more
   (--muted 7.0:1 on a box), the status inks at 7.5:1. A token whose light value derives from one switched here (--field
   from --bg, --chip-bg from --paper, --wire from --line-2) follows without a line of its own. Every token here exists in
   site-2026.css with a value of the same kind (tests/kit.test.mjs) */
:root {
    color-scheme: dark;
    --bg: #15191b;
    --bg-2: #111416;
    --paper: #1c2124;
    --line: #2a3135;
    --line-2: #384045;
    --line-soft: #181c1f;
    --sunk: #181c1f;
    --hover: rgb(255 255 255 / 0.05);
    --press: rgb(255 255 255 / 0.08);
    --gold-edge: #b89540;
    --gold-card: linear-gradient(135deg, #22211d 0%, #2a2519 52%, #342c18 100%);
    --ink: var(--snow);
    --ink-2: #c9ced1;
    --muted: #a3abb0;
    --signal-ink: var(--code-coral);
    --bull: var(--dark-bull);
    --bear: var(--dark-bear);
    --bull-ink: var(--dark-bull);
    --bear-ink: var(--dark-bear);
    --neutral-ink: var(--silver);
    --gold-ink: var(--code-gold);
    --marker: var(--silver);
    --mark-ink: #a3abb0;
    --mark-strong: #c9ced1;
    --ink-hover: #d6d4ce;
    --band: #1c2124;
    --scrim: rgb(0 0 0 / 0.55);
    --raised: rgb(255 255 255 / 0.1);
    --raised-edge: transparent;
    --tint-bull: var(--dark-tint-bull);
    --tint-bear: var(--dark-tint-bear);
    --tint-neutral: rgb(255 255 255 / 0.07);
    --tint-gold: color-mix(in srgb, var(--gold) 20%, transparent);
    --code-body: var(--dark-body);
    --code-string: var(--code-gold);
    --code-comment: var(--dark-comment);
    --dark: #0f1214;
    --dark-deep: #0e1113;
    --dark-body: #d8d2c8;
    --tip-ink: #1a1a1a; /* the light tip keeps the light ink */
    --logo-ring: transparent;
    --glass-bar: rgb(28 33 36 / 0.84);
    --glass-tag: rgb(28 33 36 / 0.7);
    --dark-grid-line: rgb(255 255 255 / 0.025); /* the background grid, quieter than on a light page's dark band */
    --grid-line: var(--dark-grid-line);
    /* black casts; a white hairline lifts what floats */
    --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-card: var(--shadow-xs), 0 10px 28px rgb(0 0 0 / 0.35);
    --shadow-bar: 0 8px 24px -16px rgb(0 0 0 / 0.7);
    --shadow-pop: 0 0 0 1px rgb(255 255 255 / 0.06), 0 16px 32px -16px rgb(0 0 0 / 0.8);
    --shadow-glass: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 0 0 1px rgb(255 255 255 / 0.07), 0 1px 2px -1px rgb(0 0 0 / 0.4), 0 6px 14px -6px rgb(0 0 0 / 0.6);
    --shadow-tile: 0 1px 2px rgb(0 0 0 / 0.5);
    --shadow-dot: 0 0 0 1px rgb(0 0 0 / 0.5), 0 2px 6px -2px rgb(0 0 0 / 0.7);
}
/* a dark band keeps its meaning on the dark page: paper is the light text again (.on-dark --ink), and the band, a box's
   colour, takes an edge where the light page had the step from cream to graphite */
.on-dark { --paper: var(--snow); }
.block.on-dark { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
/* the split-flap tiles of the directory heroes stand outside a band: their letters stay light on the dark tile */
.flap-c { --paper: var(--snow); }
/* the gold dot of the last careers step keeps its dark figure */
.careers-steps li:last-child .careers-step-n { --ink: var(--dark); }
/* the light tip stays light over the dark panels it explains */
.tip--light { --paper: #fff; }
/* photos and white logo tiles get a hairline of white, so their edge reads on the dark page */
img:not([src*=".svg"]) { outline: 1px solid rgb(255 255 255 / 0.1); outline-offset: -1px; }
/* the white wordmark in the header */
.nav-logo > img:not(.nav-logo-dark) { display: none; }
.nav-logo-dark { display: block; }
