:root {
  --guide-bg: #f4f7fb;
  --guide-surface: #ffffff;
  --guide-surface-soft: #eef3f9;
  --guide-ink: #122033;
  --guide-ink-soft: #31465f;
  --guide-ink-muted: #5d7188;
  --guide-dusk: #18324f;
  --guide-dusk-deep: #10253d;
  --guide-slate: #d8e4f1;
  --guide-line: rgba(24, 50, 79, 0.14);
  --guide-line-strong: rgba(24, 50, 79, 0.28);
  --guide-accent: #3f78aa;
  --guide-accent-soft: rgba(63, 120, 170, 0.12);
  --guide-shadow: 0 22px 48px rgba(16, 37, 61, 0.12);
  --guide-shadow-soft: 0 10px 24px rgba(16, 37, 61, 0.08);
  --guide-radius: 18px;
  --guide-radius-sm: 12px;
  --guide-measure: 68ch;
}

body.guide-shell {
  background:
    radial-gradient(circle at top right, rgba(63, 120, 170, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--guide-bg) 18%, #eef3f8 100%);
  color: var(--guide-ink);
}

.guide-main {
  padding: 1.5rem 0 2.25rem;
}

.guide-frame {
  display: grid;
  gap: 0.8rem;
}

/* Grid items default to min-width: auto, so one wide visual block could size
   the whole frame to its min-content and push the page ~35px past a 320px
   viewport (seen on /library/what-peptides-actually-are/). Letting the tracks
   shrink keeps every guide inside the viewport; the visual itself scrolls. */
.guide-frame > *,
.guide-article > *,
.guide-hero > * {
  min-width: 0;
}

.guide-breadcrumbs {
  color: var(--guide-ink-muted);
  font: 600 0.82rem/1.4 "Archivo", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.guide-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--guide-ink-muted);
}

