/* Shared tokens for the TSP homepage prototype. Same family as the case-study prototypes the owner
   approved (services/research2/case-study-audit/proto/case-study.css). Every section reads these;
   none redefines them. Only the integrator edits this file. */
:root {
  --bg: #060b18;
  --bg-2: #0a1124;
  --bg-3: #0e1730;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef2fb;
  --text-2: #b4bdd3;
  --text-3: #8d97b2;
  --text-dim: #94a3c4;            /* second tone of two-tone headings */
  --cyan: #00d4ff;  --cyan-rgb: 0, 212, 255;
  --violet: #7c3aed; --violet-rgb: 124, 58, 237;
  --spark: #ffffff;
  --ok: #00d68f;
  --draft: #fbbf24;
  --grad: linear-gradient(100deg, var(--cyan) 0%, #5b8cff 45%, var(--violet) 100%);
  --nav-h: 75px;   /* the site header's height (chrome.css): 75px above 900px, 71px at 900px and under */
  --bar-h: 44px;   /* the homepage's chapter bar, under the header past the hero (chrome.css) */
  --sticky-top: calc(var(--nav-h) + var(--bar-h));   /* header + bar: where pinned parts start */
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 18px;
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Outfit', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 900px) { :root { --nav-h: 71px; } }
@media (scripting: none) { :root { --bar-h: 0px; } }
@property --sticky-top { syntax: '<length>'; inherits: true; initial-value: 0px; }   /* scripts read it in px */
/* Kajabi sets overflow-x:hidden on html and body, which makes body a scroll container and silently
   disables position:sticky. clip keeps the clipping without that (verified on the live site). */
html, body { overflow-x: clip; }
/* No scroll-behavior: smooth here (2026-11-27). On the html element it also animated the browser's own scroll
   restoration, so a reload glided for about a second from wherever the half-loaded page stood. In-page links still
   glide: see html.th-glide at the end of this file. */
html { background: var(--bg); }
/* Keyboard focus, in-page links and scrollIntoView all stop below the fixed site header (2026-11-27 page review): with
   Shift+Tab the browser put the focused element at the very top, behind the header (WCAG 2.2 SC 2.4.11). The sections'
   own scroll margins no longer add the header height (they are 0, or the small extra a section needs). Since the
   chapter bar (2026-11-27) they stop below it too. */
html { scroll-padding-top: var(--sticky-top); }
:where(:focus-visible) { scroll-margin-top: 10px; }   /* a control focused from below keeps its ring clear of the bar */
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
/* The scrollbar (the owner, 13:50): the track is the page background, the thumb a quiet navy pill tinted cyan to violet.
   Blink and WebKit style ::-webkit-scrollbar; Firefox gets the standard properties only where those pseudo-elements
   don't exist, because in Chromium 121+ the standard properties would switch the pseudo-elements off. */
@media (hover: hover) and (pointer: fine) {   /* mobile plan S6: touch screens keep their own */
::-webkit-scrollbar { width: 14px; height: 14px; background: var(--bg); }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: #1c2744 linear-gradient(180deg, rgba(var(--cyan-rgb), .28), rgba(var(--violet-rgb), .38)); background-clip: padding-box; }
/* 22:42, the owner: bigger, and brighter on mouse-over and while dragging. The thumb also widens (thinner inset). */
::-webkit-scrollbar-thumb:hover { border-width: 2px; background-color: #2a3a66; background-image: linear-gradient(180deg, rgba(var(--cyan-rgb), .5), rgba(var(--violet-rgb), .6)); }
::-webkit-scrollbar-thumb:active { border-width: 2px; background-color: #34477d; background-image: linear-gradient(180deg, rgba(var(--cyan-rgb), .75), rgba(var(--violet-rgb), .85)); }
::-webkit-scrollbar-corner { background: var(--bg); }
}
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: auto; scrollbar-color: #3a4a78 var(--bg); } }
/* Smooth scrolling for in-page links only: the page's script (index.html, after the thread's) puts .th-glide on html
   while a click follows a same-page #link and takes it off when that scroll ends. Scripts that scroll the page pass
   their own behavior. Never under reduced motion. */
@media (prefers-reduced-motion: no-preference) { html.th-glide { scroll-behavior: smooth; } }
