/* Sci-fi Reality Check. Redstone design tokens (redstone-design skill); every rule is scoped
   to .scifi (element rules through :where) so the page can later sit inside a Webflow embed
   without leaking into the site navbar, as the compute-buildout page learnt in PR #17. */

:root {
  --sf-bg: #FFFFFF;
  --sf-soft: #F1F0EF;
  --sf-card: #FFFFFF;
  --sf-ink: #141414;
  --sf-gray: #3E3E42;
  --sf-faint: #9A9AA0;
  --sf-line: #DCDCE0;
  --sf-silver: #B9B9BE;
  --sf-red: #EF1734;
  --sf-sc-ink-l: .5;  /* OKLCH lightness of score text on the sliding scale: 4.5:1+ on the card */
  --sf-stage: #141414;
  --sf-on-stage: #FFFFFF;
  --sf-on-stage-2: #B9B9BE;
  --sf-stage-line: #3E3E42;
  --sf-tip-bg: #141414;
  --sf-tip-fg: #FFFFFF;
  --sf-logo-on-light: block;
  --sf-logo-on-dark: none;
  --sf-sans: 'Articulat CF', 'articulat-cf', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --sf-serif: 'IvyPresto Headline', 'ivypresto-headline', 'ivypresto-display', 'Iowan Old Style', Georgia, serif;
}

.scifi {
  background: var(--sf-bg);
  color: var(--sf-gray);
  font-family: var(--sf-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
:where(.scifi) *, :where(.scifi) *::before, :where(.scifi) *::after { box-sizing: border-box; }
.scifi :where(h1, h2, h3, h4, p, dl, dd, dt, ol, ul, li, figure, figcaption, label) { margin: 0; padding: 0; max-width: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; }
.scifi :where(a) { color: inherit; }
.scifi :where(button, select, input) { font: inherit; color: inherit; }
:where(.scifi) :focus-visible { outline: 2px solid var(--sf-red); outline-offset: 2px; }
/* Any display rule (ours, e.g. .sf-more's flex, or the site's) beats the browser's own [hidden]
   rule, so a hidden "Show more" stayed visible on Webflow. The artifact wrapper masked this. */
.scifi [hidden] { display: none !important; }

.sf-wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.sf-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.sf-kicker { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--sf-red); }
.sf-h1, .sf-h2 { color: var(--sf-ink); font-weight: 700; text-wrap: balance; }
.sf-h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.05; letter-spacing: -.025em; margin-top: 22px; max-width: 18ch; }
.sf-h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -.02em; margin-top: 10px; max-width: 26ch; }
.sf-h1 em, .sf-h2 em { font-family: var(--sf-serif); font-style: italic; font-weight: 300; letter-spacing: -.01em; }
.sf-rule { height: 1px; background: var(--sf-line); margin: 26px 0 28px; }
.sf-lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--sf-ink); font-weight: 500; max-width: 62ch; margin-bottom: 14px; }
.sf-dek { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--sf-gray); max-width: 62ch; }
.sf-body { font-size: 16px; line-height: 1.6; max-width: 68ch; margin-bottom: 28px; }
.sf-meta { font-size: 12px; letter-spacing: .02em; color: var(--sf-faint); margin-top: 22px; }
.sf-note, .sf-hint { font-size: 13px; color: var(--sf-gray); margin-top: 12px; }

/* ---------- Hero ---------- */
.sf-hero { padding-block: clamp(32px, 6vw, 72px) 40px; }
.sf-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sf-logo { height: 18px; width: auto; }
.sf-logo--on-light { display: var(--sf-logo-on-light); }
.sf-logo--on-dark { display: var(--sf-logo-on-dark); }
.sf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.sf-stat { display: flex; flex-direction: column; }
.sf-stat-n { font-size: clamp(38px, 4.4vw, 50px); font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--sf-ink); }
.sf-stat-n::after { content: ""; display: block; width: 34px; height: 3px; background: var(--sf-red); margin: 14px 0 12px; }
.sf-stat-s { font-size: 14px; line-height: 1.45; color: var(--sf-gray); max-width: 26ch; }

