/* STE site chrome: the shared header (design system SiteHeader), phone menu, theme button and short footer.
   One source for every STE section; see chrome.mjs. Published as https://ste.fund/foundations/shared/ste-chrome.css.
   Self-contained: colours are private --ste-* copies of the design system tokens, scoped to .ste-chrome, so the
   file never clashes with an app's own variables. Fonts (Satoshi, Archivo Expanded) come from the page.
   Dark mode follows data-theme="dark" on <html>. */
/* The display face under a private name, so the wordmark and section name render the same in every app whatever
   weights the app's own @font-face declares. Absolute paths resolve against this file's origin (ste.fund, or the
   ste-content preview); _headers lets other origins load them. */
@font-face { font-family: 'STE Display'; src: url('/foundations/fonts/ArchivoExpanded.woff2') format('woff2'); font-weight: 500 800; font-display: swap; }

.ste-chrome {
  --ste-brand: #120a8f; --ste-brand-50: #f4f4ff; --ste-brand-300: #a8a3ff; --ste-brand-400: #7770f2; --ste-brand-800: #0d076e; --ste-on-brand: #ffffff;
  --ste-text: #17171e; --ste-text-2: #5b5c69; --ste-surface: #ffffff; --ste-fill: #f1f1f6; --ste-track: rgba(23, 23, 30, .06); --ste-border: #d9d9e3; --ste-border-strong: #b8bac6;
  --ste-glass: rgba(250, 249, 245, .72); --ste-glass-strong: rgba(250, 249, 245, .97); --ste-glass-solid: #faf9f5; --ste-glass-line: rgba(23, 23, 30, .06);
  --ste-glow: rgba(105, 158, 255, .42); --ste-glow-inner: rgba(143, 186, 255, .34);
  --ste-display: 'STE Display', 'Archivo Expanded', 'Helvetica Neue', Arial, sans-serif;
  --ste-sans: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --ste-gutter: 24px;
  --ste-shadow-tint: rgba(18, 10, 143, .12);
  --ste-toc-top: 72px; /* the glass header's height: the contents bar sticks under it */
  --ste-h: var(--header-height, 96px);
}
.ste-chrome.glass { --ste-h: 72px; }
:root[data-theme="dark"] .ste-chrome {
  --ste-brand: #a8a3ff; --ste-brand-50: #15132e; --ste-brand-300: #4a43a8; --ste-brand-400: #8f89ff; --ste-brand-800: #c4c0ff; --ste-on-brand: #0b0930;
  --ste-text: #ececf1; --ste-text-2: #a6a7b4; --ste-surface: #1b1b22; --ste-fill: #202029; --ste-track: rgba(255, 255, 255, .07); --ste-border: #2f303b; --ste-border-strong: #555767;
  --ste-glass: rgba(17, 17, 22, .72); --ste-glass-strong: rgba(17, 17, 22, .97); --ste-glass-solid: #111116; --ste-glass-line: rgba(255, 255, 255, .08);
  --ste-glow: rgba(120, 130, 255, .28); --ste-glow-inner: rgba(160, 170, 255, .2);
  --ste-shadow-tint: rgba(0, 0, 0, .45);
}
@media (max-width: 780px) { .ste-chrome { --ste-gutter: 16px; --ste-h: 80px; --ste-toc-top: 64px; } .ste-chrome.glass { --ste-h: 64px; } }