.guide-breadcrumbs a {
  /* Breadcrumb links are standalone nav: hold each to the 44px tap floor with
     padding rather than shrinking the face. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.5rem;
  color: inherit;
}

.guide-article {
  display: grid;
  gap: 0.95rem;
}

.guide-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.9fr);
  align-items: start;
}

.guide-hero__copy,
.guide-panel,
.guide-prose,
.guide-pagination {
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius);
  box-shadow: var(--guide-shadow-soft);
}

.guide-hero__copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
  padding: 1.2rem;
}

.guide-return,
.guide-panel a,
.guide-breadcrumbs a,
.guide-prose a,
.guide-pagination a {
  color: var(--guide-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.guide-return {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.5rem;
  margin-bottom: 0.85rem;
  font: 700 0.84rem/1.3 "Archivo", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-path-marker,
.guide-panel-label,
.guide-position-badge,
.guide-topic {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-path-marker {
  margin: 0 0 0.85rem;
  color: var(--guide-dusk);
}

.guide-hero h1 {
  margin: 0;
  color: var(--guide-dusk-deep);
  font: 700 clamp(1.9rem, 2.7vw, 2.65rem)/1.08 "Fraunces", Georgia, serif;
}

.guide-dek {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--guide-ink-soft);
  font: 400 clamp(1rem, 1.15vw, 1.08rem)/1.6 "Plus Jakarta Sans", system-ui, sans-serif;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: start;
  margin-top: 1.05rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--guide-line);
}

.guide-topic {
  margin: 0;
  color: var(--guide-ink-muted);
}

.guide-authorship p {
  margin: 0.1rem 0;
  color: var(--guide-ink-soft);
  font: 500 0.95rem/1.55 "Archivo", system-ui, sans-serif;
}

.guide-panel {
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF4FA 100%);
  color: var(--guide-ink);
  padding: 1.05rem;
  box-shadow: var(--guide-shadow-soft);
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius);
}

.guide-panel--quiet {
  background: linear-gradient(180deg, rgba(24, 50, 79, 0.06), rgba(24, 50, 79, 0.02));
  color: var(--guide-ink-soft);
  box-shadow: none;
}

.guide-panel--quiet p {
  margin: 0;
}

.guide-panel-label {
  margin: 0 0 0.4rem;
  color: var(--guide-accent);
}

.guide-panel-title {
  margin: 0;
  color: var(--guide-dusk-deep);
  font: 700 1.35rem/1.18 "Fraunces", Georgia, serif;
}

.guide-panel-copy {
  margin: 0.85rem 0 0;
  color: var(--guide-ink-soft);
  font: 400 0.98rem/1.65 "Plus Jakarta Sans", system-ui, sans-serif;
}

.guide-position-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.guide-position-badge {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--guide-line-strong);
  border-radius: 999px;
  background: var(--guide-surface);
  color: var(--guide-dusk-deep);
  font-weight: 700;
}

.guide-prerequisites {
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--guide-line-strong);
  border-radius: var(--guide-radius-sm);
  background: linear-gradient(180deg, rgba(63, 120, 170, 0.08), rgba(255, 255, 255, 0.92));
}

.guide-prerequisites h2 {
  margin: 0 0 0.45rem;
  color: var(--guide-dusk);
  font: 700 1.02rem/1.2 "Fraunces", Georgia, serif;
}

.guide-prerequisites p {
  margin: 0;
  color: var(--guide-ink-soft);
}

.guide-prose {
  background: rgba(255, 255, 255, 0.98);
  padding: clamp(1rem, 1.5vw, 1.45rem);
}

.guide-prose > * {
  max-width: var(--guide-measure);
}

.guide-prose > * + * {
  margin-top: 0.85rem;
}

.guide-prose h2,
.guide-prose h3,
.guide-prose h4,
.guide-prose h5,
.guide-prose h6 {
  margin-bottom: 0.35rem;
  color: var(--guide-dusk-deep);
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.18;
}

.guide-prose h2 {
  margin-top: 1.6rem;
  font-size: clamp(1.4rem, 1.8vw, 1.72rem);
}

.guide-prose h3 {
  margin-top: 1.35rem;
  font-size: 1.3rem;
}

.guide-prose .ba-visual {
  scroll-margin-top: calc(var(--nav-h) + 0.75rem);
}

.guide-prose .ba-visual :where(p, li, blockquote, code, a) {
  overflow-wrap: break-word;
}

.ba-visual .ba-visual-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.ba-visual .ba-visual-metric-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

@media (max-width: 820px) {
  .ba-visual .ba-visual-metric-grid,
  .ba-visual .ba-visual-metric-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

.guide-prose p,
.guide-prose li,
.guide-prose blockquote,
.guide-prose td,
.guide-prose th {
  color: var(--guide-ink);
  font: 400 1rem/1.72 "Archivo", system-ui, sans-serif;
}

.guide-prose ul,
.guide-prose ol {
  padding-left: 1.3rem;
}

.guide-prose li + li {
  margin-top: 0.5rem;
}

.guide-prose blockquote {
  margin-left: 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--guide-accent);
  border-radius: 0 var(--guide-radius-sm) var(--guide-radius-sm) 0;
  background: linear-gradient(180deg, rgba(24, 50, 79, 0.06), rgba(63, 120, 170, 0.04));
  color: var(--guide-ink-soft);
}

.guide-prose hr {
  max-width: 14rem;
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--guide-line-strong);
}

.guide-prose code {
  padding: 0.15rem 0.35rem;
  border-radius: 0.4rem;
  background: rgba(24, 50, 79, 0.08);
  color: var(--guide-dusk-deep);
  font: 600 0.92rem/1.3 "Archivo", system-ui, sans-serif;
}

.guide-prose pre {
  overflow-x: auto;
  padding: 0.85rem 1rem;
  border-radius: var(--guide-radius-sm);
  background: var(--guide-dusk-deep);
  color: #f5f8fc;
}

.guide-prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.guide-prose th,
.guide-prose td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--guide-line);
  text-align: left;
}

.guide-prose th {
  background: var(--guide-surface-soft);
  color: var(--guide-dusk-deep);
}

.guide-prose img,
.guide-prose iframe {
  max-width: 100%;
}

.guide-prose :where(p, li, blockquote, code, a, h2, h3, h4, h5, h6) {
  overflow-wrap: anywhere;
}

.guide-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--guide-surface);
}

.guide-nav-link,
.guide-nav-empty {
  flex: 1 1 0;
}

.guide-nav-link:last-child {
  text-align: right;
  justify-content: flex-end;
}

.guide-nav-link {
  /* Prev/next links are standalone nav rows: lift them to the 44px tap floor.
     display:flex lets justify-content keep the "next" link right-aligned where
     text-align no longer applies. */
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.5rem;
  color: var(--guide-dusk-deep);
  font: 700 0.92rem/1.5 "Archivo", system-ui, sans-serif;
}

