/* Copied from frontend/src/design/tokens.css by marketing/scripts/build.mjs. Do not edit. */
/*
 * ShelterSync design tokens, v2. Source of truth: docs/design/DESIGN.md (aligned with sheltersync.nl,
 * whose :root uses the same names). tokens.test.ts fails if a hex here differs from that document.
 * The marketing site's build reads this same file.
 *
 * Light values are the document's table. Dark ("Nachtmodus") values are the document's list; the ones it
 * leaves out are DERIVED (marked below) to keep the same role and WCAG AA contrast, and are listed in
 * tokens.test.ts on purpose: confirm them with the design owner.
 */
:root {
  --paper: #F3F2F7;   /* page background */
  --card: #FFFFFF;    /* record surfaces: cards, tables, modals */
  --ink: #231F45;     /* text, sidebar, confirm buttons, focus borders */
  --muted: #4E4A6B;   /* secondary text */
  --muted2: #6E6A88;  /* labels, captions */
  --acc: #F2B930;     /* amber: ONE main action per screen, focus ring, active nav icon */
  --accD: #8A5A00;    /* attention text */
  --accTint: #FBF0D0;
  --accTint2: #FDF6E3;
  --ok: #1E7A6E;      /* present, done, free bed */
  --okD: #155C53;
  --okT: #D5EFEA;
  --away: #D9822B;    /* away with leave (the logo's 4th square) */
  --awayD: #8F4E0E;
  --awayT: #FBE9D6;
  --err: #A3261C;     /* critical only */
  --errT: #FBE4E1;
  --line: #DAD8E4;    /* borders, dividers */
  --line2: #C8C5D6;
  --lineS: #E7E5EF;
  --tHead: #EEEDF4;   /* table header */
  --selT: #ECEAF7;    /* selection */
  --track: #E4E2EC;   /* meter track */
  --inpB: #8E8AA8;    /* input borders (3:1 on white) */

  --onAcc: #231F45;   /* text on amber stays ink in both themes */
  --onDark: #FFFFFF;  /* primary text on always-dark panels (sheltersync.nl's --onInk) */
  --onDarkM: #CBC8E0; /* secondary text on always-dark panels (same name and value as sheltersync.nl) */
  --sidebar: var(--ink);
  --scrim: rgba(23, 20, 47, 0.45); /* modal scrim; the only place a scrim is used */

  color-scheme: light;
}

:root[data-theme="dark"] {
  /* From the document */
  --paper: #15122B;
  --card: #1F1B3B;
  --ink: #ECEAF7;
  --muted: #CBC8E0;
  --muted2: #A29EC0;
  --acc: #F2B930;
  --onAcc: #231F45;
  --onDark: #FFFFFF;
  --onDarkM: #CBC8E0;
  --ok: #5FC2B3;
  --okT: #173A36;
  --away: #F0A35A;
  --awayT: #3D2A17;
  --err: #F08A7E;
  --errT: #3F1D1B;
  --line: #34305A;
  --tHead: #26224A;
  --sidebar: #0F0D22;

  /* DERIVED (not in the document) */
  --accD: #F2B930;
  --accTint: #3A2F12;
  --accTint2: #2E2510;
  --okD: #8FD9CC;
  --awayD: #F6C089;
  --line2: #453F70;
  --lineS: #2A2650;
  --selT: #2E2A55;
  --track: #2D2950;
  --inpB: #7C77A8;

  color-scheme: dark;
}
