/* ==========================================================================
   optiqa design system — named themes
   --------------------------------------------------------------------------
   Load after tokens.css. Each theme re-points the LAYER 2 semantic tokens,
   plus a few new slots (sidebar, logo, chart, density). Components never
   change; only these values do.

   Apply on <html> for the whole app, or on any container to scope a theme
   to one region (that is how the Theme Lab shows two side by side):

     <html data-oq-theme="gqs">
     <div data-oq-theme="deepwater">…</div>

   A named theme is a complete look, so it replaces the light/dark toggle.
   "deepwater" is the dark option. The selector pairs :root[…] with […] so it
   outranks :root[data-theme="dark"] in tokens.css at equal specificity.

   Brand source: gqsgroup.com (Sep 2026) — DM Sans; navy #005270; teal
   #146A8A; deep navy #002B3B; web green #23A455; logo green #49B749.
   Note: #23A455 with white text is 3.2:1, below WCAG AA for button labels,
   so solid green actions use #1A7F42 (5.0:1).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GQS Corporate — brand-first, straight from the corporate site
   ----------------------------------------------------------------------- */
:root[data-oq-theme="gqs"],
[data-oq-theme="gqs"] {
  color-scheme: light;
  --oq-font-sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --oq-text-base: 0.875rem;
  --oq-control-height-md: 2.125rem;
  --oq-nav-height: 2.25rem;
  --oq-radius-card: 6px;
  --oq-radius-control: 4px;
  --oq-radius-pill: 4px;
  --oq-card-border-width: 1px;
  --oq-shadow-card: none;

  --oq-bg: #f3f6f7;
  --oq-surface: #ffffff;
  --oq-surface-sunken: #f3f6f7;
  --oq-surface-hover: #eef3f5;
  --oq-border: #dae3e7;
  --oq-border-subtle: #e8eef0;
  --oq-topbar-bg: #ffffff;

  --oq-text: #1c2b33;
  --oq-text-muted: #4a5b64;
  --oq-text-subtle: #5e6f78;

  --oq-accent: #146a8a;
  --oq-accent-subtle: #e4f0f4;
  --oq-accent-text: #005270;
  --oq-focus-ring-color: #146a8a;

  --oq-solid-bg: #1a7f42;
  --oq-solid-bg-hover: #156a37;
  --oq-solid-text: #ffffff;

  --oq-success: #1a7f42;
  --oq-success-text: #146c37;
  --oq-success-subtle: #e3f3e8;
  --oq-warning: #c27a00;
  --oq-warning-text: #8a4b00;
  --oq-warning-subtle: #fdf1d8;
  --oq-danger: #c23a2b;
  --oq-danger-text: #a12a1d;
  --oq-danger-subtle: #fbe9e6;
  --oq-info: #146a8a;
  --oq-info-text: #005270;
  --oq-info-subtle: #e4f0f4;

  --oq-sidebar-bg: #005270;
  --oq-sidebar-text: #ffffff;
  --oq-sidebar-text-muted: rgba(255, 255, 255, 0.78);
  --oq-sidebar-active-bg: rgba(255, 255, 255, 0.12);
  --oq-sidebar-active-text: #ffffff;
  --oq-sidebar-indicator: #49b749;
  --oq-sidebar-border: rgba(255, 255, 255, 0.1);
  --oq-sidebar-badge-bg: #49b749;
  --oq-sidebar-badge-text: #002b3b;

  --oq-logo-ink: #ffffff;
  --oq-logo-accent: #49b749;
  --oq-logo-on-ink: #005270;

  --oq-chart-1: #146a8a;
  --oq-chart-2: #23a455;
}

/* --------------------------------------------------------------------------
   2. Harbour — light and airy (Mindbase / Spendly direction)
   ----------------------------------------------------------------------- */
