/* THE PLUM PALETTE ON EVERY PAGE (Dr. Katz, 2026-11-11: "did we apply new color palette everywhere in staging, if
 * not do it"). His pick of 2026-11-10, Option C, with its dark set.
 *
 * HOW: the portal's pages take their colors from a small set of shared names (--accent, --ink, --line, --ok ...).
 * This file gives those names the Plum values, so every page that uses the shared names changes at once, in light
 * and in dark, and in both home layouts. It changes no layout, size or wording.
 *
 * STAGING ONLY FOR NOW: partials/head.ejs links this file only where the staging band shows (environmentLabel), so
 * production keeps today's colors until he says so. To release it, take that condition away.
 *
 * NOT COVERED: pages that carry a palette of their own instead of the shared names (Chart Audit, IDG, the HR roster,
 * Scheduler, Task Status, Referrals, Permissions simple view, the intake case). Each turns Plum when its area is
 * redesigned; the list is in the portal audit of 2026-11-10.
 *
 * :root:root lifts these over styles.css and unified.css; the dark blocks use the same shape as dark.css and load
 * after it, so they win there too. Keep the two dark blocks identical (test/unit/plumTheme.test.js compares them). */

:root:root {
  --bg: #F7F5F8; --surface: #FFFFFF; --surface-2: #F2EEF4;
  --ink: #221D26; --muted: #6C6572; --faint: #9A92A0; --line: #E6E0EA;
  --accent: #7B3FA0; --accent-strong: #5E2E7C; --accent-soft: #F3EAF8; --on-accent: #FFFFFF;
  --gold: #93640C; --gold-soft: #FBF2DF; --yellow-soft: #FBF2DF;
  --ok: #2A7449; --ok-soft: #E7F3EC; --warn: #93640C; --warn-soft: #FBF2DF;
  --danger: #A8323E; --danger-soft: #F9E9EB;
  --sidebar: #FFFFFF; --sidebar-ink: #3A3340; --sidebar-faint: #9A92A0; --sidebar-hover: #F3EAF8; --sidebar-on: #FFFFFF;
  --u-bg: #F7F5F8; --u-card: #FFFFFF; --u-side: #FBF8FC; --u-line: #E6E0EA;
  --u-ink: #221D26; --u-muted: #6C6572; --u-accent: #7B3FA0; --u-accent-soft: #F3EAF8; --u-hover: #F5EFF8;
  --u-shadow: 0 1px 2px rgba(34, 29, 38, .05), 0 6px 18px rgba(34, 29, 38, .05);
}

@media (prefers-color-scheme: dark) {
  :root:root:not([data-theme="light"]) {
    --bg: #161318; --surface: #1F1B22; --surface-2: #28232C;
    --ink: #EFEAF2; --muted: #ABA3B1; --faint: #7D7584; --line: #352F3A;
    --accent: #C18BE3; --accent-strong: #E9D9F5; --accent-soft: #2E2236; --on-accent: #1E1226;
    --gold: #DDB056; --gold-soft: #322710; --yellow-soft: #322710;
    --ok: #5CC48A; --ok-soft: #16301F; --warn: #DDB056; --warn-soft: #322710;
    --danger: #E9808A; --danger-soft: #3A1C20; --super: #ABA3B1; --super-soft: #28232C;
    --sidebar: #1F1B22; --sidebar-ink: #EFEAF2; --sidebar-faint: #ABA3B1; --sidebar-hover: #2E2236; --sidebar-on: #1F1B22;
    --u-bg: #161318; --u-card: #1F1B22; --u-side: #1F1B22; --u-line: #352F3A;
    --u-ink: #EFEAF2; --u-muted: #ABA3B1; --u-accent: #C18BE3; --u-accent-soft: #2E2236; --u-hover: #2E2236;
    --u-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  }
}
:root:root[data-theme="dark"] {
  --bg: #161318; --surface: #1F1B22; --surface-2: #28232C;
  --ink: #EFEAF2; --muted: #ABA3B1; --faint: #7D7584; --line: #352F3A;
  --accent: #C18BE3; --accent-strong: #E9D9F5; --accent-soft: #2E2236; --on-accent: #1E1226;
  --gold: #DDB056; --gold-soft: #322710; --yellow-soft: #322710;
  --ok: #5CC48A; --ok-soft: #16301F; --warn: #DDB056; --warn-soft: #322710;
  --danger: #E9808A; --danger-soft: #3A1C20; --super: #ABA3B1; --super-soft: #28232C;
  --sidebar: #1F1B22; --sidebar-ink: #EFEAF2; --sidebar-faint: #ABA3B1; --sidebar-hover: #2E2236; --sidebar-on: #1F1B22;
  --u-bg: #161318; --u-card: #1F1B22; --u-side: #1F1B22; --u-line: #352F3A;
  --u-ink: #EFEAF2; --u-muted: #ABA3B1; --u-accent: #C18BE3; --u-accent-soft: #2E2236; --u-hover: #2E2236;
  --u-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

/* The home page and group cards: their pictures and icon circles were drawn in violet and blue. The picture is
   turned toward plum, and every icon circle takes the one accent. */
:root:root .home-sec-icon { background: linear-gradient(145deg, #A56BC8 0%, #7B3FA0 55%, #5E2E7C 100%); color: #FFFFFF; }
:root:root .geo-tile .geo-ico, :root:root .home-sec-icon.geo-ico { background: #FFFFFF; color: #7B3FA0; box-shadow: 0 6px 16px rgba(123, 63, 160, .20), inset 0 1px 2px rgba(255, 255, 255, .6); }
:root:root .geo-tile .geo-ico svg { color: #7B3FA0; }
:root:root .geo-tile { border-color: color-mix(in srgb, #7B3FA0 26%, var(--line)); }
:root:root .home-sec-tile.geo-tile::before, :root:root .geo-band::before, :root:root .st-tile::before { filter: hue-rotate(22deg) saturate(.78); }