/* The custom elements add no box of their own, so the bar can stick to the page */
ste-header, ste-footer { display: contents; }
ste-header:not(:defined) { display: block; }
.ste-fallback { display: flex; align-items: center; min-height: 72px; width: min(calc(100% - 48px), 76rem); margin-inline: auto; font: 700 36px/1 'Archivo Expanded', 'Helvetica Neue', Arial, sans-serif; }
.ste-fallback a { color: #120a8f; text-decoration: none; letter-spacing: -.03em; }
ste-header:defined > .ste-fallback, ste-footer:defined > .ste-fallback { display: none; }

.ste-shell { box-sizing: border-box; width: min(calc(100% - 2 * var(--ste-gutter)), 76rem); margin-inline: auto; }
.ste-chrome, .ste-chrome * { box-sizing: border-box; }
.ste-skip { position: fixed; left: 16px; top: 16px; z-index: 40; padding: 12px 16px; background: #fff; color: #120a8f; font: 600 15px/1.2 'Satoshi', sans-serif; transform: translateY(-180%); }
.ste-skip:focus { transform: none; }

/* Bar: 96px on the home page; article pages and apps use the sticky glass bar (72px, 64px on phones),
   clear over the hero and frosted once the page scrolls */
.ste-bar { position: relative; z-index: 30; font-family: var(--ste-sans); -webkit-font-smoothing: antialiased; }
.ste-bar.glass { position: sticky; top: 0; transition: background-color 200ms, box-shadow 200ms; }
.ste-bar.glass.is-scrolled { background: var(--ste-glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--ste-glass-line); }
.ste-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; min-height: var(--ste-h); margin-block: 0; padding: 0; border: 0; position: relative; z-index: 5; }
.ste-wordmark { width: max-content; color: var(--ste-brand); font-family: var(--ste-display); font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1; text-decoration: none; font-synthesis: none; }
/* The section beside STE ("STE Signals"): same size and display face, Medium (the lightest display weight we
   use) in brand-300 (paler in light, dimmer in dark), so it reads as a quiet label after the Bold mark
   (Albert, December 1, 2026). The home page shows STE alone. */
.ste-wordmark .ste-section { color: var(--ste-brand-300); font-weight: 500; }
/* Two links with a thin rule between them (Albert, December 2, 2026): STE goes home, the section name to its root.
   The rule is border-strong, quiet beside the Bold mark, and centred on the letters' cap height. */
div.ste-wordmark { display: flex; align-items: center; }
.ste-wordmark a { color: inherit; text-decoration: none; border: 0; background: none; transition: color 160ms; }
.ste-wordmark a.ste-section { color: var(--ste-brand-300); }
.ste-wordmark a:hover { color: var(--ste-brand); }
.ste-sep { flex: none; width: 1px; height: .72em; margin-inline: .5em; background: var(--ste-border-strong); }
/* On narrow phones the pair shrinks to the display value size (24px) so it fits beside the theme and menu buttons. */
@media (max-width: 480px) { .ste-wordmark:has(.ste-section) { font-size: 24px; } }
/* Main nav (Al, December 2, 2026): it ranks above the sub-nav, so it is larger (17px against the sub-nav's 14px), and
   the current section is brand colour, Bold, with a 4px brand bar along the bottom of the header bar. */
.ste-nav { display: flex; align-self: stretch; gap: 32px; margin: 0; padding: 0; }
.ste-nav a { position: relative; display: flex; align-items: center; color: var(--ste-text-2); font-size: 17px; font-weight: 600; line-height: 1.4; text-decoration: none; border: 0; padding: 0; background: none; transition: color 160ms; }
.ste-nav a:hover, .ste-nav a[aria-current] { color: var(--ste-brand); }
.ste-nav a[aria-current] { font-weight: 700; }
.ste-nav a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ste-brand); }
/* On desktop the highlighted nav already names the section, so the wordmark shows STE alone; phones keep "STE | Section",
   because their nav is behind the menu button. */
@media (min-width: 781px) { .ste-wordmark .ste-sep, .ste-wordmark .ste-section { display: none; } }
.ste-end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ste-chrome a:focus-visible, .ste-chrome button:focus-visible { outline: 2px solid var(--ste-brand-400); outline-offset: 2px; }

/* WebButton (Contact) */
.ste-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 2.65rem; width: fit-content; border: 1px solid transparent; border-radius: 8px; padding: .7rem 1.05rem; background: var(--ste-brand); color: var(--ste-on-brand); font-family: var(--ste-display); font-size: 12px; font-weight: 700; letter-spacing: .09em; line-height: 1; text-transform: uppercase; text-decoration: none; transition: background-color 160ms, transform 160ms, box-shadow 320ms; }
.ste-button:hover { background: var(--ste-brand-800); color: var(--ste-on-brand); transform: translateY(-1px); box-shadow: 0 10px 30px var(--ste-glow), 0 0 18px var(--ste-glow-inner); }