:root[data-oq-theme="harbour"],
[data-oq-theme="harbour"] {
  color-scheme: light;
  --oq-font-sans: "Plus Jakarta Sans", "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --oq-text-base: 0.875rem;
  --oq-control-height-md: 2.25rem;
  --oq-nav-height: 2.375rem;
  --oq-radius-card: 14px;
  --oq-radius-control: 10px;
  --oq-radius-pill: 999px;
  --oq-card-border-width: 1px;
  --oq-shadow-card: 0 1px 2px rgba(0, 43, 59, 0.04), 0 6px 18px -6px rgba(0, 43, 59, 0.06);

  --oq-bg: #f5f7f8;
  --oq-surface: #ffffff;
  --oq-surface-sunken: #f7f9fa;
  --oq-surface-hover: #f1f5f7;
  --oq-border: #e5eaed;
  --oq-border-subtle: #eef2f4;
  --oq-topbar-bg: #ffffff;

  --oq-text: #101c22;
  --oq-text-muted: #52606a;
  --oq-text-subtle: #66737c;

  --oq-accent: #146a8a;
  --oq-accent-subtle: #e8f2f6;
  --oq-accent-text: #0f5a76;
  --oq-focus-ring-color: #146a8a;

  --oq-solid-bg: #005270;
  --oq-solid-bg-hover: #00435c;
  --oq-solid-text: #ffffff;

  --oq-success: #1a7f42;
  --oq-success-text: #146c37;
  --oq-success-subtle: #e6f5eb;
  --oq-warning: #c27a00;
  --oq-warning-text: #8a4b00;
  --oq-warning-subtle: #fff3dc;
  --oq-danger: #c23a2b;
  --oq-danger-text: #a12a1d;
  --oq-danger-subtle: #fdebe8;
  --oq-info: #146a8a;
  --oq-info-text: #0f5a76;
  --oq-info-subtle: #e8f2f6;

  --oq-sidebar-bg: #ffffff;
  --oq-sidebar-text: #1c2b33;
  --oq-sidebar-text-muted: #4f5d66;
  --oq-sidebar-active-bg: #e8f2f6;
  --oq-sidebar-active-text: #005270;
  --oq-sidebar-indicator: #146a8a;
  --oq-sidebar-border: #e5eaed;
  --oq-sidebar-badge-bg: #eef2f4;
  --oq-sidebar-badge-text: #34444d;

  --oq-logo-ink: #005270;
  --oq-logo-accent: #23a455;
  --oq-logo-on-ink: #ffffff;

  --oq-chart-1: #146a8a;
  --oq-chart-2: #23a455;
}

/* --------------------------------------------------------------------------
   3. Signal — expressive gradient (DoctorLab direction), navy → teal → green
   ----------------------------------------------------------------------- */
