/* StepVerzekerd dashboard: ontwerptokens (licht thema, geen donker thema).
   Bron: design/STEPVERZEKERD-DESIGN.md. Alles staat op :root, want de grafiekcode leest
   kleuren met getComputedStyle(document.documentElement) op het moment van tekenen. */

/* Fonts zelf gehost (latin-subset, SIL OFL 1.1). Geen verzoeken naar Google. */
@font-face {
  font-family: 'Momo Trust Display';
  src: url('/assets/fonts/momo-trust-display-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Kleuren */
  --sv-ink: #1a2533;
  --sv-text: #4f5a63;
  --sv-muted: #7c8791;
  --sv-brand: #0094d2;
  --sv-deep: #007bb1;
  --sv-tint: #e6f4fb;
  --sv-soft: #f6f9fb;
  --sv-subtle: #f8fbfd;
  --sv-line: #e3e8ec;
  --sv-line-strong: #c9d2d9;
  --sv-white: #ffffff;
  --sv-ok: #1e7f52;
  --sv-ok-tint: #e5f4ec;
  --sv-warn: #a15c00;
  --sv-warn-tint: #fdf1e0;
  --sv-err: #c0362c;
  --sv-err-tint: #fbe9e7;

  /* Aanvullingen voor leesbaarheid (WCAG AA 4.5:1 voor kleine tekst):
     --sv-muted haalt op wit maar 3.7:1, --sv-deep op --sv-tint 4.2:1.
     Kleine tekst gebruikt daarom --sv-muted-text en --sv-deep-strong. */
  --sv-muted-text: #5f6b75;
  --sv-deep-strong: #00689a;
  --sv-ok-strong: #1b7a4d; /* --sv-ok op --sv-ok-tint haalt 4.4:1, dit 4.7:1 */
  /* Primaire knop: witte tekst op merkblauw #0094D2 haalt maar 3.4:1. De knop gebruikt daarom
     --sv-deep (#007BB1, 4.7:1) met --sv-deep-strong als hover (6.5:1). Merkblauw blijft overal elders. */
  --sv-btn-bg: var(--sv-deep);
  --sv-btn-bg-hover: var(--sv-deep-strong);

  /* Grafiekkleuren (licht thema, minimaal 3:1 tegen wit) */
  --sv-chart-provisie: #0094d2;
  --sv-chart-kosten: #d9733f;
  --sv-chart-commissie: #7b5cc4;
  --sv-chart-resultaat: #1a2533;

  /* Lettertypen */
  --sv-font-display: 'Momo Trust Display', 'Poppins', system-ui, sans-serif;
  --sv-font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sv-font-ui: 'Montserrat', 'Poppins', system-ui, sans-serif;

  /* Typeschaal: grootte */
  --sv-fs-display-lg: 32px;
  --sv-fs-display-kpi: 30px;
  --sv-fs-heading-md: 18px;
  --sv-fs-heading-sm: 16px;
  --sv-fs-body-md: 15px;
  --sv-fs-body-sm: 14px;
  --sv-fs-label: 12px;
  --sv-fs-num: 14px;
  --sv-fs-micro: 12px;
  /* Typeschaal: regelhoogte */
  --sv-lh-display-lg: 1.15;
  --sv-lh-display-kpi: 1.1;
  --sv-lh-heading-md: 1.3;
  --sv-lh-heading-sm: 1.4;
  --sv-lh-body-md: 1.55;
  --sv-lh-body-sm: 1.5;
  --sv-lh-label: 1.3;
  --sv-lh-micro: 1.4;
  --sv-ls-display-lg: -0.5px;
  --sv-ls-label: 0.06em;

  /* Ruimte (basis 8px) */
  --sv-space-1: 4px;
  --sv-space-2: 8px;
  --sv-space-3: 12px;
  --sv-space-4: 16px;
  --sv-space-5: 24px;
  --sv-space-6: 32px;
  --sv-space-7: 48px;
  --sv-space-8: 64px;

  /* Vorm */
  --sv-radius-input: 10px;
  --sv-radius-card: 18px;
  --sv-radius-inner: 12px; /* vlakken in een kaart: filterbalk, tabel, accordeon */
  --sv-radius-pill: 999px;
  --sv-radius-tip: 10px;

  /* Schaduw */
  --sv-shadow-card: 0 1px 2px rgba(0, 55, 112, 0.04), 0 1px 3px rgba(0, 55, 112, 0.04);
  --sv-shadow-pop: 0 8px 24px rgba(0, 55, 112, 0.1), 0 2px 6px rgba(0, 55, 112, 0.05);
  --sv-ring: 0 0 0 3px rgba(0, 148, 210, 0.18);

  /* Layout */
  --sv-sidebar-w: 248px;
  --sv-topbar-h: 60px;
  --sv-content-max: 1280px;
  --sv-gap: 24px;
  --sv-gap-section: 32px; /* tussen de blokken van een pagina */
  --sv-card-pad: 24px;
  --sv-gutter: 32px;
  --sv-input-h: 44px;
  --sv-row-h: 52px;

  /* Beweging */
  --sv-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sv-dur: 160ms;

  /* Lagen */
  --sv-z-sticky: 10;
  --sv-z-topbar: 40;
  --sv-z-drawer: 60;
  --sv-z-toast: 90;
}

/* Mobiel: kleinere kaartpadding en tussenruimte, kleinere display-maten */
@media (max-width: 767px) {
  :root {
    --sv-fs-display-lg: 26px;
    --sv-fs-display-kpi: 26px;
    --sv-gap: 16px;
    --sv-gap-section: 20px;
    --sv-card-pad: 16px;
    --sv-gutter: 16px;
  }
}

/* Tablet en kleiner: de zijbalk wordt een lade, de inhoud krijgt minder marge */
@media (max-width: 1023px) {
  :root {
    --sv-gutter: 24px;
  }
}
@media (max-width: 767px) {
  :root {
    --sv-gutter: 16px;
  }
}
