/* RZLTE design tokens (brand guidelines v4). Every other stylesheet uses these; no raw sizes or colours elsewhere.
   Navy ground, bone type, gold as the single accent, steel for quiet labels. Small corner radius (--r), thin rules,
   no gradients, no shadows. Headings Poppins, body the system font (San Francisco on Apple devices).
   Contrast checked to WCAG AA: gold and steel are text colours only where they pass (--acc-txt, --label). */
:root{
  /* brand */
  --navy:#07111E;--bone:#F0EDE8;--gold:#A88A2A;--steel:#30668B;
  /* surfaces and text (dark is the default) */
  --bg:var(--navy);--card:#0C1A2B;--raise:#112236;--fg:var(--bone);--mute:#9FB1C4;--line:#1C2F45;
  --acc:var(--gold);--acc-txt:#C9A94A;--on-acc:var(--navy);--link:#B9CDE0;--label:#9FB1C4;
  /* status tones: ok, warn, bad, info; neutral uses --mute */
  --ok:#7FB59A;--warn:#D3A15A;--bad:#D9806E;--info:#7FB0D6;
  /* non-text contrast (WCAG 1.4.11, 3:1 against --bg, --card and --raise): form control borders and the focus ring */
  --field-line:#60768D;--focus:var(--gold);
  /* type: five sizes only, in rem so they follow the browser's text-size setting */
  --fs-xs:.8125rem; /* 13px: chips, small tags */
  --fs-sm:.875rem;  /* 14px: secondary text, tables, buttons, labels, hints */
  --fs-md:1rem;     /* 16px: body, h3 */
  --fs-lg:1.25rem;  /* 20px: section headings (h2), note headings */
  --fs-xl:1.75rem;  /* 28px: page title, big numbers */
  --head:"Poppins","Helvetica Neue",Helvetica,Arial,sans-serif;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Helvetica,Arial,sans-serif;
  --mono:"Liberation Mono",Menlo,Consolas,monospace;
  --caps:.12em;   /* letter spacing for the only uppercase text: the wordmark */
  --r:6px;        /* corner radius: buttons, fields, boxes, cards, panels */
  /* spacing */
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;
  /* minimum click target (WCAG 2.2 AA) */
  --target:24px;
  color-scheme:dark;
}
/* touch screens (any width, so iPad too): Apple's 44pt minimum target */
@media(pointer:coarse){:root{--target:44px}}
@media (prefers-color-scheme:light){:root:not([data-theme=dark]){
  --bg:var(--bone);--card:#FAF8F4;--raise:#F5F2EC;--fg:var(--navy);--mute:#4A5A6B;--line:#D8D2C6;
  --acc-txt:#6E5A17;--link:#1F4E73;--label:var(--steel);
  --ok:#2F6B4C;--warn:#8A5A12;--bad:#9E3B2C;--info:#1F5C85;color-scheme:light;
  --field-line:#7D776C;--focus:#6E5A17;   /* gold is 2.8:1 on bone, too faint for a focus ring */
}}
:root[data-theme=light]{
  --bg:var(--bone);--card:#FAF8F4;--raise:#F5F2EC;--fg:var(--navy);--mute:#4A5A6B;--line:#D8D2C6;
  --acc-txt:#6E5A17;--link:#1F4E73;--label:var(--steel);
  --ok:#2F6B4C;--warn:#8A5A12;--bad:#9E3B2C;--info:#1F5C85;color-scheme:light;
  --field-line:#7D776C;--focus:#6E5A17;   /* gold is 2.8:1 on bone, too faint for a focus ring */
}
:root[data-theme=dark]{color-scheme:dark}   /* dark is the default: the base values apply, this only wins over an OS in light mode */
