/* CtrlBox semantic design tokens shared by public, role and JTechAI surfaces. */
:root {
  color-scheme: light;

  --cb-brand-950: #021a13;
  --cb-brand-900: #063b2c;
  --cb-brand-800: #084734;
  --cb-brand-700: #0b5a42;
  --cb-brand-600: #16765b;
  --cb-accent: #c8f36e;
  --cb-accent-strong: #a8df45;
  --cb-on-brand: #f7fff2;
  --cb-on-accent: #092d20;

  --cb-canvas: #f4f8f4;
  --cb-surface: #ffffff;
  --cb-surface-raised: #f8fbf8;
  --cb-surface-muted: #edf3ee;
  --cb-surface-inverse: #061b15;
  --cb-text: #102a21;
  --cb-text-secondary: #496258;
  --cb-text-muted: #66776f;
  --cb-text-inverse: #f7fff2;
  --cb-border: #d5e4da;
  --cb-divider: #e2ebe5;
  --cb-focus: #236b51;
  --cb-hover: #eaf4e7;
  --cb-pressed: #dcebd8;
  --cb-selected: #dff5c8;

  --cb-success: #236b3c;
  --cb-success-surface: #e9f6e8;
  --cb-warning: #805d10;
  --cb-warning-surface: #fff4d6;
  --cb-danger: #9d342d;
  --cb-danger-surface: #fcecea;
  --cb-info: #1c5e73;
  --cb-info-surface: #eaf5f8;

  --cb-font-body: "Plus Jakarta Sans", "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cb-font-display: "Space Grotesk", "Plus Jakarta Sans", "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  --cb-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --cb-text-xs: 0.75rem;
  --cb-text-sm: 0.875rem;
  --cb-text-md: 1rem;
  --cb-text-lg: 1.125rem;
  --cb-text-xl: 1.375rem;
  --cb-text-2xl: 1.75rem;
  --cb-text-3xl: clamp(2rem, 4vw, 3.25rem);

  --cb-space-1: 0.25rem;
  --cb-space-2: 0.5rem;
  --cb-space-3: 0.75rem;
  --cb-space-4: 1rem;
  --cb-space-5: 1.5rem;
  --cb-space-6: 2rem;
  --cb-space-7: 3rem;
  --cb-space-8: 4rem;

  --cb-radius-sm: 0.5rem;
  --cb-radius-md: 0.875rem;
  --cb-radius-lg: 1.25rem;
  --cb-radius-xl: 1.75rem;
  --cb-radius-pill: 999px;
  --cb-shadow-sm: 0 8px 24px rgba(6, 59, 44, 0.07);
  --cb-shadow-md: 0 18px 48px rgba(6, 59, 44, 0.11);
  --cb-shadow-lg: 0 32px 88px rgba(2, 26, 19, 0.2);

  --cb-icon-sm: 1rem;
  --cb-icon-md: 1.25rem;
  --cb-icon-lg: 1.5rem;
  --cb-content-reading: 46rem;
  --cb-content-main: 74rem;
  --cb-content-wide: 90rem;
  --cb-layer-content: 1;
  --cb-layer-sticky: 40;
  --cb-layer-drawer: 80;
  --cb-layer-modal: 100;
  --cb-layer-toast: 120;

  --cb-motion-instant: 100ms;
  --cb-motion-fast: 150ms;
  --cb-motion-standard: 220ms;
  --cb-motion-emphasized: 300ms;
  --cb-motion-story: 400ms;
  --cb-ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --cb-ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --cb-ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --cb-skeleton: #e3ece6;
  --cb-skeleton-highlight: #f6faf7;
}

.cb-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--cb-focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --cb-motion-instant: 1ms;
    --cb-motion-fast: 1ms;
    --cb-motion-standard: 1ms;
    --cb-motion-emphasized: 1ms;
    --cb-motion-story: 1ms;
  }
}
