/**
 * colour-tokens.css - The one colour set for the patient, clinician and admin pages (Evergreen).
 *
 * Experience review 2026-11-15, decisions 1 and 2: the app takes the website's Evergreen colours
 * (neuroclarity-website-life, branch redesign/evergreen-nov-16, src/app/evergreen.css) and the main
 * button turns forest green. Every page template loads this file first; the side tokens
 * (--cw-* in clinician-tokens.css, --ps-* in patient-tokens.css, --admin-* in admin.css) point at
 * these values, so existing CSS keeps its token names and changes colour with them.
 *
 * New CSS reads these --color-* tokens directly. A hand-typed colour is replaced by the token for
 * its role (the table in wiki/ui-standards.md, "Colours"). Not here on purpose:
 *  - status chip colours (blue, green, red, grey, teal, --ui-chip-* in ui-components.css): they carry
 *    meaning and stay as they were;
 *  - the report sheet (report-themes/, report_v6/sheet.css) and the Screening report document
 *    (screening_report/ minus the editor tabs): they keep their approved look and do not read these;
 *  - fonts and corner radius: Inter and the current radius stay this round (decision 1).
 *
 * Contrast (WCAG 2.2): text 16.0:1 on white, muted 7.3:1 on white and 6.8:1 on the page colour,
 * white words on the main button 11.0:1 (was 3.5:1 on coral), link 5.7:1, warning 5.6:1, done 4.9:1
 * on the page colour. Apricot (--color-decor, 2.7:1) is for marks and rules only, never for text.
 */

:root {
  --color-text: #15251E;          /* body text and headings (was #264653) */
  --color-muted: #4B5A50;         /* secondary lines, counts, hints: one muted step (was #788c94 and see-through teal) */
  --color-page: #F6F7F2;          /* page background (was cream #FEF9F0) */
  --color-card: #FFFFFF;          /* cards, fields, windows */
  --color-line: #D5DBCD;          /* the light hairline around cards and fields */
  --color-line-soft: #E4E8DE;     /* dividers between rows inside a card */
  --color-panel: #EAEEE4;         /* soft panel, hover fill, tool buttons (was #FAF4E8) */
  --color-main: #1E3D32;          /* main button fill (forest; was coral #D06C52) */
  --color-on-main: #FFFFFF;       /* words on the main button and on other forest fills */
  --color-link: #A64D24;          /* links and accent words (was #9E3B1B) */
  --color-selected: #1E3D32;      /* selected marks: tab underline, chosen switch, focus ring, selected-row bar */
  --color-selected-row: #E4ECE0;  /* selected row or item, soft highlight (was pink #FBF3F1) */
  --color-decor: #E07B4B;         /* apricot: list markers and decorative rules only, never text */
  --color-warn: #8A5A00;          /* warning words (was #B56816) */
  --color-done: #1F7A4D;          /* done words and ticks on patient pages (was #059669) */
  /* Native checkboxes, radios and sliders tick in the main colour everywhere (inherited), instead of
     the browser blue; a rule with its own accent-color still wins. */
  accent-color: var(--color-main);
}
