/* ============================================================
   Learning Machines — subpage layout (Field Manual language)
   Session pages, tool detail pages, docs pages.
   ============================================================ */

.wrap-narrow { width: min(880px, 100% - 48px); margin-inline: auto; }

/* ---------------- crumb ---------------- */
.crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumb .sep { color: var(--rule); }

/* ---------------- sub hero ---------------- */
.sub-hero {
  padding-block: clamp(28px, 4vw, 44px) clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--ink);
}
.sub-hero[data-mod="text"]  { --mink: var(--m-text);  --mtint: var(--m-text-tint); }
.sub-hero[data-mod="image"] { --mink: var(--m-image); --mtint: var(--m-image-tint); }
.sub-hero[data-mod="video"] { --mink: var(--m-video); --mtint: var(--m-video-tint); }
.sub-hero[data-mod="cross"] { --mink: var(--m-cross); --mtint: var(--m-cross-tint); }
.sub-hero:not(.poster-wash) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  clip-path: inset(0);
  background:
    linear-gradient(90deg, var(--mtint, transparent), transparent 62%),
    var(--bg);
}
.sub-hero:not(.poster-wash) > .wrap,
.sub-hero:not(.poster-wash) > .wrap-narrow {
  position: relative;
  z-index: 1;
}
.sub-hero:not(.poster-wash)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: var(--poster-blend);
  background:
    radial-gradient(34% 38% at 8% 30%, var(--poster-lime) 0 14%, transparent 48%),
    radial-gradient(32% 36% at 88% 22%, var(--poster-violet) 0 12%, transparent 50%),
    radial-gradient(38% 42% at 78% 82%, var(--poster-cyan) 0 16%, transparent 54%),
    linear-gradient(112deg, var(--poster-coral), transparent 28%, var(--poster-mint) 56%, transparent 76%, var(--poster-sky));
  background-size: 145% 145%, 140% 140%, 150% 150%, 185% 185%;
  background-position: 0% 18%, 100% 10%, 80% 88%, 0% 50%;
}
.sub-hero:not(.poster-wash)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: var(--poster-blend);
  background:
    radial-gradient(96px 18px at 18% 70%, transparent 42%, var(--poster-hot-pink) 44% 50%, transparent 53%),
    radial-gradient(86px 16px at 78% 30%, transparent 42%, var(--poster-lime) 44% 50%, transparent 53%),
    repeating-linear-gradient(88deg, transparent 0 104px, color-mix(in oklab, var(--poster-sky) 66%, transparent) 105px 108px, transparent 109px 178px);
  background-size: 130% 130%, 125% 125%, 160% 160%;
  background-position: 0% 80%, 100% 20%, 0% 0%;
}
.sub-hero.poster-wash::before {
  opacity: 0.26;
}
.sub-hero.poster-register::after {
  opacity: 0.15;
}
.sub-hero.poster-wash {
  background:
    linear-gradient(90deg, var(--mtint, transparent), transparent 58%),
    var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  .sub-hero:not(.poster-wash)::before { animation: subtle-subhero-wash 18s ease-in-out infinite alternate; }
  .sub-hero:not(.poster-wash)::after { animation: subtle-subhero-register 16s ease-in-out infinite alternate; }
  @keyframes subtle-subhero-wash {
    0% { background-position: 0% 18%, 100% 10%, 80% 88%, 0% 50%; }
    100% { background-position: 8% 22%, 92% 16%, 72% 94%, 34% 52%; }
  }
  @keyframes subtle-subhero-register {
    0% { background-position: 0% 80%, 100% 20%, 0% 0%; }
    100% { background-position: 8% 76%, 92% 24%, 10% 0%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .sub-hero:not(.poster-wash)::before,
  .sub-hero:not(.poster-wash)::after {
    animation: none !important;
  }
}

.sess-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.sess-num {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.9;
  color: var(--mink, var(--ink));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sess-num .of {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sess-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.sess-kicker .modsq { background: var(--mink, var(--ink)); }
.sess-title { font-size: clamp(40px, 6vw, 72px); }
.sess-q {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.25;
  margin-top: 18px;
  max-width: 38ch;
}
.sess-q .q-accent { color: var(--mink, var(--ink)); }
.sess-lede {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------------- tool hero ---------------- */
.tool-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.tool-hero h1 { font-size: clamp(34px, 4.5vw, 56px); max-width: 16ch; }
.tool-lede {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 3px 8px;
  white-space: nowrap;
}

/* preview plate */
.preview { border: 1px solid var(--ink); background: var(--surface); }
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  padding: 9px 12px;
}
.preview-bar .url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-bar .modsq { width: 8px; height: 8px; }
.preview-body { padding: 14px; }
.preview-ph {
  border: 1px dashed var(--rule);
  background: repeating-linear-gradient(135deg, transparent 0 10px, var(--surface-2) 10px 11px);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
  padding: 20px;
}
.preview-ph .big { font-size: 12.5px; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.preview-frame {
  border: 1px dashed var(--rule);
  overflow: hidden;
  height: 300px;
  position: relative;
}
.preview-frame iframe {
  width: 200%;
  height: 600px;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}
.preview-note {
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------- throughline ---------------- */
.throughline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  background: var(--surface);
}
html[data-skin] .throughline {
  border-color: color-mix(in oklab, var(--skin-accent) 58%, var(--ink));
  background:
    linear-gradient(112deg, color-mix(in oklab, var(--skin-accent) 8%, transparent), transparent 52%, color-mix(in oklab, var(--skin-accent-2) 6%, transparent)),
    var(--surface);
}
.through-step {
  padding: 18px 18px 22px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.through-step:first-child { border-left: 0; }
html[data-skin] .through-step {
  border-left-color: color-mix(in oklab, var(--skin-accent) 28%, var(--rule));
}
.through-step .ts-n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mink, var(--muted));
}
html[data-skin] .through-step .ts-n {
  /* Anchored on --ink-soft for WCAG AA in default Field view; keeps an accent
     tint. Identity modes override this separately. */
  color: color-mix(in oklab, var(--skin-accent) 32%, var(--ink-soft));
}
.through-step h4 { font-size: 15px; }
.through-step p { font-size: 13px; color: var(--ink-soft); }
.session-temp-note {
  margin-top: 18px;
  max-width: 760px;
}
.session-temp-note .temperature-ladder {
  margin-top: 10px;
}
.session-temp-note .temp-output {
  font-size: clamp(18px, 2.2vw, 25px);
}
.session-risk-motif {
  margin-top: 18px;
  max-width: 860px;
}
.session-risk-motif .plate-cap {
  margin-bottom: 10px;
}
.session-risk-motif .risk-token-wall,
.session-risk-motif .risk-grid,
.session-risk-motif .risk-frame-strip {
  margin-top: 10px;
}
.session-risk-motif .risk-grid {
  max-width: 420px;
}
.session-risk-motif .risk-frame-strip {
  max-width: 720px;
}

/* ---------------- session tool list ---------------- */
.tool-list { border-top: 1px solid var(--ink); }
.tool-list .ix-row { grid-template-columns: 48px minmax(0, 1.5fr) minmax(0, 2fr) 120px; }
html[data-skin] .tool-list {
  border-top-color: color-mix(in oklab, var(--skin-accent) 58%, var(--ink));
}

/* ---------------- run of show ---------------- */
.ros { border-top: 1px solid var(--ink); }
html[data-skin] .ros {
  border-top-color: color-mix(in oklab, var(--skin-accent) 58%, var(--ink));
}
.ros-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--rule);
}
html[data-skin] .ros-row:hover {
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--skin-accent) 7%, transparent), transparent 54%);
}
.ros-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mink, var(--muted));
  white-space: nowrap;
}
.ros-time::after { content: " min"; color: var(--muted); }
.ros-seg { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.ros-body { font-size: 13.5px; color: var(--ink-soft); max-width: 64ch; }

/* ---------------- prompts ---------------- */
.prompts {
  border-top: 1px solid var(--ink);
  counter-reset: prompt;
}
html[data-skin] .prompts {
  border-top-color: color-mix(in oklab, var(--skin-accent) 58%, var(--ink));
}
.prompt {
  counter-increment: prompt;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 14px 2px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.3;
}
.prompt::before {
  content: "Q" counter(prompt, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
html[data-skin] .prompt::before {
  color: color-mix(in oklab, var(--skin-accent) 74%, var(--muted));
}
html[data-skin] .prompt:hover {
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--skin-accent) 8%, transparent), transparent 56%);
}

