:root{
  --floor:#0a0a0b; --panel:#141416; --panel2:#1b1b1e; --edge:#272729;
  --txt:#ededee; --dim:#9b9ba2; --flame:#ea580c; --flame2:#fb923c; --ember:#c2410c;
  --up:#22c55e; --down:#ef4444;
  --head:'Oswald','Arial Narrow',system-ui,sans-serif;
  --body:'Asap',system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--floor);color:var(--txt);font-family:var(--body);
  line-height:1.66;font-size:16.5px;-webkit-font-smoothing:antialiased}
.sts-shell{max-width:1020px;margin:0 auto;padding:0 22px}
a{color:var(--flame2);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{font-family:var(--head);font-weight:600;line-height:1.12;letter-spacing:.005em;color:#fff;text-transform:uppercase}
h1{letter-spacing:.01em}
h2{font-size:clamp(1.5rem,2.9vw,2.1rem);margin:0 0 .5em}
h3{font-size:1.18rem;margin:1.5em 0 .35em}
p{margin:.72em 0}
.sts-dim{color:var(--dim)}
section{padding:44px 0}
section + section{border-top:1px solid var(--edge)}
.sts-tag{font-family:var(--head);font-weight:500;font-size:.82rem;letter-spacing:.26em;
  text-transform:uppercase;color:var(--flame);margin-bottom:12px}
/* sticky tape nav */
.sts-tape{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;
  gap:18px;padding:12px 22px;background:rgba(10,10,11,.9);backdrop-filter:blur(9px);
  border-bottom:1px solid var(--edge)}
.sts-brand{display:flex;align-items:center;gap:9px;font-family:var(--head);font-weight:600;
  font-size:1.02rem;color:#fff;text-transform:uppercase;letter-spacing:.04em}
/* brand mark: a tight 3-bar candle whose last wick flicks into a flame tick (short-term/heat),
   shared between the nav + footer wordmark and reused as the favicon. Own .sts-mark namespace;
   no sibling uses this glyph or class. The flame tick draws in --flame2; the bars in --flame. */
.sts-mark{display:inline-block;width:17px;height:19px;flex:none;
  filter:drop-shadow(0 0 6px rgba(234,88,12,.45))}
.sts-mark .sts-cbar{stroke:var(--flame);fill:var(--flame)}
.sts-mark .sts-cwick{stroke:var(--flame);stroke-width:1.4}
.sts-mark .sts-ctick{fill:var(--flame2)}
.sts-menu{display:flex;gap:21px;list-style:none;margin:0;padding:0;font-size:.92rem}
.sts-menu a{color:var(--dim)}
.sts-menu a:hover{color:#fff;text-decoration:none}
.sts-cta{border:1px solid var(--flame);color:var(--flame2)!important;padding:7px 14px;border-radius:6px;
  font-family:var(--head);font-weight:500;letter-spacing:.04em;font-size:.84rem;text-transform:uppercase}
.sts-cta:hover{background:rgba(234,88,12,.14);text-decoration:none}
.sts-hb{display:none;background:none;border:0;cursor:pointer;width:30px;height:24px}
.sts-hb span{display:block;height:2px;background:var(--txt);margin:5px 0;border-radius:2px}
.sts-draw{display:none;flex-direction:column;padding:6px 22px 18px;border-bottom:1px solid var(--edge);
  background:var(--panel)}
.sts-draw a{color:var(--txt);padding:11px 0;border-bottom:1px solid var(--edge);font-size:1rem}
.sts-draw.live{display:flex}
/* opening */
.sts-open{padding:62px 0 42px;background:radial-gradient(120% 80% at 12% 0%,#161210,var(--floor))}
.sts-kick{font-family:var(--head);font-weight:500;font-size:.86rem;letter-spacing:.22em;
  text-transform:uppercase;color:var(--flame)}
.sts-open h1{font-size:clamp(2.1rem,4.7vw,3.15rem);margin:.28em 0 .32em;max-width:20ch;line-height:1.06}
.sts-stake{font-size:1.16rem;color:#d6d6da;max-width:62ch;font-family:var(--body)}
.sts-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px;font-size:.86rem}
.sts-chip{background:var(--panel);border:1px solid var(--edge);border-radius:7px;padding:8px 13px;color:var(--dim)}
.sts-chip b{color:var(--flame2);font-weight:700}
.sts-go{display:inline-block;margin-top:26px;background:var(--flame);color:#0a0a0b;font-weight:700;
  font-family:var(--head);letter-spacing:.04em;text-transform:uppercase;
  padding:13px 24px;border-radius:7px;font-size:.96rem}
.sts-go:hover{background:var(--flame2);text-decoration:none}
.sts-read{font-size:1.06rem;color:#d2d2d6;max-width:66ch}
/* panels & tiles */
.sts-card{background:var(--panel);border:1px solid var(--edge);border-radius:12px;padding:24px 26px;margin:20px 0}
.sts-card.hot{border-color:#5a2a12;box-shadow:0 0 0 1px rgba(234,88,12,.12) inset}
.sts-deck{display:grid;gap:17px}
@media(min-width:720px){.sts-trio{grid-template-columns:repeat(3,1fr)}.sts-duo{grid-template-columns:1fr 1fr}}
.sts-tile{background:var(--panel);border:1px solid var(--edge);border-radius:11px;padding:21px}
.sts-tile h3{margin-top:0}
.sts-stamp{font-family:var(--head);font-size:.72rem;font-weight:500;letter-spacing:.18em;
  text-transform:uppercase;color:var(--flame)}
/* checklist */
.sts-marks{list-style:none;padding:0;margin:18px 0}
.sts-marks li{position:relative;padding:11px 0 11px 28px;border-bottom:1px solid var(--edge);color:#d2d2d6}
.sts-marks li:before{content:"";position:absolute;left:5px;top:19px;width:8px;height:8px;
  background:var(--flame);border-radius:2px;transform:rotate(45deg)}
/* table */
.sts-scroll{overflow-x:auto;margin:20px 0}
table{border-collapse:collapse;width:100%;font-size:.92rem;min-width:520px}
caption{caption-side:bottom;text-align:left;color:var(--dim);font-size:.82rem;padding-top:10px}
th,td{padding:11px 13px;border-bottom:1px solid var(--edge);text-align:left}
thead th{font-family:var(--head);font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--dim);font-weight:500}
tbody tr.lit td{background:rgba(234,88,12,.08)}
/* numeric payload columns: lining + tabular figures so digits line up column-for-column and the
   numbers carry the weight contrast they earn over the proportional Asap body. .sts-num wraps any
   figure cell; .pos is the green return. The model-return numbers are the payload of the table, so
   they sit a notch larger and heavier than body text, not flush with it. */
.sts-num{font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"tnum" 1,"lnum" 1;
  font-weight:600;letter-spacing:.005em}
td.sts-num{text-align:right;color:#e4e4e6}
thead th.sts-num{text-align:right}
td .pos{color:var(--up);font-weight:700;font-size:1.04em;letter-spacing:.01em;
  font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"tnum" 1,"lnum" 1}
/* breadcrumb + prose */
.sts-crumb{font-size:.82rem;color:var(--dim);padding:16px 0 0;font-family:var(--head);letter-spacing:.04em}
.sts-crumb a{color:var(--dim)}
.sts-crumb .bar{opacity:.5;margin:0 6px}
.sts-verdict{font-size:1.14rem;color:#d6d6da;max-width:64ch;margin:.45em 0 0}
/* vertical-rhythm relief on the long teaching leaf pages. These pages are one tall prose column,
   so the pacing is done at the sub-section heads (the flame .sts-lead H2s) rather than by tinting
   whole <section>s: on a .sts-leaf body each lead head opens a band - a faint warm wash that bleeds
   to the prose-column edges with a hot top hairline - so a long read reads as paced segments
   instead of one unbroken scroll. The wash is ~5% flame, well under the panel borders, and is
   keyed to the .sts-leaf body so it never touches the homepage or top-level pages. */
body.sts-leaf .sts-prose h2.sts-lead{position:relative;margin:2.2em 0 .55em;padding:18px 20px 2px;
  background:linear-gradient(180deg,rgba(234,88,12,.055),rgba(234,88,12,0));
  border-top:1px solid rgba(234,88,12,.34);border-radius:9px 9px 0 0}
body.sts-leaf .sts-prose > h2.sts-lead:first-child{margin-top:0}
/* a little extra top breathing room above each H3 sub-topic inside long prose, so they get air */
.sts-prose h3{color:var(--flame2);margin-top:1.95em}
.sts-prose > h3:first-child{margin-top:1.5em}
/* on the long teaching pages the H3 sub-topics are the repeating rhythmic unit, so each one gets a
   little extra air and a short flame-tick rule to its left - a small flame-keyed marker that paces
   a tall read into clearly stepped sub-sections. Scoped to .sts-leaf so it never alters the hubs'
   card-grid H3s or any other surface. */
body.sts-leaf .sts-prose h3{margin-top:2.3em;padding-left:16px;position:relative}
body.sts-leaf .sts-prose h3:before{content:"";position:absolute;left:0;top:.18em;bottom:.18em;
  width:3px;border-radius:2px;background:linear-gradient(180deg,var(--flame2),var(--ember))}
/* lead section heading: a real <h2> for a clean h1->h2->h3 outline, kept at the flame look + scale
   of the section heads it sits among (those pages carry no white section h2). The base rule pins
   only colour/size/margin; case + tracking inherit the shared head rule. The .sts-leaf band rule
   above re-paces it on the long teaching pages; on any other surface it stays the plain flame head. */
.sts-prose h2.sts-lead{color:var(--flame2);font-size:1.18rem;margin:1.95em 0 .35em}
.sts-prose > h2.sts-lead:first-child{margin-top:1.5em}
.sts-prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85em;
  background:var(--panel2);padding:2px 6px;border-radius:4px;color:var(--flame2)}
.sts-pin{border-left:3px solid var(--flame);background:rgba(234,88,12,.06);padding:7px 0 7px 16px;
  margin:18px 0;color:#cfcfd4;font-size:.95rem}
/* worked-example callout: a framed step block, own .sts-work namespace (not BDS .worked / TSS .tss-worked) */
.sts-work{background:var(--panel2);border:1px solid var(--edge);border-left:3px solid var(--flame);
  border-radius:0 11px 11px 0;padding:19px 22px;margin:22px 0}
.sts-work .sts-stamp{margin-bottom:11px}
.sts-work ol{margin:0;padding-left:21px}
.sts-work ol li{padding:7px 0;color:#d2d2d6}
.sts-work ol li b{color:#fff}
.sts-work .calc{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88rem;
  background:var(--panel);border:1px solid var(--edge);border-radius:7px;padding:13px 15px;margin:14px 0;color:#cfcfd4;line-height:1.85}
.sts-work .calc b{color:var(--flame2)}
/* on-brand inline diagram frame; distinct .sts-fig + .stsd-* namespace (not BDS .diagram/.d-*, not TSS .tss-fig/.tssd-*) */
figure.sts-fig{margin:24px 0;background:var(--panel);border:1px solid var(--edge);border-radius:12px;
  padding:18px 18px 12px}
figure.sts-fig svg{display:block;width:100%;height:auto;max-width:770px;margin:0 auto}
figure.sts-fig figcaption{font-family:var(--head);font-size:.8rem;letter-spacing:.02em;color:var(--dim);
  text-align:center;margin-top:11px;text-transform:uppercase}
.stsd-cell{fill:var(--panel2);stroke:#3a2113;stroke-width:1.2}
.stsd-rail{stroke:var(--flame);stroke-width:1.7;fill:none}
.stsd-band{fill:none;stroke:#3a2113;stroke-width:1;stroke-dasharray:4 4}
.stsd-h{font-family:'Oswald',sans-serif;font-size:12px;fill:#fff;font-weight:600;letter-spacing:.04em}
.stsd-s{font-family:'Asap',sans-serif;font-size:10px;fill:#9b9ba2}
.stsd-ax{font-family:'Oswald',sans-serif;font-size:10.5px;fill:#9b9ba2;letter-spacing:.06em}
.stsd-ok{fill:#22c55e;font-family:'Oswald',sans-serif;font-size:13px;font-weight:600}
.stsd-no{fill:#ef4444;font-family:'Oswald',sans-serif;font-size:13px;font-weight:600}
.stsd-flame{fill:var(--flame2)}
/* 'related' block at the foot of a leaf/hub page; own .sts-rel namespace */
.sts-rel{margin:32px 0 0;border-top:1px solid var(--edge);padding-top:21px}
.sts-rel .top{font-family:var(--head);font-size:.76rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--flame);margin-bottom:13px}
.sts-rel .lk{display:grid;gap:11px}
@media(min-width:620px){.sts-rel .lk{grid-template-columns:1fr 1fr}}
.sts-rel a.rl{display:block;border:1px solid var(--edge);border-radius:10px;padding:13px 15px;
  background:var(--panel);color:var(--txt)}
.sts-rel a.rl:hover{border-color:#5a2a12;text-decoration:none}
.sts-rel a.rl b{color:var(--flame2);display:block;font-size:.96rem;font-family:var(--head);font-weight:500}
.sts-rel a.rl span{color:var(--dim);font-size:.85rem}
.sts-grade{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--flame2);font-weight:600;
  font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"tnum" 1,"lnum" 1}
/* footer */
.sts-foot{border-top:1px solid var(--edge);background:var(--panel2);margin-top:32px;padding:42px 0 30px}
.sts-foot .cols{display:grid;gap:23px}
@media(min-width:720px){.sts-foot .cols{grid-template-columns:2fr 1fr 1fr 1fr}}
.sts-foot a{color:var(--dim);display:block;padding:3px 0}
.sts-foot a:hover{color:var(--flame2)}
.sts-foot .top{color:#fff;font-family:var(--head);font-size:.82rem;letter-spacing:.12em;
  text-transform:uppercase;margin-bottom:10px}
.sts-fine{color:#74747c;font-size:.82rem;margin-top:24px;border-top:1px solid var(--edge);padding-top:17px}
@media(max-width:719px){.sts-menu{display:none}.sts-hb{display:block}}

/* a11y + responsive polish */
:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:3px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms !important;transition-duration:.01ms !important}}
@media(max-width:719px){table{min-width:0}th,td{padding:8px 10px}}
