/* RISEN IT Support — design tokens.
   Every colour is the existing palette (previous app.css) or a tint/shade of it. No new brand colours. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette: navy (former top bar) */
  --navy-950: #0b1427;
  --navy-900: #0f1b33;
  --navy-800: #16264a;
  --navy-700: #1f3361;
  --navy-300: #9fb0cf;
  --navy-200: #c9d4ea;
  --navy-100: #dbe4f5;

  /* Palette: primary blue */
  --blue-800: #173a8a;
  --blue-700: #1e40af;
  --blue-600: #1d4ed8;
  --blue-300: #93b0f0;
  --blue-200: #c7dafc;
  --blue-100: #e8efff;
  --blue-50:  #f3f6fd;

  /* Neutral gray scale (from the palette's text, muted and border greys) */
  --gray-900: #1a2233;
  --gray-800: #263043;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #5d6a7e;
  --gray-400: #8a96a8;
  --gray-300: #c8d1de;
  --gray-200: #e2e7ef;
  --gray-150: #e9edf3;
  --gray-100: #eef2f7;
  --gray-50:  #f4f6fa;
  --gray-25:  #f8fafc;
  --white:    #ffffff;

  /* Palette: accents */
  --green-700: #054f31;  --green-600: #067647;  --green-200: #b7e4cb;  --green-50: #e7f6ee;
  --amber-800: #7a4d00;  --amber-700: #9a5b00;  --amber-300: #f0c96a;  --amber-200: #f7d88c;  --amber-100: #fdf0c4;  --amber-50: #fffaeb;  --amber-75: #fff4e0;
  --red-800:   #7a1a12;  --red-700:   #b42318;  --red-500:   #dc2626;  --red-200: #f5c2bc;    --red-50: #fdecea;
  --purple-700: #5b21b6; --purple-50: #f0e9ff;
  --teal-700:  #0e6b6b;  --teal-650:  #0f6b5c;  --teal-50:  #e0f5f5;   --teal-25: #e6f4f1;
  --pink-700:  #9d174d;  --pink-50:   #fde8f1;
  --sky-800:   #075985;  --sky-50:    #e8f4fb;
  --orange-700: #b54708; --orange-50: #fff1e6;
  --slate-600: #4b5563;  --slate-100: #eef0f3;

  /* Semantic */
  --bg: var(--gray-50);
  --surface: var(--white);
  --surface-raised: var(--white);
  --surface-sunken: var(--gray-25);
  --surface-hover: var(--gray-100);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --text: var(--gray-900);
  --text-muted: var(--gray-500);
  --text-subtle: var(--gray-600);
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --primary-active: var(--blue-800);
  --primary-soft: var(--blue-100);
  --primary-softer: var(--blue-50);
  --on-primary: var(--white);
  --success: var(--green-600);
  --success-soft: var(--green-50);
  --warning: var(--amber-700);
  --warning-soft: var(--amber-75);
  --danger: var(--red-700);
  --danger-soft: var(--red-50);
  --info: var(--blue-700);
  --info-soft: var(--blue-100);
  --focus-ring: 0 0 0 3px rgba(29, 78, 216, .28);
  --topbar-bg: rgba(255, 255, 255, .86);
  --overlay: rgba(11, 20, 39, .45);
  --chat-bg: var(--gray-100);
  --bubble-in: var(--surface);
  --bubble-out: var(--blue-100);
  --bubble-out-text: var(--blue-800);
  --chip-bg: var(--gray-150);
  --badge-red: #b42318; /* white text on it passes AA in both themes */
  color-scheme: light;

  /* Spacing (4px scale) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 28px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-full: 999px;

  /* Shadows: soft and layered */
  --sh-xs: 0 1px 2px rgba(15, 27, 51, .05);
  --sh-sm: 0 1px 2px rgba(15, 27, 51, .06), 0 1px 3px rgba(15, 27, 51, .05);
  --sh-md: 0 1px 2px rgba(15, 27, 51, .05), 0 4px 10px -2px rgba(15, 27, 51, .08), 0 2px 4px -2px rgba(15, 27, 51, .04);
  --sh-lg: 0 2px 4px rgba(15, 27, 51, .04), 0 12px 28px -6px rgba(15, 27, 51, .16), 0 6px 12px -6px rgba(15, 27, 51, .08);

  /* Type */
  --font: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-15: 15px; --fs-16: 16px;
  --fs-18: 18px; --fs-20: 20px; --fs-24: 24px; --fs-28: 28px; --fs-32: 32px;
  --lh-tight: 1.25;
  --lh: 1.55;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 150ms;

  /* Shell */
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 72px;
  --topbar-h: 60px;
  --content-max: 1280px;
}

/* Dark theme: the same hues, remapped. theme.js sets data-theme="dark" on <html> (choice: system / light / dark). The sidebar and
   the sign-in brand panel are navy in both themes. Text/background pairs keep WCAG AA contrast. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --gray-900: #e8edf6; --gray-800: #d7deea; --gray-700: #bfc9da; --gray-600: #a9b5c9; --gray-500: #94a1b8; --gray-400: #6e7b92;
  --gray-300: #3b4762; --gray-200: #2b364e; --gray-150: #243048; --gray-100: #1d2840; --gray-50: #0e1626; --gray-25: #121b2d;
  --blue-800: #c9dbff; --blue-700: #aac4fb; --blue-300: #6f93e6; --blue-200: #2f4a8a; --blue-100: #1a2b57; --blue-50: #152140;
  --green-700: #7fdcab; --green-600: #52c78f; --green-200: #1f5a3f; --green-50: #112b20;
  --amber-800: #f6cf7e; --amber-700: #f1b84f; --amber-300: #8d6522; --amber-200: #6d4d18; --amber-100: #3f300e; --amber-50: #2c2209; --amber-75: #33270a;
  --red-800: #f9b8b1; --red-700: #f78f84; --red-500: #ef4444; --red-200: #7c2c26; --red-50: #3a1816;
  --purple-700: #c7a9f8; --purple-50: #2b1e4b;
  --teal-700: #62d2d2; --teal-650: #62c9b5; --teal-50: #0f3535; --teal-25: #10322c;
  --pink-700: #f79dc3; --pink-50: #3e192a;
  --sky-800: #92d1f4; --sky-50: #0f2e41;
  --orange-700: #f6a461; --orange-50: #3b2311;
  --slate-600: #adb6c5; --slate-100: #242c3b;
  --bg: var(--gray-50);
  --surface: #161f35;
  --surface-raised: #1a2540;
  --surface-sunken: var(--gray-25);
  --primary: #7aa2f7; --primary-hover: #94b4f9; --primary-active: #aac4fb; --on-primary: #0b1427;
  --primary-soft: var(--blue-100); --primary-softer: var(--blue-50);
  --focus-ring: 0 0 0 3px rgba(122, 162, 247, .5);
  --topbar-bg: rgba(14, 22, 38, .86);
  --overlay: rgba(2, 6, 14, .66);
  --sh-xs: 0 1px 2px rgba(0, 0, 0, .35);
  --sh-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3);
  --sh-md: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 10px -2px rgba(0, 0, 0, .45);
  --sh-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 12px 28px -6px rgba(0, 0, 0, .6);
  --chat-bg: #0c1424;
  --bubble-in: #1b2742;
  --bubble-out: #23407f;
  --bubble-out-text: #e8efff;
}