/* ---------- Filter bar ---------- */
.sf-filterbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--sf-nav-h, 0px)); z-index: 20; background: var(--sf-bg); border-bottom: 1px solid var(--sf-line); }
.sf-filterbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 12px; }
.sf-seg { display: inline-flex; flex-wrap: wrap; }
.sf-seg button { border: 1px solid var(--sf-line); background: var(--sf-bg); color: var(--sf-gray); font-size: 13px; font-weight: 500; padding: 7px 14px; cursor: pointer; margin-left: -1px; line-height: 1.3; }
.sf-seg button:first-child { margin-left: 0; }
.sf-seg button:hover { color: var(--sf-ink); }
.sf-seg button[aria-pressed="true"] { background: var(--sf-ink); border-color: var(--sf-ink); color: var(--sf-bg); position: relative; }
.sf-seg--small button { font-size: 12px; padding: 5px 11px; }
.sf-select { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.sf-select select { appearance: none; -webkit-appearance: none; border: 1px solid var(--sf-line); border-radius: 0; background: var(--sf-bg); font-size: 13px; font-weight: 500; padding: 7px 32px 7px 12px; cursor: pointer; line-height: 1.3; color: var(--sf-ink); }
.sf-select::after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--sf-gray); border-bottom: 1.5px solid var(--sf-gray); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sf-select-label { font-size: 13px; color: var(--sf-gray); }
.sf-count { font-size: 13px; color: var(--sf-gray); margin-left: auto; font-variant-numeric: tabular-nums; }
.sf-reset, .sf-linkbtn { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 500; color: var(--sf-ink); text-decoration: underline; text-decoration-color: var(--sf-red); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }

/* ---------- Sections ---------- */
.sf-section { padding-block: 64px 8px; }
.sf-section--soft { background: var(--sf-soft); padding-block: 64px 72px; margin-top: 64px; }
.sf-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 56px; align-items: start; }  /* medium left, the wider theme chart right (8 Oct copy doc) */
.sf-fig { min-width: 0; }
.sf-figcap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-bottom: 14px; }
.sf-figtitle { font-size: 15px; font-weight: 600; color: var(--sf-ink); }
.sf-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sf-gray); }
.sf-key { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 10px; }
.sf-key:first-child { margin-left: 0; }
.sf-key--now { background: var(--sf-ink); }
.sf-key--fut { background: var(--sf-red); }

