/* The investor flight simulator (/learn/flight-simulator, builder/learn/build_flight.py): a sticky three.js stage with the
   steps scrolling over it as cards, then the plain guide content (tables, questions, sources). */
.fs-page .nav.solid { background: rgba(5, 8, 10, .82); }
.fs-flight { position: relative; }
.fs-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #05080a; z-index: 0; }
.fs-stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.fs-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 8, 10, .62) 0%, rgba(5, 8, 10, .18) 38%, transparent 60%), linear-gradient(0deg, rgba(5, 8, 10, .55), transparent 18%); }
.fs-steps { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.fs-step { min-height: 100vh; min-height: 100svh; display: flex; align-items: safe center; padding: 96px clamp(16px, 4vw, 56px); box-sizing: border-box; }
.fs-step > * { pointer-events: auto; }
.fs-card { width: min(460px, 100%); border-radius: 18px; padding: 24px 24px 20px; box-sizing: border-box; font-size: 15.5px; line-height: 1.6; }
.fs-card h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; margin: 0 0 12px; text-wrap: balance; }
.fs-card p { margin: 0 0 12px; color: #d4ddda; }
.fs-card a:not(.btn) { color: var(--lime); }
.fs-kick { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; display: flex; gap: 10px; align-items: center; }
.fs-kick span { color: #0b1200; background: var(--lime); border-radius: 6px; padding: 1px 6px; font-weight: 500; }
.fs-small { font-size: 13.5px; color: var(--muted) !important; }

/* hero */
.fs-hero { align-items: flex-end; padding-bottom: clamp(64px, 12vh, 140px); }
.fs-hero-in { max-width: 720px; }
.fs-hero .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.fs-hero .crumbs a { color: var(--muted); }
.fs-hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: .98; letter-spacing: -.03em; margin: 0 0 18px; text-wrap: balance; }
.fs-hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: #d4ddda; max-width: 620px; }
.fs-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px !important; }