/* Theme button: a moon in light mode, a sun in dark mode */
.ste-theme, .ste-menu-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ste-brand); cursor: pointer; transition: background-color 160ms; }
@media (hover: hover) { .ste-theme:hover { background: var(--ste-brand-50); } }
.ste-theme .ste-i-sun, :root[data-theme="dark"] .ste-theme .ste-i-moon { display: none; }
:root[data-theme="dark"] .ste-theme .ste-i-sun { display: block; }
.ste-theme svg, .ste-menu-toggle svg { display: block; }

/* Phone menu: two lines that turn into an X; a frosted panel that fades and slides in, links one after another.
   No backdrop-filter on the bar while the menu is open: a blur inside another blur shows the page sharp. */
.ste-menu-toggle { display: none; margin-right: -10px; }
.ste-menu-toggle path { transform-box: view-box; transform-origin: 12px 12px; transition: transform 360ms cubic-bezier(.22, 1, .36, 1); }
.menu-open .ste-menu-toggle .ste-l1 { transform: rotate(45deg) translateY(4px); }
.menu-open .ste-menu-toggle .ste-l2 { transform: rotate(-45deg) translateY(-4px); }
.ste-bar.menu-open, .ste-bar.glass.is-scrolled.menu-open { background: var(--ste-glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.ste-menu { position: absolute; top: 100%; left: 0; right: 0; height: 100dvh; overflow-y: auto; background: var(--ste-glass-strong); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 360ms ease, transform 420ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear 420ms; }
.menu-open .ste-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 360ms ease, transform 420ms cubic-bezier(.22, 1, .36, 1), visibility 0s; }
.ste-menu .ste-shell { display: flex; flex-direction: column; padding-block: 16px 48px; }
.ste-menu .ste-shell > * { opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 400ms cubic-bezier(.22, 1, .36, 1); }
.menu-open .ste-menu .ste-shell > * { opacity: 1; transform: none; }
.menu-open .ste-menu .ste-shell > :nth-child(2) { transition-delay: 40ms; }
.menu-open .ste-menu .ste-shell > :nth-child(3) { transition-delay: 80ms; }
.menu-open .ste-menu .ste-shell > :nth-child(4) { transition-delay: 120ms; }
.menu-open .ste-menu .ste-shell > :nth-child(5) { transition-delay: 160ms; }
.menu-open .ste-menu .ste-shell > :nth-child(6) { transition-delay: 200ms; }
.menu-open .ste-menu .ste-shell > :nth-child(7) { transition-delay: 240ms; }
.menu-open .ste-menu .ste-shell > :nth-child(8) { transition-delay: 280ms; }
.ste-menu a:not(.ste-button) { padding: 16px 0; border-bottom: 1px solid var(--ste-border); color: var(--ste-text); font-family: var(--ste-display); font-size: 24px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; text-decoration: none; }
.ste-menu a[aria-current] { color: var(--ste-brand); }
.ste-menu .ste-button { margin-top: 32px; }
html.ste-no-scroll { overflow: hidden; }
@media (min-width: 781px) { .ste-menu { display: none; } }

/* Section tabs (design system SubNav, Al, December 2, 2026): a segmented control. One borderless track (a light tint, blurred),
   48px under the header (24px on phones); the current tab a raised surface segment in brand colour. On desktop the track starts on the page's text column, not
   the header: a page sets --ste-subnav-max to its column width (43rem on reading pages, 58rem with contents, the 76rem
   frame by default) and the track's left edge follows that column, centred like the page. Below 780px it fills the
   width and the tabs share it equally. Written by each app:
   <nav class="ste-subnav ste-chrome" aria-label="Briefing"><div class="ste-shell"><a aria-current="page">... */
.ste-subnav { position: relative; z-index: 2; padding-top: 48px; font-family: var(--ste-sans); }
.ste-subnav .ste-shell { display: flex; gap: 2px; width: fit-content; max-width: calc(100% - 2 * var(--ste-gutter)); margin-left: max(var(--ste-gutter), calc((100% - var(--ste-subnav-max, 76rem)) / 2)); margin-right: auto; padding: 4px; overflow-x: auto; scrollbar-width: none; border: 0; border-radius: 12px; background: var(--ste-track); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.ste-subnav .ste-shell::-webkit-scrollbar { display: none; }
.ste-subnav a { flex: none; padding: 8px 16px; border: 0; border-radius: 8px; color: var(--ste-text-2); font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; white-space: nowrap; background: none; transition: color 160ms, background-color 160ms, box-shadow 160ms; }
.ste-subnav a:hover { color: var(--ste-brand); }
.ste-subnav a[aria-current] { color: var(--ste-brand); background: var(--ste-surface); box-shadow: 0 1px 2px var(--ste-shadow-tint), 0 2px 8px var(--ste-shadow-tint); }
@media (max-width: 780px) {
  .ste-subnav { padding-top: 24px; } .ste-subnav .ste-shell { width: auto; max-width: none; margin-inline: var(--ste-gutter); }
  .ste-subnav a { flex: 1 1 0; padding-inline: 8px; }
}
/* A tab with a shorter name for phones (subnavHTML: [long, short]) */
.ste-subnav .ste-short { display: none; }
@media (max-width: 520px) { .ste-subnav .ste-long { display: none; } .ste-subnav .ste-short { display: inline; } }

/* Contents (design system ArticlePage contents): a rail right of the text from 1100px, a frosted bar under the
   header below that. Markup from tocBarHTML() and tocRailHTML() inside .ste-toc-layout; the page sets each heading's
   scroll-margin-top to the header height + var(--ste-tocbar-h) + 16px.
   Page layout (design system): from 1100px the text column and the rail are one group, centred by the page (58rem).
   Below 1100px the text column is centred alone; a page sets --ste-col to its width (43rem) so the bar's text lines up. */
.ste-toc-layout { --ste-tocbar-h: 0px; position: relative; z-index: 1; }
.ste-toc-content { min-width: 0; }
.ste-toc-list, .ste-toc-list ol { list-style: none; margin: 0; padding: 0; }
.ste-toc-list li { margin: 0; padding: 0; }
.ste-toc-list li::before { content: none; }
.ste-toc-list a { color: var(--ste-text-2); text-decoration: none; }
.ste-toc-list a:hover { color: var(--ste-brand); }
.ste-toc-part > a { display: flex; gap: 8px; color: var(--ste-text); font-weight: 650; }
.ste-toc-part .n { color: var(--ste-brand); font-variant-numeric: tabular-nums; }
.ste-toc-list ol a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--ste-border); }
.ste-toc-list ol a.is-current { border-left-color: var(--ste-brand); color: var(--ste-brand); font-weight: 650; }
.ste-toc-rail, .ste-tocbar { font-family: var(--ste-sans); }
.ste-toc-rail { display: none; }
@media (min-width: 1100px) {
  .ste-toc-layout { display: grid; grid-template-columns: minmax(0, 43rem) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .ste-toc-rail { display: block; position: sticky; top: calc(var(--ste-toc-top) + 32px); margin-top: 48px; }
  .ste-toc-rail-nav { max-height: calc(100vh - var(--ste-toc-top) - 64px); overflow-y: auto; scrollbar-width: thin; font-size: 14px; line-height: 1.4; }
  .ste-toc-label { margin: 0 0 12px; color: var(--ste-text-2); font-size: 12px; font-weight: 800; letter-spacing: .13em; line-height: 1.45; text-transform: uppercase; }
  .ste-toc-rail .ste-toc-part { margin-bottom: 12px; }
  .ste-toc-rail .ste-toc-part ol { display: none; margin: 8px 0 8px 2px; }
  .ste-toc-rail .ste-toc-part.is-active ol { display: block; }
  .ste-toc-rail .ste-toc-part.is-active > a { color: var(--ste-brand); }
  .ste-tocbar { display: none; }
}
@media (max-width: 1099.98px) {
  .ste-toc-layout { --ste-tocbar-h: 56px; }
  .ste-tocbar { --ste-toc-pad: max(var(--ste-gutter), calc((100vw - var(--ste-col, 58rem)) / 2)); position: sticky; top: var(--ste-toc-top); z-index: 15; margin-inline: calc(50% - 50vw); background: var(--ste-glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--ste-glass-line); }
  .ste-tocbar.is-open { background: var(--ste-glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ste-tocbar-btn { display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; margin: 0; padding: 0 var(--ste-toc-pad); border: 0; background: none; color: var(--ste-text); font: inherit; text-align: left; cursor: pointer; }
  .ste-tocbar-text { display: flex; flex-direction: column; min-width: 0; flex: 1; max-width: 43rem; }
  .ste-tocbar-part { overflow: hidden; color: var(--ste-text-2); font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
  .ste-tocbar-sec { overflow: hidden; font-size: 15px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  .ste-caret { flex: none; color: var(--ste-brand); transition: transform 200ms; }
  .ste-tocbar.is-open .ste-caret { transform: rotate(180deg); }
  .ste-toc-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - var(--ste-toc-top) - 56px); overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--ste-toc-pad) 32px; border-top: 1px solid var(--ste-border); background: var(--ste-glass-solid); box-shadow: 0 16px 32px var(--ste-shadow-tint); font-size: 16px; line-height: 1.4; }
  .ste-toc-panel .ste-toc-part { margin-bottom: 20px; }
  .ste-toc-panel .ste-toc-part ol { margin-top: 8px; }
  .ste-toc-panel .ste-toc-list ol a { padding-block: 8px; }
}

/* Footer: brand and a line, two link columns, then the © row. Type: web-overline titles, web-nav links,
   web-body-large line. Three columns on desktop; on phones the brand sits above the columns in a 2-up grid. */
.ste-footer { position: relative; z-index: 2; margin-top: 96px; border-top: 1px solid var(--ste-border); padding-block: 64px 32px; color: var(--ste-text-2); font-family: var(--ste-sans); font-size: 14px; line-height: 1.55; }
.ste-footer p { margin: 0; }
.ste-footer--short { padding-block: 24px; }
.ste-footer--short .ste-foot-base { margin: 0; padding: 0; border: 0; }
.ste-footer a { color: inherit; text-decoration: none; transition: color 160ms; }
.ste-footer a:hover { color: var(--ste-brand); }
.ste-foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.ste-foot-brand .ste-wordmark { display: inline-block; color: var(--ste-brand); }
.ste-foot-brand p { max-width: 22rem; margin-top: 16px; color: var(--ste-text-2); font-size: 17px; text-wrap: balance; }
.ste-foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.ste-foot-title { margin-bottom: 16px !important; color: var(--ste-text); font-size: 12px; font-weight: 600; letter-spacing: .08em; line-height: 1.45; text-transform: uppercase; }
.ste-foot-col ul { margin: 0; padding: 0; list-style: none; }
.ste-foot-col li { margin: 0 0 12px; padding: 0; }
.ste-foot-col li::before { display: none; }
.ste-foot-col a { font-weight: 600; }
.ste-foot-note { margin-top: 48px; max-width: 43rem; font-size: 14px; }
.ste-foot-note p + p { margin-top: 4px; }
/* The © row needs no rule of its own under the link columns (Al, December 2, 2026); the footer's top border is the one line. */
.ste-foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; font-size: 14px; }
@media (max-width: 780px) {
  .ste-footer { margin-top: 64px; padding-block: 48px 24px; }
  .ste-foot-top { grid-template-columns: 1fr; gap: 40px; }
  .ste-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .ste-foot-col li { margin-bottom: 0; }
  .ste-foot-col a { display: block; padding-block: 10px; }
  .ste-foot-title { margin-bottom: 4px !important; }
}

@media (max-width: 780px) {
  .ste-end { gap: 4px; }
  .ste-header { grid-template-columns: 1fr auto; }
  .ste-nav, .ste-contact { display: none; }
  .ste-menu-toggle { display: inline-flex; }
}
/* Background (design system WebHero glow): the warm canvas with two drifting lights and a dot grid behind the top of
   every STE page, under the header and the title, fading out below. One source for every section: Base.astro and the
   main site render glowHTML(); in Briefing and Signals <ste-header> adds it. Behind everything (z-index -1 inside the
   body, which isolates its own stacking), so it never covers text, charts or tables. The home page keeps it fixed
   behind the whole page (.ste-glow--fixed). Private copies of the web-canvas and web-glow tokens, light and dark. */
.ste-glow {
  --ste-canvas: #f8f6ef; --ste-canvas-top: #fcfbf7;
  --ste-glow-a: rgba(90, 130, 255, .4); --ste-glow-b: rgba(0, 180, 255, .34); --ste-glow-dot: rgba(43, 95, 255, .36);
  --ste-dot-step: 14px;
  position: absolute; top: 0; left: 0; right: 0; height: 760px; z-index: -1; overflow: hidden; pointer-events: none; opacity: .92;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%);
}
:root[data-theme="dark"] .ste-glow {
  --ste-canvas: #111116; --ste-canvas-top: #14141a;
  --ste-glow-a: rgba(90, 110, 255, .26); --ste-glow-b: rgba(0, 170, 255, .16); --ste-glow-dot: rgba(120, 140, 255, .2);
}
body:has(> .ste-glow) { position: relative; isolation: isolate; }
.ste-glow::before, .ste-glow::after { content: ''; position: absolute; inset: 0; }
.ste-glow::before {
  background:
    linear-gradient(90deg, var(--ste-canvas) 0%, transparent 18%, transparent 82%, var(--ste-canvas) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--ste-canvas) 86%, transparent) 0%, transparent 18%, transparent 70%, var(--ste-canvas-top) 100%),
    radial-gradient(circle at 72% 30%, var(--ste-glow-a), transparent 36%),
    radial-gradient(circle at 20% 70%, var(--ste-glow-b), transparent 38%);
  animation: ste-glow-shift 14s ease-in-out infinite alternate;
}
.ste-glow::after {
  background-image: radial-gradient(circle, var(--ste-glow-dot) 1.1px, transparent 1.95px);
  background-size: var(--ste-dot-step) var(--ste-dot-step);
  -webkit-mask-image: radial-gradient(ellipse at 50% 44%, #000 28%, rgba(0, 0, 0, .72) 58%, transparent 90%); mask-image: radial-gradient(ellipse at 50% 44%, #000 28%, rgba(0, 0, 0, .72) 58%, transparent 90%);
  animation: ste-dot-drift 10s ease-in-out infinite alternate;
}
.ste-glow--fixed { position: fixed; inset: 0; height: auto; -webkit-mask-image: none; mask-image: none; }
.ste-glow--fixed::before { background:
    linear-gradient(90deg, var(--ste-canvas) 0%, transparent 18%, transparent 82%, var(--ste-canvas) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--ste-canvas) 86%, transparent) 0%, transparent 18%, transparent 84%, color-mix(in srgb, var(--ste-canvas) 90%, transparent) 100%),
    radial-gradient(circle at 72% 30%, var(--ste-glow-a), transparent 36%),
    radial-gradient(circle at 20% 70%, var(--ste-glow-b), transparent 38%); }