/* ---------- Dumbbell ---------- */
.sf-dumbbell { --lab: minmax(150px, 34%); display: flex; flex-direction: column; }
.sf-dumbbell--compact { --lab: minmax(84px, 30%); }
.sf-db-axis, .sf-db-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); column-gap: 12px; align-items: center; }
.sf-db-axis { height: 22px; }
.sf-db-trackwrap { position: relative; height: 100%; min-height: 34px; }
.sf-db-axis .sf-db-trackwrap { min-height: 22px; }
.sf-db-scale { position: absolute; inset-block: 0; left: 38px; right: 38px; }
.sf-db-tick { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 11px; color: var(--sf-faint); font-variant-numeric: tabular-nums; }
.sf-db-row { width: 100%; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; min-height: 38px; }
.sf-db-label { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding-block: 6px; }
.sf-db-name { font-size: 14px; font-weight: 500; color: var(--sf-ink); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sf-db-n { font-size: 12px; color: var(--sf-faint); font-variant-numeric: tabular-nums; }
.sf-db-row:hover .sf-db-name, .sf-db-row[aria-pressed="true"] .sf-db-name { text-decoration-color: var(--sf-red); }
.sf-db-row[aria-pressed="true"] .sf-db-name { font-weight: 600; }
.sf-db-track { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--sf-line); }
.sf-db-line { position: absolute; top: 50%; height: 2px; transform: translateY(-50%); background: var(--sf-silver); }
.sf-db-line--bar { background: var(--sf-ink); }
.sf-db-row.is-dim .sf-db-line--bar { background: var(--sf-silver); }
.sf-db-dot { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%); outline: 2px solid var(--sf-bg); }
.sf-db-dot--now { background: var(--sf-ink); }
.sf-db-dot--fut { background: var(--sf-red); }
.sf-db-val { position: absolute; top: 50%; font-size: 13px; font-weight: 600; color: var(--sf-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sf-db-val--now { transform: translate(calc(-100% - 11px), -50%); }
.sf-db-val--fut { transform: translate(11px, -50%); }
.sf-db-none { position: absolute; top: 50%; left: 0; transform: translateY(-50%); font-size: 12px; color: var(--sf-faint); }
.sf-db-row.is-dim .sf-db-name { color: var(--sf-gray); }
.sf-db-row.is-dim .sf-db-dot--now, .sf-db-row.is-dim .sf-db-dot--fut { background: var(--sf-silver); }
.sf-db-row.is-dim .sf-db-val { color: var(--sf-faint); }

/* ---------- Scatter ---------- */
.sf-scatter { position: relative; width: 100%; }
.sf-scatter svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sf-sans); }
.sc-grid { stroke: var(--sf-line); stroke-width: 1; shape-rendering: crispEdges; }
.sc-tick { fill: var(--sf-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.sc-axis-label { fill: var(--sf-gray); font-size: 11px; }
.sc-dot { fill: var(--sf-ink); stroke: var(--sf-bg); stroke-width: 2; transition: transform .5s cubic-bezier(.2, .7, .2, 1), fill .2s; }
.sc-dot.is-fut { fill: var(--sf-red); }
.sc-dot.is-muted { fill: var(--sf-silver); }
.sc-dot.is-hover { stroke: var(--sf-ink); }
.sc-label { fill: var(--sf-ink); font-size: 12px; font-weight: 500; paint-order: stroke; stroke: var(--sf-bg); stroke-width: 4px; }
.sf-scatter.is-resizing .sc-dot { transition: none; }

/* ---------- Period averages ---------- */
.sf-periods-block { margin-top: 36px; }
.sf-periods-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.sf-stats--side { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 0; }
.sf-stats--side .sf-stat-n { font-size: clamp(30px, 3.2vw, 40px); }
.sf-stats--side .sf-stat-n::after { margin: 12px 0 10px; }
.sf-periods-block .sf-figtitle { display: block; margin-bottom: 10px; }
.sf-pb-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 32px; }
.sf-pb-label { display: flex; align-items: baseline; gap: 8px; }
.sf-pb-name { font-size: 14px; font-weight: 500; color: var(--sf-ink); }
.sf-pb-n { font-size: 12px; color: var(--sf-faint); font-variant-numeric: tabular-nums; }
.sf-pb-track { position: relative; height: 16px; margin-right: 72px; }
.sf-pb-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--sf-line); }
.sf-pb-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sf-ink); transition: width .5s cubic-bezier(.2, .7, .2, 1), background-color .2s; }
.sf-pb-bar.is-fut { background: var(--sf-red); }
.sf-pb-val { position: absolute; top: 50%; transform: translate(8px, -50%); font-size: 13px; font-weight: 600; color: var(--sf-ink); font-variant-numeric: tabular-nums; white-space: nowrap; transition: left .5s cubic-bezier(.2, .7, .2, 1); }

.sf-tip { position: fixed; z-index: 50; max-width: 260px; padding: 10px 12px; background: var(--sf-tip-bg); color: var(--sf-tip-fg); font-size: 13px; line-height: 1.4; pointer-events: none; }
.sf-tip strong { display: block; font-weight: 600; font-size: 14px; }
.sf-tip span { display: block; opacity: .75; font-size: 12px; }

