/* ===== BRAND BLOCK: the only part that changes per client (ODS Web App Standard §8) ===== */
:root {
  --brand: #1F3A4C;          /* primary: header, primary buttons */
  --brand-ink: #FFFFFF;      /* text on --brand */
  --brand-soft: #E2EBF0;     /* tints, selected states */
  --brand-text: #1F4F6E;     /* brand-coloured text and links on the page background (must pass 4.5:1) */
  --accent: #C47A1C;         /* one highlight colour, used sparingly */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: var(--font-sans);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2E5570;
    --brand-ink: #FFFFFF;
    --brand-soft: #1B3242;
    --brand-text: #8FC0E0;   /* a light tint: the dark brand colour is unreadable on a dark page */
    --accent: #E09A3F;
  }
}
/* ===== END BRAND BLOCK ===== */

/* ===== ODS UI tokens: the same in every ODS app (Standard §8a). Change here, not per screen. ===== */
:root {
  /* Neutrals */
  --paper: #F3F5F6;          /* page background */
  --surface: #FFFFFF;        /* cards, inputs */
  --surface-2: #F0F3F5;      /* quiet fills: stats, row hover, chips */
  --line: #E1E6EA;           /* card borders, dividers */
  --line-strong: #C9D1D8;    /* input borders */
  --ink: #14202B;            /* main text */
  --ink-2: #3A4651;          /* secondary text that still needs weight */
  --muted: #5F6C77;          /* hints, sub-lines (4.5:1 on paper and surface) */

  /* Status */
  --good: #1D6B47;  --good-wash: #E2F2E9;
  --warn: #8F5208;  --warn-wash: #FBEFD9;
  --bad: #A3322A;   --bad-wash: #FBE8E6;

  /* Spacing: use these steps only (4-point scale) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 48px;
  --gutter: 20px;            /* page edge on phones; 32px on wider screens */
  --card-pad: 20px;          /* inside every card; 24px on wider screens */

  /* Type: 17px base, one scale */
  --text-xs: .8125rem;       /* 13.8px  labels on tabs, tiny meta */
  --text-sm: .9375rem;       /* 15.9px  hints, sub-lines, table cells */
  --text-md: 1rem;           /* 17px    body */
  --text-lg: 1.1875rem;      /* 20px    section titles, card titles */
  --text-xl: 1.625rem;       /* 27.6px  page titles */
  --text-2xl: 2.75rem;       /* 46.8px  the running clock, kiosk keypad */

  /* Shape and depth */
  --radius-sm: 10px;         /* inputs, buttons, chips */
  --radius: 14px;            /* cards */
  --tap: 48px;               /* minimum touch target */
  --shadow: 0 1px 2px rgba(20, 32, 43, .05), 0 4px 16px -8px rgba(20, 32, 43, .12);
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand-text) 35%, transparent);

  /* Widths */
  --content-max: 1040px;     /* list and dashboard pages */
  --form-max: 640px;         /* form and detail pages */
}
@media (min-width: 641px) {
  :root { --gutter: 32px; --card-pad: 24px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E151A;
    --surface: #172028;
    --surface-2: #1E2933;
    --line: #26323C;
    --line-strong: #364552;
    --ink: #E8EDF1;
    --ink-2: #C3CDD5;
    --muted: #93A0AB;
    --good: #6CC79B;  --good-wash: #15302A;
    --warn: #E3A95C;  --warn-wash: #2F2517;
    --bad: #EE8A80;   --bad-wash: #35201F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px -10px rgba(0, 0, 0, .6);
  }
}
