/*
 * Design tokens and base styles, from the design canvas (Digital Twin PT — Priority 1 Screens).
 * Brand colours come from brand.css (generated from config/brand.yml): the tokens below point at --brand-*, so a
 * rebrand changes config/brand.yml only. Client screens are mobile-first (390 px, big tap targets, high contrast);
 * coach screens desktop-first (1440 px, dense and scannable).
 *
 * Files: application.css (tokens, base), components.css (buttons, cards, fields, lists), coach.css, client.css,
 * public.css. Propshaft serves each; the layouts link them all.
 */
:root {
  --accent: var(--brand-accent);
  --accent-ink: #1E3FA8;
  --accent-soft: var(--brand-accent-tint);
  --accent-line: #B9C8F2;

  --ink: var(--brand-ink);
  --ink-2: #4A525A;
  --ink-3: #6B737B;
  --ink-4: #9AA19A;

  --surface: #FFFFFF;
  --canvas: var(--brand-ground);
  --canvas-coach: #F4F5F3;
  --line: var(--brand-line);
  --line-soft: #EEF0EE;
  --line-strong: #C9CEC9;
  --field-line: #D5D9D5;

  --ok: var(--brand-good);
  --ok-soft: #E6F4EC;
  --warn: var(--brand-warn);
  --warn-soft: #FDF0E6;
  --warn-line: #F0C9A8;
  --badge: #E8743B;
  --bad: var(--brand-bad);
  --bad-ink: #8A1C12;
  --bad-soft: #FDECEA;
  --bad-line: #F3B8B1;

  --nav: var(--brand-ink);
  --nav-active: #2B323A;
  --nav-text: #C9CED3;
  --nav-muted: #B9C0C7;
  --nav-line: #2E343A;

  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;

  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 14px;
  --radius-xl: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-family: var(--font-display); font-size: 28px; line-height: 34px; }
h2 { font-size: 16px; line-height: 22px; }
p { margin: 0; }

a { color: var(--accent); }
a:hover { color: var(--accent-ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 12px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.strong { font-weight: 600; }
