/* ============================================================
   Theme: harbour (default for the municipality vertical)
   Coastal — deep sea blue, warm sand, stage red.
   Text pairings checked for WCAG 2.1 AA:
   - #1a2b33 on #fbf8f1  -> ~13:1
   - #fff on #083344     -> ~13:1
   - #fff on #0e4d64     -> ~8:1
   - #8f341f on #ffffff  -> ~7:1
   ============================================================ */
:root {
  --color-primary: #0e4d64;
  --color-primary-dark: #083344;
  --color-accent: #b5432a;
  --color-accent-dark: #8f341f;
  --color-bg: #fbf8f1;
  --color-surface: #ffffff;
  --color-ink: #1a2b33;
  --color-ink-soft: #33454e;
  --color-line: #d8cfbd;
  --color-alert-bg: #fdf0ec;
  --color-alert-border: #b5432a;
}

/* ---- Dark version (dark mode) ----
   Used when the visitor's device is set to dark, or they press the
   theme button, on sites that load core/theme-boot.js. Checked for
   WCAG 2.1 AA (template/tools/a11y-check.js tests both themes):
   - #e9f0f2 on #0f1d24  -> ~14.9:1   (#172a33 cards ~12.9:1)
   - #b8c7cd on #172a33  -> ~8.5:1
   - #fff on #1b6b88     -> ~6:1      (buttons)
   - #a9dcef / #8fd0e8 headings and links on #172a33 -> ~10 / ~8.7:1
   - #f4a27f on #172a33  -> ~7.3:1    (error text)
   - #5f7f8e field borders on #12232b -> ~3.8:1 */
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-primary: #1b6b88;
  --color-primary-dark: #0a2a36;
  --color-accent: #f08a63;
  --color-accent-dark: #f4a27f;
  --color-on-accent: #1a0f0a;
  --color-bg: #0f1d24;
  --color-surface: #172a33;
  --color-field-bg: #12232b;
  --color-ink: #e9f0f2;
  --color-ink-soft: #b8c7cd;
  --color-line: #5f7f8e;
  --color-heading: #a9dcef;
  --color-link: #8fd0e8;
  --color-primary-text: #8fd0e8;  /* primary used as text (bolt-ons) */
  --color-alert-bg: #2c1d18;
  --color-alert-border: #f08a63;
}
