/* Opt-in platform foundation. Preserve the first consumer's font identity. */
@font-face {
  font-family: 'KD Overview Inter';
  src: url('/base/fonts/platform/inter-latin-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'KD Overview Inter';
  src: url('/base/fonts/platform/inter-latin-500-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'KD Overview Inter';
  src: url('/base/fonts/platform/inter-latin-600-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
/* Semantic defaults are opt-in; declaring tokens does not style components. */
body.platform-sidebar-page,
body.platform-ui-page {

  /* Colors */
  --platform-color-surface: #fff;
  --platform-color-canvas: #f8fafc;
  --platform-color-text: #0f172a;
  --platform-color-text-muted: #475569;
  --platform-color-border: #e2e8f0;
  --platform-color-brand: #1d4ed8;
  --platform-color-brand-subtle: #eff6ff;
  --platform-color-control-border: #cbd5e1;
  --platform-color-control-border-hover: #94a3b8;
  --platform-color-control-text: #334155;
  /* New field boundaries; legacy control tokens and KD aliases stay unchanged. */
  --platform-color-field-border: #64748b;
  --platform-color-field-border-hover: #475569;
  --platform-color-hover: #f1f5f9;
  --platform-color-success: #166534;
  --platform-color-success-surface: #dcfce7;
  --platform-color-warning-surface: #fef3c7;
  --platform-color-error: #b91c1c;
  --platform-color-error-surface: #fef2f2;
  /* MMB client-facing brand (additive; separate from the JaBuvo interface brand and functional states).
     Source values: modules/formulieren (README brand colours, legacy code modal, print invitation) and
     mijnDeadlines. Turquoise and yellow are fills/accents only (1.92:1 and 1.2:1 on white); use the
     -text / on- variants for text and icons (turquoise-text 5.05:1 on white, on-turquoise 8.17:1,
     on-yellow 13.36:1, text on yellow-surface 16.8:1). */
  --platform-color-mmb-turquoise: #38d1b5;
  --platform-color-mmb-turquoise-text: #087d6b;
  --platform-color-mmb-turquoise-surface: #f5fbfa;
  --platform-color-mmb-on-turquoise: #132722;
  --platform-color-mmb-yellow: #ffed3b;
  --platform-color-mmb-yellow-surface: #fff9d9;
  --platform-color-mmb-on-yellow: #17222e;

  /* Spacing */
  --platform-space-1: 4px;
  --platform-space-2: 8px;
  --platform-space-3: 12px;
  --platform-space-4: 16px;
  --platform-space-6: 24px;

  /* Radii */
  --platform-radius-sm: 4px;
  --platform-radius-control: 6px;
  --platform-radius-menu: 8px;
  --platform-radius-panel: 12px;

  /* Typography; declarations alone do not load or select fonts. */
  --platform-font-family-ui: 'KD Overview Inter', Arial, sans-serif;
  --platform-font-family-heading: Play, sans-serif;
  --platform-font-size-xs: 12px;
  --platform-font-size-sm: 14px;
  --platform-font-size-md: 16px;
  --platform-font-size-heading: 28px;
  --platform-font-weight-regular: 400;
  --platform-font-weight-medium: 500;
  --platform-font-weight-semibold: 600;
  --platform-line-height-tight: 1.2;
  --platform-line-height-body: 1.4;
  --platform-line-height-control: 20px;
  --platform-line-height-heading: 36px;
  --platform-letter-spacing-heading: -0.02em;

  /* Control sizes and overlay elevation */
  --platform-control-height-sm: 32px;
  --platform-control-height-md: 40px;
  --platform-shadow-overlay: 0 4px 20px rgb(15 23 42 / 5%);
}

/* Keep legacy consumer scope and specificity. Theme aliases at the body. */
body.platform-sidebar-page {
  --kd-surface: var(--platform-color-surface);
  --kd-canvas: var(--platform-color-canvas);
  --kd-text: var(--platform-color-text);
  --kd-muted: var(--platform-color-text-muted);
  --kd-border: var(--platform-color-border);
  --kd-primary: var(--platform-color-brand);
  --kd-control-border: var(--platform-color-control-border);
  --kd-control-border-hover: var(--platform-color-control-border-hover);
  --kd-control-text: var(--platform-color-control-text);
  --kd-hover: var(--platform-color-hover);
  --kd-success: var(--platform-color-success);
  --kd-success-surface: var(--platform-color-success-surface);
  --kd-warning-surface: var(--platform-color-warning-surface);
  --kd-space-1: var(--platform-space-1);
  --kd-space-2: var(--platform-space-2);
  --kd-space-3: var(--platform-space-3);
  --kd-space-4: var(--platform-space-4);
  --kd-space-6: var(--platform-space-6);
  --kd-radius-sm: var(--platform-radius-sm);
  --kd-radius-control: var(--platform-radius-control);
  --kd-radius-menu: var(--platform-radius-menu);
  --kd-radius-panel: var(--platform-radius-panel);
}
