/* ── 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 ── */
/* Strategy Builder 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^="sb-"] .ocv-real__tag { font-size: 0.8125rem; }
section[id^="sb-"] .ocv-real__shot { padding: 14px 12px; }

/* Numbered steps: one step, one figure */
.sbg-steps { list-style: none; counter-reset: sbg; margin: 22px 0; padding: 0; display: grid; gap: 14px; }
.sbg-steps > li { counter-increment: sbg; position: relative; padding: 16px 18px 16px 62px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); }
.sbg-steps > li::before { content: counter(sbg); 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); }
.sbg-steps > li > h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--text-1); }
.sbg-steps > li > p { margin: 0 0 10px; color: var(--text-2); }
.sbg-steps > li > p:last-child { margin-bottom: 0; }
.sbg-steps .ocv-real { margin: 14px 0 6px; }

/* "Look at" strip under a figure that needs a pointer to what matters */
.sbg-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; }
.sbg-look strong { color: var(--text-1); }

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

/* A worked example's header: what it is, in one row */
.sbg-ex { margin: 8px 0 22px; padding: 14px 18px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); }
.sbg-ex__head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-bottom: 8px; }
.sbg-ex__head h3 { margin: 0; font-size: 1.15rem; color: var(--text-1); }
.sbg-ex__tag { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sahi-cyan); }
.sbg-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; }
.sbg-facts > li { padding: 8px 10px; border-radius: 10px; background: rgba(var(--ink-rgb), 0.04); color: var(--text-2); font-size: 0.88rem; }
.sbg-facts b { display: block; color: var(--text-1); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.sbg-facts b.sbg-up { color: var(--toast-positive-text); }
.sbg-facts b.sbg-down { color: var(--toast-negative-text); }

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

/* Glossary and questions */
.sbg-gloss { display: grid; gap: 0; margin: 18px 0; }
.sbg-gloss dt { margin-top: 14px; font-weight: 700; color: var(--text-1); }
.sbg-gloss dd { margin: 4px 0 0; color: var(--text-2); }
.sbg-q { margin: 10px 0; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.sbg-q > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--text-1); }
.sbg-q > div { padding: 0 16px 14px; color: var(--text-2); }
.sbg-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^="sb-"] .ocv-real__shot { justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  section[id^="sb-"] .ocv-real__shot img { max-width: none; flex: none; width: max(100%, calc(var(--real-w) * 0.7)); }
}

/* Phone: steps lose their left gutter */
@media (max-width: 560px) {
  .sbg-steps > li { padding: 14px; }
  .sbg-steps > li::before { position: static; margin-bottom: 8px; }
}

/* ── 10-guide.css ── */
/* Strategy Builder 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 ─────────────────────────── */
.sbg-ask { margin: -4px 0 20px; color: var(--text-3); font-size: 1.02rem; font-style: italic; line-height: 1.5; }
.sbg-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.sbg-term { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: var(--sahi-accent-ink); }
a.sbg-term:hover { text-decoration-style: solid; }
a.sbg-nv { color: var(--sahi-accent-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ── jump list and route ──────────────────────────────────────────────────── */
.sbg-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 22px; }
.sbg-jump__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-right: 4px; }
.sbg-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; }
.sbg-jump a:hover { border-color: var(--sahi-accent-ink); color: var(--sahi-accent-ink); }

.sbg-first5, .sbg-route, .sbg-primer, .sbg-shapes { margin: 22px 0; padding: 16px 20px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); }
.sbg-first5 { }
.sbg-first5 > h3, .sbg-route > h3, .sbg-primer > h3, .sbg-shapes > h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--text-1); }
.sbg-first5 ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.sbg-first5 li { margin: 6px 0; }
.sbg-route p, .sbg-primer p { margin: 0 0 8px; color: var(--text-2); font-size: 0.98rem; }
.sbg-primer dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px 22px; margin: 10px 0 0; }
.sbg-primer dt { font-weight: 700; color: var(--text-1); }
.sbg-primer dt a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.sbg-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 */
.sbg-why { margin: 16px 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; }
.sbg-why strong:first-child { color: var(--text-1); }

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

