/* ── shared/real-figures.css ── */
/* Shared by every guide that shows captures of the real tool (a guide opts in with sharedCss: ['real-figures']).
   Both themes are served by the picture pair real() writes (img.is-dark / img.is-light, hidden by guide.css); this file only
   frames the picture, and the frame follows the theme through tokens. */

/* A capture of the real tool. The frame is the tool's own page colour in each theme, so the capture's edge never reads as a
   box inside a box: near-black behind the dark capture, white behind the light one. */
:root { --real-frame: #0A0A0A; }
:root[data-theme="light"] { --real-frame: #FFFFFF; }
.ocv-real { margin: 28px 0; padding: 0; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--real-frame); overflow: hidden; }
.ocv-real__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 16px; border-bottom: 1px solid var(--border-soft); background: rgba(var(--ink-rgb), 0.03); }
.ocv-real__tag { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sahi-cyan, #5ACFE0); }
.ocv-real__label { font-size: 0.9rem; font-weight: 600; color: var(--text-1); }
.ocv-real__shot { display: flex; justify-content: center; padding: 18px 16px; overflow-x: auto; }
.ocv-real__shot img { display: block; width: var(--real-w); max-width: 100%; height: auto; border-radius: 6px; }
.ocv-real__cap { padding: 0 18px 16px; font-size: 0.88rem; line-height: 1.5; color: var(--text-3); text-align: center; }
.ocv-real__cap strong { color: var(--text-2); }

/* Two or more captures side by side (a cell in Simple against Advanced, Call against Put) */
.ocv-real-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin: 28px 0; }
.ocv-real-row > .ocv-real { margin: 0; }

/* ── 00-base.css ── */
/* Straddle guide: page furniture. The real-capture frame (.ocv-real) is shared (scripts/guides/shared-css/real-figures.css);
   everything here uses the guide tokens, so both themes follow without a rule of their own. */

section[id^="stg-"] .ocv-real__tag { font-size: 0.8125rem; }
section[id^="stg-"] .ocv-real__shot { padding: 14px 12px; }

/* "Look at" strip under a figure that needs a pointer to what matters */
.stg-look { margin: 14px 0; padding: 12px 16px; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(var(--ink-rgb), 0.03); color: var(--text-2); font-size: 0.95rem; }
.stg-look strong { color: var(--text-1); }

/* A short labelled list of the regions of a screen */
.stg-regions { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.stg-regions > li { padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 0.93rem; }
.stg-regions b { display: block; margin-bottom: 4px; color: var(--text-1); font-size: 0.98rem; }

/* Two captures side by side on a wide screen */
.stg-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin: 22px 0; align-items: start; }
.stg-pair > .ocv-real { margin: 0; }

/* Glossary and questions */
.stg-gloss { display: grid; gap: 0; margin: 18px 0; }
.stg-gloss dt { margin-top: 14px; font-weight: 700; color: var(--text-1); }
.stg-gloss dd { margin: 4px 0 0; color: var(--text-2); }
.stg-q { margin: 10px 0; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.stg-q > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--text-1); }
.stg-q > div { padding: 0 16px 14px; color: var(--text-2); }
.stg-q > div p { margin: 0 0 8px; }

/* Tablet and phone: a wide capture keeps at least 70% of its drawn size and scrolls sideways inside its frame, so the
   small type in it stays readable instead of shrinking to a fraction of the page width */
@media (max-width: 900px) {
  section[id^="stg-"] .ocv-real__shot { justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  section[id^="stg-"] .ocv-real__shot img { max-width: none; flex: none; width: max(100%, calc(var(--real-w) * 0.7)); }
}

/* ── 10-guide.css ── */
/* Straddle guide: reading aids added around the figures and the text. Tokens only (both themes follow); the one literal is the
   brand dark at 70% behind the enlarged picture. */

/* ── a section opens with the question it answers ─────────────────────────── */
.stg-ask { margin: -4px 0 20px; color: var(--text-3); font-size: 1.02rem; font-style: italic; line-height: 1.5; }
.stg-ask::before { content: "The question: "; font-style: normal; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sahi-accent-ink); margin-right: 4px; }

/* a callout heading is now an h3 or h4 for the outline; it keeps the callout look */
.callout-beginner :is(h3, h4) { color: var(--sahi-positive); margin: 0 0 12px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }

/* ── links: to the glossary and to the "not verified" box ─────────────────── */
a.stg-term { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: var(--sahi-accent-ink); }
a.stg-term:hover { text-decoration-style: solid; }
a.stg-nv { color: var(--sahi-accent-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ── jump list and route ──────────────────────────────────────────────────── */
.stg-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 22px; }
.stg-jump__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-right: 4px; }
.stg-jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--border-soft); border-radius: 999px; background: var(--surface); color: var(--text-1); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.stg-jump a:hover { border-color: var(--sahi-accent-ink); color: var(--sahi-accent-ink); }

.stg-first5, .stg-route, .stg-primer, .stg-shapes { margin: 22px 0; padding: 16px 20px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); }
.stg-first5 { }
.stg-first5 > h3, .stg-route > h3, .stg-primer > h3, .stg-shapes > h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--text-1); }
.stg-first5 ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.stg-first5 li { margin: 6px 0; }
.stg-route p, .stg-primer p { margin: 0 0 8px; color: var(--text-2); font-size: 0.98rem; }
.stg-primer dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px 22px; margin: 10px 0 0; }
.stg-primer dt { font-weight: 700; color: var(--text-1); }
.stg-primer dt a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.stg-primer dd { margin: 2px 0 8px; color: var(--text-2); font-size: 0.93rem; line-height: 1.5; }

/* the "why not" and the "why different" notes */

.stg-risklist { padding-left: 22px; }
.stg-risklist li { margin: 10px 0; color: var(--text-2); }
.stg-check { padding-left: 24px; }
.stg-check li { margin: 8px 0; color: var(--text-2); }

/* ── tables: a keyboard-reachable scroll region, with an edge shadow when there is more to see ── */
.guide-table-wrap {
  background:
    linear-gradient(to right, var(--surface) 30%, transparent) left center / 36px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, transparent) right center / 36px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(var(--ink-rgb), 0.22), transparent) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(var(--ink-rgb), 0.22), transparent) right center / 12px 100% no-repeat scroll,
    var(--surface);
}
.guide-table-wrap:focus-visible, .ocv-real__shot:focus-visible { outline: 2px solid var(--sahi-cyan); outline-offset: 3px; }

/* ── figures: swipe hint, faded edge and Enlarge (phones and tablets) ────── */
.stg-swipe, .stg-zoom { display: none; }
.stg-pop { display: none; }
@media (max-width: 900px) {
  .stg-wide .stg-swipe { display: inline-block; flex-basis: 100%; font-size: 0.82rem; color: var(--text-3); }
  .stg-wide .ocv-real__shot { position: relative; }
  .stg-wide .ocv-real__shot::after { content: ""; position: sticky; right: -16px; flex: 0 0 18px; margin-left: -18px; align-self: stretch; background: linear-gradient(to right, transparent, var(--real-frame)); pointer-events: none; }
}
@supports selector(:popover-open) {
  @media (max-width: 900px) {
    .stg-zoom { display: inline-flex; align-items: center; min-height: 36px; margin-left: auto; padding: 4px 14px; border: 1px solid var(--border-soft); border-radius: 999px; background: var(--surface); color: var(--text-1); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
  }
  .stg-pop:popover-open { display: block; position: fixed; inset: 0; margin: auto; width: min(96vw, 1180px); height: fit-content; max-height: 92vh; overflow: auto; padding: 14px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--real-frame); color: var(--text-1); -webkit-overflow-scrolling: touch; }
  .stg-pop::backdrop { background: rgba(21, 2, 11, 0.7); }
  .stg-pop__x { position: sticky; top: 0; display: block; margin: 0 0 8px auto; min-height: 40px; padding: 6px 18px; border: 1px solid var(--border-soft); border-radius: 999px; background: var(--surface); color: var(--text-1); font: inherit; font-weight: 700; cursor: pointer; }
  .stg-pop__img img { max-width: none !important; width: auto !important; height: auto !important; border-radius: 6px; }
}

/* small screens: roomier touch targets in the guide's own controls, and a safe margin at the foot for the floating pills */
@media (max-width: 560px) {
  .stg-jump a { min-height: 44px; }
  .stg-q > summary { min-height: 44px; display: flex; align-items: center; }
  .content-main { padding-bottom: 72px; }
}

