/* Harbour theme tokens (docs/design/harbour/tokens.css, approved). Per-brand values come from the API as inline custom properties.
   Light is the default; html[data-theme="dark"] is the dark surface tone. */
:root {
  /* brand (Back office: primary colour). --brand-ink = text on brand, must pass 4.5:1 */
  --brand: #0b6e78;
  --brand-hover: #095c64;
  --brand-ink: #ffffff;
  --brand-soft: #e3f2f3;   /* tinted surface: active rail item, chips */
  --brand-text: #0a5f68;   /* brand colour used as text on --surface, 4.5:1+ */

  /* surfaces */
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --border: #dde2e8;
  --overlay: rgba(12, 16, 22, .55);

  /* text */
  --text: #141920;
  --text-muted: #56606d;   /* 6.3:1 on --surface */
  --text-faint: #6b7480;   /* 4.7:1 on --surface, labels only */

  /* status */
  --ok: #1d7a46; --ok-soft: #e4f4ea;
  --warn: #8a5a00; --warn-soft: #fdf1d8;
  --danger: #b42330; --danger-soft: #fbe6e8;

  /* focus ring: always visible, 3px, offset */
  --focus: #1a5fd0;

  /* shape and spacing */
  --radius-s: 6px; --radius-m: 10px; --radius-l: 16px; --radius-pill: 999px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-2: 0 12px 32px rgba(16, 24, 40, .18);

  /* type (Back office: font pick list; system stack is the default, no web font load) */
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --fs-xs: 12px; --fs-s: 13px; --fs-m: 15px; --fs-l: 18px; --fs-xl: 24px; --fs-xxl: 34px;

  /* layout (desktop) */
  --rail-w: 232px; --top-h: 64px; --content-max: 1176px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --brand: #3fb6c0;
  --brand-hover: #5cc6cf;
  --brand-ink: #06181a;
  --brand-soft: #123236;
  --brand-text: #6fd0d8;
  --bg: #0d1015;
  --surface: #151920;
  --surface-2: #1c2129;
  --border: #2a313b;
  --overlay: rgba(0, 0, 0, .65);
  --text: #e8ecf1;
  --text-muted: #a3adba;
  --text-faint: #8d97a5;
  --ok: #4cc27f; --ok-soft: #12291c;
  --warn: #e9b44c; --warn-soft: #2d2410;
  --danger: #f0717b; --danger-soft: #34161a;
  --focus: #8ab4ff;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