/* step 1: the release's first page */
.fs-rel { margin: 14px 0; padding: 14px 16px; border-radius: 12px; background: #f4f1ea; color: #1b2430; font-size: 14px; }
.fs-rel p { color: #1b2430; }
.fs-rel-top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #5b6573 !important; margin: 0 0 8px !important; }
.fs-rel-h { font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.2; text-transform: uppercase; margin: 0 0 8px !important; color: #0d3b66 !important; }
.fs-rel-k { font-size: 13px; margin: 0 0 6px !important; }
.fs-hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fs-hl button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 2px 8px; border-radius: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.fs-hl button b { font-weight: 600; }
.fs-hl button:hover, .fs-hl button.on, .fs-hl button:focus-visible { background: #0d3b66; color: #fff; }
.fs-rel figcaption { margin-top: 10px; font-size: 12px; color: #5b6573; }
.fs-rel figcaption a { color: #0d3b66 !important; }

/* step 2: the line, token by token */
.fs-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.fs-tok { font: 500 15px var(--mono); color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.fs-tok:hover, .fs-tok[aria-expanded="true"] { border-color: var(--lime); color: var(--lime); }
.fs-tip { flex-basis: 100%; order: 9; font-size: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(220, 255, 60, .07); border: 1px solid rgba(220, 255, 60, .25); }
.fs-tip a { color: var(--lime); }

/* step 3: cut-offs */
.fs-seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; padding: 3px; margin: 2px 0 14px; }
.fs-seg button { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; color: var(--muted); }
.fs-seg button[aria-checked="true"] { background: var(--lime); color: #0b1200; font-weight: 600; }
.fs-seg button:focus-visible { outline: 2px solid var(--lime); }
.fs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.fs-two div { border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .02); }
.fs-two dt { font-size: 12px; color: var(--muted); }
.fs-two dd { margin: 2px 0 0; font-size: 14px; }
.fs-two dd b { font-family: var(--head); font-size: 16px; color: var(--text); }
.fs-two dd.m { font-family: var(--mono); color: var(--lime); font-size: 13px; }

/* step 4: true width */
.fs-tw { margin: 6px 0 14px; }
.fs-tw svg { width: 100%; height: auto; display: block; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.tw-layer { fill: rgba(211, 255, 0, .14); }
.tw-edge { stroke: rgba(211, 255, 0, .5); stroke-dasharray: 4 4; }
.tw-hole { stroke: #9fb2ab; stroke-width: 2; }
.tw-in { stroke: #d3ff00; stroke-width: 7; stroke-linecap: round; }
.tw-lab { fill: var(--muted); font: 11px var(--mono); }
.tw-read { fill: var(--text); font: 12px var(--mono); }
.fs-range { display: flex; gap: 12px; align-items: center; margin-top: 8px; font-size: 13.5px; }
.fs-range span { white-space: nowrap; min-width: 92px; }
.fs-range input { flex: 1; accent-color: var(--lime); }

/* step 6: the grade slider, as on the models */
.fs-gs { margin: 6px 0 14px; }
.fs-gs-bar { position: relative; height: 26px; border-radius: 8px; background: linear-gradient(90deg, #0d333d 0%, #0d9ea8 45%, #d3ff00 82%, #fffbdc 100%); }
.fs-gs-bar input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 26px; }
.fs-gs-bar input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 14px; height: 34px; border-radius: 6px; background: #fff; border: 2px solid #05080a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); cursor: ew-resize; }
.fs-gs-bar input::-moz-range-thumb { pointer-events: auto; width: 12px; height: 32px; border-radius: 6px; background: #fff; border: 2px solid #05080a; cursor: ew-resize; }
.fs-gs-bar input::-moz-range-track { background: none; }
.fs-gs-ticks { position: relative; height: 16px; font: 11px var(--mono); color: var(--muted) !important; margin: 4px 0 6px !important; }
/* tick positions on the square-root scale to 5.5% */
.fs-gs-ticks span { position: absolute; transform: translateX(-50%); }
.fs-gs-ticks span:nth-child(1) { left: 0; transform: none; }
.fs-gs-ticks span:nth-child(2) { left: 42.6%; }
.fs-gs-ticks span:nth-child(3) { left: 60.3%; }
.fs-gs-ticks span:nth-child(4) { left: 73.9%; }
.fs-gs-ticks span:nth-child(5) { left: auto; right: 0; transform: none; }
.fs-gs-read { font-size: 14px; min-height: 22px; }
.fs-gs-read b { color: var(--lime); }
.fs-gs-pre { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-gs-pre button, .fs-link { all: unset; cursor: pointer; font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text); }
.fs-gs-pre button.on, .fs-gs-pre button:hover, .fs-link:hover { border-color: var(--lime); color: var(--lime); }
.fs-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin-top: 10px; color: #d4ddda; }
.fs-check input { accent-color: var(--lime); }

/* step 7 */
.fs-q { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; font-size: 14.5px; color: #d4ddda; }
.fs-q b { color: var(--text); }
.fs-join { margin-top: 16px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line2); }
.fs-join p { font-size: 14px; }

/* stage overlays */
.fs-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fs-tag { position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 11.5px var(--mono); color: var(--text); transition: opacity .2s; will-change: transform; }
.fs-tag.hole { padding: 2px 6px; margin: -10px 0 0 -30px; border-radius: 6px; background: rgba(5, 8, 10, .7); border: 1px solid var(--line2); }
.fs-tag.hole.on { border-color: var(--lime); color: var(--lime); }
.fs-tag.depth { margin: -8px 0 0 26px; color: #c9d4d0; }
.fs-tag.depth::before { content: ""; display: inline-block; width: 10px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 6px 0 -16px; }
.fs-tag.depth.hot { color: var(--lime); font-weight: 600; }
.fs-hud { position: absolute; right: 18px; top: 84px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font: 500 12px var(--mono); color: var(--lime); letter-spacing: .06em; text-shadow: 0 0 8px rgba(0, 0, 0, .8); pointer-events: none; }
.fs-hud span { padding: 2px 8px; border-radius: 6px; background: rgba(5, 8, 10, .55); border: 1px solid rgba(220, 255, 60, .25); font-variant-numeric: tabular-nums; }
.fs-credit { position: absolute; right: 12px; bottom: 8px; margin: 0; max-width: 60%; text-align: right; font-size: 11px; color: rgba(238, 243, 241, .55); z-index: 3; }
.fs-credit a { color: inherit; }
.fs-pop { position: absolute; right: 18px; top: 170px; width: 280px; max-height: 50vh; overflow: auto; z-index: 4; padding: 12px 14px; border-radius: 14px;
  background: rgba(10, 16, 18, .9); border: 1px solid var(--line2); font-size: 13px; }
.fs-pop .t { font: 600 15px var(--mono); margin: 0; }
.fs-pop .t em { font: 500 11px Inter, sans-serif; font-style: normal; color: #0b1200; background: var(--lime); border-radius: 5px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.fs-pop .m { color: var(--muted); margin: 2px 0 8px; }
.fs-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.fs-pop li { font-variant-numeric: tabular-nums; }
.fs-pop li.inc { padding-left: 14px; }
.fs-pop li span { color: var(--muted); }
.fs-pop li.lit { color: var(--lime); }
.fs-pop li i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.fs-pop .x { position: absolute; right: 8px; top: 6px; all: unset; cursor: pointer; font-size: 20px; color: var(--muted); padding: 0 6px; float: right; }
.fs-rail { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 5; display: grid; gap: 6px; }
.fs-rail a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 500 10px var(--mono); color: var(--muted); text-decoration: none; border: 1px solid var(--line2); background: rgba(5, 8, 10, .6); }
.fs-rail a.on { color: #0b1200; background: var(--lime); border-color: var(--lime); }
.fs-flight:not(:hover) .fs-rail { opacity: .85; }

/* after the flight */
.fs-after { position: relative; z-index: 3; background: var(--bg); padding-top: 56px; }
.fs-latest { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fs-latest li { border: 1px solid var(--line2); border-radius: 14px; padding: 14px 16px; background: rgba(255, 255, 255, .02); }
.fs-latest li.lt-empty { grid-column: 1 / -1; }
.fs-latest p { margin: 0 0 4px; }
.fs-latest .lt-meta { display: flex; gap: 10px; font: 12px var(--mono); color: var(--muted); }
.fs-latest .lt-co { font-weight: 600; }
.fs-latest .lt-pj, .fs-latest .lt-rel { font-size: 14px; color: #c9d4d0; }
.fs-latest .lt-act { margin-top: 10px; }
.fs-latest .btn { --h: 36px; font-size: 14px; }
.fs-table { margin: 12px 0; }
.fs-table summary { cursor: pointer; font-weight: 600; }
.fs-table .tbl { overflow-x: auto; margin-top: 10px; }
.fs-table table { border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; min-width: 520px; }
.fs-table th, .fs-table td { text-align: left; padding: 5px 12px 5px 0; border-bottom: 1px solid var(--line); }
.fs-table tr.inc td { color: var(--muted); }
.fs-table tr.inc td:first-child { padding-left: 14px; }

/* no WebGL: the steps read as a plain page */
.fs-flat .fs-stage { display: none; }
.fs-flat .fs-steps { margin-top: 0; }
.fs-flat .fs-step { min-height: 0; padding-top: 24px; padding-bottom: 24px; }
.fs-flat .fs-hero { padding-top: 120px; }
.fs-flat .fs-rail { display: none; }

@media (max-width: 760px) {
  .fs-step { align-items: flex-end; padding: 0 12px 18px; min-height: 115vh; min-height: 115svh; }
  .fs-card { padding: 18px 16px 14px; font-size: 15px; }
  .fs-stage::after { background: linear-gradient(0deg, rgba(5, 8, 10, .7), transparent 40%); }
  .fs-hud { top: 70px; right: 10px; font-size: 10.5px; }
  .fs-rail { display: none; }
  .fs-pop { left: 12px; right: 12px; width: auto; top: 70px; max-height: 36vh; }
  .fs-credit { top: 64px; bottom: auto; left: 10px; right: auto; max-width: 52%; text-align: left; font-size: 9.5px; }
  .fs-hl button { font-size: 12px; padding: 1px 6px; }
  .fs-hl button span, .fs-hl button b { white-space: nowrap; }
  .fs-two { grid-template-columns: 1fr; }
  .fs-latest { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .fs-tag { transition: none; } }