/* ── print: light pictures only, a sensible length ────────────────────────── */
@media print {
  :root:root { --text-1: #15020B; --text-2: #15020B; --text-3: #15020B; --surface: #FFFFFF; --real-frame: #FFFFFF; --border-soft: rgba(21, 2, 11, 0.3); --sahi-bg-0: #FFFFFF; --sahi-accent-ink: #15020B; --sahi-cyan: #15020B; --sahi-positive: #15020B; }
  html, body { background: #FFFFFF !important; color: #15020B !important; }
  .sahi-nav, .toc-container, .ux-dock, .ux-progress, .ux-next, .ux-top, .hero-actions, .quiz-section, #explore, #more-guides, #see-it-live, #live-now, .guide-crumbs, .sahi-foot, .stg-jump, .stg-zoom, .stg-pop, .stg-swipe, .ocv-real__bar { display: none !important; }
  :root:root:root:root img.is-dark { display: none !important; }
  :root:root:root:root img.is-light { display: block !important; }
  header { padding: 0 0 12px !important; }
  .layout-wrapper { display: block !important; padding: 0 !important; }
  .section-block { break-inside: auto; page-break-inside: auto; }
  h2, h3 { break-after: avoid; }
  .ocv-real, .stg-ex, .callout-beginner, .guide-table-wrap tr { break-inside: avoid; }
  .ocv-real__shot { display: block; overflow: visible; padding: 4px 0; }
  .ocv-real__shot img { max-width: 100% !important; max-height: 6.5cm; width: auto !important; height: auto !important; margin: 0 auto; }
  .ocv-real__shot::after { display: none !important; }
  .stg-pair { display: block; }
  .stg-pair .ocv-real__shot img { max-height: 5cm; }
  .content-main p, .content-main li { font-size: 10pt !important; line-height: 1.45 !important; margin-bottom: 6px !important; }
  .section-block { margin: 0 0 10px !important; padding: 0 !important; }
  .divider { display: none !important; }
  .guide-table-wrap { overflow: visible; background: none; }
  .guide-table { min-width: 0; font-size: 0.8rem; }
  .guide-table th, .guide-table td { padding: 5px 8px; }
  details { display: block; }
  details > :not(summary) { display: block !important; }
  a { color: inherit; text-decoration: underline; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
  .content-main :is(p, li, td, th, dd, dt, span, strong, em, div, small, h2, h3, h4, figcaption) { color: #15020B !important; }
  .callout-beginner, .trading-example, .feature-card, .stg-first5, .stg-why { background: #FFFFFF !important; box-shadow: none !important; }
}

/* links inside scrolling tables use the text colour (the edge shadow behind them would otherwise lower the contrast of the accent) */
.guide-table-wrap a, .guide-table-wrap a.stg-nv, .stg-cat a { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ── 15-extras.css ── */
/* Straddle guide: the arithmetic card, the band diagram, notes and traps, the control lists, chips. Tokens only; both themes follow.
   Motion is small and honours prefers-reduced-motion: a draw-in on the band diagram and a lift on a hovered card. */

/* ── the arithmetic card: one sum, one line each, the answer last ───────────── */
.stg-calc { margin: 22px 0; padding: 16px 20px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); }
.stg-calc > h3, .stg-calc > h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--text-1); }
.stg-calc > p { margin: 0 0 10px; color: var(--text-3); font-size: 0.93rem; }
.stg-calc__rows { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.stg-calc__rows > li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 4px 16px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--border-soft); color: var(--text-2); font-size: 0.97rem; }
.stg-calc__rows > li:last-child { border-bottom: 0; }
.stg-calc__k { color: var(--text-1); font-weight: 600; }
.stg-calc__w { color: var(--text-3); font-variant-numeric: tabular-nums; }
.stg-calc__v { color: var(--text-1); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.stg-calc__rows > li.is-answer { background: var(--accent-wash); margin: 0 -12px; padding: 9px 12px; border-radius: 8px; border-bottom: 0; }
.stg-calc__tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--border-soft); border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 560px) {
    .stg-calc__rows > li { grid-template-columns: 1fr auto; }
    .stg-calc__w { grid-column: 1 / -1; order: 3; }
}

/* ── the band diagram: strikes, spot, expected move and breakevens on one line of prices ─ */
.stg-band { margin: 24px 0; padding: 18px 20px 14px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); }
.stg-band > h3, .stg-band > h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--text-1); }
.stg-band > p { margin: 0 0 14px; color: var(--text-3); font-size: 0.93rem; }
.stg-band__lane { position: relative; height: 38px; margin: 6px 0; }
.stg-band__lane > b { position: absolute; left: 0; top: -2px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.stg-band__bar { position: absolute; top: 18px; height: 14px; border-radius: 7px; transform-origin: left center; }
.stg-band__bar.is-move { background: var(--sahi-accent); opacity: 0.85; }
.stg-band__bar.is-be { background: transparent; border: 2px solid var(--text-2); }
.stg-band__lbl { position: absolute; top: 0; transform: translateX(-50%); padding: 0 6px; font-size: 0.78rem; font-weight: 700; color: var(--text-1); background: var(--surface); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stg-band__axis { position: relative; height: 26px; margin-top: 4px; border-top: 1px solid var(--border-soft); }
.stg-band__tick { position: absolute; top: 0; transform: translateX(-50%); padding-top: 5px; font-size: 0.78rem; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stg-band__tick::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 7px; background: var(--text-3); }
.stg-band__spot { position: absolute; top: 0; bottom: 26px; width: 0; border-left: 2px dashed var(--sahi-positive); }
.stg-band__spotlbl { position: absolute; top: -2px; transform: translateX(-50%); font-size: 0.78rem; font-weight: 700; color: var(--sahi-positive); background: var(--surface); padding: 0 6px; white-space: nowrap; }
.js .stg-band[data-aos] .stg-band__bar { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s; }
.js .stg-band.aos-in .stg-band__bar { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
    .js .stg-band[data-aos] .stg-band__bar { transform: none; transition: none; }
}

/* ── notes, traps, risks ─────────────────────────────────────────────────── */
.stg-trap { margin: 18px 0; padding: 14px 18px; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(var(--ink-rgb), 0.03); color: var(--text-2); font-size: 0.97rem; }
.stg-trap > strong:first-child { display: block; margin-bottom: 4px; color: var(--text-1); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stg-trap p { margin: 0 0 8px; }
.stg-trap p:last-child { margin-bottom: 0; }
.stg-unverified { margin: 22px 0; padding: 18px 22px; border: 1px dashed var(--border-glow); border-radius: 14px; background: var(--accent-wash); }
.stg-unverified > h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--text-1); }
.stg-unverified ul { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); }
.stg-unverified li { margin: 8px 0; }

