/* Certus Deploy — design tokens.
   The Certus palette is shared with Certus Identity / FichaCerta / Storage: change it only
   with an explicit decision. Components use the semantic tokens below, not raw colors. */

:root {
  /* ---- Certus palette ---- */
  --certus-primary: #121A3B;
  --certus-blue-700: #012069;
  --certus-accent: #2563EB;
  --certus-accent-hover: #1D4ED8;
  --certus-accent-glow: #002EA8;
  --certus-accent-on-dark: #5B8DEF; /* accent text/icons sitting on navy */
  --certus-cyan: #00CAFF;
  --certus-navy-950: #020817;
  --certus-navy-900: #07142E;
  --certus-navy-800: #0A1F44;
  --certus-sidebar-end: #0D1530;

  /* ---- Surfaces & borders ---- */
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --surface-2: #F3F5FA;        /* table headers, toolbars */
  --surface-hover: #EEF3FF;    /* hovered/selected rows */
  --border: rgba(18, 26, 59, 0.12);
  --border-strong: rgba(18, 26, 59, 0.24);
  --border-soft: #EEF1F6;      /* row separators */

  /* ---- Text ---- */
  --text: #121A3B;
  --text-2: #334155;
  --text-muted: #545F78;
  --text-subtle: #646E87;      /* captions; AA on --surface and --bg */
  --text-on-dark: #E7EDF8;
  --text-on-dark-muted: #A9B6CE;
  --text-on-dark-subtle: #8193B4;
  --line-on-dark: rgba(255, 255, 255, 0.08);

  /* ---- Semantic tones (fg / bg / border / solid) ---- */
  --success: #166534;  --success-bg: #ECFDF3;  --success-border: #BBF7D0;  --success-solid: #22C55E;
  --danger: #B91C1C;   --danger-strong: #991B1B; --danger-bg: #FEF2F2; --danger-border: #FECACA; --danger-solid: #EF4444;
  --warning: #92400E;  --warning-bg: #FFFBEB;  --warning-border: #FDE68A;  --warning-solid: #F59E0B;
  --info: #1D4ED8;     --info-bg: #EFF6FF;     --info-border: #BFDBFE;     --info-solid: #0EA5E9;
  --neutral: #475569;  --neutral-bg: #F1F5F9;  --neutral-border: #E2E8F0;

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

  /* ---- Radius ---- */
  --radius-sm: 8px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* ---- Shadows (navy-tinted) ---- */
  --shadow-card: 0 1px 2px rgba(18, 26, 59, 0.05), 0 1px 3px rgba(18, 26, 59, 0.07);
  --shadow-card-hover: 0 4px 10px -2px rgba(18, 26, 59, 0.12), 0 2px 4px -2px rgba(18, 26, 59, 0.08);
  --shadow-raised: 0 8px 24px -4px rgba(18, 26, 59, 0.16), 0 2px 6px -2px rgba(18, 26, 59, 0.08);
  --shadow-modal: 0 20px 40px -8px rgba(18, 26, 59, 0.28), 0 8px 16px -8px rgba(18, 26, 59, 0.14);
  --ring: 0 0 0 3px rgba(37, 99, 235, 0.35);

  /* ---- Typography (system stacks only — no external font requests, see CSP) ---- */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fs-page-title: 1.6rem;
  --fs-section: 1.02rem;
  --fs-body: 0.9375rem;
  --fs-table: 0.9rem;
  --fs-table-head: 0.75rem;
  --fs-caption: 0.8rem;
  --fs-badge: 0.78rem;

  /* ---- Layout ---- */
  --sidebar-w: 264px;
  --appbar-h: 64px;
  --content-max: 1800px; /* only to avoid absurd line lengths on ultrawide screens */
  --content-pad: 32px;
  --form-width: 1080px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --motion-fast: 120ms ease;
  --motion-base: 200ms ease;
}

@media (min-width: 1600px) {
  :root { --content-pad: 40px; }
}

@media (max-width: 960px) {
  :root { --content-pad: 16px; }
}
