/*
 * Colour tokens, light and dark. GENERATED by scripts/build_theme_css.py:
 * edit TOKENS there and rerun it, never this file.
 *
 *   --c-bg             page background
 *   --c-surface        cards, panels, inputs
 *   --c-surface-2      tinted panels, tags, notes
 *   --c-surface-3      quiet hover or inset areas
 *   --c-mint           mint highlight panels and chips
 *   --c-nav            sticky navbar
 *   --c-menu           open mobile menu
 *   --c-text           body text and headings
 *   --c-text-2         secondary text
 *   --c-muted          muted text: meta, ledes, captions
 *   --c-subtle         smallest print: photo credits, sources
 *   --c-brand          brand fill behind white text (buttons)
 *   --c-brand-hover    brand fill, hover
 *   --c-brand-text     brand-green text and links
 *   --c-brand-strong   emphasised green text: pay amounts
 *   --c-tag-text       text on tinted tags
 *   --c-rate           hourly-rate figure on cards
 *   --c-on-brand       text on brand fills
 *   --c-focus          keyboard focus ring
 *   --c-line           card and panel borders
 *   --c-line-soft      dividers inside cards
 *   --c-line-strong    emphasised borders, hover borders (decorative)
 *   --c-control-line   form field borders (3:1, WCAG 1.4.11)
 *   --c-gold           sunshine accent fill
 *   --c-gold-ink       text on gold fills
 *   --c-gold-text      gold used as text
 *   --c-posted         calendar: recruiting posted (white text)
 *   --c-closes         calendar: closes (white text)
 *   --c-warn-bg        warning panel
 *   --c-warn-line      warning panel edge
 *   --c-warn-title     warning heading
 *   --c-warn-text      warning body text
 *   --c-oca-bg         sister-site band
 *   --c-oca-text       sister-site band text
 *   --c-oca-kicker     sister-site band kicker
 *   --c-oca-button     sister-site button (white text)
 *   --c-oca-line       sister-site band edge
 *   --c-oca-glow       sister-site band highlight
 *   --c-map-land       map state fill
 *   --c-map-edge       map state borders and label halo
 *   --c-map-data       map: state with studies
 *   --c-shadow         card shadow
 *   --c-shadow-strong  raised shadow
 */

:root {
    color-scheme: light dark;
    --c-bg: #F5F8F6;
    --c-surface: #FFFFFF;
    --c-surface-2: #EEF6F2;
    --c-surface-3: #F8FAF9;
    --c-mint: #DDF4E9;
    --c-nav: rgba(255, 255, 255, 0.94);
    --c-menu: #FFFFFF;
    --c-text: #132A22;
    --c-text-2: #3F554C;
    --c-muted: #5A6D66;
    --c-subtle: #63766E;
    --c-brand: #117A5B;
    --c-brand-hover: #0B5B44;
    --c-brand-text: #117A5B;
    --c-brand-strong: #0B674A;
    --c-tag-text: #27634E;
    --c-rate: #1F7A58;
    --c-on-brand: #FFFFFF;
    --c-focus: #117A5B;
    --c-line: #DDE7E2;
    --c-line-soft: #EAF0EC;
    --c-line-strong: #A9CDBE;
    --c-control-line: #7C918A;
    --c-gold: #FFD75E;
    --c-gold-ink: #2A1D04;
    --c-gold-text: #8A5300;
    --c-posted: #4A6E9E;
    --c-closes: #8A5300;
    --c-warn-bg: #FEF2F2;
    --c-warn-line: #DC2626;
    --c-warn-title: #991B1B;
    --c-warn-text: #7F1D1D;
    --c-oca-bg: #FFE0EF;
    --c-oca-text: #333333;
    --c-oca-kicker: #820C94;
    --c-oca-button: #960EAA;
    --c-oca-line: #FBCFE8;
    --c-oca-glow: rgba(255, 255, 255, 0.7);
    --c-map-land: #E4EFEA;
    --c-map-edge: #FFFFFF;
    --c-map-data: #A9DCC7;
    --c-shadow: rgba(16, 42, 34, 0.08);
    --c-shadow-strong: rgba(16, 42, 34, 0.14);
}