@keyframes ste-glow-shift { 0% { transform: translate3d(0, 0, 0) scale(1); filter: hue-rotate(0deg) saturate(1.12); } 50% { transform: translate3d(-1.2%, .8%, 0) scale(1.03); filter: hue-rotate(38deg) saturate(1.32); } 100% { transform: translate3d(1.1%, -.7%, 0) scale(1.02); filter: hue-rotate(-34deg) saturate(1.24); } }
@keyframes ste-dot-drift { 0% { transform: translate3d(0, 0, 0); opacity: .28; } 50% { transform: translate3d(2px, -2px, 0); opacity: .42; } 100% { transform: translate3d(-2px, 2px, 0); opacity: .32; } }
@media (max-width: 780px) { .ste-glow { --ste-dot-step: 12px; height: 640px; } }
/* The home page's fixed glow fills the whole screen at every width (the phone rule above must not shorten it). lvh keeps
   it under the browser bar on phones while that bar slides away. */
.ste-glow.ste-glow--fixed { top: 0; bottom: auto; height: 100vh; height: 100lvh; }

@media (prefers-reduced-motion: reduce) {
  .ste-menu, .ste-menu .ste-shell > *, .ste-menu-toggle path { transition-duration: 0s !important; transition-delay: 0s !important; }
  .ste-button, .ste-button:hover { transition: none; transform: none; }
  .ste-glow::before, .ste-glow::after { animation: none; }
}
@media print { .ste-toc-layout { display: block !important; } .ste-glow, .ste-bar, .ste-skip, .ste-subnav, .ste-footer, .ste-tocbar, .ste-toc-rail { display: none !important; } }