/* ── a card that lifts a little when hovered (steps, regions, picks) ──────── */
.stg-card, .stg-steps > li, .stg-regions > li { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
@media (hover: hover) {
    .stg-card:hover, .stg-steps > li:hover, .stg-regions > li:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(var(--ink-rgb), 0.12); border-color: var(--border-glow); }
}

/* ── the control lists: one row for each control, with its exact label ───── */
.stg-ctl { margin: 20px 0; padding: 0; list-style: none; display: grid; gap: 0; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); overflow: hidden; }
.stg-ctl > li { display: grid; grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr); gap: 4px 20px; padding: 12px 18px; border-bottom: 1px solid var(--border-soft); color: var(--text-2); font-size: 0.96rem; }
.stg-ctl > li:last-child { border-bottom: 0; }
.stg-ctl > li > b { color: var(--text-1); font-weight: 700; }
.stg-ctl > li > b small { display: block; margin-top: 2px; font-weight: 600; font-size: 0.78rem; color: var(--text-3); }
.stg-ctl code, .stg-key { padding: 1px 7px; border: 1px solid var(--border-soft); border-radius: 6px; background: rgba(var(--ink-rgb), 0.05); color: var(--text-1); font-size: 0.88em; font-family: inherit; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .stg-ctl > li { grid-template-columns: 1fr; padding: 12px 14px; } }

/* ── chips: the exact words of the screen, inside a sentence ─────────────── */
.stg-chip { display: inline-block; padding: 1px 9px; border: 1px solid var(--border-soft); border-radius: 999px; background: rgba(var(--ink-rgb), 0.05); color: var(--text-1); font-size: 0.88em; font-weight: 700; white-space: nowrap; }
.stg-chip.is-up { color: var(--toast-positive-text); }
.stg-chip.is-down { color: var(--toast-negative-text); }

/* ── which tool when ─────────────────────────────────────────────────────── */
.stg-which td:first-child { white-space: nowrap; color: var(--text-1); font-weight: 700; }

/* ── the quick-start path ─────────────────────────────────────────────────── */
.stg-fast { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 18px 0; padding: 0; list-style: none; counter-reset: stgf; }
.stg-fast > li { counter-increment: stgf; position: relative; padding: 14px 16px 14px 52px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 0.95rem; }
.stg-fast > li::before { content: counter(stgf); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; color: var(--on-accent); background: var(--sahi-accent); }
.stg-fast b { display: block; margin-bottom: 2px; color: var(--text-1); }

