/* MRI landing: reuse the site's paper, typography, rules, spacing, and accent. */
body.mri-landing-page {
  color-scheme: light;
  background: var(--paper);
}

.mri-landing-page #mri-main { scroll-margin-top: 120px; }

.mri-page {
  width: min(100% - (var(--gutter) * 2), var(--content-width));
  margin-inline: auto;
  padding: var(--section-space) 0;
  color: var(--ink);
  text-align: center;
}

.mri-page h1, .mri-page h2, .mri-page h3, .mri-page p,
.mri-page figure { margin: 0; }
.mri-page a { color: inherit; text-underline-offset: 5px; }
.mri-page a:hover { text-decoration-thickness: 2px; }
.mri-page a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }

.mri-page .mri-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.08;
}

.mri-page .mri-diagram { margin-top: var(--section-space); }
.mri-origin { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mri-page .mri-variation {
  font-family: var(--sans);
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
}

.mri-page svg { display: block; flex-shrink: 0; shape-rendering: geometricPrecision; }
.mri-page svg circle,
.mri-page svg path { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.mri-page .mri-dot--filled { fill: currentColor; }
.mri-page .mri-dots { max-width: 100%; height: 24px; color: var(--ink); }
.mri-page .mri-arrow { color: var(--graphite); }
.mri-page .mri-arrow path { stroke-linecap: round; stroke-linejoin: round; }
.mri-page .mri-abstraction,
.mri-page .mri-conditions { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; color: var(--graphite); line-height: 1.5; }
.mri-page .mri-branch { width: 100%; height: 48px; margin-top: 14px; color: var(--rule-strong); }
.mri-page .mri-branch path { stroke-width: 1; }
.mri-page .mri-mobile-stem { display: none; }

.mri-paths { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mri-page .mri-path { display: grid; grid-template-rows: auto 168px auto; align-content: start; gap: 24px; padding: 20px calc(var(--section-space-compact) / 2) 0; }
.mri-page .mri-path h3 { font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.25; }
.mri-process { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.mri-reduction { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.mri-page .mri-outcome {
  max-width: 400px;
  margin-inline: auto;
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .005em;
  text-wrap: balance;
}

.mri-page figcaption {
  max-width: var(--reading-width);
  margin: var(--section-space-compact) auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}

.mri-page .mri-question {
  max-width: var(--reading-width);
  margin: var(--section-space) auto 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 2.3rem);
  font-weight: 400;
  line-height: 1.22;
  text-wrap: balance;
}
.mri-page .mri-purpose { max-width: 680px; margin: 22px auto 0; color: var(--graphite); font-size: 17px; line-height: 1.65; }
.mri-page .mri-interactive { display: inline-block; margin-top: var(--rule-space); padding-block: 8px; font-size: 15px; font-weight: 600; }

.mri-page .mri-studies { max-width: 610px; margin: var(--section-space) auto 0; }
.mri-page .mri-section-label { margin-bottom: 24px; font-family: var(--sans); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.mri-page .mri-study { display: block; padding: 28px 18px 30px; border-top: 1px solid var(--rule); text-decoration: none; }
.mri-page .mri-study:last-of-type { border-bottom: 1px solid var(--rule); }
.mri-page .mri-study-id { display: block; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .035em; }
.mri-page .mri-study-title { display: block; margin-top: 8px; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.2; }
.mri-page .mri-study-description { display: block; max-width: 465px; margin: 11px auto 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.mri-page .mri-study:hover .mri-study-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.mri-page .mri-continuation { margin-top: var(--section-space-compact); color: var(--muted); font-size: 13px; }

@media (max-width: 680px) {
  .mri-page { padding-top: var(--section-space-compact); }
  .mri-page .mri-diagram { margin-top: var(--section-space-compact); }
  .mri-page .mri-branch { display: none; }
  .mri-page .mri-mobile-stem { display: block; width: 2px; height: 28px; margin: 14px auto 0; color: var(--rule-strong); }
  .mri-page .mri-mobile-stem path { stroke-width: 1; }
  .mri-paths { position: relative; grid-template-columns: minmax(0, 1fr); gap: var(--section-space-compact); padding-left: 22px; border-left: 1px solid var(--rule-strong); }
  .mri-paths::before { content: ""; position: absolute; top: 0; left: 0; width: 50%; border-top: 1px solid var(--rule-strong); }
  .mri-page .mri-path { position: relative; grid-template-rows: auto auto auto; gap: 24px; padding: 28px 0 0; }
  .mri-page .mri-path::before { content: ""; position: absolute; top: 42px; left: -22px; width: 14px; border-top: 1px solid var(--rule-strong); }
  .mri-page .mri-path h3 { font-size: 25px; }
  .mri-page .mri-outcome { font-size: 20px; }
  .mri-page .mri-process { min-height: 0; }
  .mri-page .mri-study { padding-inline: 0; }
}

@media print {
  .mri-page { padding-top: var(--section-space-compact); }
  .mri-page .mri-path, .mri-page .mri-study { break-inside: avoid; }
}
