/*
 * ig-root.css — single source of design tokens for every ig-*.css file.
 * Link this FIRST, once per page, before any other ig-*.css.
 * Change a value here and it updates the stepper, forms, reports, combobox, DMS and drop zone.
 */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800&display=swap');

:root {
  /* ---------- Typography ---------- */
  --font-sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --fs-3xs: 8px;    /* file-type badge */
  --fs-2xs: 10px;   /* source tag */
  --fs-xs: 11px;    /* counters, hints, group labels */
  --fs-sm: 12px;    /* captions, chips, menu items, tree names */
  --fs-md: 13px;    /* buttons, labels, tabs-small, table meta */
  --fs-base: 14px;  /* body, inputs, table cells */
  --fs-lg: 15px;    /* record titles in lists */
  --fs-xl: 16px;    /* section titles, empty-state titles */
  --fs-2xl: 18px;   /* current folder name */
  --fs-3xl: 20px;   /* list page title */
  --fs-4xl: 22px;   /* record / report title */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* ---------- Colour: text & surfaces ---------- */
  --ink: #2b3040;
  --ink-muted: #5f6675;
  --ink-subtle: #8a93a1;
  --line: #dfe3e9;
  --white: #fff;
  --surface: #fff;
  --surface-sunken: #f4f6f8;
  --neutral-50: #eef1f4;
  --canvas: #cfd5dd;

  /* ---------- Colour: brand & status ---------- */
  --brand-blue: #0a73b8;
  --blue-700: #0a5f99;
  --blue-50: #e8f2fa;

  --green-500: #6cc04a;
  --green-600: #2f7a1f;
  --green-50: #eef8e9;

  --danger: #b42318;
  --danger-50: #fdeceb;
  --danger-border: #f4c7c3;

  --amber-50: #fdf4e3;
  --amber-500: #ffcd44;
  --amber-700: #946200;
  --warning-50: #fff3cd;

  /* ---------- On-dark (selection bar, overlays) ---------- */
  --on-dark-hover: rgba(255, 255, 255, .12);
  --on-dark-hover-strong: rgba(255, 255, 255, .22);
  --on-dark-line: rgba(255, 255, 255, .16);
  --on-dark-muted: rgba(255, 255, 255, .4);
  --scrim-light: rgba(255, 255, 255, .7);
  --scrim-dark: rgba(43, 48, 64, .4);

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

  /* ---------- Radius ---------- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ---------- Shadow ---------- */
  --shadow-card: 0 1px 2px rgba(43, 48, 64, .06), 0 4px 16px rgba(43, 48, 64, .06);
  --shadow-lift: 0 8px 24px rgba(43, 48, 64, .14);
  --shadow-float: 0 12px 32px rgba(43, 48, 64, .28);

  /* ---------- Control sizes ---------- */
  --control-h: 40px;
  --control-h-sm: 34px;
}