/* ---------------- vis / invest cards ---------------- */
.visible-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  background: var(--surface);
}
html[data-skin] .visible-grid {
  border-color: color-mix(in oklab, var(--skin-accent) 58%, var(--ink));
  background:
    linear-gradient(112deg, color-mix(in oklab, var(--skin-accent) 8%, transparent), transparent 60%),
    var(--surface);
}
.vis-card {
  padding: 20px 18px 24px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.vis-card:first-child { border-left: 0; }
html[data-skin] .vis-card {
  border-left-color: color-mix(in oklab, var(--skin-accent) 24%, var(--rule));
}
.vis-card .vn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mink, var(--muted));
}
.vis-card h3 { font-size: 18px; }
.vis-card p { font-size: 13.5px; color: var(--ink-soft); }

.invest {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.invest-card {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
html[data-skin] .invest-card,
html[data-skin] .pathway-card,
html[data-skin] .callout {
  border-color: color-mix(in oklab, var(--skin-accent) 30%, var(--rule));
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--skin-accent) 6%, transparent), transparent 58%),
    var(--surface);
}
.invest-card .ic-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mink, var(--muted));
}
.invest-card h4 { font-size: 14.5px; }
.invest-card p { font-size: 13px; color: var(--ink-soft); }
.invest-card .eg {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  border-top: 1px dashed var(--rule);
  padding-top: 9px;
}

