/* ==========================================================================
   Paramount: THE theme file. One place for every colour used on the public site.
   Loaded on every public page right before site-v2.css. Edit colours here only.
   The visitor's choice (light / dark) is saved by pds-theme-boot.js + theme.js
   under the "pds-theme" key, so it follows them from page to page.
   ========================================================================== */

:root:not([data-theme="dark"]), :root[data-theme="light"] {
  --surface: #f5f5f5; --surface-alt: #f0f0f0; --panel: #fff;
  --text-primary: #111; --text-secondary: #4a4a4a; --text-tertiary: #5f5f5f; --mid: #5f5f5f;
  --border: #dcdcdc; --border-strong: #b9b9b9; --header-bg: rgba(245,245,245,.86);
  --btn-bg: #111; --btn-text: #fff; --cursor-color: #111;
  --glow: #e7f1dc; --shadow: 0 22px 60px rgba(0,0,0,.10); --shadow-sm: 0 8px 24px rgba(0,0,0,.06);
  --ok: #1f6f3d; --bad: #a12626; color-scheme: light;
}
:root[data-theme="dark"] {
  --surface: #111; --surface-alt: #282828; --panel: #1b1b1b;
  --text-primary: #f4f4f4; --text-secondary: #c4c4c4; --text-tertiary: #b2b2b2; --mid: #b2b2b2;
  --border: #3b3b3b; --border-strong: #5a5a5a; --header-bg: rgba(17,17,17,.86);
  --btn-bg: #f4f4f4; --btn-text: #111; --cursor-color: #f4f4f4;
  --glow: #242424; --shadow: 0 22px 60px rgba(0,0,0,.35); --shadow-sm: 0 8px 24px rgba(0,0,0,.28);
  --ok: #6fcf97; --bad: #ff8a8a; color-scheme: dark;
}

/* Extra tokens used by the Outreach / Pickup / Recruitment / Volunteer / Review pages */
:root:not([data-theme="dark"]), :root[data-theme="light"] { --accent: #e7e7e7; }
:root[data-theme="dark"] { --accent: #333; }

/* Short names those pages use, mapped onto the site tokens above so both always agree.
   Scoped to body.pds-app on purpose: --ink stays literal black on the Law Firm section. */
body.pds-app {
  --bg: var(--surface);
  --ink: var(--text-primary);
  --muted: var(--text-tertiary);
  --line: var(--border);
  --brand: var(--btn-bg);
  --on: var(--btn-text);
  --soft: var(--surface-alt);
  --r: 14px;
}
