/* The design values (UI release 1, docs/ui-release-1-brief.md A1): every colour, size, space, radius and shadow the
   staff pages use, as custom properties, loaded first. Nothing else lives here: the parts that use them are in
   styles.css (the chrome and settings) and portal.css (the page components). The patient pages (public-forms/) have
   their own look and don't load this. */
:root {
  /* Colours */
  --ink: #262a30;
  --muted: #6b7280;
  --faint: #9aa1ab;
  --line: #e2e5e9;
  --line-strong: #cfd4da;
  --bg: #f3f4f6;
  --card: #ffffff;
  --accent: #3b5170;
  --accent-soft: #e8edf4;
  --accent-ink: #ffffff;        /* text on a filled accent (the top bar, a primary button) */
  /* Status tones: each a strong shade (dots, fills, rules), a soft one (a badge's or a notice's ground) and an ink (its
     words on the soft ground, dark enough to read). */
  --good: #1d7a46;
  --good-soft: #e7f4ec;
  --good-ink: #1d7a46;
  --warn: #f5b83d;
  --warn-soft: #fff4d6;
  --warn-ink: #7a5600;
  --bad: #e5484d;
  --bad-soft: #fdecea;
  --bad-ink: #b42318;
  --info: #2f6fde;
  --info-soft: #e7efff;
  --info-ink: #1f4fae;
  --neutral: #6b7280;
  --neutral-soft: #eceef1;
  --neutral-ink: #3f4650;
  /* The names the pages already use, kept: attention dots (public/attention.mjs), errors and saved. */
  --att-amber: var(--warn);
  --att-red: var(--bad);
  --danger: var(--bad-ink);
  --ok: var(--good);

  /* Type: the family, and the scale (11 is the caps labels' and the narrow rail's, from the plan's type row). */
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-15: 15px;
  --fs-17: 17px;
  --fs-22: 22px;
  --fs-26: 26px;
  --fs-input: 16px;             /* a field's text on a touch screen: iOS Safari zooms in on anything smaller */

  /* Space */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;

  /* Radius */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-sheet: 0 -8px 32px rgba(16, 24, 40, .18);

  /* Sizes of the parts */
  --control-h: 40px;            /* a button or a field */
  --control-h-sm: 32px;
  --touch-h: 44px;              /* the same on a touch screen */
  --touch-h-sm: 36px;
  --topbar-h: 52px;
  --rail-w: 200px;              /* the rail at 1200 px and up */
  --rail-narrow: 76px;          /* the narrow rail, 900 to 1199 px, or collapsed */
  --bar-h: 56px;                /* the bottom bar under 900 px, plus the safe area */
  --content-max: 1280px;        /* the content column beside the rail */
}
