/* Grant Parish Public Schools — brand tokens
   Palette and typography read from grantpsb.org (WordPress / Kadence theme).
   Shared by the family app and the staff console so they cannot drift apart. */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,500;9..40,700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  color-scheme: light;
  /* ── District palette (Kadence global palette) ── */
  --gp-navy:   #1e456a;  /* palette 1  — primary */
  --gp-navy-2: #2a5a82;  /* palette 2  — secondary / hover */
  --gp-ink:    #142e48;  /* palette 3  — darkest */
  --gp-brown:  #5c5248;  /* palette 5  — body copy */
  --gp-gray:   #7c7c7c;  /* palette 6  — muted */
  --gp-bg:     #f5f7fa;  /* palette 7  — page background */
  --gp-cream:  #fef9ef;  /* palette 8  — warm surface */
  --gp-gold:   #f8c262;  /* palette 10 — accent */
  --gp-green:  #13612e;  /* palette 11 — success */
  --gp-link:   #1159af;  /* palette 12 — link / focus */
  --gp-red:    #b82105;  /* palette 13 — danger */

  /* ── Type ── */
  --font-head: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* ── Semantic tokens ── */
  --bg: var(--gp-bg);
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: var(--gp-ink);
  --ink-2: #4d5a66;
  --ink-3: #6a7683;
  --line: #dee2e6;
  --brand: var(--gp-navy);
  --brand-2: var(--gp-navy-2);
  --on-brand: #ffffff;
  --gold: var(--gp-gold);
  --accent: #8a5200;
  --accent-bg: var(--gp-cream);
  --accent-line: #efdcb6;
  --ok: var(--gp-green);
  --danger: var(--gp-red);
  --focus: var(--gp-link);

  --radius: 14px;
  --radius-sm: 10px;
  --tab-h: 64px;
  --shadow: 0 1px 2px rgb(20 46 72 / 6%), 0 6px 18px rgb(20 46 72 / 6%);
}

/* Dark palette — follows the system unless the user has forced a theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1a26;
    --surface: #152331;
    --surface-2: #1a2939;
    --ink: #e9eff6;
    --ink-2: #b3c0cd;
    --ink-3: #9aa8b6;
    --line: #263646;
    --accent: #f2c06a;
    --accent-bg: #2a2318;
    --accent-line: #4a3c22;
    --ok: #5cbd8d;
    --danger: #f0877c;
    --focus: #7fb0ea;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1a26;
  --surface: #152331;
  --surface-2: #1a2939;
  --ink: #e9eff6;
  --ink-2: #b3c0cd;
  --ink-3: #9aa8b6;
  --line: #263646;
  --accent: #f2c06a;
  --accent-bg: #2a2318;
  --accent-line: #4a3c22;
  --ok: #5cbd8d;
  --danger: #f0877c;
  --focus: #7fb0ea;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
}
