/*
 * TestSeat tokens (docs/DESIGN.md). Two inks, like a printed exam answer sheet: the form ink (a deep answer-sheet
 * green) prints the structure (header band, rules, empty bubbles, numbers, links); graphite is the learner's own
 * pencil (filled bubbles, their picks, the main buttons). A highlighter marks the one next thing to do. Status colours
 * only where they mean something: Ready and right in the form green, Close amber, Not yet slate. Wrong answers are
 * never red. The phone's own font (it carries Vietnamese, Korean and Chinese without a download).
 * Keep text/background pairs at WCAG AA or better. Keep --brand equal to THEME_COLOR in app/brand.py.
 */
:root {
  /* brand:start */
  --brand: #0b5c3f;            /* the header band and THEME_COLOR (8.0:1 with white) */
  --brand-strong: #084530;     /* hover / pressed on the band */
  --brand-soft: #eaf3ee;       /* tinted backgrounds */
  --brand-contrast: #ffffff;   /* text on --brand */
  --accent: #0e6b4a;           /* small highlights (6.5:1 on white) */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: var(--font-sans);
  --radius: 14px;
  /* brand:end */

  /* The two inks and the highlighter. */
  --form: #0e6b4a;             /* links, numbers, labels printed on the sheet (6.5:1 on white, 6.0:1 on --page) */
  --form-line: #5e9c82;        /* empty bubbles and control outlines (3.2:1 on white) */
  --form-rule: #cfe3d9;        /* hairlines and dividers */
  --form-tint: #eaf3ee;        /* tinted panels */
  --pencil: #222823;           /* filled bubbles, the main button (15:1 on white) */
  --pencil-hover: #39413b;
  --mark: #ffe15a;             /* the highlighter: the next thing to do, never alone (always with an outline) */
  --mark-soft: #fff6c9;

  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-small: 10px;
  --radius-pill: 999px;

  --ink: #1a1f1c;              /* text (16.7:1 on white) */
  --ink-muted: #4d5953;        /* secondary text (7.3:1 on white, 6.7:1 on --page) */
  --surface: #ffffff;          /* sheets and cards */
  --surface-alt: #f3f6f4;
  --page: #f3f6f4;             /* the desk under the sheets */
  --border: #dde7e1;
  --border-strong: #6b7a72;    /* form control borders (4.4:1 on white) */

  /* Status: readiness, right/wrong, and the alerts that use the same words. */
  --good: #0e6b4a;  --good-bg: #e3f1e9;   /* Ready, right */
  --warn: #8a5a00;  --warn-bg: #fff4dc;   /* Close */
  --slate: #475569; --slate-bg: #eef1f5;  /* Not yet */
  --bad: #b42318;   --bad-bg: #fdecea;    /* errors in forms and payments only; never a wrong answer */
  --info: #0b5c3f;  --info-bg: #eaf3ee;

  /* The vendor-screen illustration (layout only, no logos). */
  --screen-bar: #1f2f5c;
  --screen-ink: #1f2937;
  --screen-panel: #eef1f5;

  --shadow: 0 1px 2px rgb(26 31 28 / 6%), 0 2px 6px rgb(26 31 28 / 4%);
  --shadow-raised: 0 10px 28px rgb(26 31 28 / 14%), 0 2px 6px rgb(26 31 28 / 8%);
  --shadow-press: 0 2px 0 rgb(0 0 0 / 22%), 0 6px 14px rgb(26 31 28 / 16%);
  --container: 60rem;
  --narrow: 38rem;
  --tap: 48px;
  --tap-main: 56px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Names the exam screen's own pages (exam.css) read. */
  --pc-ink: var(--ink);
  --pc-muted: var(--ink-muted);
  --pc-border: var(--border);
  --pc-page: var(--page);
  --pc-brand: var(--form);
  --pc-ready: var(--good);       --pc-ready-bg: var(--good-bg);
  --pc-notyet: var(--slate);     --pc-notyet-bg: var(--slate-bg);
  --pc-wrong: var(--pencil);     --pc-wrong-bg: #eceeed;
}