.guide-nav-link:focus-visible,
.guide-return:focus-visible,
.guide-panel a:focus-visible,
.guide-breadcrumbs a:focus-visible,
.guide-prose a:focus-visible {
  outline: 2px solid var(--guide-accent);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .guide-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .guide-main {
    padding-top: 1.5rem;
  }

  .guide-hero__copy,
  .guide-panel,
  .guide-prose,
  .guide-pagination {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .guide-pagination {
    flex-direction: column;
  }

  .guide-nav-link:last-child {
    text-align: left;
    justify-content: flex-start;
  }
}

/* Peptides mechanism console: keep label/value rows readable inside a phone
   viewport without undoing the guide grid's min-width: 0 overflow fix. */
@media (max-width: 520px) {
  .guide-prose .ba-visual .pk-console .pk-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body.guide-shell {
    background: #fff;
  }

  .site-header,
  .shell-navbar,
  .shell-footer,
  .guide-pagination {
    display: none;
  }

  .guide-prose,
  .guide-panel,
  .guide-hero__copy {
    box-shadow: none;
    border-color: #c9d2dd;
  }
}

/* ==========================================================================
   Magazine feature skin (Batch B0)

   The guide page is now a magazine feature: a full-bleed hero, a sticky
   chapter bar, a stat band, chapter art, and a next-in-path band, with a calm
   reading measure in between. This layer maps the guide-* hooks the renderer
   and the tests own onto the shared components in shared/magazine.css. It is
   appended, so every rule below can be read as "what changed" against the
   Restrained Athletic Depth skin above it.
   ========================================================================== */

/* Paper ground; the magazine bands carry the color now. */
body.guide-shell {
  background: #ffffff;
  color: var(--mag-ink, var(--lt-ink, #0b1220));
}

.guide-main {
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.guide-frame {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.guide-article {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* Hero copy sits over the art, so it reads from the shared hero type scale. */
.mag-hero .guide-breadcrumbs {
  margin-bottom: 1.1rem;
  color: var(--mag-ink-muted, #4c5567);
}

.mag-hero .guide-breadcrumbs li:not(:last-child)::after {
  color: var(--mag-ink-muted, #4c5567);
}

.mag-hero .guide-path-marker {
  margin: 0 0 0.7rem;
  color: var(--mag-accent, #0056e2);
}

.mag-hero .guide-meta {
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--mag-line, rgba(11, 18, 32, 0.12));
}

.mag-hero .guide-topic {
  color: var(--mag-ink-muted, #4c5567);
}

.mag-hero .guide-authorship p {
  color: var(--mag-ink-body, #2c3444);
}

.mag-hero .guide-return {
  color: var(--mag-accent, #0056e2);
}

.mag-hero .guide-dek {
  max-width: 40ch;
}

/* Curriculum-position panel becomes a quiet strip above the prose. */
.guide-panel--path {
  background: var(--mag-wash, #eef3f9);
  border: 1px solid var(--mag-line, rgba(11, 18, 32, 0.12));
  border-left: 4px solid var(--mag-accent-bright, #0061fd);
  border-radius: 2px;
  box-shadow: none;
}

.guide-panel--path .guide-panel-title,
.guide-panel--path .guide-position-badge {
  color: var(--mag-ink, #0b1220);
}

.guide-panel--path .guide-position-badge {
  background: #ffffff;
  border-color: var(--mag-line-strong, rgba(11, 18, 32, 0.22));
}

.guide-panel--path .guide-panel-copy {
  color: var(--mag-ink-body, #2c3444);
}

.guide-prerequisites {
  background: var(--mag-tint, #edf6fe);
  border: 1px solid var(--mag-line, rgba(11, 18, 32, 0.12));
  border-radius: 2px;
}

.guide-prerequisites h2 {
  color: var(--mag-accent, #0056e2);
}

/* The reading column: no card, just measure. Wide media breaks the measure. */
.guide-prose {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.guide-prose > .ba-visual,
.guide-prose > .mag-figure,
.guide-prose > .mag-statband,
.guide-prose > .guide-figure {
  max-width: none;
}

/* Center the measured column; the wide media blocks above stay full width.
   A fixed 44rem keeps the lede, body copy, and the article panels on one
   shared left/right edge (a ch-based measure drifts when the lede is larger). */
.guide-prose > * {
  max-width: min(100%, 44rem);
  margin-inline: auto;
}

.guide-article > .guide-panel,
.guide-article > .guide-prerequisites,
.guide-article > .guide-disclosure,
.guide-article > .guide-pagination {
  width: 100%;
  max-width: min(100%, 44rem);
  margin-inline: auto;
}

.guide-prose h2,
.guide-prose h3 {
  font-family: var(--mag-display, "Fraunces", Georgia, serif);
  color: var(--mag-ink, #0b1220);
}

.guide-prose h2 {
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.14;
  scroll-margin-top: calc(var(--nav-h, 74px) + 4rem);
}

.guide-prose h2:first-of-type {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Drop-cap lede: the first paragraph of the feature. */
.guide-prose .mag-lede {
  color: var(--mag-ink-body, #2c3444);
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.7;
}

.guide-prose .mag-lede::first-letter {
  float: left;
  margin: 0.06em 0.09em 0 0;
  color: var(--mag-accent-bright, #0061fd);
  font-family: var(--mag-display, "Fraunces", Georgia, serif);
  font-size: 3.1em;
  font-weight: 700;
  line-height: 0.82;
}

/* Pull quote: a markdown blockquote becomes the centered display line. */
.guide-prose blockquote {
  max-width: 26em;
  margin: clamp(1.9rem, 4vw, 2.9rem) auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--mag-ink, #0b1220);
  font: 600 clamp(1.3rem, 2.4vw, 1.8rem) / 1.35 var(--mag-display, "Fraunces", Georgia, serif);
  text-align: center;
}

.guide-prose blockquote::before {
  content: "\201C";
  display: block;
  margin-bottom: 0.15rem;
  color: var(--mag-accent-bright, #0061fd);
  font-size: 2.4em;
  line-height: 0.4;
}

.guide-prose blockquote p {
  color: inherit;
  font: inherit;
}

/* Next-in-path band, light theme with an accent rule. */
.guide-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--mag-line, rgba(11, 18, 32, 0.12));
  border-top: 3px solid var(--mag-accent-bright, #0061fd);
  border-radius: 2px;
  background: var(--mag-tint, #edf6fe);
  box-shadow: none;
}

.guide-nav-link {
  color: var(--mag-accent, #0056e2);
  font: 700 0.98rem/1.45 var(--mag-body, "Archivo", system-ui, sans-serif);
}

.guide-nav-empty {
  flex: 1 1 0;
}

.guide-disclosure.guide-panel--quiet {
  background: var(--mag-wash, #eef3f9);
  border: 1px solid var(--mag-line, rgba(11, 18, 32, 0.12));
  border-radius: 2px;
}

@media (max-width: 640px) {
  .mag-hero__copy {
    padding-block: 1.5rem 1.75rem;
  }

  .guide-prose .mag-lede::first-letter {
    font-size: 2.6em;
  }
}

/* ==========================================================================
   Chapter teaching overlays (data-driven)
   --------------------------------------------------------------------------
   Emitted by _render_chapter_figure from data/guide-heroes/<slug>.json. Two
   overlay types ship: prime-mover markers pinned over a photo, and a three-step
   progression rail. The markers are letters, never an ordered 1-2-3 ladder, so
   the overlay cannot imply a cross-muscle firing order. Everything is real
   HTML/CSS, no SVG; chip positions arrive as --chip-x / --chip-y custom
   properties from the fragment. The .strength-* namespace is inert on any guide
   that authors no overlay.
   ========================================================================== */

.mag-figure__frame .strength-chips {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.strength-chip {
  position: absolute;
  left: var(--chip-x, 50%);
  top: var(--chip-y, 50%);
  display: block;
  width: 0;
  height: 0;
}

.strength-chip__marker {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--mag-accent-bright, #0061fd);
  border: 2px solid var(--mag-accent-bright, #0061fd);
  box-shadow: 0 2px 9px rgba(6, 12, 34, 0.45);
  font: 800 0.9rem/1 var(--mag-mono, "JetBrains Mono", monospace);
  font-style: normal;
  transform: translate(-50%, -50%);
}

.strength-chip__label {
  display: none;
  position: absolute;
  top: 0;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(6, 12, 34, 0.86);
  color: #dbeafe;
  font: 700 0.68rem/1.2 var(--mag-mono, "JetBrains Mono", monospace);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(-50%);
}

.strength-chip--label-right .strength-chip__label {
  left: 1.15rem;
}

.strength-chip--label-left .strength-chip__label {
  right: 1.15rem;
}

/* Region labels crowd the tiny 390px frame; the legend carries that text there. */
@media (min-width: 620px) {
  .strength-chip__label {
    display: block;
  }
}

.strength-legend {
  margin: 0.85rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--mag-tint, #edf6fe);
  border-left: 3px solid var(--mag-accent-bright, #0061fd);
}

.strength-legend__title {
  margin: 0 0 0.55rem;
  color: var(--mag-accent, #0056e2);
  font: 700 0.7rem/1.3 var(--mag-mono, "JetBrains Mono", monospace);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.strength-legend__lede {
  margin: 0 0 0.75rem;
  max-width: 60ch;
  color: var(--mag-ink-body, #2c3444);
  font: 500 0.9rem/1.58 var(--mag-body, "Archivo", system-ui, sans-serif);
}

.strength-legend__list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strength-legend__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--mag-ink-body, #2c3444);
  font: 500 0.88rem/1.5 var(--mag-body, "Archivo", system-ui, sans-serif);
}

.strength-legend__marker {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  background: var(--mag-accent-bright, #0061fd);
  color: #ffffff;
  font: 800 0.78rem/1 var(--mag-mono, "JetBrains Mono", monospace);
}

@media (min-width: 720px) {
  .strength-legend__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem 1.4rem;
  }
}

/* Three-step progression rail (same lift, week 1 / 4 / 8). */
.strength-steps {
  margin: 0.9rem 0 0;
  padding: 1rem;
  border: 1px solid var(--mag-line, rgba(11, 18, 32, 0.12));
  background: var(--mag-paper, #ffffff);
}

.strength-steps__title {
  margin: 0 0 0.9rem;
  color: var(--mag-accent, #0056e2);
  font: 700 0.7rem/1.3 var(--mag-mono, "JetBrains Mono", monospace);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.strength-steps__rail {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strength-step {
  position: relative;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
}

.strength-step__thumb {
  display: block;
  width: 6rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--mag-line, rgba(11, 18, 32, 0.12));
  background: var(--mag-wash, #eef3f9);
}

.strength-step__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strength-step__badge {
  display: inline-block;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: var(--mag-accent-soft, rgba(0, 97, 253, 0.1));
  color: var(--mag-accent, #0056e2);
  font: 700 0.68rem/1 var(--mag-mono, "JetBrains Mono", monospace);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.strength-step__lift {
  margin: 0.4rem 0 0.2rem;
  color: var(--mag-ink, #0b1220);
  font: 700 1.05rem/1.2 var(--mag-mono, "JetBrains Mono", monospace);
}

.strength-step__note {
  margin: 0;
  color: var(--mag-ink-muted, #4c5567);
  font: 500 0.85rem/1.5 var(--mag-body, "Archivo", system-ui, sans-serif);
}

/* Chevron connectors: down the stacked rail on mobile, across it on desktop. */
.strength-step::after {
  content: "";
  position: absolute;
  left: 3rem;
  bottom: -0.72rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--mag-accent-bright, #0061fd);
  border-bottom: 2px solid var(--mag-accent-bright, #0061fd);
  transform: translateX(-50%) rotate(45deg);
}

.strength-step:last-child::after {
  display: none;
}

.strength-steps__track {
  position: relative;
  height: 0.45rem;
  margin: 1.1rem 0 0;
  border-radius: 999px;
  background: var(--mag-wash, #eef3f9);
  border: 1px solid var(--mag-line, rgba(11, 18, 32, 0.12));
}

.strength-steps__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 92%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9cc2f5, var(--mag-accent-bright, #0061fd));
}

.strength-steps__node {
  position: absolute;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--mag-accent-bright, #0061fd);
  transform: translate(-50%, -50%);
}

.strength-steps__node--1 {
  left: 6%;
}

.strength-steps__node--2 {
  left: 49%;
}

.strength-steps__node--3 {
  left: 92%;
}

.strength-steps__foot {
  margin: 0.9rem 0 0;
  color: var(--mag-ink-muted, #4c5567);
  font: 500 0.85rem/1.5 var(--mag-body, "Archivo", system-ui, sans-serif);
}

@media (min-width: 720px) {
  .strength-steps__rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
  }

  .strength-step {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .strength-step__thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .strength-step::after {
    left: auto;
    bottom: auto;
    right: -1.05rem;
    top: 2.2rem;
    transform: rotate(-45deg);
  }
}

/* ==========================================================================
   Per-path accents — Eat / Move / Recover
   --------------------------------------------------------------------------
   One shared magazine skeleton, three path skins. The renderer stamps
   body[data-path] from the manifest path id (see _stamp_path_attr), and every
   rule below keys off that attribute, so an accent only ever lands on the
   guide's own path. shared/magazine.css stays frozen: this layer only overrides
   its colours plus one new hero dot, and shifts figure / pull-quote alignment.
   All tints are light-theme; no path changes the page grid or the reading
   measure.
   ========================================================================== */

body.guide-shell {
  --path-accent: var(--mag-accent, #0056e2);
  --path-accent-deep: var(--mag-accent, #0056e2);
  --path-tint: var(--mag-tint, #edf6fe);
  --path-line: var(--mag-line, rgba(11, 18, 32, 0.12));
}

body.guide-shell[data-path="eat"] {
  --path-accent: #a15c1c;
  --path-accent-deep: #7c440f;
  --path-tint: #fcf2e3;
  --path-line: rgba(161, 92, 28, 0.26);
}

body.guide-shell[data-path="move"] {
  --path-accent: #0056e2;
  --path-accent-deep: #0043b3;
  --path-tint: #edf6fe;
  --path-line: rgba(0, 86, 226, 0.24);
}

body.guide-shell[data-path="recover"] {
  --path-accent: #0e7c6b;
  --path-accent-deep: #0a5d50;
  --path-tint: #e7f4f1;
  --path-line: rgba(14, 124, 107, 0.26);
}

/* Path dot on the hero kicker; it rides both the paper and the photo hero. */
.mag-hero__kicker.guide-path-marker::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.55rem;
  border-radius: 999px;
  background: var(--path-accent);
  vertical-align: 0.02em;
}

/* On paper (the stacked hero below 1200px) the kicker text takes the path tint.
   Over the wide photo cover the shared light scale keeps it white for contrast. */
@media (max-width: 1199px) {
  .mag-hero .guide-path-marker {
    color: var(--path-accent);
  }
}

/* Stat band: path tint on the wash, deeper path ink on the figures. */
body[data-path] .mag-statband {
  background: var(--path-tint);
  border-block-color: var(--path-line);
}

body[data-path] .mag-stat__value {
  color: var(--path-accent-deep);
}

/* Chapter bar: path rule and label, plus hover / focus / active states. A
   chapter link that matches the URL target marks the live section heading. */
body[data-path] .mag-chapterbar {
  border-bottom-color: var(--path-line);
}

body[data-path] .mag-chapterbar__label {
  color: var(--path-accent);
}

body[data-path] .mag-chapterbar__list a:hover,
body[data-path] .mag-chapterbar__list a:focus-visible {
  color: var(--path-accent);
}

body[data-path] .mag-chapterbar__list a.is-current {
  color: var(--path-accent-deep);
  box-shadow: inset 0 -2px 0 var(--path-accent);
}

body[data-path] .guide-prose h2:target {
  padding-left: 0.7rem;
  border-left: 3px solid var(--path-accent);
  color: var(--path-accent-deep);
}

/* Curriculum panel, key box, next-in-path band, prerequisites pick up the rule. */
body[data-path] .guide-panel--path {
  border-left-color: var(--path-accent);
}

body[data-path] .mag-keybox {
  border-left-color: var(--path-accent);
}

body[data-path] .guide-pagination {
  border-top-color: var(--path-accent);
}

body[data-path] .guide-prerequisites h2 {
  color: var(--path-accent-deep);
}

/* Figures: Eat alternates left / right inset, Move stays full-bleed with a path
   rule on even frames, Recover centres every frame on a soft tinted border. */
body[data-path="eat"] .guide-prose > .mag-figure {
  width: min(100%, 46rem);
}

body[data-path="eat"] .guide-prose > .mag-figure:nth-of-type(odd) {
  margin-inline: 0 auto;
}

body[data-path="eat"] .guide-prose > .mag-figure:nth-of-type(even) {
  margin-inline: auto 0;
}

body[data-path="eat"] .mag-figure__frame {
  border-block-color: var(--path-line);
}

body[data-path="move"] .guide-prose > .mag-figure:nth-of-type(even) {
  width: min(100%, 48rem);
  margin-inline: auto;
}

body[data-path="move"] .mag-figure__frame {
  box-shadow: inset 0 3px 0 var(--path-accent);
}

body[data-path="recover"] .guide-prose > .mag-figure {
  width: min(100%, 46rem);
  margin-inline: auto;
}

body[data-path="recover"] .mag-figure__frame {
  border: 1px solid var(--path-line);
}

/* Pull quotes: Eat hangs left on a rule, Move is the centred display line,
   Recover sits in a tinted panel. The quote glyph takes the path colour. */
body[data-path="eat"] .guide-prose blockquote,
body[data-path="eat"] .mag-pull {
  margin-inline: 0 auto;
  text-align: left;
}

body[data-path="eat"] .guide-prose blockquote {
  padding: 0.4rem 0 0.4rem 1.1rem;
  border-left: 3px solid var(--path-accent);
}

body[data-path] .guide-prose blockquote::before,
body[data-path] .mag-pull::before {
  color: var(--path-accent);
}

body[data-path="move"] .mag-pull {
  font-size: clamp(1.5rem, 2.9vw, 2.05rem);
}

body[data-path="recover"] .guide-prose blockquote,
body[data-path="recover"] .mag-pull {
  max-width: 34rem;
  padding: clamp(0.9rem, 2vw, 1.3rem) clamp(1rem, 2vw, 1.5rem);
  background: var(--path-tint);
  border-block: 1px solid var(--path-line);
}
