/* Design tokens. Two themes (dark is the default) and one alternate "world" for Tenders.
   v3.6.1 visual language: warm neutrals (cream paper in light, warm charcoal in dark), one clay accent, a serif for page
   titles and a clean sans for everything else, soft rounded shapes. It follows the look of modern AI work tools such as
   Claude's interface as described publicly; it uses no Anthropic logo, wordmark, or proprietary font.
   Every text colour below is checked against its background by tests/test_contrast.py (WCAG AA, 4.5:1). */

:root {
  --font-sans: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4 Variable", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-app: #262624;
  --bg-rail: #1f1e1d;
  --bg-panel: #30302e;
  --bg-raised: #393835;
  --bg-hover: #42413d;
  --bg-input: #1f1e1d;
  --line: #3f3e3a;
  --line-strong: #5a5853;
  --control-line: #8a8780;
  --fg: #faf9f5;
  --fg-2: #c9c6bc;
  --fg-3: #aaa79e;

  --accent: #d97757;
  --accent-text: #eb9b7c;
  --accent-strong: #b65132;
  --accent-strong-hover: #a3472b;
  --accent-on: #ffffff;
  --accent-soft: #46302a;
  --focus: #eb9b7c;

  --info-bg: #263541;   --info-text: #a6cbe3;   --info-line: #3b5468;
  --ok-bg: #233629;     --ok-text: #97d6a5;     --ok-line: #3a5a42;
  --warn-bg: #3e3321;   --warn-text: #f0c47a;   --warn-line: #66532f;
  --danger-bg: #47251f; --danger-text: #f6a998; --danger-line: #6e3a30;
  --muted-bg: #393835;  --muted-text: #c9c6bc;  --muted-line: #55534e;

  --danger-strong: #b54a3c;
  --danger-strong-hover: #a33f32;
  --danger-on: #ffffff;
  --call-bg: #a8392c;
  --call-on: #ffffff;
  --call-btn-bg: #ffffff;
  --call-btn-on: #8f2a1f;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --scrim: rgba(10, 9, 8, 0.62);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-app: #faf9f5;
  --bg-rail: #f3f1ea;
  --bg-panel: #ffffff;
  --bg-raised: #f5f0e8;
  --bg-hover: #efe9de;
  --bg-input: #ffffff;
  --line: #e6dfd8;
  --line-strong: #c9bfb2;
  --control-line: #8e8b82;
  --fg: #141413;
  --fg-2: #3d3d3a;
  --fg-3: #63615b;

  --accent: #c96442;
  --accent-text: #a8492b;
  --accent-strong: #b65132;
  --accent-strong-hover: #9f4428;
  --accent-on: #ffffff;
  --accent-soft: #f6e6dc;
  --focus: #b65132;

  --info-bg: #e7eef3;   --info-text: #2a5675;   --info-line: #bfd1de;
  --ok-bg: #e6efe2;     --ok-text: #335f33;     --ok-line: #bcd2b5;
  --warn-bg: #fbf3df;   --warn-text: #76500c;   --warn-line: #e8d3a2;
  --danger-bg: #fbe8e3; --danger-text: #9e3628;   --danger-line: #efc1b6;
  --muted-bg: #efe9de;  --muted-text: #3d3d3a;  --muted-line: #ddd4c7;

  --danger-strong: #b54a3c;
  --danger-strong-hover: #9c3d30;
  --danger-on: #ffffff;
  --call-bg: #a8392c;
  --call-on: #ffffff;
  --call-btn-bg: #ffffff;
  --call-btn-on: #8f2a1f;

  --shadow: 0 10px 30px rgba(20, 20, 19, 0.12);
  --shadow-sm: 0 1px 3px rgba(20, 20, 19, 0.08);
  --scrim: rgba(20, 20, 19, 0.42);
}

/* Tenders is its own world: same structure, its own accent, so nobody mistakes it for the sales pipeline. */
:root[data-theme="dark"] .world-tenders,
:root[data-theme="dark"] .rail__group--tenders {
  --accent: #5db8a6;
  --accent-text: #86cfc0;
  --accent-strong: #2f7a6c;
  --accent-strong-hover: #286b5f;
  --accent-soft: #23393a;
  --focus: #86cfc0;
}

:root[data-theme="light"] .world-tenders,
:root[data-theme="light"] .rail__group--tenders {
  --accent: #2f8a78;
  --accent-text: #22695b;
  --accent-strong: #2a7465;
  --accent-strong-hover: #225f53;
  --accent-soft: #e1f0ec;
  --focus: #22695b;
}
