/* ── 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 ── */
/* OI Spurts guide: page furniture. The real-capture frame (.ocv-real) is shared (scripts/guides/shared-css/real-figures.css).
   Every colour is a token (both themes follow); the few literals restate the Option Chain guide's brand tints
   (scripts/guides/option-chain-css/05-p1-page.css) and are in the approved palette. Prefix: osp- (the page), ospp- (part openers). */

:root {
    --osp-pink-fill: rgba(165, 15, 102, 0.5);
    --osp-pink-line: rgba(254, 163, 229, 0.5);
    --osp-pink-edge: rgba(254, 163, 229, 0.55);
    --osp-pink-wash: rgba(165, 15, 102, 0.2);
    --osp-grad-badge: linear-gradient(150deg, rgba(165, 15, 102, 0.75), rgba(165, 15, 102, 0.18));
    --osp-badge-line: rgba(254, 163, 229, 0.38);
    --osp-badge-shadow: 0 10px 30px rgba(165, 15, 102, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    --osp-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);
    --osp-solid: transparent;
}
:root[data-theme="light"] {
    --osp-pink-fill: #A50F66;
    --osp-pink-line: rgba(165, 15, 102, 0.5);
    --osp-pink-edge: #A50F66;
    --osp-pink-wash: rgba(165, 15, 102, 0.1);
    --osp-grad-badge: linear-gradient(150deg, #A50F66, #8A1157);
    --osp-badge-line: rgba(165, 15, 102, 0.55);
    --osp-badge-shadow: 0 10px 28px rgba(165, 15, 102, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    --osp-part-bg: radial-gradient(120% 140% at 0% 0%, rgba(165, 15, 102, 0.1), transparent 55%), #FFFFFF;
    --osp-solid: #A50F66;
}

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

/* rhythm between sections */
.content-main > hr.divider { margin: 40px 0; opacity: 0.8; }
.content-main > hr.divider:has(+ section > .ospp-part) { display: none; }
.content-main > section[id^="sp-"] > h2 { margin: 0 0 18px; padding: 0 0 14px; }
.content-main > section[id^="sp-"] > h3 { margin: 40px 0 12px; font-size: 1.22rem; line-height: 1.3; font-weight: 700; color: var(--text-1); }
.content-main .callout-beginner { margin: 30px 0; padding: 22px 26px; border-radius: 16px; }
.content-main .callout-beginner > :last-child { margin-bottom: 0; }

/* numbered steps: one step, one figure */
.osp-steps { list-style: none; counter-reset: osp; margin: 22px 0; padding: 0; display: grid; gap: 14px; }
.osp-steps > li { counter-increment: osp; position: relative; padding: 16px 18px 16px 62px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); }
.osp-steps > li::before { content: counter(osp); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; color: var(--on-accent); background: var(--sahi-accent); }
.osp-steps > li > h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--text-1); }
.osp-steps > li > p { margin: 0 0 10px; color: var(--text-2); }
.osp-steps > li > p:last-child { margin-bottom: 0; }
.osp-steps .ocv-real { margin: 14px 0 6px; }

/* a short labelled list of the regions of a screen */
.osp-regions { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.osp-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; }
.osp-regions b { display: block; margin-bottom: 4px; color: var(--text-1); font-size: 0.98rem; }

