/* Course theme (dark, glass), 11 October 2026.
   The one place for every colour, shadow, radius, font and glass setting of the course site, the
   case pages and the lessons. Taken from the look of _reference/gemini-design/ (site.html and
   style-board.html); only the look is used, none of their words or numbers.
   course-site.css, case-layout.css and lesson-template/lesson.css read only these variables.
   Contrast: text colours are checked against the panel colour (#111827) and the page (#030712);
   every text token below passes WCAG AA (4.5:1) on both. Decorative tokens are marked. */
@import url('/vendor/fonts/fonts.css');

:root {
  color-scheme: dark;

  /* fonts */
  --t-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-mono: "JetBrains Mono", Consolas, "Courier New", monospace;

  /* backgrounds, darkest first */
  --t-bg-900: #030712;   /* page */
  --t-bg-800: #0b0f19;   /* bands, inset areas */
  --t-bg-700: #111827;   /* panels, cards */
  --t-bg-600: #1f2937;   /* raised controls */
  --t-bg-500: #374151;   /* hover on raised controls */
  --t-page: var(--t-bg-900);
  --t-surface: var(--t-bg-700);
  --t-surface-2: var(--t-bg-800);
  --t-surface-3: var(--t-bg-600);
  --t-card: rgba(17, 24, 39, .82);          /* cards without blur */
  --t-card-hover: rgba(31, 41, 55, .88);

  /* glass (main panels only: header, the three lesson windows, hero stat row) */
  --t-glass: rgba(17, 24, 39, .72);
  --t-glass-strong: rgba(17, 24, 39, .88);
  --t-glass-head: rgba(11, 15, 25, .82);
  --t-glass-border: rgba(255, 255, 255, .08);
  --t-glass-blur: 16px;

  /* borders and lines */
  --t-border: #0c5a70;   /* card and panel borders: the accent (#06b6d4) mixed into the panel colour, as themes.js does for every other theme */
  --t-border-hover: #0a7a92;
  --t-border-strong: #374151;
  --t-border-soft: rgba(255, 255, 255, .08);
  --t-line: #334155;            /* chart axes and grid (decorative) */

  /* text */
  --t-text: #f3f4f6;            /* headings, numbers */
  --t-text-2: #d1d5db;          /* body text */
  --t-muted: #9ca3af;           /* labels, descriptions (6.6:1 on #111827) */
  --t-faint: #6b7280;           /* decorative only, never for reading text */
  --t-on-accent: #030712;       /* text on a bright accent fill */
  --t-on-strong: #ffffff;       /* text on the deep button gradient */
  --t-assist: #fb923c;          /* the assistant's button: orange (8.9:1 on the page); themes.js fits it per theme */
  --t-on-assist: #0b0f19;       /* the robot icon on it (8.1:1) */

  /* accents: fills and lines */
  --t-cyan: #06b6d4;
  --t-violet: #8b5cf6;
  --t-emerald: #10b981;
  --t-amber: #f59e0b;
  --t-rose: #f43f5e;
  --t-blue: #3b82f6;
  --t-pink: #ec4899;
  /* accents as text (lighter shades, at least 4.5:1 on panels) */
  --t-cyan-text: #22d3ee;
  --t-violet-text: #c4b5fd;
  --t-emerald-text: #34d399;
  --t-amber-text: #fbbf24;
  --t-rose-text: #fb7185;
  --t-blue-text: #93c5fd;
  --t-pink-text: #f9a8d4;
  /* accent tints for pills, fills and highlights */
  --t-cyan-soft: rgba(6, 182, 212, .12);
  --t-violet-soft: rgba(139, 92, 246, .12);
  --t-emerald-soft: rgba(16, 185, 129, .12);
  --t-amber-soft: rgba(245, 158, 11, .14);
  --t-rose-soft: rgba(244, 63, 94, .12);
  --t-blue-soft: rgba(59, 130, 246, .12);
  --t-pink-soft: rgba(236, 72, 153, .12);
  --t-cyan-edge: rgba(6, 182, 212, .32);
  --t-violet-edge: rgba(139, 92, 246, .38);
  --t-emerald-edge: rgba(16, 185, 129, .32);
  --t-amber-edge: rgba(245, 158, 11, .34);
  --t-rose-edge: rgba(244, 63, 94, .34);
  --t-blue-edge: rgba(59, 130, 246, .34);
  --t-pink-edge: rgba(236, 72, 153, .34);

  /* control states (lesson feedback, 11 October): ON is the one accent, solid; OFF is a neutral outline */
  --t-on: var(--t-cyan);
  --t-on-text: var(--t-cyan-text);   /* the accent as text */
  --t-lvl2-text: var(--t-violet-text);   /* the second accent as text: section headings (Neon; themes.js sets it for every other theme) */
  --t-tour-hl: #ffb000;   /* the tour highlight ring: a colour used by nothing else on the page (themes.js sets it per theme) */
  /* the tour subtitles (Neon's own; themes.js sets them for every other theme): a light panel on this dark page, page-coloured
     text, a border in the tour highlight, the word being said in a darker amber that reads on the panel */
  --t-sub-bg: #e9eaed; --t-sub-text: #030712; --t-sub-border: #ffb000; --t-sub-hl: #8a4b00; --t-sub-dim: #4a4e57;
  --t-neutral-border: #4b5563;  /* outline of a control that is off (decorative edge) */
  --t-sweep: rgba(255, 255, 255, .26);   /* the band that sweeps across tiles that change (decorative) */

  /* tile identity colours (Interactive Data and Features tiles): colour only names the tile */
  --t-neon-1: #22d3ee; --t-neon-2: #a78bfa; --t-neon-3: #34d399; --t-neon-4: #fbbf24;
  --t-neon-5: #fb7185; --t-neon-6: #60a5fa; --t-neon-7: #f472b6; --t-neon-8: #2dd4bf;
  --t-neon-basket: #f0abfc;

  /* names the Customise panel can change; each follows an existing colour until it is changed */
  --t-heading: var(--t-text);
  --t-header: var(--t-glass-strong);
  --t-header-text: var(--t-text-2);
  --t-unavailable: var(--t-neutral-border);
  --t-particle-pos: var(--t-pos);
  --t-particle-neg: var(--t-neg);

  /* meaning: positive and negative values (cyan and rose, as the brief asks) */
  --t-pos: var(--t-cyan);
  --t-neg: var(--t-rose);
  --t-pos-text: var(--t-cyan-text);
  --t-neg-text: var(--t-rose-text);

  /* gradients */
  --t-grad-text: linear-gradient(135deg, #22d3ee 0%, #a855f7 50%, #ec4899 100%);
  --t-grad-brand: linear-gradient(45deg, #7c3aed, #06b6d4, #34d399);       /* logo ring (decorative) */
  --t-grad-button: linear-gradient(90deg, #6d28d9, #0e7490);               /* white text passes on both ends */
  --t-grad-button-hover: linear-gradient(90deg, #5b21b6, #155e75);   /* darker on hover: white text stays above 4.5:1 */
  --t-button-solid: #0e7490;   /* solid fallback behind the button gradient */
  --t-grad-glow: linear-gradient(90deg, rgba(124, 58, 237, .22), rgba(6, 182, 212, .2), rgba(16, 185, 129, .18));
  --t-grad-band: linear-gradient(180deg, rgba(11, 15, 25, .35), rgba(11, 15, 25, .65));

  /* glows and shadows */
  --t-glow-cyan: 0 0 30px rgba(6, 182, 212, .25);
  --t-glow-violet: 0 0 35px rgba(139, 92, 246, .25);
  --t-glow-hover: 0 0 25px rgba(139, 92, 246, .15);
  --t-shadow: 0 24px 48px -12px rgba(0, 0, 0, .55);
  --t-shadow-sm: 0 6px 16px -6px rgba(0, 0, 0, .5);
  --t-shade: #000000;   /* the colour of shadows (old pages' shadows use it, see /theme/legacy-colours.js) */
  --t-focus: 0 0 0 3px rgba(34, 211, 238, .45);
  --t-shadow-button: 0 10px 24px -8px rgba(6, 182, 212, .35);

  /* the dot grid behind the hero */
  --t-dot: rgba(255, 255, 255, .08);
  --t-dot-size: 24px;

  /* radii */
  --t-r-sm: 8px;
  --t-r: 12px;
  --t-r-lg: 16px;
  --t-r-xl: 24px;
  --t-r-pill: 999px;

  /* code */
  --t-code-bg: #030712;
  --t-code-gutter: #0b0f19;
  --t-code-tabbar: #0b0f19;
  --t-code-border: #1f2937;
  --t-code-text: #e2e8f0;
  --t-code-line-no: #8b95a5;    /* 6.3:1 on the code background */
  --t-code-kw: #c4b5fd;         /* keywords: violet */
  --t-code-fn: #38bdf8;         /* functions: sky (the style board's code colour) */
  --t-code-builtin: #22d3ee;    /* built-ins and modules: cyan */
  --t-code-str: #6ee7b7;        /* strings: emerald */
  --t-code-num: #fbbf24;        /* numbers: amber */
  --t-code-com: #94a3b8;        /* comments: slate, italic */
  --t-code-ok: #86efac;         /* terminal: system / success lines */
  --t-code-warn: #fcd34d;       /* terminal: warnings */
  --t-code-err: #fca5a5;        /* terminal: errors */
  --t-code-op: #94a3b8;
  --t-code-hl: rgba(245, 158, 11, .16);        /* the Play band */
  --t-code-link: #67e8f9;      /* a file link on the code tab */
  --t-code-button: #4b5563;    /* outline of a button on the code tab */
  --t-code-badge-bg: #fbbf24; --t-code-badge-text: #030712;   /* live values beside code lines */
  --t-code-live: rgba(6, 182, 212, .16);       /* the training band */
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-motion: 0; }
}
