/* kit-base.css — V3 design-system kit, TRIMMED to the parts the landing uses:
   tokens (:root + .dark), base reset/body/focus/scrollbar/sr-only/skip-link,
   and the .btn button family. App-shell CSS (sidebar/composer/settings/etc.)
   removed — not used by the landing. Source: _ds ui_kits/assistent/styles.css.
   Loads AFTER tokens.css so its :root overrides are then reconciled by landing.css. */

/* ============================================================================
   Burgerzaken-assistent — "Dossier op warm papier"
   A grounded civil-affairs assistant for Dutch municipal professionals.
   Signature: warm akte-paper base + deep authority ink-blue + a ruled
   evidence-margin that makes every answer read like formal casework.
   IBM Plex super-family · NL Design System (Utrecht baseline) sensibility.
   ============================================================================ */

/* ---- 1. TOKENS — Brandbook V3 (light) ---------------------------------- */
/* Re-skin: variable NAMES kept from the original codebase; VALUES swapped to
   the V3 palette (blue/lichtblauw/oranje on a warm light field) and the V3
   type pairing (Space Grotesk koppen · Inter body · IBM Plex Mono data-laag). */
:root {
  /* type families — V3 */
  --f-serif: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;  /* koppen */
  --f-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;     /* body / UI */
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;                   /* identifiers */

  /* warm-neutral field + surfaces */
  --paper: #F7F6F2;        /* licht veld — app background */
  --paper-2: #F0EFEA;      /* sidebar / sunken */
  --surface: #FFFFFF;      /* cards, composer */
  --surface-raised: #FFFFFF;

  --ink-900: #1F2A37;      /* tekstkleur — primary text */
  --ink-700: #3B4654;      /* secondary */
  --ink-500: #5C6776;      /* muted (min) */
  --ink-400: #818B98;      /* placeholder */

  --line: #E4E2DC;         /* hairline rule */
  --line-strong: #D2D0C9;  /* stronger rule */

  /* primair blauw accent (V3) */
  --accent: #0B3D66;       /* brand / links / active */
  --accent-strong: #08294A;
  --accent-wash: #F1F8FD;
  --accent-line: #C2E2F6;

  /* functional status (color + label + icon — never color alone) */
  --ok: #1F8A5B;           /* gegrond / zeker */
  --ok-wash: #E8F5EE;
  --ok-line: #BFE3D0;
  --warn: #C16A12;         /* let op — gewijzigde/vervallen wet (brand-orange family) */
  --warn-wash: #FDF1E0;
  --warn-line: #F6D6A8;
  --alert: #C0322B;        /* conflict / strijdig */
  --alert-wash: #FBEAE8;
  --alert-line: #F1C4C0;
  --neutral-status: var(--ink-500);

  /* evidence layer accents — kept in the blue family */
  --layer-procedure: #0B3D66;
  --layer-wet: #1E6299;
  --layer-rechtspraak: #5A6B7B;

  /* spacing — 8pt grid */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 32px; --s8: 40px; --s9: 48px; --s10: 64px;

  /* radius — terughoudend (restrained, document-like) */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-card: 14px;

  /* elevation — flat dossier; blue-tinted shadow for raised/hover/overlay */
  --sh-sm: 0 1px 2px rgba(11, 61, 102, 0.06);
  --sh-md: 0 6px 18px rgba(11, 61, 102, 0.08);
  --sh-lg: 0 18px 44px rgba(11, 61, 102, 0.12);

  --rail: 760px; /* reading rail width — single source of truth */
}

/* ---- dark: "leren dossier bij nacht" (V3 dark) ------------------------- */
.dark {
  --paper: #131A22;
  --paper-2: #0F151B;
  --surface: #1B232D;
  --surface-raised: #212B37;

  --ink-900: #EAF0F5;
  --ink-700: #B7C2CE;
  --ink-500: #8995A2;
  --ink-400: #6B7785;

  --line: #2C3743;
  --line-strong: #3A4753;

  --accent: #6FC0EE;        /* lichtblauw reads better on dark */
  --accent-strong: #9BD3F3;
  --accent-wash: #18313F;
  --accent-line: #2E4B5C;

  --ok: #5FC68E;
  --ok-wash: #163127;
  --ok-line: #2C4D3C;
  --warn: #E8A24E;
  --warn-wash: #33260F;
  --warn-line: #5A4321;
  --alert: #E8736B;
  --alert-wash: #331917;
  --alert-line: #5A2E2A;
  --neutral-status: var(--ink-500);

  --layer-procedure: #6FC0EE;
  --layer-wet: #57A6DC;
  --layer-rechtspraak: #93A2B0;

  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --sh-md: 0 10px 28px rgba(0, 0, 0, 0.36);
  --sh-lg: 0 22px 54px rgba(0, 0, 0, 0.46);
}

/* ---- 2. BASE ----------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1; /* Inter: l with tail */
}
#root { height: 100%; }

::selection { background: color-mix(in oklch, var(--accent) 22%, transparent); }

/* visible focus on every interactive element (WCAG 2.4.7 / 2.4.11) */
:where(a, button, [role="button"], input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

.dossier-scroll { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.dossier-scroll::-webkit-scrollbar { width: 9px; height: 9px; }
.dossier-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong); border-radius: 99px;
  border: 2px solid transparent; background-clip: content-box;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--surface-raised); color: var(--ink-900);
  padding: 10px 16px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  box-shadow: var(--sh-md); font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 8px; }

/* ---- buttons (from styles.css §3 header block) ---- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: 42px; padding: 0 14px; border-radius: var(--r-md);
  font-family: var(--f-sans); font-size: 13.5px; font-weight: 540;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink-700); }
.btn-outline:hover { border-color: var(--accent-line); color: var(--ink-900); box-shadow: var(--sh-sm); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--sh-sm); }
.dark .btn-primary { color: oklch(0.18 0.01 66); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--ink-500); width: 42px; padding: 0; justify-content: center; }
.btn-ghost:hover { background: color-mix(in oklch, var(--ink-900) 6%, transparent); color: var(--ink-900); }