/* a worked example */
.osp-ex { margin: 8px 0 22px; padding: 14px 18px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); }
.osp-ex__head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-bottom: 8px; }
.osp-ex__head h3 { margin: 0; font-size: 1.15rem; color: var(--text-1); }
.osp-ex__tag { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sahi-cyan); }
.osp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.osp-facts > li { padding: 8px 10px; border-radius: 10px; background: rgba(var(--ink-rgb), 0.04); color: var(--text-2); font-size: 0.88rem; }
.osp-facts b { display: block; color: var(--text-1); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.osp-facts b.osp-up { color: var(--toast-positive-text); }
.osp-facts b.osp-down { color: var(--toast-negative-text); }

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

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

/* build-up chips, in the page's own two directions (colour is the direction, never Call or Put) */
.osp-chip { background: var(--sahi-bg-1); display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; border: 1px solid var(--border-soft); white-space: nowrap; }
.osp-chip.is-up { color: var(--toast-positive-text); }
.osp-chip.is-down { color: var(--toast-negative-text); }

@media (max-width: 900px) {
  section[id^="sp-"] .ocv-real__shot { justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  section[id^="sp-"] .ocv-real__shot img { max-width: none; flex: none; width: max(100%, calc(var(--real-w) * 0.7)); }
}
@media (max-width: 768px) {
  .content-main > hr.divider { margin: 28px 0; }
  .content-main > section[id^="sp-"] > h2 { margin: 0 0 14px; padding: 0 0 10px; }
  .content-main > section[id^="sp-"] > h3 { margin: 32px 0 10px; font-size: 1.15rem; }
  .content-main .callout-beginner { margin: 24px 0; padding: 18px; }
}
@media (max-width: 560px) {
  .osp-steps > li { padding: 14px; }
  .osp-steps > li::before { position: static; margin-bottom: 8px; }
}

/* ── 10-guide.css ── */
/* OI Spurts guide: reading aids, part openers, tables, figures on small screens, print. Tokens only. */

/* a section opens with the question it answers */
.osp-ask { margin: -4px 0 20px; color: var(--text-3); font-size: 1.02rem; font-style: italic; line-height: 1.5; }
.osp-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; }
.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.osp-term { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: var(--sahi-accent-ink); }
a.osp-term:hover { text-decoration-style: solid; }
a.osp-nv { color: var(--sahi-accent-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* jump list, first five minutes, route */
.osp-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 22px; }
.osp-jump__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-right: 4px; }
.osp-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; transition: transform .18s ease, border-color .18s ease; }
.osp-jump a:hover { border-color: var(--sahi-accent-ink); color: var(--sahi-accent-ink); transform: translateY(-1px); }
.osp-first5, .osp-route, .osp-primer, .osp-why { margin: 22px 0; padding: 16px 20px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); }
.osp-first5 { }
.osp-why { background: rgba(var(--ink-rgb), 0.03); font-size: 0.97rem; color: var(--text-2); }
.osp-why strong:first-child { color: var(--text-1); }
.osp-first5 > h3, .osp-route > h3, .osp-primer > h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--text-1); }
.osp-first5 ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.osp-first5 li { margin: 6px 0; }
.osp-route p, .osp-primer p { margin: 0 0 8px; color: var(--text-2); font-size: 0.98rem; }
.osp-primer dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px 22px; margin: 10px 0 0; }
.osp-primer dt { font-weight: 700; color: var(--text-1); }
.osp-primer dt a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.osp-primer dd { margin: 2px 0 8px; color: var(--text-2); font-size: 0.93rem; line-height: 1.5; }
.osp-risklist, .osp-check { padding-left: 22px; }
.osp-risklist li, .osp-check li { margin: 10px 0; color: var(--text-2); }

/* part openers (letter badge, title, promise, rail) */
.ospp-part { position: relative; display: grid; overflow: hidden; grid-template-columns: 92px minmax(0, 1fr) auto; grid-template-areas: "badge body thumbs" "rail rail rail"; gap: 22px 26px; align-items: center; margin: 64px 0 36px; padding: 28px 30px 20px; border: 1px solid var(--border-soft); border-radius: 22px; background: var(--osp-part-bg); color: var(--text-2); }
.ospp-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(--osp-grad-badge); background-color: var(--osp-solid); border: 1px solid var(--osp-badge-line); box-shadow: var(--osp-badge-shadow); }
.ospp-part__body { grid-area: body; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ospp-part__k { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sahi-cyan); }
.ospp-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; }
.ospp-part__ask { max-width: 58ch; font-size: 1rem; line-height: 1.55; color: var(--text-2); }
.ospp-part__meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.ospp-part__thumbs { grid-area: thumbs; display: flex; gap: 8px; align-items: center; }
.ospp-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); }
.ospp-rail { grid-area: rail; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px dashed rgba(var(--ink-rgb), 0.14); }
.ospp-rail::before { content: "Parts"; margin-right: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.ospp-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 .18s ease; }
.content-main .ospp-rail a.ospp-rail__i { text-decoration: none; color: var(--text-2); font-weight: 800; }
.content-main .ospp-rail a.ospp-rail__i:hover { color: var(--text-1); border-color: var(--osp-pink-line); background: var(--osp-pink-wash); transform: translateY(-2px); }
.ospp-rail__i.is-here { color: var(--on-accent); border-color: var(--osp-pink-edge); background: var(--osp-pink-fill); }
@media (max-width: 900px) {
  .ospp-part { grid-template-columns: 80px minmax(0, 1fr); grid-template-areas: "badge body" "thumbs thumbs" "rail rail"; padding: 24px 22px 18px; gap: 18px 20px; }
  .ospp-part__badge { width: 80px; height: 80px; border-radius: 22px; font-size: 3.1rem; }
  .ospp-part__thumbs { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ospp-part { grid-template-columns: 56px minmax(0, 1fr); margin: 44px 0 26px; padding: 18px 16px 14px; gap: 14px; border-radius: 18px; }
  .ospp-part__badge { width: 56px; height: 56px; border-radius: 16px; font-size: 2.2rem; }
  .ospp-part__title { font-size: 1.35rem; }
  .ospp-part__ask { font-size: 0.9375rem; }
  .ospp-part__thumb { width: 28vw; max-width: 28vw; height: 64px; }
  .ospp-rail__i { width: 40px; height: 40px; }
}

/* tables: a keyboard-reachable scroll region with an edge shadow */
.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; }
.guide-table-wrap a { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.osp-wide-table { min-width: 720px; }

/* figures: swipe hint, faded edge and Enlarge (phones and tablets); a little lift on hover */
.osp-swipe, .osp-zoom, .osp-pop { display: none; }
.osp-fig { transition: transform .25s ease, border-color .25s ease; }
@media (hover: hover) { .osp-fig:hover { transform: translateY(-2px); border-color: var(--border-glow); } }
@media (max-width: 900px) {
  .osp-wide .osp-swipe { display: inline-block; flex-basis: 100%; font-size: 0.82rem; color: var(--text-3); }
  .osp-wide .ocv-real__shot { position: relative; }
  .osp-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) {
    .osp-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; }
  }
  .osp-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; }
  .osp-pop::backdrop { background: rgba(21, 2, 11, 0.7); }
  .osp-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; }
  .osp-pop__img img { max-width: none !important; width: auto !important; height: auto !important; border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) { .osp-fig, .osp-jump a, .ospp-rail__i { transition: none; transform: none !important; } }