:root[data-oq-theme="signal"],
[data-oq-theme="signal"] {
  color-scheme: light;
  --oq-font-sans: "Figtree", "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --oq-text-base: 0.875rem;
  --oq-control-height-md: 2.25rem;
  --oq-nav-height: 2.375rem;
  --oq-radius-card: 16px;
  --oq-radius-control: 10px;
  --oq-radius-pill: 999px;
  --oq-card-border-width: 1px;
  --oq-shadow-card: 0 8px 28px -12px rgba(0, 82, 112, 0.22);

  --oq-bg: #eef3f4;
  --oq-surface: #ffffff;
  --oq-surface-sunken: #f5f8f9;
  --oq-surface-hover: #f0f5f6;
  --oq-border: #e2e9ec;
  --oq-border-subtle: #edf2f4;
  --oq-topbar-bg: transparent;

  --oq-text: #0e2029;
  --oq-text-muted: #4b5d66;
  --oq-text-subtle: #5f7079;

  --oq-accent: #146a8a;
  --oq-accent-subtle: #e3f1f5;
  --oq-accent-text: #0f5a76;
  --oq-focus-ring-color: #146a8a;

  --oq-solid-bg: #146a8a;
  --oq-solid-bg-hover: #0f5a76;
  --oq-solid-text: #ffffff;

  --oq-success: #1a7f42;
  --oq-success-text: #146c37;
  --oq-success-subtle: #e3f5e9;
  --oq-warning: #c27a00;
  --oq-warning-text: #8a4b00;
  --oq-warning-subtle: #fff2d9;
  --oq-danger: #c23a2b;
  --oq-danger-text: #a12a1d;
  --oq-danger-subtle: #fde9e6;
  --oq-info: #146a8a;
  --oq-info-text: #0f5a76;
  --oq-info-subtle: #e3f1f5;

  --oq-sidebar-bg: linear-gradient(172deg, #005270 0%, #146a8a 52%, #1d8a5e 100%);
  --oq-sidebar-text: #ffffff;
  --oq-sidebar-text-muted: rgba(255, 255, 255, 0.82);
  --oq-sidebar-active-bg: #ffffff;
  --oq-sidebar-active-text: #005270;
  --oq-sidebar-indicator: transparent;
  --oq-sidebar-border: transparent;
  --oq-sidebar-badge-bg: rgba(255, 255, 255, 0.2);
  --oq-sidebar-badge-text: #ffffff;

  --oq-logo-ink: #ffffff;
  --oq-logo-accent: #a6ec9f;
  --oq-logo-on-ink: #005270;

  --oq-chart-1: #146a8a;
  --oq-chart-2: #23a455;
}

/* --------------------------------------------------------------------------
   4. Deep Water — dark, built on GQS deep navy
   ----------------------------------------------------------------------- */
:root[data-oq-theme="deepwater"],
[data-oq-theme="deepwater"] {
  color-scheme: dark;
  --oq-font-sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --oq-text-base: 0.875rem;
  --oq-control-height-md: 2.125rem;
  --oq-nav-height: 2.25rem;
  --oq-radius-card: 10px;
  --oq-radius-control: 8px;
  --oq-radius-pill: 999px;
  --oq-card-border-width: 1px;
  --oq-shadow-card: none;

  --oq-bg: #061a22;
  --oq-surface: #0b2530;
  --oq-surface-sunken: #082029;
  --oq-surface-hover: #10303c;
  --oq-border: #1b3e4b;
  --oq-border-subtle: #143441;
  --oq-topbar-bg: #061a22;

  --oq-text: #e4eef1;
  --oq-text-muted: #a3b8c0;
  --oq-text-subtle: #8aa2ab;

  --oq-accent: #4fb3d6;
  --oq-accent-subtle: rgba(79, 179, 214, 0.14);
  --oq-accent-text: #8fd0e8;
  --oq-focus-ring-color: #4fb3d6;

  --oq-solid-bg: #3cbf6b;
  --oq-solid-bg-hover: #55cf80;
  --oq-solid-text: #04140c;

  --oq-success: #3cbf6b;
  --oq-success-text: #7ee0a0;
  --oq-success-subtle: rgba(60, 191, 107, 0.14);
  --oq-warning: #f5b642;
  --oq-warning-text: #f8cd78;
  --oq-warning-subtle: rgba(245, 182, 66, 0.14);
  --oq-danger: #f2685c;
  --oq-danger-text: #f79a90;
  --oq-danger-subtle: rgba(242, 104, 92, 0.15);
  --oq-info: #4fb3d6;
  --oq-info-text: #8fd0e8;
  --oq-info-subtle: rgba(79, 179, 214, 0.14);

  --oq-sidebar-bg: #04141a;
  --oq-sidebar-text: #e4eef1;
  --oq-sidebar-text-muted: #9fb4bc;
  --oq-sidebar-active-bg: rgba(79, 179, 214, 0.14);
  --oq-sidebar-active-text: #ffffff;
  --oq-sidebar-indicator: #3cbf6b;
  --oq-sidebar-border: #143441;
  --oq-sidebar-badge-bg: rgba(60, 191, 107, 0.18);
  --oq-sidebar-badge-text: #7ee0a0;

  --oq-logo-ink: #e4eef1;
  --oq-logo-accent: #49b749;
  --oq-logo-on-ink: #061a22;

  --oq-chart-1: #4fb3d6;
  --oq-chart-2: #3cbf6b;
}

/* --------------------------------------------------------------------------
   5. Field — high contrast, 44px touch targets, for tablets on site
   ----------------------------------------------------------------------- */
:root[data-oq-theme="field"],
[data-oq-theme="field"] {
  color-scheme: light;
  --oq-font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --oq-text-base: 0.9375rem;
  --oq-control-height-md: 2.75rem;
  --oq-nav-height: 2.75rem;
  --oq-radius-card: 4px;
  --oq-radius-control: 4px;
  --oq-radius-pill: 3px;
  --oq-card-border-width: 1.5px;
  --oq-shadow-card: none;

  --oq-bg: #eef1f2;
  --oq-surface: #ffffff;
  --oq-surface-sunken: #eef1f2;
  --oq-surface-hover: #e4e9eb;
  --oq-border: #8e9ca2;
  --oq-border-subtle: #c7d0d3;
  --oq-topbar-bg: #ffffff;

  --oq-text: #000d12;
  --oq-text-muted: #22323a;
  --oq-text-subtle: #36464e;

  --oq-accent: #005270;
  --oq-accent-subtle: #d6e9f0;
  --oq-accent-text: #003a50;
  --oq-focus-ring-color: #005270;

  --oq-solid-bg: #005270;
  --oq-solid-bg-hover: #003a50;
  --oq-solid-text: #ffffff;

  --oq-success: #0f6b34;
  --oq-success-text: #0b5a2b;
  --oq-success-subtle: #d4efdc;
  --oq-warning: #9a5a00;
  --oq-warning-text: #613700;
  --oq-warning-subtle: #ffe2ad;
  --oq-danger: #a8190b;
  --oq-danger-text: #7f1206;
  --oq-danger-subtle: #ffd8d2;
  --oq-info: #005270;
  --oq-info-text: #003a50;
  --oq-info-subtle: #d6e9f0;

  --oq-sidebar-bg: #002b3b;
  --oq-sidebar-text: #ffffff;
  --oq-sidebar-text-muted: #d5e2e7;
  --oq-sidebar-active-bg: #ffffff;
  --oq-sidebar-active-text: #002b3b;
  --oq-sidebar-indicator: #49b749;
  --oq-sidebar-border: rgba(255, 255, 255, 0.18);
  --oq-sidebar-badge-bg: #ffffff;
  --oq-sidebar-badge-text: #002b3b;

  --oq-logo-ink: #ffffff;
  --oq-logo-accent: #49b749;
  --oq-logo-on-ink: #002b3b;

  --oq-chart-1: #005270;
  --oq-chart-2: #0f6b34;
}

/* --------------------------------------------------------------------------
   6. Baseline — what optiqa-ui-components ships today (for before/after)
   ----------------------------------------------------------------------- */
:root[data-oq-theme="baseline"],
[data-oq-theme="baseline"] {
  color-scheme: light;
  --oq-font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --oq-text-base: 0.875rem;
  --oq-control-height-md: 2.125rem;
  --oq-nav-height: 2.25rem;
  --oq-radius-card: 10px;
  --oq-radius-control: 8px;
  --oq-radius-pill: 999px;
  --oq-card-border-width: 1px;
  --oq-shadow-card: 0 1px 2px rgba(10, 15, 26, 0.06), 0 1px 3px rgba(10, 15, 26, 0.05);

  --oq-bg: #f6f8fa;
  --oq-surface: #ffffff;
  --oq-surface-sunken: #f6f8fa;
  --oq-surface-hover: #eef1f5;
  --oq-border: #e2e7ed;
  --oq-border-subtle: #eef1f5;
  --oq-topbar-bg: #ffffff;

  --oq-text: #121926;
  --oq-text-muted: #4b5565;
  --oq-text-subtle: #5f6b7a;

  --oq-accent: #1f57d6;
  --oq-accent-subtle: #eef4ff;
  --oq-accent-text: #1a45ac;
  --oq-focus-ring-color: #1f57d6;

  --oq-solid-bg: #121926;
  --oq-solid-bg-hover: #202939;
  --oq-solid-text: #ffffff;

  --oq-success: #039855;
  --oq-success-text: #027a48;
  --oq-success-subtle: #ecfdf3;
  --oq-warning: #f79009;
  --oq-warning-text: #b54708;
  --oq-warning-subtle: #fffaeb;
  --oq-danger: #d92d20;
  --oq-danger-text: #b42318;
  --oq-danger-subtle: #fef3f2;
  --oq-info: #1f57d6;
  --oq-info-text: #1a45ac;
  --oq-info-subtle: #eef4ff;

  --oq-sidebar-bg: #ffffff;
  --oq-sidebar-text: #121926;
  --oq-sidebar-text-muted: #4b5565;
  --oq-sidebar-active-bg: #eef1f5;
  --oq-sidebar-active-text: #121926;
  --oq-sidebar-indicator: transparent;
  --oq-sidebar-border: #e2e7ed;
  --oq-sidebar-badge-bg: #eef1f5;
  --oq-sidebar-badge-text: #364152;

  --oq-logo-ink: #121926;
  --oq-logo-accent: #1f57d6;
  --oq-logo-on-ink: #ffffff;

  --oq-chart-1: #1f57d6;
  --oq-chart-2: #039855;
}
