/* Design tokens. ALL colors, spacing and sizes live here so the design can be rebuilt later (CLAUDE.md, Design).
 * Components in base.css may only use these variables, never literal colors or sizes. */
:root {
  --color-bg: #ffffff;
  --color-fg: #1d2a22;
  --color-muted: #5f6f65;
  --color-line: #d9e0db;
  --color-accent: #1f6b45;
  --color-accent-fg: #ffffff;
  --color-menu: #17352a;
  --color-menu-fg: #dfe9e3;
  --color-menu-active: rgb(255 255 255 / 0.14);
  --color-danger: #a32020;
  --color-surface: #f5f8f6;
  /* Chart series, fixed order (validated: adjacent colour-blind separation, lightness band). Same entity, same colour. */
  --chart-1: #2a78d6;
  --chart-2: #eb6834;
  --chart-3: #1baf7a;
  --chart-4: #eda100;
  --chart-5: #e87ba4;
  --color-toast-bg: #1d2a22;
  --color-toast-fg: #ffffff;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;

  --radius: 6px;
  --font: system-ui, sans-serif;
  --font-size: 14px;
  --font-size-small: 12.5px;
  --font-size-menu: 13.5px;
  --font-size-group: 11px;
  --font-size-h1: 19px;
  --font-size-h2: 15px;
  --font-size-h3: 14px;
  --font-size-tile: 26px;
  --font-size-input: 16px; /* at least 16px, otherwise iPhone Safari zooms on focus */
  --line-height: 1.45;
  --menu-width: 236px;
  --tab-height: 56px;
  --topbar-height: 48px;
  --color-menu-muted: #9db4a8;
  --color-menu-hover: rgb(255 255 255 / 0.07);
  --color-scrim: rgb(0 0 0 / 0.45);
  --color-tile-warn: #fbeeee;
  --content-max: 960px;
  --tap-size: 44px;
  /* Public website */
  --color-hero-from: #15392b;
  --color-hero-to: #2c7a52;
  --color-hero-fg: #ffffff;
  --color-hero-soft: #cfe5d8;
  --color-band-alt: #f3f6f4;
  --color-tile-a: #e1efe6;
  --color-tile-b: #e6eaf3;
  --color-tile-c: #f1ece0;
  --color-tile-d: #dfe9e3;
  --color-shadow: rgb(23 53 42 / 0.12);
  --site-max: 1180px;
}

/* Print layout for bookkeeping vouchers (A4, four per page) */
:root {
  --print-page-margin: 10mm;
  --print-page-height: 277mm;
  --print-gap: 6mm;
}

/* The staff app (html.dense) on a desktop. Desktop pointers do not need touch-sized controls or large text; phones keep the larger sizes (16 px input text avoids the iPhone zoom) */
@media (min-width: 701px) {
  html.dense {
    --font-size: 13px; --font-size-small: 12px; --font-size-menu: 13px; --font-size-group: 11px;
    --font-size-h1: 17px; --font-size-h2: 14px; --font-size-h3: 13px; --font-size-tile: 22px; --font-size-input: 13px;
    --line-height: 1.4; --tap-size: 30px; --menu-width: 210px; --content-max: 1280px;
    --space-1: 3px; --space-2: 6px; --space-3: 8px; --space-4: 12px; --space-5: 16px;
    --radius: 5px;
  }
}