@media (max-width: 560px) {
  .osp-jump a { min-height: 44px; }
  .osp-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, .osp-jump, .osp-zoom, .osp-pop, .osp-swipe, .ocv-real__bar, .ospp-rail { display: none !important; }
  :root:root:root:root img.is-dark { display: none !important; }
  :root:root:root:root img.is-light { display: block !important; }
  .layout-wrapper { display: block !important; padding: 0 !important; }
  .section-block { break-inside: auto; margin: 0 0 10px !important; padding: 0 !important; }
  h2, h3 { break-after: avoid; }
  .ocv-real, .osp-ex, .callout-beginner, .guide-table-wrap tr, .ospp-part { break-inside: avoid; }
  .ocv-real__shot { display: block; overflow: visible; padding: 4px 0; }
  .ocv-real__shot img { max-width: 100% !important; max-height: 7cm; width: auto !important; height: auto !important; margin: 0 auto; }
  .ospp-part__thumbs { display: none; }
  .osp-pair { display: block; }
  .content-main p, .content-main li { font-size: 10pt !important; line-height: 1.45 !important; margin-bottom: 6px !important; }
  .divider { display: none !important; }
  .guide-table-wrap { overflow: visible; background: none; }
  .guide-table { min-width: 0; font-size: 0.8rem; }
  .osp-wide-table { min-width: 0; }
  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, .osp-first5, .osp-why, .ospp-part { background: #FFFFFF !important; box-shadow: none !important; }
}

/* ── 20-skin.css ── */
/* OI Spurts guide: the visual layer that matches the Option Chain, Options Scanner and Strategy Builder guides (hero strip, step cards,
   figure frames, callouts, the small motion that goes with them). Tokens only; the few translucent brand fills are the ones
   already declared in 10-guide.css (osp-pink-*). Motion is transform, opacity and stroke only, behind prefers-reduced-motion.
   Prefix: ospx- (hero), osp- (page), ospp- (part openers, in 10-guide.css). */
:root { --osp-tile: rgba(255, 255, 255, 0.025); --osp-hl-rgb: 169, 231, 240; --osp-sheen: rgba(255, 255, 255, 0.07); }
:root[data-theme="light"] { --osp-tile: #FFFFFF; --osp-hl-rgb: 165, 15, 102; --osp-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 > .ospp-part), .content-main > hr.divider:has(+ section > .ospx-hero) { display: none; }
.content-main > section[id^="sp-"] > h2 { margin: 0 0 22px; padding: 0 0 18px; }
.content-main > section[id^="sp-"] > 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^="sp-"] > 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^="sp-"] > h2 { position: relative; }
.content-main > section[id^="sp-"] > 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^="sp-"]:not(.aos-in) > h2::after { transform: scaleX(0); }
    .js .content-main > section[id^="sp-"] > 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 */
