/* Enclosed brand settings. The ONLY file to edit to change the look.
   Locked 10 Nov 2026. Every text pair is measured against WCAG AA (4.5:1)
   by tests/contrast_check.mjs. Status never relies on colour alone:
   every chip also carries a word, every file a tick. */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
:root {
  --enc-font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Body stays on the phone's own font: zero download on slow data. */
  --enc-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --enc-radius: 14px;
  --enc-radius-sm: 10px;

  --enc-bg: #F6F3EE;          /* ivory canvas */
  --enc-card: #FFFFFF;
  --enc-ink: #1F2328;
  --enc-muted: #585D66;
  --enc-line: #E3DDD3;
  --enc-logo-blue: #2F6FED;   /* logo and large shapes only */
  --enc-primary: #2563D9;     /* buttons and links, passes AA on ivory and white */
  --enc-on-primary: #FFFFFF;
  --enc-done: #157041;        /* received: text */
  --enc-done-bg: #E3F3E9;
  --enc-done-bar: #22A561;    /* progress fill */
  --enc-waiting: #8A5300;     /* still needed: text */
  --enc-waiting-bg: #FDF0D9;
  --enc-missing: #B42318;     /* errors */
  --enc-missing-bg: #FDECEA;
  --enc-na: #585D66;
  --enc-na-bg: #EEEBE5;
}
/* Dark only where a page allows it. The accountant dashboard sets data-theme="light". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --enc-bg: #121418;
    --enc-card: #1B1E24;
    --enc-ink: #ECEEF1;
    --enc-muted: #A6ACB6;
    --enc-line: #2D323A;
    --enc-logo-blue: #6E9BFF;
    --enc-primary: #7BA4FF;
    --enc-on-primary: #0B1220;
    --enc-done: #63D394;
    --enc-done-bg: #15301F;
    --enc-done-bar: #3DBE76;
    --enc-waiting: #F2C46B;
    --enc-waiting-bg: #33280F;
    --enc-missing: #FF9C93;
    --enc-missing-bg: #3A1D1B;
    --enc-na: #A6ACB6;
    --enc-na-bg: #24282F;
  }
}