:root[data-theme="light"] {
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --c-bg: #0F1613;
        --c-surface: #16201C;
        --c-surface-2: #1C2924;
        --c-surface-3: #1A2521;
        --c-mint: #1E3329;
        --c-nav: rgba(15, 22, 19, 0.94);
        --c-menu: #16201C;
        --c-text: #E4ECE8;
        --c-text-2: #C3D1CB;
        --c-muted: #A3B5AE;
        --c-subtle: #93A69E;
        --c-brand: #117A5B;
        --c-brand-hover: #0E6B52;
        --c-brand-text: #7FD6B0;
        --c-brand-strong: #95E0BF;
        --c-tag-text: #A6DCC4;
        --c-rate: #8DE1BE;
        --c-on-brand: #FFFFFF;
        --c-focus: #7FD6B0;
        --c-line: #2B3A34;
        --c-line-soft: #23302B;
        --c-line-strong: #3F5A4F;
        --c-control-line: #6B857A;
        --c-gold: #FFD75E;
        --c-gold-ink: #2A1D04;
        --c-gold-text: #FFD75E;
        --c-posted: #4A6E9E;
        --c-closes: #8A5300;
        --c-warn-bg: #2A1618;
        --c-warn-line: #F87171;
        --c-warn-title: #FCA5A5;
        --c-warn-text: #F3D4D4;
        --c-oca-bg: #2A1530;
        --c-oca-text: #E4ECE8;
        --c-oca-kicker: #F0B3DC;
        --c-oca-button: #960EAA;
        --c-oca-line: #4A2550;
        --c-oca-glow: rgba(240, 179, 220, 0.08);
        --c-map-land: #24332D;
        --c-map-edge: #0F1613;
        --c-map-data: #4A9479;
        --c-shadow: rgba(0, 0, 0, 0.45);
        --c-shadow-strong: rgba(0, 0, 0, 0.6);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --c-bg: #0F1613;
    --c-surface: #16201C;
    --c-surface-2: #1C2924;
    --c-surface-3: #1A2521;
    --c-mint: #1E3329;
    --c-nav: rgba(15, 22, 19, 0.94);
    --c-menu: #16201C;
    --c-text: #E4ECE8;
    --c-text-2: #C3D1CB;
    --c-muted: #A3B5AE;
    --c-subtle: #93A69E;
    --c-brand: #117A5B;
    --c-brand-hover: #0E6B52;
    --c-brand-text: #7FD6B0;
    --c-brand-strong: #95E0BF;
    --c-tag-text: #A6DCC4;
    --c-rate: #8DE1BE;
    --c-on-brand: #FFFFFF;
    --c-focus: #7FD6B0;
    --c-line: #2B3A34;
    --c-line-soft: #23302B;
    --c-line-strong: #3F5A4F;
    --c-control-line: #6B857A;
    --c-gold: #FFD75E;
    --c-gold-ink: #2A1D04;
    --c-gold-text: #FFD75E;
    --c-posted: #4A6E9E;
    --c-closes: #8A5300;
    --c-warn-bg: #2A1618;
    --c-warn-line: #F87171;
    --c-warn-title: #FCA5A5;
    --c-warn-text: #F3D4D4;
    --c-oca-bg: #2A1530;
    --c-oca-text: #E4ECE8;
    --c-oca-kicker: #F0B3DC;
    --c-oca-button: #960EAA;
    --c-oca-line: #4A2550;
    --c-oca-glow: rgba(240, 179, 220, 0.08);
    --c-map-land: #24332D;
    --c-map-edge: #0F1613;
    --c-map-data: #4A9479;
    --c-shadow: rgba(0, 0, 0, 0.45);
    --c-shadow-strong: rgba(0, 0, 0, 0.6);
}

/* While the footer switch changes theme, nothing animates its colour: a
   page full of staggered transitions reads as a flicker. */
.fgm-theme-switching *,
.fgm-theme-switching *::before,
.fgm-theme-switching *::after {
    transition: none !important;
}
