/*
 * school/theme.css: the school's colors. This is the ONLY file that defines them.
 *
 * Every page loads this file first. All other stylesheets, inline styles and Tailwind classes
 * (bg-rg-green, text-rg-gold, ...) refer to these variables instead of hard-coding a color.
 * `node school/check.js` reports any school color that has crept back in elsewhere.
 * See school/README.md for the whole setup.
 *
 * To re-skin for another school:
 *   1. Change the eight colors in section 1.
 *   2. Change each "-rgb" line to the same color written as three numbers (red green blue).
 *      Tailwind and the see-through backgrounds use these.
 *   3. Rebuild the shades in section 2. Most are named after their recipe:
 *        --school-primary-75-black  = 75% primary mixed with 25% black
 *        --school-primary-10-white  = 10% primary mixed with 90% white
 *      Shades marked "by hand" were picked by eye. Choose something similar from the new palette.
 *   4. Check the chart colors in section 3 (they have their own rules) and the few places that
 *      cannot read this file, which school/README.md lists (manifest.json, theme-color tags).
 *   5. Run `npm run build:css`.
 */

:root {
    /* ── 1. Brand colors (Rabun Gap brand guide) ─────────────────────────────────── */
    --school-primary:            #006747;   /* Rabun Gap Green: header, buttons, links */
    --school-primary-rgb:        0 103 71;
    --school-secondary:          #B9975B;   /* Rabun Gap Gold: rules, highlights, selection */
    --school-secondary-rgb:      185 151 91;
    --school-accent:             #F2A900;   /* Sun Gold: attention, warnings, active state */
    --school-accent-rgb:         242 169 0;

    --school-primary-soft:       #99C2B5;   /* Mountain Green */
    --school-primary-soft-rgb:   153 194 181;
    --school-primary-pale:       #EAF3F0;   /* Valley Green: light green backgrounds */
    --school-primary-pale-rgb:   234 243 240;
    --school-sky-pale:           #E2F2FB;   /* Creek Blue: light blue backgrounds */
    --school-sky-pale-rgb:       226 242 251;
    --school-accent-pale:        #FBE5B2;   /* Sunset Gold: light gold backgrounds */
    --school-accent-pale-rgb:    251 229 178;
    --school-neutral:            #BABBB1;   /* Mist Gray */
    --school-neutral-rgb:        186 187 177;

    /* ── 2. Shades of the brand colors ───────────────────────────────────────────── */
    /* Darker greens: hover states, dark text, header and login backgrounds */
    --school-primary-82-black:   #00543A;
    --school-primary-75-black:   #004D35;
    --school-primary-62-black:   #00402C;
    --school-primary-50-black:   #003326;
    --school-primary-41-black:   #002B1D;
    --school-primary-muted-dark: #163D33;   /* by hand: grayed dark green (transportation) */
    --school-primary-night-rgb:  14 60 46;  /* by hand: phone menu backdrop */
    --school-primary-bright:     #0A8A5F;   /* by hand: light end of request-form gradients */

    /* Lighter greens: tinted backgrounds and borders */
    --school-primary-65-white:   #5B9C84;
    --school-primary-14-white:   #DCEBE6;
    --school-primary-10-white:   #E6F0EB;
    --school-primary-10-white-rgb: 230 240 235;
    --school-primary-7-white:    #EDF5F1;
    --school-primary-5-white-rgb: 240 249 245;
    --school-primary-tint:       #E6F2EE;   /* by hand: request-form icon and check backgrounds */

    /* Golds */
    --school-secondary-ink:      #5A4A22;   /* by hand: dark gold text on gold tags */
    --school-secondary-edge:     #D8C39A;   /* by hand: gold tag border */
    --school-secondary-60-white: #D6C29C;
    --school-secondary-45-white: #E4D3B0;
    --school-secondary-43-white: #E2D3B8;
    --school-secondary-26-white: #F0E6D2;
    --school-secondary-17-white: #F6EFE1;
    --school-secondary-14-white: #F7F1E6;
    --school-secondary-14-white-rgb: 247 241 230;
    --school-secondary-glow-rgb: 221 169 71; /* by hand: gold glow around a highlighted card */
    --school-secondary-light:    #E6C27A;   /* by hand: request-form confetti */
    --school-secondary-text:     #C3891F;   /* by hand: warm bright gold guide heading text (bold, large; Ben 2026-11-10: brighter, no shadow, not yellow) */
    --school-secondary-rule:     #C99A2E;   /* by hand: the gold line under a guide heading */

    --school-accent-ink:         #8A6D00;   /* by hand: readable dark text on Sun Gold */
    --school-accent-26-black:    #3D2F00;
    --school-accent-38-white:    #F8DCA0;

    /* Grays and blues */
    --school-neutral-56-white:   #D8D9D2;
    --school-neutral-22-white:   #EFF1EE;
    --school-neutral-10-white:   #F7F8F7;
    --school-sky-edge:           #D0E9F7;   /* by hand: Creek Blue border */
    --school-sky-strong:         #A8D4EC;   /* by hand: Creek Blue badge */
    --school-sky-ink:            #1F6F9B;   /* by hand: dark blue text on Creek Blue */

    /* ── 2b. Status colors ───────────────────────────────────────────────────────── */
    /* What a state means (done, careful, wrong, FYI), not which brand color it resembles. Use
       these for badges, alerts, delete warnings and "danger" buttons instead of Tailwind's
       stock green/amber/red/blue. For each status:
         --status-X        solid fill (bars, dots, buttons); white text on it, except warn
         --status-X-pale   background for badges and notices
         --status-X-ink    text on the pale background (all pairs are at least 4.5:1)
         --status-X-edge   border that goes with the pale background
       Checked contrast: white on ok 5.3, danger 6.6, info 6.6; ink on pale 5.2 to 8.4.
       Warn is Sun Gold, which white text cannot sit on, so it has --status-warn-on (dark
       gold text on the solid fill, 6.5:1). Re-skinning: keep ok green-ish, danger red-ish,
       info a muted blue and warn the school's attention color, and re-check those pairs. */
    --status-ok:             #237A4B;   /* by hand: a green close to, but not the same as, the primary */
    --status-ok-rgb:         35 122 75;
    --status-ok-pale:        #E6F4EC;
    --status-ok-ink:         #135B35;
    --status-ok-edge:        #B7DEC8;

    --status-warn:           var(--school-accent);
    --status-warn-rgb:       var(--school-accent-rgb);
    --status-warn-pale:      var(--school-accent-pale);
    --status-warn-ink:       #7A5900;   /* by hand: darker than --school-accent-ink, 5.2:1 on the pale */
    --status-warn-edge:      var(--school-accent-38-white);
    --status-warn-on:        var(--school-accent-26-black);

    --status-danger:         #B42318;   /* by hand: deep red; white on it is 6.6:1 */
    --status-danger-rgb:     180 35 24;
    --status-danger-dark:    #912018;   /* hover on the solid */
    --status-danger-pale:    #FEF3F2;
    --status-danger-ink:     #912018;
    --status-danger-edge:    #FECDCA;

    --status-info:           #2C6479;   /* by hand: muted slate-teal instead of a bright blue */
    --status-info-rgb:       44 100 121;
    --status-info-pale:      #E6F1F4;
    --status-info-ink:       #1D4A5A;
    --status-info-edge:      #B9D6DF;

    /* ── 3. Chart colors ─────────────────────────────────────────────────────────── */
    /* These are close to the brand colors but deliberately different. They were checked for
       color-blind safety and contrast on white (see js/maintenance/charts.js). The chart code
       does color math on them, so it keeps its own copies in js/maintenance/charts.js,
       js/events/analysis.js and js/transportation/analysis.js. Change them there too. */
    --school-chart-primary:      #006E4A;
    --school-chart-secondary:    #B07D12;
}
