/* The thinkbridge theme: the one place the app's colours, font and focus ring
   are defined. Every other token set aliases these (Tailwind's @theme in
   styles/legacy.css, the --sg-* pricing tokens, the workspace --color-*
   tokens, feedback-theme.css), so a change here reaches every page.

   Values come from the approved "Plans and pricing for partners" page and its
   brand guide (2 Nov 2026). Linked first by app.html and 404.html, and never
   switched off: the pricing pages turn off styles.css and role-ui.css only. */

:root {
  --ta-accent: #330066;
  --ta-accent-hover: #1F003D;
  --ta-accent-ink: #0F001F;
  --ta-accent-medium: #8566A3;
  --ta-accent-line: #C6B8D4;
  --ta-accent-tint: #F1EDF4;
  --ta-accent-wash: #F6F0F7;

  /* One grey scale for the whole app. 100, 200, 500 and 950 are the brand's
     page grey, line, text grey and ink; the steps between are ours. Every
     slate, zinc and gray the pages used to type out maps onto a step here. */
  --ta-gray-50: #FAFAFB;
  --ta-gray-100: #F4F4F6;
  --ta-gray-200: #E6E8EF;
  --ta-gray-300: #D3D5DD;
  --ta-gray-400: #A0A2AD;
  --ta-gray-500: #66666D;
  --ta-gray-600: #4E4E56;
  --ta-gray-700: #3A3A42;
  --ta-gray-800: #26262B;
  --ta-gray-900: #18181B;
  --ta-gray-950: #0C0C0E;

  --ta-ink: var(--ta-gray-950);
  --ta-muted: var(--ta-gray-500);
  --ta-muted-2: var(--ta-muted);
  --ta-page: var(--ta-gray-100);
  --ta-surface: #FFFFFF;
  --ta-aside: #FCFAFD;
  --ta-line: var(--ta-gray-200);
  --ta-line-soft: #EEF0F4;

  --ta-good: #1F7A45;
  --ta-good-bg: #E7F4EC;
  --ta-warn: #946200;
  --ta-warn-bg: #FDF1DD;
  --ta-danger: #B42318;
  --ta-idle-bg: var(--ta-gray-100);

  --ta-gradient-number: linear-gradient(135deg, #0F001F 15%, #330066);
  --ta-gradient-dark: linear-gradient(160deg, #1F003D, #0F001F);
  --ta-wash: radial-gradient(80% 60% at 100% 0%, var(--ta-accent-wash), transparent 70%), #fff;
  --ta-shadow-soft: 0 24px 60px -28px rgba(12, 12, 14, .22);
  --ta-shadow-tile: 0 14px 34px -26px rgba(12, 12, 14, .2);

  --ta-font: 'Mulish', system-ui, -apple-system, sans-serif;

  /* Shapes inside the app (the pricing page has its own, rounder ones). */
  --ta-radius-control: 8px;
  --ta-radius-card: 12px;
}

body {
  font-family: var(--ta-font);
  color: var(--ta-ink);
}

/* In the base layer so a shared control (.ta-input's own focus ring) can
   refine it; unlayered, it would win over every layered rule. */
@layer base {
  :focus-visible { outline: 2px solid var(--ta-accent); outline-offset: 3px; }
  /* On a text field the offset reads as a second border: sit on it instead. */
  :is(input, select, textarea):focus-visible { outline-offset: -1px; }
}

/* The vendored tour (boarding.js) sets `font: … sans-serif` on its popover and
   loads after this file, so the override needs the higher specificity. */
html body div#boarding-popover-item :is(*, [class]) { font-family: var(--ta-font); }