/* ---------------- callout ---------------- */
.doc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.doc-group h3 { font-size: 21px; margin-bottom: 14px; }
.callout {
  border: 1px solid var(--ink);
  background: var(--surface);
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.callout b { color: var(--ink); }
html[data-skin] .callout {
  border-left: 4px solid color-mix(in oklab, var(--skin-accent) 72%, var(--ink));
}

/* ---------------- prompt pack shell ---------------- */
.pack-grid.wrap {
  width: min(980px, calc(100% - 48px));
  margin-inline: auto;
}
.pack-grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  padding-block: clamp(28px, 4vw, 44px) clamp(56px, 7vw, 84px);
}
.prompt-family {
  --mink: var(--accent, var(--ink));
}
.prompt-family.risk-card {
  padding: clamp(18px, 3vw, 30px);
}
html[data-skin] .prompt-family.risk-card {
  border-color: color-mix(in oklab, var(--skin-accent) 55%, var(--ink));
}
.prompt-family h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
}
.pack-motif {
  margin: 0 0 16px;
}
.pack-token-wall {
  border-block: 1px solid var(--rule);
  padding-block: 10px;
}
.pack-noise {
  max-width: 360px;
  margin-bottom: 16px;
}
.pack-frame-motif {
  margin: 0 0 16px;
}
.prompt-text,
.output-block,
.caption-block,
.image-shell,
.annotation-card,
.notes textarea {
  border-radius: 2px;
}

