/* ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   InCompanyData design system — tokens ("the own data company")
   One source for every app (portal, admin, website). Brand palette and type from brand/tokens.json:
   ink #0E2226 · core #17806A · core-light #5FD3B4 · haze #DDEEE9 · paper #F4F6F5 · slate #3F5559 · white.
   Headings Space Grotesk (500, 700), text Inter (400, 500, 600). Radii 10 / 14 / 20.
   · Colour is semantic: name what it means (text, surface, accent, danger), never what it looks like.
   · Light and dark follow the system; [data-theme="light|dark"] on <html> overrides it (set by theme.js).
   · Contrast: text ≥ 7:1, secondary text ≥ 4.5:1, accent text ≥ 4.5:1 on its background, in both themes.
   ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* InCompanyData typefaces, served from this server (no font CDN: visitors' addresses are never sent to a third party).
   Inter and Space Grotesk are licensed under the SIL Open Font License 1.1 (fonts/OFL-*.txt). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  /* Brand (fixed values; use the semantic tokens below in components) */
  --icd-ink: #0E2226; --icd-core: #17806A; --icd-core-light: #5FD3B4; --icd-haze: #DDEEE9; --icd-paper: #F4F6F5; --icd-slate: #3F5559; --icd-white: #FFFFFF;

  /* Type — brand typefaces, self-hosted (fonts/), with system fallbacks */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: .75rem; --text-sm: .8125rem; --text-base: .9375rem; --text-md: 1.0625rem; --text-lg: 1.3125rem;
  --text-xl: 1.75rem; --text-2xl: 2.25rem; --text-display: clamp(2.5rem, 6vw, 4.5rem);
  --leading: 1.5; --tracking: -.005em; --tracking-tight: -.02em;

  /* Space (4-pt grid), shape, motion */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem;
  --radius-sm: 10px; --radius: 14px; --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 980px;
  --ease: cubic-bezier(.25, .1, .25, 1); --ease-spring: cubic-bezier(.32, .72, 0, 1);
  --duration: .18s; --duration-slow: .32s;
  --tap: 44px; /* minimum touch target */

  /* Colour — light */
  --bg: #F4F6F5; --surface: #FFFFFF; --surface-2: #FAFBFA; --surface-3: #E9EFED;
  --text: #0E2226; --muted: #3F5559; --faint: #5E7377;
  --line: rgba(14, 34, 38, .09); --line-strong: rgba(14, 34, 38, .16); --fill: rgba(14, 34, 38, .045);
  --accent: #17806A; --accent-hover: #126B58; --accent-soft: rgba(23, 128, 106, .1); --accent-softer: rgba(23, 128, 106, .17); --on-accent: #FFFFFF;
  --haze: #DDEEE9; --knob: #FFFFFF;
  --green: #1B7F3B; --green-soft: rgba(52, 168, 83, .14);
  --orange: #A64B00; --orange-soft: rgba(255, 149, 0, .15);
  --red: #C8102E; --red-soft: rgba(230, 57, 70, .12);
  --purple: #7A4FA0; --purple-soft: rgba(150, 100, 200, .12);
  --brand: #17806A;
  --avatar: linear-gradient(135deg, #5FD3B4, #17806A);
  --shadow: 0 1px 1px rgba(14, 34, 38, .03), 0 4px 16px rgba(14, 34, 38, .06);
  --shadow-pop: 0 10px 40px rgba(14, 34, 38, .16);
  --focus-ring: 0 0 0 4px rgba(23, 128, 106, .28);
  --glass: rgba(250, 251, 250, .8); --sidebar: rgba(236, 242, 240, .88);
  --scrim: rgba(14, 34, 38, .36); --selected: #FFFFFF;
  --highlight: rgba(95, 211, 180, .38); --star: #E39B00;
  --chart-1: #17806A; --chart-2: #2F6690; --chart-3: #5FB8A0; --chart-4: #3F5559; --chart-5: #C46A12; --chart-6: #7A4FA0;
  --ask: linear-gradient(135deg, #17806A, #0E2226);
  --logo: url("/design/brand/logo-light.svg");
  color-scheme: light;
}

/* Colour — dark (system preference unless the user picked light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07171A; --surface: #0E2226; --surface-2: #0B1D21; --surface-3: #18343A;
    --text: #F4F6F5; --muted: #A9BFBB; --faint: #8AA29E;
    --line: rgba(244, 246, 245, .1); --line-strong: rgba(244, 246, 245, .18); --fill: rgba(244, 246, 245, .06);
    --accent: #5FD3B4; --accent-hover: #7FDDC4; --accent-soft: rgba(95, 211, 180, .14); --accent-softer: rgba(95, 211, 180, .22); --on-accent: #0E2226;
    --haze: #18343A; --knob: #FFFFFF;
    --green: #4CD98A; --green-soft: rgba(76, 217, 138, .16);
    --orange: #FFA94D; --orange-soft: rgba(255, 169, 77, .16);
    --red: #FF6B6B; --red-soft: rgba(255, 107, 107, .16);
    --purple: #C59CF0; --purple-soft: rgba(197, 156, 240, .16);
    --brand: #5FD3B4;
    --shadow: 0 0 0 1px rgba(244, 246, 245, .06); --shadow-pop: 0 10px 40px rgba(0, 0, 0, .6);
    --focus-ring: 0 0 0 4px rgba(95, 211, 180, .38);
    --glass: rgba(11, 29, 33, .76); --sidebar: rgba(14, 34, 38, .86);
    --scrim: rgba(0, 0, 0, .55); --selected: #24474E;
    --highlight: rgba(95, 211, 180, .3); --star: #FFC23D;
    --chart-1: #5FD3B4; --chart-2: #7FB3E0; --chart-3: #3FA58A; --chart-4: #A9BFBB; --chart-5: #FFA94D; --chart-6: #C59CF0;
    --ask: linear-gradient(135deg, #5FD3B4, #17806A);
    --logo: url("/design/brand/logo-dark.svg");
    color-scheme: dark;
  }
}
/* Colour — dark chosen by the user (same values as above) */
:root[data-theme="dark"] {
  --bg: #07171A; --surface: #0E2226; --surface-2: #0B1D21; --surface-3: #18343A;
  --text: #F4F6F5; --muted: #A9BFBB; --faint: #8AA29E;
  --line: rgba(244, 246, 245, .1); --line-strong: rgba(244, 246, 245, .18); --fill: rgba(244, 246, 245, .06);
  --accent: #5FD3B4; --accent-hover: #7FDDC4; --accent-soft: rgba(95, 211, 180, .14); --accent-softer: rgba(95, 211, 180, .22); --on-accent: #0E2226;
  --haze: #18343A; --knob: #FFFFFF;
  --green: #4CD98A; --green-soft: rgba(76, 217, 138, .16);
  --orange: #FFA94D; --orange-soft: rgba(255, 169, 77, .16);
  --red: #FF6B6B; --red-soft: rgba(255, 107, 107, .16);
  --purple: #C59CF0; --purple-soft: rgba(197, 156, 240, .16);
  --brand: #5FD3B4;
  --shadow: 0 0 0 1px rgba(244, 246, 245, .06); --shadow-pop: 0 10px 40px rgba(0, 0, 0, .6);
  --focus-ring: 0 0 0 4px rgba(95, 211, 180, .38);
  --glass: rgba(11, 29, 33, .76); --sidebar: rgba(14, 34, 38, .86);
  --scrim: rgba(0, 0, 0, .55); --selected: #24474E;
  --highlight: rgba(95, 211, 180, .3); --star: #FFC23D;
  --chart-1: #5FD3B4; --chart-2: #7FB3E0; --chart-3: #3FA58A; --chart-4: #A9BFBB; --chart-5: #FFA94D; --chart-6: #C59CF0;
  --ask: linear-gradient(135deg, #5FD3B4, #17806A);
  --logo: url("/design/brand/logo-dark.svg");
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (prefers-contrast: more) { :root { --line: rgba(127, 127, 127, .45); --line-strong: rgba(127, 127, 127, .7); --muted: var(--text); } }