/* ---------- Catalogue ---------- */
.sf-cat-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 24px; }
.sf-search { flex: 1 1 280px; max-width: 420px; }
.sf-search input { width: 100%; border: 1px solid var(--sf-line); border-radius: 0; background: var(--sf-card); padding: 9px 12px; font-size: 14px; color: var(--sf-ink); }
.sf-search input::placeholder { color: var(--sf-faint); }
.sf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sf-card { background: var(--sf-card); cursor: pointer; }
.sf-card-in { display: grid; height: 100%; }
.sf-face { grid-area: 1 / 1; display: flex; flex-direction: column; padding: 22px 20px 18px; min-width: 0; }
.sf-face[inert] { display: none; }
.sf-card-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 12px; color: var(--sf-gray); letter-spacing: .01em; padding-right: calc(var(--sf-builders-n, 0) * 34px); }
.sf-card-top { position: relative; }
/* Company logo tiles, top right. White in both themes: most marks are drawn for a light page. */
.sf-builders { position: absolute; top: -6px; right: 0; display: flex; gap: 6px; }
.sf-builder { display: block; width: 28px; height: 28px; padding: 3px; background: #fff; outline: 1px solid var(--sf-line); outline-offset: -1px; }
.sf-builder:hover { outline-color: var(--sf-red); }
.sf-builder:focus-visible { outline: 2px solid var(--sf-red); outline-offset: 1px; }
.sf-builder img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sf-card-theme { color: var(--sf-faint); margin-left: auto; text-align: right; }
.sf-card-head { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.sf-card-head--text { display: block; }
.sf-poster { width: 80px; aspect-ratio: 2 / 3; background: var(--sf-soft); overflow: hidden; }
.sf-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sf-poster--none { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; line-height: 1.2; color: var(--sf-faint); padding: 4px; }
.sf-flags { display: inline-flex; gap: 4px; vertical-align: -1px; }
.sf-flag { display: block; width: 16px; height: 12px; object-fit: cover; outline: 1px solid var(--sf-line); }
.sf-card-title { font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--sf-ink); margin-top: 10px; letter-spacing: -.01em; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sf-card:hover .sf-card-title { text-decoration-color: var(--sf-red); }
.sf-card-credits { font-size: 13px; line-height: 1.45; color: var(--sf-ink); margin-top: 6px; }
.sf-credit { display: block; }
.sf-credit-k { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sf-faint); margin-right: 6px; }
.sf-name { white-space: nowrap; }
.sf-card-el { font-size: 14px; line-height: 1.5; color: var(--sf-gray); margin-top: 12px; flex: 1; }
/* Score colour on a sliding scale, dark red at 0% through orange at 50% to dark green at 100%
   (the workbook's "Colour" row, 8 Oct 2026). scifi.js sets the hue (--sc-h) and the bar's
   lightness (--sc-l) per card; text keeps one lightness so it always reads. */
.sf-card { --sc: oklch(var(--sc-l, .6) .16 var(--sc-h, 55)); --sc-ink: oklch(var(--sf-sc-ink-l) .15 var(--sc-h, 55)); }
@supports not (color: oklch(0 0 0)) { .sf-card { --sc: var(--sf-gray); --sc-ink: var(--sf-ink); } }
.sf-score-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 20px; }
.sf-score-now { font-size: 34px; font-weight: 600; color: var(--sc-ink); letter-spacing: -.02em; line-height: 1; }
.sf-score-now small { font-size: 13px; font-weight: 500; color: var(--sf-gray); letter-spacing: 0; margin-left: 6px; }
.sf-swatch { display: inline-block; width: 14px; height: 8px; margin-right: 6px; }
.sf-meter { position: relative; height: 6px; background: var(--sf-line); margin-top: 10px; container-type: inline-size; }
.sf-meter i { position: absolute; inset-block: 0; left: 0; }
/* The fill is the colour scale (--sf-scale, from scifi.js) sized to the whole track, so each point
   of the bar shows the colour of that percentage; without it, the score's own colour. */
.sf-meter .now { background: var(--sf-scale, var(--sc)) 0 0 / 100cqw 100% no-repeat; }
.sf-band { font-size: 13px; font-weight: 600; color: var(--sc-ink); white-space: nowrap; }
.sf-band .sf-swatch { background: var(--sc); }
.sf-subs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; margin-top: 8px; font-size: 12px; color: var(--sf-gray); }
.sf-sub b { font-weight: 600; color: var(--sf-ink); font-variant-numeric: tabular-nums; }
.sf-part + .sf-part { margin-top: 6px; }
.sf-techs { list-style: none; margin-top: 8px; font-size: 13px; line-height: 1.4; }
.sf-tech { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding-block: 6px; border-top: 1px solid var(--sf-line); }
.sf-tech-name { color: var(--sf-ink); }
.sf-tech-v { font-weight: 600; color: var(--sf-ink); font-variant-numeric: tabular-nums; text-align: right; }
.sf-tech-why { grid-column: 1 / -1; font-size: 12px; color: var(--sf-gray); }
.sf-flag-text { font-size: 11px; font-weight: 500; }
.sf-who { font-weight: 500; }
.sf-card-foot { display: flex; justify-content: flex-start; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--sf-line); font-size: 12px; color: var(--sf-gray); }
.sf-flip { background: none; border: 0; padding: 0; font-size: 12px; font-weight: 600; color: var(--sf-ink); cursor: pointer; white-space: nowrap; }
.sf-back-k { font-size: 12px; font-weight: 600; color: var(--sf-red); letter-spacing: .02em; }
.sf-back-title { font-size: 15px; font-weight: 600; color: var(--sf-ink); margin-top: 6px; }
.sf-back-text { font-size: 13.5px; line-height: 1.5; color: var(--sf-gray); margin-top: 10px; }
.sf-back-text strong { font-weight: 600; color: var(--sf-ink); }
.sf-back-sub { font-size: 12px; font-weight: 600; color: var(--sf-ink); margin-top: 14px; }
.sf-back-links { font-size: 12px; color: var(--sf-gray); margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sf-back-links a, .sf-who a { text-decoration: underline; text-decoration-color: var(--sf-line); text-underline-offset: 3px; }
.sf-back-links a:hover, .sf-who a:hover { text-decoration-color: var(--sf-red); }
.sf-back-actions { display: flex; gap: 18px; margin-top: 14px; align-items: center; }
.sf-share-url { flex: 1; min-width: 0; font-size: 12px; border: 1px solid var(--sf-line); background: var(--sf-card); color: var(--sf-ink); padding: 4px 6px; }
.sf-empty { font-size: 15px; color: var(--sf-gray); padding-block: 24px; }
.sf-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 32px; }
.sf-sentinel { width: 100%; height: 1px; }
.sf-more-count { font-size: 13px; color: var(--sf-gray); font-variant-numeric: tabular-nums; }
.sf-btn { display: inline-block; border: 1px solid var(--sf-ink); background: var(--sf-card); color: var(--sf-ink); font-size: 14px; font-weight: 600; padding: 12px 22px; cursor: pointer; text-decoration: none; letter-spacing: .01em; }
.sf-btn:hover { background: var(--sf-ink); color: var(--sf-bg); }

