/* ============================================================
   AGN-Grasp project page
   Palette and layout follow the LabRoM academic page style:
   slate neutrals, one accent, hairline section rules.
   Accent lives in --accent — change it in one place.
   ============================================================ */

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --body: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --wash: #f1f5f9;
  --wash-2: #f8fafc;
  --accent: #0f9b8e;
  --accent-soft: rgba(15, 155, 142, 0.12);

  --max: 960px;
  --max-narrow: 720px;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink-2);
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 2000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow {
  max-width: var(--max-narrow);
}

/* ---------------- sidebar ---------------- */

.sidebar {
  position: fixed;
  left: 24px;
  top: 48px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 150px;
}

.sidebar a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding-left: 10px;
  border-left: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease;
}

.sidebar a:hover,
.sidebar a.is-active {
  color: var(--ink-2);
  border-left-color: var(--accent);
  padding-left: 15px;
}

@media (max-width: 1200px) {
  .sidebar {
    display: none;
  }
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  padding: 4.5rem 0 1rem;
  text-align: center;
  overflow: clip;
}

/* faint emblem watermark, centred behind the title; fades toward the bottom
   so it never fights the authors/buttons/media below it */
.hero-watermark {
  position: absolute;
  top: -6%;
  left: 50%;
  width: min(900px, 130vw);
  height: auto;
  color: var(--ink);
  opacity: 0.05;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.venue {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.hero-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.authors {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--body);
}

.authors span {
  white-space: nowrap;
  margin: 0 0.15rem;
}

.authors sup,
.affiliations sup {
  font-size: 0.65em;
  margin: 0 2px 0 1px;
}

.affiliations {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #64748b;
}

.corresponding {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.corresponding a {
  color: var(--muted);
}

.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 2.25rem;
}

.rule {
  flex: 1 1 auto;
  max-width: 180px;
  height: 1px;
}

.rule-left {
  background: linear-gradient(to left, var(--line-2), transparent);
}

.rule-right {
  background: linear-gradient(to right, var(--line-2), transparent);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 1.15rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn.is-disabled {
  cursor: not-allowed;
  color: var(--muted);
}

.btn.is-disabled:hover {
  border-color: var(--line-2);
  color: var(--muted);
}

.btn span {
  min-width: 44px;
  text-align: center;
}

.hero-media {
  position: relative;
  margin: 3.5rem 0 0;
}

.hero-video {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--wash);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-play {
  position: absolute;
  left: 50%;
  top: calc(50% - 1.6rem);
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.video-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-play svg {
  width: 26px;
  height: 26px;
  fill: var(--ink);
  margin-left: 4px;
}

.video-play.is-hidden {
  display: none;
}

.hero-media figcaption,
.figure figcaption,
.video-grid figcaption,
.caption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

/* ---------------- sections ---------------- */

.section {
  padding: 4.5rem 0;
}

.section-wash {
  background: var(--wash-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 0 1.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1 1 auto;
  max-width: 180px;
  height: 1px;
}

.section-title::before {
  background: linear-gradient(to left, var(--accent), transparent);
}

.section-title::after {
  background: linear-gradient(to right, var(--accent), transparent);
}

.lede {
  margin: 0;
  text-align: justify;
  hyphens: auto;
  color: #4a4a4a;
}

.section-intro {
  margin: 0 0 2rem;
  color: #64748b;
}

.note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.table-title {
  margin: 2.75rem 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------------- pipeline walkthrough ----------------
   .pl-sticky pins a full-height stage while .pl-steps (pulled up by one
   viewport) scrolls the cards over it. main.js reads where each card rests
   and frames the diagram in the space the card leaves free. */

.pl-intro {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.pl-scrolly {
  --vh: 100vh;
  --stage-w: min(1160px, calc(100vw - 3rem));
  --stage-gap: clamp(12px, 3vh, 32px);
  --step-h: calc(var(--vh) * 0.8);
  position: relative;
  margin-top: 1rem;
}

@supports (height: 100svh) {
  .pl-scrolly {
    --vh: 100svh;
  }
}

/* keep clear of the fixed section sidebar */
@media (min-width: 1201px) {
  .pl-scrolly {
    --stage-w: min(1160px, calc(100vw - 420px));
  }
}

.pl-sticky {
  position: sticky;
  top: 0;
  z-index: 1;
  height: var(--vh);
  display: grid;
  place-items: center;
}

.pl-stage {
  position: relative;
  margin: 0;
  width: var(--stage-w);
  height: min(calc(var(--vh) - 2 * var(--stage-gap)), 880px);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 30px 70px -30px rgba(15, 23, 42, 0.22);
}

.pl-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  object-fit: contain;
}

.pl-scrolly.is-live .pl-fallback {
  visibility: hidden;
}

.pl-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.pl-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: none;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.25);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.pl-scrolly.is-live .pl-hud {
  display: flex;
}

.pl-hud-bar {
  display: flex;
  gap: 3px;
}

.pl-hud-bar i {
  position: relative;
  width: 14px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.pl-hud-bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
}

.pl-steps {
  position: relative;
  z-index: 2;
  width: var(--stage-w);
  margin: calc(-1 * var(--vh)) auto 0;
  padding-block: calc((var(--vh) - var(--step-h)) / 2);
  pointer-events: none;
}

.pl-step {
  position: relative;
  height: var(--step-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(16px, 2vw, 28px);
}

.pl-step-wide {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.25rem;
}

.pl-card {
  width: min(350px, 100%);
  padding: 1.2rem 1.35rem 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05), 0 22px 50px -22px rgba(15, 23, 42, 0.3);
  pointer-events: auto;
  /* --o is set per step from the scroll position in main.js */
  opacity: var(--o, 1);
  transform: translateY(calc((1 - var(--o, 1)) * 16px)) scale(calc(0.97 + var(--o, 1) * 0.03));
}

.pl-step-wide .pl-card {
  width: min(600px, 100%);
  text-align: center;
}

.pl-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pl-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.pl-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.pl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.pl-tags li {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-2);
}

.pl-card .pl-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

/* a small mouse with a scrolling wheel */
.pl-hint span {
  position: relative;
  width: 14px;
  height: 21px;
  border: 1.5px solid currentColor;
  border-radius: 8px;
}

.pl-hint span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 2px;
  height: 5px;
  margin-left: -1px;
  border-radius: 1px;
  background: currentColor;
  animation: pl-wheel 1.6s ease-in-out infinite;
}

@keyframes pl-wheel {
  0% {
    opacity: 0;
    transform: translateY(-2px);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(6px);
  }
}

.pl-foot {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  text-align: center;
  color: var(--muted);
}

.pl-foot a {
  color: var(--muted);
}

@media (max-width: 899px) {
  .pl-scrolly {
    --stage-w: calc(100vw - 2rem);
    --stage-gap: 10px;
    --step-h: calc(var(--vh) * 0.72);
  }

  .pl-stage {
    border-radius: 16px;
  }

  .pl-step {
    align-items: flex-end;
    justify-content: center;
    padding: 0 10px 10px;
  }

  .pl-card,
  .pl-step-wide .pl-card {
    width: 100%;
    padding: 0.95rem 1.05rem 1rem;
  }

  .pl-card h3 {
    font-size: 1rem;
  }

  .pl-card p {
    font-size: 0.84rem;
    line-height: 1.58;
  }

  .pl-tags {
    margin-top: 0.7rem;
  }

  .pl-hud {
    top: 10px;
    left: 10px;
    gap: 0.6rem;
    padding: 0.32rem 0.7rem;
    font-size: 0.7rem;
  }

  .pl-hud-bar i {
    width: 9px;
  }
}

/* ---------------- setup A / B ---------------- */

.setup-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.chip {
  padding: 0.4rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chip:hover {
  border-color: var(--accent);
}

.chip[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.setup-figure {
  margin: 0;
}

/* half of setup.png (2390 x 1612) is 1195 wide; --crop-top hides the
   "Setup A / Setup B" title band, rows 0-203, leaving 1408 rows of photo.
   Keep aspect-ratio in step with it: 1195 / (1612 - 204). */
.setup-view {
  --crop-top: 0.1266; /* 204 / 1612 */
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 1195 / 1408;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

/* main.js sets --setup-w / --setup-x so the frame shows exactly one half,
   stopping short of the divider line between the two setups */
.setup-view img {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--setup-w, 200%);
  max-width: none; /* the global img rule would squeeze it into the frame */
  height: calc(100% / (1 - var(--crop-top)));
  /* translate percentages are of the image's own size */
  transform: translate(var(--setup-x, 0%), calc(-100% * var(--crop-top)));
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.setup-figure figcaption {
  max-width: 620px;
  margin: 1rem auto 0;
}

/* ---------------- grasp sequence ---------------- */

.sequence {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sequence figure {
  margin: 0;
}

.sequence img {
  width: 100%;
  aspect-ratio: 8 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--wash);
}

.sequence figcaption {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--body);
  text-align: left;
}

.sequence figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

.seq-step {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  vertical-align: 2px;
}

@media (max-width: 700px) {
  .sequence {
    grid-template-columns: 1fr;
  }
}

/* ---------------- code blocks ---------------- */

.cmd {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  overflow-x: auto;
}

.cmd code {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre;
}

.cmd.block {
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
  background: #fff;
}

code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.88em;
}

.cite-wrap {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------------- method grid ---------------- */

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.5rem;
  margin-top: 2.75rem;
}

.method-grid article {
  border-top: 1px solid var(--line-2);
  padding-top: 1rem;
}

.method-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.method-grid p {
  margin: 0;
  font-size: 0.93rem;
}

@media (max-width: 700px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

.figure {
  margin: 0 0 1rem;
}

.figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--wash);
}

/* ---------------- tables ---------------- */

.table-wrap {
  overflow-x: auto;
}

table.academic {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.academic th,
table.academic td {
  padding: 8px 16px;
  text-align: left;
  border: 0;
  color: #334155;
}

table.academic thead th {
  white-space: nowrap;
}

table.academic thead tr {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

table.academic thead th {
  background: var(--wash);
  font-weight: 600;
  color: var(--ink);
}

table.academic tbody tr {
  border-bottom: 1px solid var(--wash);
}

table.academic tbody tr:last-child {
  border-bottom: 1px solid var(--line-2);
}

table.academic tbody th {
  font-weight: 500;
  color: #475569;
}

table.academic tbody tr:hover {
  background: var(--wash);
}

table.academic tr.is-ours th,
table.academic tr.is-ours td {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------- footer ---------------- */

.site-footer {
  padding: 2.5rem 0 3.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.site-footer a {
  color: var(--muted);
}

.credit {
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------- video embed ---------------- */

.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--wash);
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.embed-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.embed-play svg {
  width: 74px;
  height: 52px;
  filter: drop-shadow(0 4px 14px rgba(15, 23, 42, 0.3));
}

.embed-play .yt-bg {
  fill: #212121;
  fill-opacity: 0.8;
  transition: fill 0.2s ease, fill-opacity 0.2s ease;
}

.embed-play .yt-arrow {
  fill: #fff;
}

a.embed:hover .yt-bg {
  fill: #f00;
  fill-opacity: 1;
}

a.embed {
  display: block;
  text-decoration: none;
}

video.embed {
  object-fit: cover;
}

.venue {
  margin: 1.5rem 0 0;
}

/* ---------------- setup specs ---------------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 3rem;
  margin-top: 2.5rem;
}

.spec-grid dl {
  margin: 0;
}

.spec-grid dt {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.spec-grid dd {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--body);
}

@media (max-width: 700px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- headline result ---------------- */

.headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin: 0 0 1rem;
  text-align: center;
}

.headline-num {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.headline-num span {
  font-size: 0.42em;
  font-weight: 500;
  color: var(--muted);
}

.headline-num.is-muted {
  color: var(--line-2);
}

.headline-label {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--body);
}

.headline-vs {
  font-size: 0.85rem;
  color: var(--muted);
  align-self: center;
  padding-bottom: 1.5rem;
}

/* ---------------- failure modes ---------------- */

.fm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.fm-grid article {
  border-top: 2px solid var(--line-2);
  padding-top: 0.85rem;
}

.fm-grid h4 {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.fm-grid p {
  margin: 0;
  font-size: 0.87rem;
}

@media (max-width: 760px) {
  .fm-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- outcome cells ---------------- */

table.academic td.ok {
  color: var(--accent);
  font-weight: 600;
}

table.academic td.bad {
  color: #94a3b8;
}

/* ---------------- limitations ---------------- */

.limit-list article {
  border-top: 1px solid var(--line-2);
  padding-top: 1rem;
  margin-bottom: 1.75rem;
}

.limit-list h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.limit-list p {
  margin: 0;
  font-size: 0.93rem;
}
