/*
  slot.css: THE SHARED HEADLINE SLOT (r248). ONE rule for where the headline stands on the Forge, Pricing, Command, FAQ / Tools and Get Started
  pages: the same y on every page, with the classic 15 px scrollbar shown or hidden. Loaded by every one of them right after tokens.css.

  The law (it was Pricing's own, r156, measured on the Forge page): the headline's top is the hero's top plus (the ring column's height
  714 x --z) minus --slot-below, the room the Forge keeps for everything under its headline. Hero top + ring height is the hero's floor, so
  the headline stands --slot-below above the floor: 487.46 px at 1920, 610.58 at 2560, 614.63 from 2581 up (a line, then flat). Those are the
  Forge page's measured numbers with the scrollbar hidden (headline top 467.1250 / 516.3281 / 871.0000 at 1920 / 2560 / 3840).

  Why the old paths drifted with the bar: html { scrollbar-gutter: stable } makes the vw unit (and so --gutter, the type sizes, the gap
  above the headline) shrink by the bar's 15 px, so every page that reached the slot through a vw term moved 0 to 3 px, each its own way.
  This rule reads no width that the bar shifts: --slot-vw is window.innerWidth / 100 (slot.js; the bar is inside innerWidth), and the hero's
  own top, which the real (bar-shrunk) --gutter moves by half the difference, is corrected by exactly that half difference. Everything
  else on a page (its type, its columns) is untouched by this sheet.
*/

:root {
  --slot-vw: 1vw;                                              /* first paint only; slot.js writes the real one (innerWidth / 100) */
  --eb-size: clamp(15px, 0.86vw, 22px);                        /* the eyebrow line's size (b.css / forge.css / command.css .eyebrow), once */
  --slot-ring: calc(714px * var(--z));                         /* the ring column's height: the hero row */
  --slot-gutter: clamp(20px, calc(2.4 * var(--slot-vw)), 64px); /* home.css --gutter, read in the bar-independent unit */
  --slot-below-ideal: min(calc(487.4579px + (100 * var(--slot-vw) - 1920px) * 0.19238281), 614.6298px);
  /* the headline's top below the hero's top; the last term takes back what the bar-shrunk --gutter does to the hero's top */
  --slot-hl: calc(var(--slot-ring) - var(--slot-below-ideal) + (var(--gutter) - var(--slot-gutter)) / 2);
  --slot-below: calc(var(--slot-ring) - var(--slot-hl));        /* the room under the headline's top, to the hero's floor */
  --slot-above: calc(var(--eb-size) * 1.5 + var(--hl-size) * 0.9); /* the eyebrow's line and its gap, for a page that stacks them in flow */
}