/* ── the catalogue: sketch, shape, jump lists ─────────────────────────────── */
.sbg-shapes dl { margin: 0; display: grid; gap: 4px 16px; grid-template-columns: minmax(150px, max-content) 1fr; }
.sbg-shapes dt { font-weight: 700; color: var(--text-1); }
.sbg-shapes dd { margin: 0 0 6px; color: var(--text-2); }
.sbg-shapes a, .sbg-cat a { color: var(--sahi-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.sbg-cat td { vertical-align: middle; }
.sbg-cat tbody tr:target { background: var(--accent-wash); }
.sbg-sk-cell { width: 84px; min-width: 84px; padding-right: 4px !important; }
.sbg-sk { display: block; width: 44px; height: 26px; }
.sbg-sk__line { fill: none; stroke: var(--text-1); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.sbg-sk__line.is-model { stroke-dasharray: 3 2; stroke: var(--text-3); }
.sbg-sk__spot { stroke: var(--text-3); stroke-width: 0.8; stroke-dasharray: 2 2; }
.sbg-shape { font-weight: 600; color: var(--text-1) !important; white-space: nowrap; }

/* ── 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; }
.sbg-cat { min-width: 760px; }

/* ── figures: swipe hint, faded edge and Enlarge (phones and tablets) ────── */
.sbg-swipe, .sbg-zoom { display: none; }
.sbg-pop { display: none; }
@media (max-width: 900px) {
  .sbg-wide .sbg-swipe { display: inline-block; flex-basis: 100%; font-size: 0.82rem; color: var(--text-3); }
  .sbg-wide .ocv-real__shot { position: relative; }
  .sbg-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) {
    .sbg-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; }
  }
  .sbg-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; }
  .sbg-pop::backdrop { background: rgba(21, 2, 11, 0.7); }
  .sbg-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; }
  .sbg-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) {
  .sbg-jump a { min-height: 44px; }
  .sbg-q > summary { min-height: 44px; display: flex; align-items: center; }
  .sbg-shapes dl { grid-template-columns: 1fr; }
  .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, .sbg-jump, .sbg-zoom, .sbg-pop, .sbg-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, .sbg-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; }
  .sbg-pair { display: block; }
  .sbg-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; }
  .sbg-cat { 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, .trading-example, .feature-card, .sbg-first5, .sbg-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.sbg-nv, .sbg-cat a { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ── 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: sbp- (page), sbg- (earlier rules). */

:root {
    --sbp-pink-fill: rgba(165, 15, 102, 0.5);
    --sbp-pink-line: rgba(254, 163, 229, 0.5);
    --sbp-pink-edge: rgba(254, 163, 229, 0.55);
    --sbp-pink-wash: rgba(165, 15, 102, 0.2);
    --sbp-grad-badge: linear-gradient(150deg, rgba(165, 15, 102, 0.75), rgba(165, 15, 102, 0.18));
    --sbp-badge-line: rgba(254, 163, 229, 0.38);
    --sbp-badge-shadow: 0 10px 30px rgba(165, 15, 102, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    --sbp-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);
    --sbp-tile: rgba(255, 255, 255, 0.025);
    --sbp-solid: transparent;
    --sbp-hl-rgb: 169, 231, 240;
    --sbp-sheen: rgba(255, 255, 255, 0.07);
}
:root[data-theme="light"] {
    --sbp-pink-fill: #A50F66;
    --sbp-pink-line: rgba(165, 15, 102, 0.5);
    --sbp-pink-edge: #A50F66;
    --sbp-pink-wash: rgba(165, 15, 102, 0.1);
    --sbp-grad-badge: linear-gradient(150deg, #A50F66, #8A1157);
    --sbp-badge-line: rgba(165, 15, 102, 0.55);
    --sbp-badge-shadow: 0 10px 28px rgba(165, 15, 102, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    --sbp-part-bg: radial-gradient(120% 140% at 0% 0%, rgba(165, 15, 102, 0.1), transparent 55%), #FFFFFF;
    --sbp-tile: #FFFFFF;
    --sbp-solid: #A50F66;
    --sbp-hl-rgb: 165, 15, 102;
    --sbp-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 > .sbp-part), .content-main > hr.divider:has(+ section > .sbp-hero) { display: none; }
.content-main > section[id^="sb-"] > h2 { margin: 0 0 22px; padding: 0 0 18px; }
.content-main > section[id^="sb-"] > 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^="sb-"] > 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^="sb-"] > h2 { position: relative; }
.content-main > section[id^="sb-"] > 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^="sb-"]:not(.aos-in) > h2::after { transform: scaleX(0); }
    .js .content-main > section[id^="sb-"] > 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 */
.sbg-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 ═══ */
.sbp-hero { display: grid; gap: 18px; margin: 0 0 40px; padding: 22px 24px; border: 1px solid var(--border-soft); border-radius: 22px; background: var(--sbp-part-bg); }
.sbp-learn__k, .sbp-part__k { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sahi-cyan); }
.sbp-learn ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.sbp-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(--sbp-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 .sbp-learn a { color: var(--text-1); text-decoration: none; }
.sbp-learn a:hover { transform: translateY(-2px); border-color: var(--sbp-pink-line); background: var(--sbp-pink-wash); }
.sbp-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.sbp-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(--sbp-tile); text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease; }
.content-main .sbp-nums a { color: var(--text-2); text-decoration: none; }
.sbp-nums a:hover { transform: translateY(-3px); border-color: rgba(var(--sbp-hl-rgb), 0.5); }
.sbp-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; }
.sbp-nums span { font-size: 0.9rem; line-height: 1.35; color: var(--text-2); }
@media (max-width: 700px) { .sbp-hero { padding: 18px 16px; } .sbp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ═══ 3. part openers ═══ */
.sbp-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(--sbp-part-bg);
}
.content-main > section[id^="sb-"] > .sbp-part:first-child { margin-top: 24px; }
.sbp-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(--sbp-grad-badge); background-color: var(--sbp-solid); border: 1px solid var(--sbp-badge-line); box-shadow: var(--sbp-badge-shadow);
}
.sbp-part__body { grid-area: body; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sbp-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; }
.sbp-part__promise { max-width: 56ch; font-size: 1rem; line-height: 1.55; color: var(--text-2); }
.sbp-part__meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.sbp-part__meta > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px 2px; border-radius: 50%; background: var(--text-3); }
.sbp-part__thumbs { grid-area: thumbs; display: flex; gap: 8px; align-items: center; }
.sbp-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); }
.sbp-part__qs { grid-area: qs; border-top: 1px dashed rgba(var(--ink-rgb), 0.14); padding-top: 12px; }
.sbp-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); }
.sbp-part__qs > summary:hover { color: var(--text-1); }
.sbp-part__qs ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; color: var(--text-2); font-size: 0.95rem; }
.content-main .sbp-part__qs a { color: var(--text-2); text-decoration: none; }
.content-main .sbp-part__qs a:hover { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; }
.sbp-rail { grid-area: rail; display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px dashed rgba(var(--ink-rgb), 0.14); }
.sbp-rail::before { content: "Parts"; margin-right: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.sbp-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 .sbp-rail a.sbp-rail__i { text-decoration: none; color: var(--text-2); font-weight: 800; }
.content-main .sbp-rail a.sbp-rail__i:hover { transform: translateY(-2px); color: var(--text-1); border-color: var(--sbp-pink-line); background: var(--sbp-pink-wash); }
.sbp-rail__i.is-here { color: var(--on-accent); border-color: var(--sbp-pink-edge); background: var(--sbp-pink-fill); }
@media (prefers-reduced-motion: no-preference) {
    .sbp-part__badge { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
    .sbp-part:hover .sbp-part__badge { transform: rotate(-4deg) scale(1.05); }
    .js .sbp-part[data-aos]:not(.aos-in) .sbp-part__thumb { opacity: 0; transform: translateY(10px); }
    .sbp-part__thumb { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
    .sbp-part__thumb:nth-child(2) { transition-delay: 0.1s; }
    .sbp-part__thumb:nth-child(4) { transition-delay: 0.1s; }
    .sbp-part__thumb:nth-child(3), .sbp-part__thumb:nth-child(6) { transition-delay: 0.2s; }
}
@media (max-width: 900px) {
    .sbp-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; }
    .sbp-part__badge { width: 80px; height: 80px; border-radius: 22px; font-size: 3.1rem; }
    .sbp-part__thumbs { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .sbp-part { grid-template-columns: 56px minmax(0, 1fr); margin: 0 0 26px; padding: 18px 16px 14px; gap: 14px; border-radius: 18px; }
    .sbp-part__badge { width: 56px; height: 56px; border-radius: 16px; font-size: 2.2rem; }
    .sbp-part__title { font-size: 1.35rem; }
    .sbp-part__promise { font-size: 0.9375rem; }
    .sbp-part__thumb { width: 28vw; max-width: 28vw; height: 64px; }
    .sbp-rail { gap: 6px; padding-top: 12px; }
    .sbp-rail__i { width: 40px; height: 40px; }
    .sbp-part__qs > summary { min-height: 44px; }
}

/* ═══ 4. numbered step cards with a connecting progress line ═══ */
.sbg-steps { gap: 18px; margin: 28px 0; }
.sbg-steps > li { padding: 20px 22px 20px 70px; border-radius: 18px; background: var(--sbp-tile); transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.sbg-steps > li:hover { border-color: var(--sbp-pink-line); }
.sbg-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 */
.sbg-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; }
.sbg-steps > li > h3 { font-size: 1.15rem; margin-bottom: 8px; }
@media (prefers-reduced-motion: no-preference) {
    .js .sbg-steps > li[data-aos]:not(.aos-in)::after { transform: scaleY(0); }
    .js .sbg-steps > li::after { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s; }
    .js .sbg-steps > li[data-aos]:not(.aos-in)::before { transform: scale(0.6); }
    .js .sbg-steps > li::before { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s; }
}
@media (max-width: 560px) {
    .sbg-steps > li { padding: 16px; }
    .sbg-steps > li::before { position: static; margin-bottom: 10px; }
    .sbg-steps > li:not(:last-child)::after { display: none; }
}

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

/* ═══ 6. worked-example cards ═══ */
.sbg-ex { margin: 8px 0 26px; padding: 20px 22px; border-radius: 18px; background: var(--sbp-tile); transition: transform 0.3s ease, border-color 0.3s ease; }
.sbg-ex[data-view="bullish"] { border-left-color: var(--sahi-positive); }
.sbg-ex[data-view="bearish"] { border-left-color: var(--sahi-negative); }
.sbg-ex[data-view="neutral"] { border-left-color: var(--sahi-accent-ink); }
.sbg-ex[data-view="either-way"] { border-left-color: var(--sahi-cyan); }
.sbg-ex__top { display: flex; align-items: center; gap: 18px; }
.sbg-ex__sk { flex: none; display: grid; place-items: center; width: 96px; height: 60px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--real-frame); }
.sbg-ex__sk .sbg-sk { width: 76px; height: 44px; }
.sbg-ex__id { min-width: 0; flex: 1; }
.sbg-ex__head { margin-bottom: 8px; }
.sbg-ex__head h3 { font-size: 1.3rem; }
.sbg-ex__tag { padding: 2px 10px; border: 1px solid var(--border-soft); border-radius: 999px; background: rgba(var(--ink-rgb), 0.04); }
.sbg-legs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sbg-leg { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 11px; border: 1px solid var(--border-soft); border-radius: 999px; background: rgba(var(--ink-rgb), 0.03); color: var(--text-2); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.sbg-leg b { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sbg-leg--buy b { color: var(--toast-positive-text); }
.sbg-leg--sell b { color: var(--toast-negative-text); }
.sbg-leg i { font-style: normal; color: var(--text-3); font-size: 0.78rem; }
.sbg-facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr)); gap: 10px; margin-top: 16px; }
.sbg-facts > li { padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(var(--ink-rgb), 0.03); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.sbg-facts b { margin-top: 3px; font-size: 1.3rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .sbg-ex:hover { transform: translateY(-3px); } .sbg-facts > li { transition: transform 0.2s ease, border-color 0.2s ease; } .sbg-facts > li:hover { transform: translateY(-2px); border-color: var(--sbp-pink-line); } }
@media (max-width: 560px) { .sbg-ex { padding: 16px; } .sbg-ex__top { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* ═══ 7. the catalogue: filter chips, cards-like rows, sketches ═══ */
.sbg-fset { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.sbg-fset legend { float: left; margin: 0 8px 0 0; padding: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.sbg-fin { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sbg-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(--sbp-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; }
.sbg-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; }
.sbg-chip:hover { transform: translateY(-2px); border-color: var(--sbp-pink-line); }
.sbg-fin:checked + .sbg-chip { background: var(--sbp-pink-fill); border-color: var(--sbp-pink-edge); color: var(--on-accent); }
.sbg-fin:checked + .sbg-chip span { background: rgba(255, 255, 255, 0.22); color: var(--on-accent); }
.sbg-fin:focus-visible + .sbg-chip { outline: 2px solid var(--sahi-cyan); outline-offset: 3px; }
.sbg-fnote { margin: 12px 0 28px; color: var(--text-3); font-size: 0.85rem; }
.sbg-empty { display: none; margin: 18px 0; padding: 14px 18px; border: 1px dashed var(--border-soft); border-radius: 12px; color: var(--text-2); }
.sbg-filter { margin-bottom: 8px; }
/* the filter: pure CSS, a row stays unless a chosen chip rules it out */
.sbg-filter:has(#sbf-v-bullish:checked) .sbg-catview:not([data-view="bullish"]),
.sbg-filter:has(#sbf-v-bearish:checked) .sbg-catview:not([data-view="bearish"]),
.sbg-filter:has(#sbf-v-neutral:checked) .sbg-catview:not([data-view="neutral"]),
.sbg-filter:has(#sbf-v-either-way:checked) .sbg-catview:not([data-view="either-way"]) { display: none; }
.sbg-filter:has(#sbf-s-peak:checked) tbody tr:not([data-shape="peak"]),
.sbg-filter:has(#sbf-s-flat-top:checked) tbody tr:not([data-shape="flat-top"]),
.sbg-filter:has(#sbf-s-v:checked) tbody tr:not([data-shape="v"]),
.sbg-filter:has(#sbf-s-step-up:checked) tbody tr:not([data-shape="step-up"]),
.sbg-filter:has(#sbf-s-step-down:checked) tbody tr:not([data-shape="step-down"]),
.sbg-filter:has(#sbf-s-bell:checked) tbody tr:not([data-shape="bell"]),
.sbg-filter:has(#sbf-s-other:checked) tbody tr:not([data-shape="other"]) { display: none; }
/* a view with no row left under a shape drops its heading and table */
.sbg-filter:has(#sbf-s-peak:checked) .sbg-catview:not(:has(tr[data-shape="peak"])),
.sbg-filter:has(#sbf-s-flat-top:checked) .sbg-catview:not(:has(tr[data-shape="flat-top"])),
.sbg-filter:has(#sbf-s-v:checked) .sbg-catview:not(:has(tr[data-shape="v"])),
.sbg-filter:has(#sbf-s-step-up:checked) .sbg-catview:not(:has(tr[data-shape="step-up"])),
.sbg-filter:has(#sbf-s-step-down:checked) .sbg-catview:not(:has(tr[data-shape="step-down"])),
.sbg-filter:has(#sbf-s-bell:checked) .sbg-catview:not(:has(tr[data-shape="bell"])),
.sbg-filter:has(#sbf-s-other:checked) .sbg-catview:not(:has(tr[data-shape="other"])) { display: none; }
/* view and shape pairs that no strategy has */
.sbg-filter:has(#sbf-v-bullish:checked):has(#sbf-s-v:checked) .sbg-empty,
.sbg-filter:has(#sbf-v-bullish:checked):has(#sbf-s-step-down:checked) .sbg-empty,
.sbg-filter:has(#sbf-v-bearish:checked):has(#sbf-s-v:checked) .sbg-empty,
.sbg-filter:has(#sbf-v-neutral:checked):has(#sbf-s-v:checked) .sbg-empty,
.sbg-filter:has(#sbf-v-neutral:checked):has(#sbf-s-step-up:checked) .sbg-empty,
.sbg-filter:has(#sbf-v-neutral:checked):has(#sbf-s-step-down:checked) .sbg-empty,
.sbg-filter:has(#sbf-v-either-way:checked):has(:is(#sbf-s-peak, #sbf-s-flat-top, #sbf-s-step-up, #sbf-s-step-down, #sbf-s-bell):checked) .sbg-empty { display: block; }

.sbg-cat tbody tr { transition: background-color 0.2s ease; }
.sbg-cat tbody tr:hover { background: rgba(var(--ink-rgb), 0.05); }
.sbg-cat .sbg-sk-cell { width: 96px; min-width: 96px; }
.sbg-cat .sbg-sk { width: 64px; height: 38px; padding: 4px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--real-frame); box-sizing: content-box; transition: transform 0.25s ease; }
.sbg-cat tbody tr:hover .sbg-sk { transform: scale(1.08); }
.sbg-cat .sbg-shape { font-weight: 700; }
.sbg-shapes { border-radius: 18px; background: var(--sbp-tile); }
.sbg-shapes a { text-decoration: none; padding: 1px 8px; margin: 2px 2px 2px 0; display: inline-block; border: 1px solid var(--border-soft); border-radius: 999px; transition: transform 0.2s ease, border-color 0.2s ease; }
.sbg-shapes a:hover { transform: translateY(-2px); border-color: var(--sbp-pink-line); }
.sbg-shapes dd { line-height: 1.9; }

/* sketches draw themselves in once, when their card or table scrolls into view */
.sbg-sk__line { stroke-dashoffset: 0; transition: none; }
.sbg-sk__line:not(.is-model) { stroke-dasharray: none; }
.sbg-sk__line.is-model { stroke-dasharray: 3 2 !important; stroke-dashoffset: 0 !important; }
@keyframes sbp-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
    .js [data-aos].aos-in .sbg-sk__line:not(.is-model) { animation: sbp-draw 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
    .js [data-aos]:not(.aos-in) .sbg-sk__line:not(.is-model) { stroke-dasharray: 1; stroke-dashoffset: 1; }
}

/* ═══ 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; }
.sbg-why, .sbg-first5, .sbg-route, .sbg-primer, .sbg-look { border-radius: 14px; }
.sbg-why { border-left-width: 4px; background: var(--sbp-tile); }
.sbg-first5 { background: var(--sbp-tile); }
.sbg-first5 > h3::before, .sbg-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; }
.sbg-why strong:first-child::before { background: var(--sahi-accent-ink); }
.trading-example { border-radius: 14px; }
.sbg-risklist { list-style: none; padding-left: 0; display: grid; gap: 10px; counter-reset: sbr; }
.sbg-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(--sbp-tile); }
.sbg-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; }
.sbg-q { border-radius: 14px; transition: border-color 0.2s ease; }
.sbg-q:hover, .sbg-q[open] { border-color: var(--sbp-pink-line); }
.sbg-jump a { transition: transform 0.2s ease, border-color 0.2s ease; }
.sbg-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) {
    .sbg-chip, .sbp-learn a, .sbp-nums a, .sbg-ex, .sbg-leg, .sbg-facts > li, .ocv-real { transition: none !important; }
    .sbg-chip:hover, .sbp-learn a:hover, .sbp-nums a:hover, .sbg-shapes a:hover, .sbg-jump a:hover { transform: none; }
}
@media print {
    .sbp-hero, .sbg-fset, .sbg-fnote, .sbg-empty, .sbp-rail, .sbp-part__thumbs, .sbp-part__qs { display: none !important; }
    .sbp-part { display: block; padding: 8px 0; border: 0; background: none; margin: 0 0 8px; }
    .sbp-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; }
    .sbg-catview { display: block !important; }
    .sbg-catview tr { display: table-row !important; }
    .sbg-steps > li::after { display: none; }
    section[id^="sb-"] .ocv-real::after { display: none; }
    .sbg-ex { border-left-color: #15020B !important; }
    .sbg-sk__line { animation: none !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}
