/* JeffDavisEdu colour schemes.
   Every page reads its colours from the variables in css/style.css :root (the Classic look). A scheme overrides
   those variables when <html data-scheme="..."> is set; the administrator picks the live scheme in Admin → Colors
   (lib/schemes.php lists them). Layout never changes, only colour.

   Roles: --navy text/links/headings · --brand big filled areas (hero, footer, active nav, primary buttons) with
   --on-brand text on them · --gold the accent (stripes, underlines, highlights) with --gold-soft/--gold-ink for
   badges · --chart-1/--chart-4 the main chart line and highlight · --stripe an optional stripe under the header.
   Colours read by scripts (--chart-*, --navy-dark, --brand-dark) must stay plain hex. Status colours (OK, warning,
   error), grade colours, map district colours and weather colours carry meaning and are the same in every scheme. */

/* ---------- Logo: royal blue leads, gold accent, Mardi Gras ribbon stripe ---------- */
html[data-scheme="logo-blue"] {
  --navy: #0b34b8;
  --navy-dark: #0a1f6e;
  --navy-soft: #e4eafa;
  --red: #c4141c;
  --gold: #eaa621;
  --gold-soft: #fdf0c8;
  --gold-ink: #5c3d00;
  --gold-ink-2: #6b4700;
  --brand: #0032c5;
  --brand-dark: #0a1f6e;
  --brand-light: #2c5be0;
  --brand-light-2: #2c5be0;
  --on-brand: #fff;
  --on-brand-soft: #e3e9fb;
  --on-brand-faint: #c7d3f7;
  --on-brand-line: #dbe3fa;
  --on-brand-muted: #b9c6f0;
  --on-brand-accent: #f2c14e;
  --accent-tint: #fdfaf0;
  --stripe: linear-gradient(90deg, #6b2c91 0 33.4%, #eaa621 33.4% 66.6%, #23893f 66.6% 100%);
  --chart-0: #0b34b8;
  --chart-1: #0b34b8;
  --chart-4: #eaa621;
}

/* ---------- Logo: gold leads, royal blue accent, Mardi Gras ribbon stripe ---------- */
html[data-scheme="logo-gold"] {
  --navy: #0b34b8;
  --navy-dark: #0a1f6e;
  --navy-soft: #e4eafa;
  --red: #c4141c;
  --gold: #0032c5;
  --gold-soft: #e4eafa;
  --gold-ink: #0a1f6e;
  --gold-ink-2: #0a1f6e;
  --brand: #eaa621;
  --brand-dark: #e09a12;
  --brand-light: #f5c451;
  --brand-light-2: #f5c451;
  --on-brand: #0a1f6e;
  --on-brand-soft: #102466;
  --on-brand-faint: #102466;
  --on-brand-line: #102466;
  --on-brand-muted: #2b2f4f;
  --on-brand-accent: #0a1f6e;
  --accent-tint: #f4f7fd;
  --stripe: linear-gradient(90deg, #6b2c91 0 33.4%, #0032c5 33.4% 66.6%, #23893f 66.6% 100%);
  --chart-0: #0b34b8;
  --chart-1: #0b34b8;
  --chart-4: #eaa621;
}
html[data-scheme="logo-gold"] .hero h1,
html[data-scheme="logo-gold"] .school-banner h1,
html[data-scheme="logo-gold"] .cand-hero h1 { text-shadow: none; }
html[data-scheme="logo-gold"] .wm-tld { color: #c98a0b; }                 /* keep ".com" gold, as in the logo */
html[data-scheme="logo-gold"] .footer-brand .wm-tld { color: #5a1f7d; }            /* ribbon purple on the gold footer */

/* ---------- Emergency: red alert with amber accent (for closures, storms and other emergencies) ---------- */
html[data-scheme="alert"] {
  --navy: #9b1c1c;
  --navy-dark: #6f1010;
  --navy-soft: #fae5e5;
  --gold: #f59e0b;
  --gold-soft: #fef3c7;
  --gold-ink: #78350f;
  --gold-ink-2: #78350f;
  --cream: #faf0ee;
  --tan-line: #ecd5d0;
  --brand: #9b1c1c;
  --brand-dark: #6f1010;
  --brand-light: #b83232;
  --brand-light-2: #b83232;
  --on-brand: #fff;
  --on-brand-soft: #fbe4e4;
  --on-brand-faint: #f3c9c9;
  --on-brand-line: #f6d7d7;
  --on-brand-muted: #ecbcbc;
  --on-brand-accent: #fbbf24;
  --accent-tint: #fffbeb;
  --chart-0: #9b1c1c;
  --chart-1: #9b1c1c;
  --chart-4: #f59e0b;
}

/* Admin colour-scheme preview bar (only shown in the browser that is previewing). */
.scheme-preview-bar { background: #111827; color: #fff; font-size: .9rem; }
.scheme-preview-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-top: 6px; padding-bottom: 6px; }
.scheme-preview-bar a { color: #fde68a; font-weight: 600; }

/* Admin → Colors: one card per scheme */
.scheme-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.scheme-card { border: 1px solid var(--card-line, var(--line)); border-radius: 10px; background: var(--surface); padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.scheme-card.is-live { border: 2px solid #16a34a; }
.scheme-swatches { display: flex; gap: 6px; }
.scheme-swatches span { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .12); }
.scheme-card form { display: inline; }
.scheme-card .btn-row { margin: 0; }