@media print {
    .stg-calc, .stg-band, .stg-trap, .stg-unverified, .stg-ctl, .stg-card { break-inside: avoid; background: #FFFFFF !important; box-shadow: none !important; }
    .stg-band__bar { transform: none !important; }
    .stg-band__bar.is-move { background: #15020B !important; }
    .stg-band__lbl, .stg-band__spotlbl { background: #FFFFFF !important; color: #15020B !important; }
}

/* ── marks on a line of prices (strikes, forward, spot) ───────────────────── */
.stg-marks { margin: 24px 0; padding: 18px 20px 12px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); }
.stg-marks > h3, .stg-marks > h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--text-1); }
.stg-marks > p { margin: 0 0 14px; color: var(--text-3); font-size: 0.93rem; }
.stg-marks__line { position: relative; height: 96px; margin: 8px 12px 0; border-bottom: 2px solid var(--text-3); }
.stg-marks__m { position: absolute; bottom: -2px; width: 0; }
.stg-marks__m > i { position: absolute; left: -1px; bottom: 0; width: 2px; background: var(--text-2); }
.stg-marks__m.is-high > i { height: 52px; }
.stg-marks__m.is-low > i { height: 28px; }
.stg-marks__m > b { position: absolute; transform: translateX(-50%); white-space: nowrap; font-size: 0.78rem; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.stg-marks__m.is-high > b { bottom: 56px; }
.stg-marks__m.is-low > b { bottom: 32px; }
.stg-marks__m.is-spot > i { background: var(--sahi-positive); }
.stg-marks__m.is-spot > b { color: var(--sahi-positive); }
.stg-marks__m.is-forward > i { background: var(--sahi-accent); }
.stg-marks__m.is-forward > b { color: var(--text-1); }
.guide-table tr.stg-row-atm td { background: var(--accent-wash); }
@media (max-width: 560px) { .stg-marks__m > b { font-size: 0.7rem; } }

/* ── 20-skin.css ── */
/* Strategy Builder guide: the visual layer that matches the Option Chain guide (part openers, hero strip, step cards, figure frames,
   worked-example cards, the filterable catalogue, callouts) and the small motion that goes with it.
   Tokens only; the few translucent brand fills restate the Option Chain guide's (scripts/guides/option-chain-css/05-p1-page.css), dark
   and light. Motion is transform, opacity and stroke only, behind prefers-reduced-motion: no-preference, and starts from the
   existing data-aos reveal (.aos-in). Prefix: stp- (page), stg- (earlier rules). */

:root {
    --stp-pink-fill: rgba(165, 15, 102, 0.5);
    --stp-pink-line: rgba(254, 163, 229, 0.5);
    --stp-pink-edge: rgba(254, 163, 229, 0.55);
    --stp-pink-wash: rgba(165, 15, 102, 0.2);
    --stp-grad-badge: linear-gradient(150deg, rgba(165, 15, 102, 0.75), rgba(165, 15, 102, 0.18));
    --stp-badge-line: rgba(254, 163, 229, 0.38);
    --stp-badge-shadow: 0 10px 30px rgba(165, 15, 102, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    --stp-part-bg: radial-gradient(120% 140% at 0% 0%, rgba(165, 15, 102, 0.20), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(169, 231, 240, 0.06), transparent 60%), rgba(255, 255, 255, 0.02);
    --stp-tile: rgba(255, 255, 255, 0.025);
    --stp-solid: transparent;
    --stp-hl-rgb: 169, 231, 240;
    --stp-sheen: rgba(255, 255, 255, 0.07);
}
:root[data-theme="light"] {
    --stp-pink-fill: #A50F66;
    --stp-pink-line: rgba(165, 15, 102, 0.5);
    --stp-pink-edge: #A50F66;
    --stp-pink-wash: rgba(165, 15, 102, 0.1);
    --stp-grad-badge: linear-gradient(150deg, #A50F66, #8A1157);
    --stp-badge-line: rgba(165, 15, 102, 0.55);
    --stp-badge-shadow: 0 10px 28px rgba(165, 15, 102, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    --stp-part-bg: radial-gradient(120% 140% at 0% 0%, rgba(165, 15, 102, 0.1), transparent 55%), #FFFFFF;
    --stp-tile: #FFFFFF;
    --stp-solid: #A50F66;
    --stp-hl-rgb: 165, 15, 102;
    --stp-sheen: rgba(165, 15, 102, 0.08);
}

/* ═══ 1. rhythm between sections (same as the Option Chain guide) ═══ */
.content-main > hr.divider { margin: 40px 0; opacity: 0.8; }
.content-main > hr.divider:has(+ section > .stp-part), .content-main > hr.divider:has(+ section > .stp-hero) { display: none; }
.content-main > section[id^="stg-"] > h2 { margin: 0 0 22px; padding: 0 0 18px; }
.content-main > section[id^="stg-"] > h3 { margin: 48px 0 14px; font-size: 1.28rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; color: var(--text-1); }
.content-main > section[id^="stg-"] > h3:first-child { margin-top: 0; }
.content-main .callout-beginner { margin: 36px 0; padding: 26px 30px; border-radius: 16px; }
.content-main .callout-beginner > :last-child { margin-bottom: 0; }
.content-main .callout-beginner p { font-size: 1.05rem; line-height: 1.75; }
.content-main > .quiz-section { margin-top: 72px; padding: 40px; }
@media (max-width: 768px) {
    .content-main > hr.divider { margin: 28px 0; }
    .content-main .callout-beginner { margin: 28px 0; padding: 20px; }
    .content-main .callout-beginner p { font-size: 1rem; }
    .content-main > .quiz-section { margin-top: 48px; padding: 22px 18px; }
}

/* heading underline: a short accent bar draws under every section heading */
.content-main > section[id^="stg-"] > h2 { position: relative; }
.content-main > section[id^="stg-"] > h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; border-radius: 3px; background: var(--sahi-accent-ink); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
    .js .content-main > section[id^="stg-"]:not(.aos-in) > h2::after { transform: scaleX(0); }
    .js .content-main > section[id^="stg-"] > h2::after { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s; }
}

/* the question under a heading becomes a pill-style line */
.stg-ask { padding: 10px 14px; border: 1px solid var(--border-soft); border-radius: 10px; background: rgba(var(--ink-rgb), 0.03); }

/* ═══ 2. the hero strip: what you will learn, and the numbers ═══ */
.stp-hero { display: grid; gap: 18px; margin: 0 0 40px; padding: 22px 24px; border: 1px solid var(--border-soft); border-radius: 22px; background: var(--stp-part-bg); }
.stp-learn__k, .stp-part__k { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sahi-cyan); }
.stp-learn ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.stp-learn a { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 14px; border: 1px solid var(--border-soft); border-radius: 999px; background: var(--stp-tile); color: var(--text-1); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
.content-main .stp-learn a { color: var(--text-1); text-decoration: none; }
.stp-learn a:hover { transform: translateY(-2px); border-color: var(--stp-pink-line); background: var(--stp-pink-wash); }
.stp-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.stp-nums a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--stp-tile); text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease; }
.content-main .stp-nums a { color: var(--text-2); text-decoration: none; }
.stp-nums a:hover { transform: translateY(-3px); border-color: rgba(var(--stp-hl-rgb), 0.5); }
.stp-nums b { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--sahi-cyan); font-variant-numeric: tabular-nums; }
.stp-nums span { font-size: 0.9rem; line-height: 1.35; color: var(--text-2); }
@media (max-width: 700px) { .stp-hero { padding: 18px 16px; } .stp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ═══ 3. part openers ═══ */
.stp-part {
    position: relative; display: grid; overflow: hidden;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    grid-template-areas: "badge body thumbs" "qs qs qs" "rail rail rail";
    gap: 22px 26px; align-items: center;
    margin: 0 0 36px; padding: 28px 30px 20px;
    border: 1px solid var(--border-soft); border-radius: 22px; background: var(--stp-part-bg);
}
.content-main > section[id^="stg-"] > .stp-part:first-child { margin-top: 24px; }
.stp-part__badge {
    grid-area: badge; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 26px;
    font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; line-height: 1; color: var(--on-accent);
    background: var(--stp-grad-badge); background-color: var(--stp-solid); border: 1px solid var(--stp-badge-line); box-shadow: var(--stp-badge-shadow);
}
.stp-part__body { grid-area: body; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stp-part__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--text-1); text-wrap: balance; }
.stp-part__promise { max-width: 56ch; font-size: 1rem; line-height: 1.55; color: var(--text-2); }
.stp-part__meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.stp-part__meta > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px 2px; border-radius: 50%; background: var(--text-3); }
.stp-part__thumbs { grid-area: thumbs; display: flex; gap: 8px; align-items: center; }
.stp-part__thumb { display: block; flex: none; width: 128px; max-width: 128px; height: 86px; object-fit: cover; object-position: left top; border-radius: 8px; border: 1px solid var(--border-soft); background: var(--real-frame); }
.stp-part__qs { grid-area: qs; border-top: 1px dashed rgba(var(--ink-rgb), 0.14); padding-top: 12px; }
.stp-part__qs > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; font-size: 0.875rem; font-weight: 700; color: var(--text-2); }
.stp-part__qs > summary:hover { color: var(--text-1); }
.stp-part__qs ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; color: var(--text-2); font-size: 0.95rem; }
.content-main .stp-part__qs a { color: var(--text-2); text-decoration: none; }
.content-main .stp-part__qs a:hover { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; }
.stp-rail { grid-area: rail; display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px dashed rgba(var(--ink-rgb), 0.14); }
.stp-rail::before { content: "Parts"; margin-right: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.stp-rail__i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 0.9375rem; font-weight: 800; line-height: 1; text-decoration: none; color: var(--text-2); border: 1px solid var(--border-soft); background: rgba(var(--ink-rgb), 0.03); transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
.content-main .stp-rail a.stp-rail__i { text-decoration: none; color: var(--text-2); font-weight: 800; }
.content-main .stp-rail a.stp-rail__i:hover { transform: translateY(-2px); color: var(--text-1); border-color: var(--stp-pink-line); background: var(--stp-pink-wash); }
.stp-rail__i.is-here { color: var(--on-accent); border-color: var(--stp-pink-edge); background: var(--stp-pink-fill); }
@media (prefers-reduced-motion: no-preference) {
    .stp-part__badge { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
    .stp-part:hover .stp-part__badge { transform: rotate(-4deg) scale(1.05); }
    .js .stp-part[data-aos]:not(.aos-in) .stp-part__thumb { opacity: 0; transform: translateY(10px); }
    .stp-part__thumb { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
    .stp-part__thumb:nth-child(2) { transition-delay: 0.1s; }
    .stp-part__thumb:nth-child(4) { transition-delay: 0.1s; }
    .stp-part__thumb:nth-child(3), .stp-part__thumb:nth-child(6) { transition-delay: 0.2s; }
}
@media (max-width: 900px) {
    .stp-part { grid-template-columns: 80px minmax(0, 1fr); grid-template-areas: "badge body" "thumbs thumbs" "qs qs" "rail rail"; padding: 24px 22px 18px; gap: 18px 20px; }
    .stp-part__badge { width: 80px; height: 80px; border-radius: 22px; font-size: 3.1rem; }
    .stp-part__thumbs { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .stp-part { grid-template-columns: 56px minmax(0, 1fr); margin: 0 0 26px; padding: 18px 16px 14px; gap: 14px; border-radius: 18px; }
    .stp-part__badge { width: 56px; height: 56px; border-radius: 16px; font-size: 2.2rem; }
    .stp-part__title { font-size: 1.35rem; }
    .stp-part__promise { font-size: 0.9375rem; }
    .stp-part__thumb { width: 28vw; max-width: 28vw; height: 64px; }
    .stp-rail { gap: 6px; padding-top: 12px; }
    .stp-rail__i { width: 40px; height: 40px; }
    .stp-part__qs > summary { min-height: 44px; }
}

/* ═══ 5. figure frames: the Option Chain guide's feel ═══ */
section[id^="stg-"] .ocv-real { position: relative; margin: 30px 0; border-radius: 18px; box-shadow: 0 10px 34px rgba(var(--shade-ch), calc(0.22 * var(--k-shadow))); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease; }
section[id^="stg-"] .ocv-real__bar { padding: 11px 18px; background: rgba(var(--ink-rgb), 0.04); }
section[id^="stg-"] .ocv-real__tag { display: inline-flex; align-items: center; gap: 8px; }
section[id^="stg-"] .ocv-real__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sahi-cyan); box-shadow: 0 0 0 3px rgba(var(--stp-hl-rgb), 0.2); }
section[id^="stg-"] .ocv-real__cap { padding: 13px 18px 14px; border-top: 1px solid var(--border-soft); background: rgba(var(--ink-rgb), 0.03); text-align: left; font-size: 0.92rem; color: var(--text-2); }
section[id^="stg-"] .ocv-real__cap strong:first-child { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 999px; background: rgba(var(--stp-hl-rgb), 0.14); color: var(--sahi-cyan); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
/* a sheen sweeps across on hover */
section[id^="stg-"] .ocv-real::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, var(--stp-sheen) 50%, transparent 62%); transform: translateX(-120%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    section[id^="stg-"] .ocv-real:hover { transform: translateY(-4px); border-color: rgba(var(--stp-hl-rgb), 0.4); box-shadow: 0 18px 48px rgba(var(--shade-ch), calc(0.34 * var(--k-shadow))); }
    section[id^="stg-"] .ocv-real:hover::after { transform: translateX(120%); transition: transform 0.9s ease; }
}
/* ungrouped figures stay static: only a figure that carries its own data-aos fades in */
@media (prefers-reduced-motion: no-preference) {
    .js figure.ocv-real[data-aos]:not(.aos-in) { transform: translateY(18px) scale(0.99); }
}

/* ═══ 7. the catalogue: filter chips, cards-like rows, sketches ═══ */
.stg-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--border-soft); border-radius: 999px; background: var(--stp-tile); color: var(--text-1); font-size: 0.9rem; font-weight: 600; cursor: pointer; user-select: none; transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
.stg-chip span { padding: 0 7px; border-radius: 999px; background: rgba(var(--ink-rgb), 0.08); color: var(--text-3); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.stg-chip:hover { transform: translateY(-2px); border-color: var(--stp-pink-line); }

/* sketches draw themselves in once, when their card or table scrolls into view */
@keyframes stp-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }

/* ═══ 8. callouts and boxes: the icon beside the heading ═══ */
.callout-beginner :is(h3, h4)::before { content: "i"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 0.78rem; font-weight: 800; font-style: italic; text-transform: none; letter-spacing: 0; vertical-align: 1px; }
.stg-why, .stg-first5, .stg-route, .stg-primer, .stg-look { border-radius: 14px; }
.stg-first5 { background: var(--stp-tile); }
.stg-first5 > h3::before, .stg-why strong:first-child::before { content: "!"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--sahi-positive); color: var(--sahi-bg-0); font-size: 0.75rem; font-weight: 800; vertical-align: 1px; }
.stg-risklist { list-style: none; padding-left: 0; display: grid; gap: 10px; counter-reset: sbr; }
.stg-risklist > li { counter-increment: sbr; position: relative; margin: 0; padding: 12px 16px 12px 54px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--stp-tile); }
.stg-risklist > li::before { content: counter(sbr); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--sahi-negative); color: var(--toast-negative-text); font-size: 0.85rem; font-weight: 800; }
.stg-q { border-radius: 14px; transition: border-color 0.2s ease; }
.stg-q:hover, .stg-q[open] { border-color: var(--stp-pink-line); }
.stg-jump a { transition: transform 0.2s ease, border-color 0.2s ease; }
.stg-jump a:hover { transform: translateY(-2px); }
.guide-table tbody tr { transition: background-color 0.2s ease; }
.guide-table tbody tr:hover { background: rgba(var(--ink-rgb), 0.04); }

/* ═══ 9. motion off: everything stands still and shows ═══ */
@media (prefers-reduced-motion: reduce) {
    .stg-chip, .stp-learn a, .stp-nums a, .stg-ex, .stg-leg, .stg-facts > li, .ocv-real { transition: none !important; }
    .stg-chip:hover, .stp-learn a:hover, .stp-nums a:hover, .stg-shapes a:hover, .stg-jump a:hover { transform: none; }
}
@media print {
    .stp-hero, .stg-fset, .stg-fnote, .stg-empty, .stp-rail, .stp-part__thumbs, .stp-part__qs { display: none !important; }
    .stp-part { display: block; padding: 8px 0; border: 0; background: none; margin: 0 0 8px; }
    .stp-part__badge { display: inline-grid; width: 36px; height: 36px; font-size: 1.4rem; margin-right: 8px; background: none; color: #15020B; border: 1px solid #15020B; box-shadow: none; }
    section[id^="stg-"] .ocv-real::after { display: none; }
}

/* ═══ review: a long title wraps in balanced lines, as the Option Chain guide's does, instead of running edge to edge ═══ */
body > header h1, .container > header h1, header > h1 { max-width: 18em; margin-inline: auto; text-wrap: balance; }