/* Site search (chrome.mjs openSearch): a panel over the page with the field and up to eight results */
.ste-search { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 12vh var(--ste-gutter) 24px; background: rgba(17, 17, 22, .32); font-family: var(--ste-sans); }
.ste-search[hidden] { display: none; }
.ste-search__box { display: flex; flex-direction: column; width: min(100%, 640px); max-height: 76vh; overflow: hidden; border: 1px solid var(--ste-border); border-radius: 16px; background: var(--ste-glass-solid); box-shadow: 0 24px 64px var(--ste-shadow-tint); }
.ste-search__bar { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; }
.ste-search__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 12px; border-radius: 10px; background: var(--ste-fill); color: var(--ste-text-2); cursor: text; }
.ste-search__input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ste-text); font: 400 17px/1.3 var(--ste-sans); outline: none; -webkit-appearance: none; appearance: none; }
.ste-search__input::placeholder { color: var(--ste-text-2); }
.ste-search__input::-webkit-search-cancel-button, .ste-search__input::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.ste-search__field:focus-within { box-shadow: 0 0 0 2px var(--ste-brand); }
.ste-search__input:focus, .ste-search__input:focus-visible { outline: none; box-shadow: none; }
.ste-search__clear { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ste-text-2); cursor: pointer; }
.ste-search__clear[hidden] { display: none; }
.ste-search__cancel { padding: 8px 4px; border: 0; background: none; color: var(--ste-brand); font: 500 17px/1 var(--ste-sans); cursor: pointer; }
.ste-search__status { margin: 0; padding: 0 16px; color: var(--ste-text-2); font-size: 15px; }
.ste-search__status:not(:empty) { padding-block: 8px 20px; }
.ste-search__results { flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 0 8px 8px; list-style: none; overscroll-behavior: contain; }
.ste-search__results:empty { display: none; }
.ste-search__head { padding: 12px 12px 4px; color: var(--ste-text-2); font-size: 13px; font-weight: 600; }
.ste-search__results a { display: grid; gap: 2px; padding: 12px; border-radius: 10px; color: var(--ste-text); text-decoration: none; }
.ste-search__results a:hover, .ste-search__results a:focus-visible { background: var(--ste-fill); outline: none; }
.ste-search__title { color: var(--ste-brand); font-size: 17px; font-weight: 650; line-height: 1.3; }
.ste-search__meta { color: var(--ste-text-2); font-size: 13px; font-weight: 600; }
.ste-search__text { margin-top: 4px; color: var(--ste-text); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ste-search__text mark { background: none; color: inherit; font-weight: 700; }
:root.ste-search-open { overflow: hidden; }
@media (max-width: 780px) {
  .ste-search { padding: 0; background: var(--ste-glass-solid); }
  .ste-search__box { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .ste-search__bar { padding: max(12px, env(safe-area-inset-top)) 16px 8px; }
  .ste-search__results { padding: 0 4px max(8px, env(safe-area-inset-bottom)); }
}
@media print { .ste-search { display: none !important; } }