.osp-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 ═══ */
.ospx-hero { display: grid; gap: 18px; margin: 0 0 40px; padding: 22px 24px; border: 1px solid var(--border-soft); border-radius: 22px; background: var(--osp-part-bg); }
.ospx-learn__k, .ospp-part__k { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sahi-cyan); }
.ospx-learn ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ospx-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(--osp-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 .ospx-learn a { color: var(--text-1); text-decoration: none; }
.ospx-learn a:hover { transform: translateY(-2px); border-color: var(--osp-pink-line); background: var(--osp-pink-wash); }
.ospx-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ospx-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(--osp-tile); text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease; }
.content-main .ospx-nums a { color: var(--text-2); text-decoration: none; }
.ospx-nums a:hover { transform: translateY(-3px); border-color: rgba(var(--osp-hl-rgb), 0.5); }
.ospx-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; }
.ospx-nums span { font-size: 0.9rem; line-height: 1.35; color: var(--text-2); }
@media (max-width: 700px) { .ospx-hero { padding: 18px 16px; } .ospx-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ═══ 4. numbered step cards with a connecting progress line ═══ */
.osp-steps { gap: 18px; margin: 28px 0; }
.osp-steps > li { padding: 20px 22px 20px 70px; border-radius: 18px; background: var(--osp-tile); transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.osp-steps > li:hover { border-color: var(--osp-pink-line); }
.osp-steps > li::before { left: 18px; top: 20px; width: 36px; height: 36px; font-family: var(--font-display); font-size: 1.05rem; box-shadow: 0 0 0 5px rgba(165, 15, 102, 0.16); z-index: 1; }
/* the line runs from this step's number to the next one's, across the gap */
.osp-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 35px; top: 60px; bottom: -19px; width: 2px; background: linear-gradient(to bottom, var(--sahi-accent), rgba(var(--ink-rgb), 0.12)); transform-origin: top center; }
.osp-steps > li > h3 { font-size: 1.15rem; margin-bottom: 8px; }
@media (prefers-reduced-motion: no-preference) {
    .js .osp-steps > li[data-aos]:not(.aos-in)::after { transform: scaleY(0); }
    .js .osp-steps > li::after { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s; }
    .js .osp-steps > li[data-aos]:not(.aos-in)::before { transform: scale(0.6); }
    .js .osp-steps > li::before { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s; }
}
@media (max-width: 560px) {
    .osp-steps > li { padding: 16px; }
    .osp-steps > li::before { position: static; margin-bottom: 10px; }
    .osp-steps > li:not(:last-child)::after { display: none; }
}

/* ═══ 5. figure frames: the Option Chain guide's feel ═══ */
section[id^="sp-"] .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^="sp-"] .ocv-real__bar { padding: 11px 18px; background: rgba(var(--ink-rgb), 0.04); }
section[id^="sp-"] .ocv-real__tag { display: inline-flex; align-items: center; gap: 8px; }
section[id^="sp-"] .ocv-real__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sahi-cyan); box-shadow: 0 0 0 3px rgba(var(--osp-hl-rgb), 0.2); }
section[id^="sp-"] .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^="sp-"] .ocv-real__cap strong:first-child { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 999px; background: rgba(var(--osp-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^="sp-"] .ocv-real::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, var(--osp-sheen) 50%, transparent 62%); transform: translateX(-120%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    section[id^="sp-"] .ocv-real:hover { transform: translateY(-4px); border-color: rgba(var(--osp-hl-rgb), 0.4); box-shadow: 0 18px 48px rgba(var(--shade-ch), calc(0.34 * var(--k-shadow))); }
    section[id^="sp-"] .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); }
}

/* ═══ 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; }
.osp-why, .osp-first5, .osp-route, .osp-primer { border-radius: 14px; }
.osp-why { border-left-width: 4px; background: var(--osp-tile); }
.osp-first5 { background: var(--osp-tile); }
.osp-first5 > h3::before, .osp-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; }
.osp-why strong:first-child::before { background: var(--sahi-accent-ink); }
.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, print ═══ */
@media (prefers-reduced-motion: reduce) {
    .ospx-learn a, .ospx-nums a, .ocv-real, .osp-steps > li, .osp-ex, .osp-facts > li { transition: none !important; }
    .ospx-learn a:hover, .ospx-nums a:hover { transform: none; }
}
@media print {
    .ospx-hero { display: none !important; }
    .osp-steps > li::after, section[id^="sp-"] .ocv-real::after { display: none; }
}

/* the seven part letters stay on one row on a phone */
@media (max-width: 560px) { .ospp-rail { flex-wrap: nowrap; gap: 6px; } .ospp-rail::before { display: none; } .ospp-rail__i { flex: 1 1 0; width: auto; max-width: 44px; min-width: 36px; } }
/* at 480px and under the seven letters share the row instead of holding 36px each (at 320px the last letter was clipped) */
@media (max-width: 480px) { .ospp-rail { gap: 4px; } .ospp-rail__i { min-width: 0; } }
