/*
  Last Hall theme. Every colour, font, size and shape the app uses is defined here, and app.css uses only these
  tokens. To restyle or rebrand, change this file; to add a theme, add another token block like the dark one below.
*/
:root {
  color-scheme: light;

  /* Brand */
  --brand: #0b3b34;
  --brand-strong: #082b26;
  --accent: #d5f04a;
  --accent-hover: #e3f875;
  --accent-ink: #082b26;

  /* Surfaces and text */
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #fafaf7;
  --surface-muted: #ecebe6;
  --text: #0f2420;
  --text-muted: #55655f;
  --header-bg: #0b3b34;
  --header-text: #ffffff;
  --header-text-muted: #dcefe9;
  --header-hover: #0d4a41;
  --link: #0f5f53;
  --focus: #0f5f53;

  /* Lines */
  --border: #e3dfd4;
  --border-strong: #c9c4b7;
  --border-dashed: #b9c9c3;

  /* Actions and states */
  --primary: #0b3b34;
  --primary-ink: #ffffff;
  --selected-bg: #dcefe9;
  --selected-ink: #0d4a41;
  --danger: #b42318;
  --danger-ink: #ffffff;
  --danger-bg: #fdecea;
  --warn-ink: #7a4b00;
  --warn-bg: #fff3cd;
  --success-ink: #0b3b34;
  --success-bg: #e3f1ec;
  --info-ink: #1f3a5f;
  --info-bg: #e7eef8;

  /* Incident type tones (pickers and badges) */
  --tone-payperiod: #e0a100;
  --tone-days30: #e8590c;
  --tone-days90: #c92a2a;
  --tone-none: #b8b2a3;

  /* Depth */
  --shadow-sm: 0 4px 12px rgba(8, 43, 38, .25);
  --shadow-lg: 0 12px 32px rgba(8, 43, 38, .18);
  --backdrop: rgba(8, 20, 18, .45);

  /* Type and shape */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --tap: 48px;
  --tabbar-h: 64px;
  --content-max: 960px;
}

/* Dark theme. Applied when the device is in dark mode (unless the user chose Light in the menu),
   or when the user chose Dark. The two blocks must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand: #0b3b34;
    --brand-strong: #082b26;
    --bg: #0e1513;
    --surface: #16201d;
    --surface-2: #1b2723;
    --surface-muted: #26332f;
    --text: #e8efec;
    --text-muted: #9fb0aa;
    --header-bg: #0a2622;
    --header-text: #ffffff;
    --header-text-muted: #b9d6cd;
    --header-hover: #12443c;
    --link: #8fd3c3;
    --focus: #8fd3c3;
    --border: #2a3733;
    --border-strong: #3d4d48;
    --border-dashed: #4d605a;
    --primary: #2f8f7d;
    --primary-ink: #ffffff;
    --selected-bg: #1f3d37;
    --selected-ink: #b9ebde;
    --danger: #f97066;
    --danger-ink: #1a0c0b;
    --danger-bg: #3a1a17;
    --warn-ink: #ffd27a;
    --warn-bg: #3a2e12;
    --success-ink: #b9ebde;
    --success-bg: #173a33;
    --info-ink: #bcd3f5;
    --info-bg: #1a2a40;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
    --backdrop: rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #0b3b34;
  --brand-strong: #082b26;
  --bg: #0e1513;
  --surface: #16201d;
  --surface-2: #1b2723;
  --surface-muted: #26332f;
  --text: #e8efec;
  --text-muted: #9fb0aa;
  --header-bg: #0a2622;
  --header-text: #ffffff;
  --header-text-muted: #b9d6cd;
  --header-hover: #12443c;
  --link: #8fd3c3;
  --focus: #8fd3c3;
  --border: #2a3733;
  --border-strong: #3d4d48;
  --border-dashed: #4d605a;
  --primary: #2f8f7d;
  --primary-ink: #ffffff;
  --selected-bg: #1f3d37;
  --selected-ink: #b9ebde;
  --danger: #f97066;
  --danger-ink: #1a0c0b;
  --danger-bg: #3a1a17;
  --warn-ink: #ffd27a;
  --warn-bg: #3a2e12;
  --success-ink: #b9ebde;
  --success-bg: #173a33;
  --info-ink: #bcd3f5;
  --info-bg: #1a2a40;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
  --backdrop: rgba(0, 0, 0, .6);
}