/* ---------- Frontier (ink stage) ---------- */
.sf-stage { background: var(--sf-stage); color: var(--sf-on-stage-2); padding-block: 72px 80px; }
.sf-stage .sf-h2 { color: var(--sf-on-stage); }
.sf-stage .sf-rule { background: var(--sf-stage-line); }
.sf-rows { list-style: none; margin-bottom: 36px; }
.sf-row { display: grid; grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 8px 24px; align-items: baseline; padding-block: 20px; border-bottom: 1px solid var(--sf-stage-line); }
.sf-row-i { font-size: 13px; font-weight: 700; color: var(--sf-red); font-variant-numeric: tabular-nums; }
.sf-row-name { font-size: 20px; font-weight: 600; color: var(--sf-on-stage); line-height: 1.25; }
.sf-row-gloss { display: block; font-size: 14px; font-weight: 400; color: var(--sf-on-stage-2); margin-top: 4px; }
.sf-row-ev { font-size: 14px; line-height: 1.5; color: var(--sf-on-stage-2); }
.sf-row-v { font-size: 20px; font-weight: 600; color: var(--sf-on-stage); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sf-row-v small { display: block; font-size: 12px; font-weight: 400; color: var(--sf-on-stage-2); text-align: right; }
.sf-stage .sf-body { color: var(--sf-on-stage-2); }
.sf-btn--on-stage { background: var(--sf-on-stage); color: #141414; border-color: var(--sf-on-stage); }
.sf-btn--on-stage:hover { background: transparent; color: var(--sf-on-stage); }

/* ---------- Method ---------- */
.sf-method { padding-block: 56px 64px; }
.sf-method .sf-body { margin-top: 12px; margin-bottom: 0; font-size: 15px; }
.sf-credit-logo { height: 10px; width: auto; vertical-align: 0; margin-left: 6px; }

/* ---------- Narrow ---------- */
/* Two cards per row once three would be narrower than ~345px: below that, title and credits
   no longer fit beside the poster and alignCards() opens gaps under it (up to 58px at 1024). */
@media (max-width: 1160px) {
  .sf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sf-duo { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .sf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .sf-periods-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sf-stats--side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .sf-row-ev { grid-column: 2 / -1; }
}
@media (max-width: 560px) {
  .sf-cards { grid-template-columns: minmax(0, 1fr); }
  .sf-dumbbell, .sf-dumbbell--compact { --lab: minmax(0, 1fr); }
  .sf-db-axis, .sf-db-row { grid-template-columns: minmax(0, 1fr); }
  .sf-db-axis .sf-db-spacer { display: none; }
  .sf-db-label { padding-block: 8px 0; }
  .sf-count { margin-left: 0; width: 100%; }
  .sf-pb-row { grid-template-columns: 112px minmax(0, 1fr); }
  .sf-row-name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-dot, .sf-pb-bar, .sf-pb-val { transition: none; }
}
