/* Datanis — tokens de design (gerado a partir de tokens.json).
   Temas: :root = Claro (padrão) · [data-theme="dark"] = Escuro ·
   sem data-theme = Sistema (segue prefers-color-scheme).
   Para fixar: <html data-theme="light"> ou <html data-theme="dark">; para "Sistema", remova o atributo.
   Logo: use <img class="dt-only-light" src="datanis-wordmark-color.svg"> + <img class="dt-only-dark" src="datanis-wordmark-white.svg">
   (classes em components/bundle.css). No menu navy, sempre o wordmark branco. */

:root {
  --dt-brand-navy: #07245C;
  --dt-brand-navy-deep: #062156;
  --dt-brand-blue: #1747A9;
  --dt-brand-blue-hover: #113A8D;
  --dt-brand-blue-active: #0E347F;
  --dt-brand-ink: #2D2D2D;
  --dt-sidebar-hover: #0F2F6B;
  --dt-sidebar-active: #1747A9;
  --dt-sidebar-text: #C3CEE4;
  --dt-sidebar-focus: #6E9BF0;
  --dt-sidebar-divider: rgba(255, 255, 255, 0.12);
  --dt-sidebar-border: #07245C;
  --dt-text-on-brand: #FFFFFF;
  --dt-text-on-primary: #FFFFFF;
  --dt-surface-page: #F4F6FA;
  --dt-surface-base: #FFFFFF;
  --dt-surface-subtle: #EEF2F8;
  --dt-selection-bg: #E8EEF9;
  --dt-selection-strong: #D3DFF5;
  --dt-text-primary: #18243A;
  --dt-text-secondary: #64748B;
  --dt-text-muted: #5B6B82;
  --dt-border: #D5DCE6;
  --dt-divider: #E6EAF0;
  --dt-border-strong: #8592A6;
  --dt-focus-ring: #2F6FE0;
  --dt-success: #15803D;
  --dt-success-bg: #DCFCE7;
  --dt-warning: #D97706;
  --dt-warning-text: #B45309;
  --dt-warning-bg: #FEF3C7;
  --dt-danger: #DC2626;
  --dt-danger-text: #B91C1C;
  --dt-danger-bg: #FEE2E2;
  --dt-chart-1: #1747A9;
  --dt-chart-2: #8FB0EA;
  --dt-chart-3: #07245C;
  --dt-chart-4: #8592A6;
  --dt-chart-5: #0E7490;
  --dt-chart-other: #CBD5E1;
  --dt-shadow-1: 0 1px 2px rgba(7, 36, 92, 0.06);
  --dt-shadow-2: 0 4px 12px rgba(7, 36, 92, 0.10);
  --dt-shadow-3: 0 12px 32px rgba(7, 36, 92, 0.16);
  --dt-show-light: inline-block;
  --dt-show-dark: none;
  color-scheme: light;

  --dt-font-sans: Inter, system-ui, sans-serif;
  --dt-font-display: Urbanist, system-ui, sans-serif;
  --dt-font-label: "Josefin Sans", system-ui, sans-serif;
  --dt-font-eyebrow: var(--dt-font-label); /* alias: nome usado no Design System */
  --dt-font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --dt-space-1: 4px;
  --dt-space-2: 8px;
  --dt-space-3: 12px;
  --dt-space-4: 16px;
  --dt-space-5: 24px;
  --dt-space-6: 32px;
  --dt-space-7: 48px;

  --dt-radius-sm: 6px;
  --dt-radius-md: 10px;
  --dt-radius-lg: 14px;
  --dt-radius-pill: 9999px;

  --dt-brand-gradient: linear-gradient(3deg, #062156 10%, #0E347F 50%, #1747A9 90%);

  --dt-sidebar-width: 248px;
  --dt-sidebar-collapsed: 72px;
  --dt-header-height: 60px;
  --dt-content-max: none;   /* conteudo na largura toda da janela (Matheus, 2026-10-27; antes 1440px) */
  --dt-reading-width: 720px;
  --dt-control-height: 40px;

  --dt-duration-fast: 120ms;
  --dt-duration: 200ms;
  --dt-ease: cubic-bezier(.2, 0, 0, 1);
}

:root[data-theme="dark"] {
  --dt-brand-navy: #07245C;
  --dt-brand-navy-deep: #062156;
  --dt-brand-blue: #6E9BF0;
  --dt-brand-blue-hover: #8FB0EA;
  --dt-brand-blue-active: #6390E8;
  --dt-brand-ink: #2D2D2D;
  --dt-sidebar-hover: #0F2F6B;
  --dt-sidebar-active: #1747A9;
  --dt-sidebar-text: #C3CEE4;
  --dt-sidebar-focus: #6E9BF0;
  --dt-sidebar-divider: rgba(255, 255, 255, 0.12);
  --dt-sidebar-border: #3A5085;
  --dt-text-on-brand: #FFFFFF;
  --dt-text-on-primary: #07245C;
  --dt-surface-page: #0B1220;
  --dt-surface-base: #121B2E;
  --dt-surface-subtle: #1A2540;
  --dt-selection-bg: #1C2D52;
  --dt-selection-strong: #1A3068;
  --dt-text-primary: #E6ECF7;
  --dt-text-secondary: #A7B3C9;
  --dt-text-muted: #8A97B0;
  --dt-border: #273452;
  --dt-divider: #1F2B45;
  --dt-border-strong: #64748F;
  --dt-focus-ring: #8FB0EA;
  --dt-success: #4ADE80;
  --dt-success-bg: #0F2E1F;
  --dt-warning: #F59E0B;
  --dt-warning-text: #FBBF24;
  --dt-warning-bg: #3A2A08;
  --dt-danger: #F87171;
  --dt-danger-text: #F87171;
  --dt-danger-bg: #3B1515;
  --dt-chart-1: #6E9BF0;
  --dt-chart-2: #C3CEE4;
  --dt-chart-3: #3B6BD6;
  --dt-chart-4: #8592A6;
  --dt-chart-5: #2DD4BF;
  --dt-chart-other: #475569;
  --dt-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.40);
  --dt-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.45);
  --dt-shadow-3: 0 12px 32px rgba(0, 0, 0, 0.55);
  --dt-show-light: none;
  --dt-show-dark: inline-block;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --dt-brand-navy: #07245C;
    --dt-brand-navy-deep: #062156;
    --dt-brand-blue: #6E9BF0;
    --dt-brand-blue-hover: #8FB0EA;
    --dt-brand-blue-active: #6390E8;
    --dt-brand-ink: #2D2D2D;
    --dt-sidebar-hover: #0F2F6B;
    --dt-sidebar-active: #1747A9;
    --dt-sidebar-text: #C3CEE4;
    --dt-sidebar-focus: #6E9BF0;
    --dt-sidebar-divider: rgba(255, 255, 255, 0.12);
    --dt-sidebar-border: #3A5085;
    --dt-text-on-brand: #FFFFFF;
    --dt-text-on-primary: #07245C;
    --dt-surface-page: #0B1220;
    --dt-surface-base: #121B2E;
    --dt-surface-subtle: #1A2540;
    --dt-selection-bg: #1C2D52;
    --dt-selection-strong: #1A3068;
    --dt-text-primary: #E6ECF7;
    --dt-text-secondary: #A7B3C9;
    --dt-text-muted: #8A97B0;
    --dt-border: #273452;
    --dt-divider: #1F2B45;
    --dt-border-strong: #64748F;
    --dt-focus-ring: #8FB0EA;
    --dt-success: #4ADE80;
    --dt-success-bg: #0F2E1F;
    --dt-warning: #F59E0B;
    --dt-warning-text: #FBBF24;
    --dt-warning-bg: #3A2A08;
    --dt-danger: #F87171;
    --dt-danger-text: #F87171;
    --dt-danger-bg: #3B1515;
    --dt-chart-1: #6E9BF0;
    --dt-chart-2: #C3CEE4;
    --dt-chart-3: #3B6BD6;
    --dt-chart-4: #8592A6;
    --dt-chart-5: #2DD4BF;
    --dt-chart-other: #475569;
    --dt-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.40);
    --dt-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.45);
    --dt-shadow-3: 0 12px 32px rgba(0, 0, 0, 0.55);
    --dt-show-light: none;
    --dt-show-dark: inline-block;
    color-scheme: dark;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dt-duration-fast: 0ms; --dt-duration: 0ms; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
