/*
 * Rapid Reports — Proprietary and Confidential.
 * Copyright (c) 2026 <LICENSOR LEGAL NAME>. All rights reserved.
 * Licensed, not sold. Unauthorized copying, distribution, modification, or use
 * is prohibited. See LICENSE and THIRD_PARTY_NOTICES.txt.
 */
/*
 * tokens.css — every value of the look, in one place (accounts-and-cloud spec §10.1): each colour, typeface, type
 * size, corner radius, shadow and control height the app uses. It holds this one rule and nothing else. css/app.css
 * builds every part from these names and may not carry a colour, a type size, a radius or a shadow of its own; the
 * PDF, the manifest and each page's theme colour are pinned to the same values. tests/look.test.js holds all of that:
 * to change the look, change a value here and the test's list with it. A page links this file before css/app.css.
 */
:root {
  /* the page, the surface, the text */
  --bg: #f3f6fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;

  /* what a person can act on */
  --accent: #1d5bd8;
  --accent-ink: #1749b3;
  --accent-soft: #eef4ff;
  --accent-line: #d6e2f7;

  /* the brand: the rail's navy, its text, and the volt yellow of the mark */
  --navy: #0b1d44;
  --navy-ink: #b9c8e6;
  --volt: #ffc533;

  /* the verdicts: PASS, FAIL and INVESTIGATE, and what needs attention */
  --pass: #15803d;
  --pass-soft: #dcfce7;
  --fail: #b91c1c;
  --fail-soft: #fee2e2;
  --warn: #92400e;
  --warn-soft: #fef3c7;

  /* a field's edge, a value read from the nameplate, a value the app calculated */
  --field-line: #d9e1ec;
  --nameplate: #eef3fa;
  --calc: #e5eefc;

  /* corners and the card's shadow */
  --radius-card: 12px;
  --radius-control: 10px;
  --radius-chip: 6px;
  --shadow-card: 0 1px 2px rgba(15,23,42,.05), 0 4px 16px rgba(15,23,42,.04);

  /* the height of an input or a button: 44 px, and 52 px on the report page, for a gloved hand */
  --ctl: 44px;
  --ctl-field: 52px;

  /* type: text, display (headings, numbers, the mark) and fixed-width */
  --text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --fs-xs: 11.5px;
  --fs-sm: 12.5px;
  --fs-md: 14px;
  --fs-base: 15px;
  --fs-lg: 17px;
  --fs-xl: 19px;
  --fs-2xl: 27px;

  /* the side rail: wide, and narrow with the icon above its label */
  --rail: 224px;
  --rail-narrow: 88px;

  /* auxiliary values, named so that nothing outside this file needs a literal */
  --ink-2: #334155;
  --faint: #94a3b8;
  --on-strong: #ffffff;
  --navy-faint: #8fa3cc;
  --rail-hover: rgba(255,255,255,.09);
  --rail-rule: rgba(255,255,255,.12);
  --pass-line: #86efac;
  --pass-wash: #f0fdf4;
  --fail-line: #f3c4c4;
  --fail-wash: #fff5f5;
  --warn-line: #fcd34d;
  --warn-wash: #fffbeb;
  --amber: #f5a524;
  --ok: #34c36b;
  --off-soft: #f1f5f9;
  --overlay: rgba(15,23,42,.55);
  --radius-modal: 16px;
  --shadow-bar: 0 -2px 10px rgba(15,23,42,.06);
  --shadow-modal: 0 20px 60px rgba(8,20,48,.28);
  --ring: 0 0 0 3px rgba(29,91,216,.15);
  --ring-warn: 0 0 0 3px rgba(245,158,11,.25);
  /* 16 px, because a smaller input makes a phone's browser zoom the page when it takes the focus */
  --fs-input: 16px;
  --fs-count: 31px;
}