/* ---------------- pager ---------------- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-block: 1px solid var(--ink);
}
.pager a {
  flex: 1;
  text-decoration: none;
  padding: 18px 2px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pager a.next { text-align: right; border-left: 1px solid var(--rule); padding-left: 18px; }
.pager a:first-child { padding-right: 18px; }
.pager .pg-dir {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pager .pg-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 19px;
}
.pager a:hover .pg-title { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- docs layout ---------------- */
.docs-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 84px;
  border-top: 1px solid var(--ink);
  padding-top: 12px;
}
html[data-skin] .toc {
  border-top-color: color-mix(in oklab, var(--skin-accent) 58%, var(--ink));
}
.toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.toc nav { display: flex; flex-direction: column; }
.toc a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 0 5px 12px;
  border-left: 1px solid var(--rule);
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--ink); }
html[data-skin] .toc a.active,
html[data-skin] .toc a:hover {
  color: color-mix(in oklab, var(--skin-accent) 72%, var(--ink));
}
html[data-skin] .toc a.active {
  border-left-color: color-mix(in oklab, var(--skin-accent) 72%, var(--ink));
}

.reader-nav {
  padding-top: clamp(22px, 3vw, 34px);
  padding-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--rule);
}
.reader-nav .toc {
  position: static;
  top: auto;
  max-width: none;
}
.reader-nav .toc nav {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.reader-nav .toc a {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 8px 10px;
}
.reader-nav .toc a:hover {
  background: color-mix(in oklab, var(--mink, var(--ink)) 8%, var(--surface));
}

.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------------- prose ---------------- */
.prose { max-width: 70ch; }
.prose .lede { font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.prose h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  margin: clamp(36px, 5vw, 52px) 0 14px;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}
html[data-skin] .prose h2 {
  border-top-color: color-mix(in oklab, var(--skin-accent) 58%, var(--ink));
}
.prose p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); margin: 10px 0; }
.prose ul { margin: 12px 0; padding-left: 0; list-style: none; }
.prose li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px solid var(--rule-soft);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 7px; height: 7px;
  background: var(--ink);
}
html[data-skin] .prose li::before {
  background: color-mix(in oklab, var(--skin-accent) 74%, var(--ink));
}
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose blockquote {
  margin: 18px 0;
  border: 1px solid var(--ink);
  background: var(--surface);
  padding: 18px 20px;
}
html[data-skin] .prose blockquote {
  border-color: color-mix(in oklab, var(--skin-accent) 52%, var(--ink));
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--skin-accent) 8%, transparent), transparent 64%),
    var(--surface);
}
.prose blockquote p {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border: 1px solid var(--ink);
  background: var(--surface);
}
html[data-skin] .doc-table {
  border-color: color-mix(in oklab, var(--skin-accent) 50%, var(--ink));
}
html[data-skin] .doc-table th {
  color: color-mix(in oklab, var(--skin-accent) 72%, var(--muted));
  border-bottom-color: color-mix(in oklab, var(--skin-accent) 45%, var(--ink));
}
.doc-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
}
.doc-table td {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule-soft);
  border-left: 1px solid var(--rule-soft);
}
.doc-table td:first-child {
  border-left: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  color: var(--ink);
}
.doc-table tr:last-child td { border-bottom: 0; }

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .tool-hero-grid { grid-template-columns: 1fr; }
  .throughline { grid-template-columns: 1fr 1fr; }
  .through-step:nth-child(odd) { border-left: 0; }
  .through-step:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .visible-grid { grid-template-columns: 1fr; }
  .vis-card { border-left: 0; }
  .vis-card + .vis-card { border-top: 1px solid var(--rule); }
  .invest { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border-top: 0; padding-top: 0; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
  .toc nav { flex-direction: row; flex-wrap: wrap; gap: 2px 14px; }
  .toc a { border-left: 0; padding-left: 0; }
  .reader-nav .toc {
    border-top: 1px solid var(--ink);
    border-bottom: 0;
    padding-top: 12px;
    padding-bottom: 0;
  }
  .reader-nav .toc nav { gap: 8px; }
  .reader-nav .toc a {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    border: 1px solid var(--rule);
    padding: 8px 10px;
  }
  .tool-list .ix-row { grid-template-columns: 40px minmax(0, 1fr) 110px; }
  .tool-list .ix-blurb { display: none; }
}
@media (max-width: 640px) {
  .sub-hero {
    padding-block: 18px 30px;
  }
  .crumb {
    margin-bottom: 14px;
  }
  .sess-hero-grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
  }
  .sess-num {
    font-size: clamp(44px, 15vw, 64px);
    min-width: 0;
  }
  .sess-num .of { font-size: 10px; }
  .sess-title {
    font-size: clamp(34px, 11vw, 48px);
  }
  .throughline { grid-template-columns: 1fr; }
  .through-step { border-left: 0; }
  .through-step:nth-child(n+2) { border-top: 1px solid var(--rule); }
  .invest { grid-template-columns: 1fr; }
  .ros-row { grid-template-columns: 64px 1fr; gap: 14px; }
  .pager { flex-direction: column; }
  .pager a.next { border-left: 0; border-top: 1px solid var(--rule); text-align: left; padding-left: 2px; }
}
@media (max-width: 360px) {
  .sess-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   v1 compat — remaining v1 markup on session-video /
   session-showcase (section heads, pathway picker & cards)
   rendered in the Field idiom.
   ============================================================ */
.section-head-sm { border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: clamp(24px, 4vw, 40px); display: flex; align-items: baseline; gap: 12px; }
.section-head-sm .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.section-head-sm h2 { font-size: clamp(22px, 3vw, 30px); }
h1 .accent, h2 .accent, .accent { color: var(--mink, var(--accent, var(--ink))); }

@media (min-width: 961px) {
  .tool-list .ix-row { grid-template-columns: 48px minmax(0, 1.5fr) minmax(0, 2fr) 170px; }
  .tool-list .ix-mod { white-space: normal; }
}
@media (max-width: 960px) {
  .tool-list .ix-mod { grid-column: 2 / -1; white-space: normal; }
}

.pathway-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pathway-picker a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); background: color-mix(in oklab, var(--surface) 82%, transparent); padding: 8px 14px; }
.pathway-picker a:hover { border-color: var(--ink); background: var(--surface); }
.pathway-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pathway-card { border: 1px solid var(--rule); border-top-color: var(--mink, var(--ink)); background: color-mix(in oklab, var(--surface) 88%, transparent); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pathway-card h3, .pathway-card h4 { font-size: 16px; }
.pathway-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.pc-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
html[data-skin] .pathway-card {
  box-shadow: inset 0 3px 0 color-mix(in oklab, var(--skin-accent) 55%, transparent);
}
html[data-skin="video-slitscan"] .pathway-card,
html[data-skin="studio-synthesis"] .pathway-card {
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--skin-accent) 6%, transparent), transparent 62%),
    var(--surface);
}

/* docs tables scroll within the page instead of widening it */
@media (max-width: 760px) {
  .prose table { display: block; overflow-x: auto; max-width: 100%; }
  .section-head-sm { flex-wrap: wrap; }
}

/* Recap block (assets/recap.js) — after-the-session video + written recap,
   rendered on session pages from session-runs.js. */
.recap {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  background: var(--surface);
  padding: 18px 20px;
}
.recap.is-pending {
  border-left-color: var(--line);
  background: transparent;
}
.recap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.recap h2 { margin: 0 0 4px; font-size: 1.15rem; }
.recap.is-pending p { margin: 0; color: var(--muted); line-height: 1.55; max-width: 64ch; }
.recap-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.recap-body { display: grid; gap: 10px; margin-top: 8px; }
.recap-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 9px 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.recap-watch:hover { background: var(--accent); color: var(--bg); }
.recap-written { margin: 0; line-height: 1.55; max-width: 66ch; }
.recap-read {
  width: fit-content;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-size: 0.92rem;
}
