:root {
  --pp-ink: #000000;
  --pp-ink-soft: #000000;
  --pp-muted: #000000;
  --pp-line: #e2e2e2;
  --pp-bg: #ffffff;
  --pp-panel: #ffffff;
  --pp-teal: #3273dc;
  --pp-teal-dark: #1f5fbf;
  --pp-soft: #ffffff;
  --pp-shadow: 0 8px 24px rgba(29,36,33,.045);
}

html { scroll-behavior: smooth; background: var(--pp-bg); }
body {
  min-height: 100vh;
  color: var(--pp-ink);
  background: var(--pp-bg);
  font-family: "Times New Roman", Times, serif;
}

button,
input,
select,
textarea {
  font-family: "Times New Roman", Times, serif;
}

/* Keep the same pure-white canvas on every project subpage. */
html,
body,
main,
.pp-nav,
.pp-hero,
.pp-section,
.pp-section.is-soft,
.pp-card,
.pp-report-copy,
.pp-figure-panel,
.pp-evidence-card .pp-card-copy,
.pp-number,
.pp-note,
.pp-footer,
.pp-stat,
.pp-tag,
.pp-list div {
  background-color: #fff !important;
  background-image: none !important;
}

body::before {
  display: none;
  content: none;
}

.pp-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(223,229,225,.92);
  background: #fff;
  backdrop-filter: blur(16px);
}

.pp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.pp-brand { color: var(--pp-ink); font-size: 1.35rem; font-weight: 600; letter-spacing: -.03em; text-decoration: none; }
.pp-brand:hover { color: var(--pp-teal); }
.pp-nav-links { display: flex; flex-wrap: wrap; gap: .35rem; }
.pp-nav-links a { padding: .42rem .62rem; border-radius: 7px; color: var(--pp-muted); font-size: .8rem; font-weight: 600; text-decoration: none; }
.pp-nav-links a:hover, .pp-nav-links a.is-active { background: #fff; color: var(--pp-teal-dark); text-decoration: underline; text-underline-offset: .22rem; }
.pp-nav-links .pp-home-link { margin-right: .2rem; border: 1px solid var(--pp-line); background: #fff; color: var(--pp-teal-dark); font-weight: 700; }

.pp-hero { padding: 3.5rem 1.25rem 2.8rem; border-bottom: 1px solid var(--pp-line); background: #fff; text-align: center; }
.pp-wrap { width: min(1120px, 100%); margin: 0 auto; }
.pp-kicker { margin-bottom: .7rem; color: var(--pp-teal); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.pp-hero h1 { max-width: 920px; margin: 0 auto .75rem; color: var(--pp-ink); font-family: "Times New Roman", Times, serif; font-size: clamp(1.9rem, 3.3vw, 2.8rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
.pp-hero h2 { max-width: 780px; margin: 0 auto 1.1rem; color: var(--pp-ink-soft); font-family: "Times New Roman", Times, serif; font-size: clamp(1.08rem, 2vw, 1.45rem); font-weight: 500; line-height: 1.4; }
.pp-lede { max-width: 760px; margin: 0 auto; color: var(--pp-muted); font-size: 1.03rem; line-height: 1.72; }
.pp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1.5rem; }
.pp-button { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border: 1px solid #363636; border-radius: 999px; background: #363636; color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; box-shadow: none; }
.pp-button:hover { border-color: #111; background: #111; color: #fff; transform: translateY(-1px); }
.pp-button.is-light { border-color: #363636; background: #363636; color: #fff; box-shadow: none; }
.pp-stat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1.35rem; }
.pp-stat { padding: .42rem .7rem; border: 1px solid var(--pp-line); border-radius: 8px; background: var(--pp-soft); color: var(--pp-teal-dark); font-size: .75rem; font-weight: 700; }

.pp-section { padding: 4.2rem 1.25rem; }
.pp-section.is-soft { border-top: 1px solid var(--pp-line); border-bottom: 1px solid var(--pp-line); background: var(--pp-soft); }
.pp-section h2 { margin: 0 0 .6rem; color: var(--pp-ink); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 790; letter-spacing: -.045em; text-align: center; }
.pp-section h2::after { display: block; width: 40px; height: 2px; margin: .8rem auto 1.25rem; background: var(--pp-teal); content: ""; }
.pp-section-intro { max-width: 760px; margin: 0 auto 2rem; color: var(--pp-muted); font-size: 1rem; line-height: 1.7; text-align: center; }

.pp-section-head {
  max-width: 880px;
  margin: 0 0 2rem;
  text-align: left;
}
.pp-section-head .pp-kicker {
  margin-bottom: .55rem;
}
.pp-section-head h2 {
  margin: 0 0 .75rem;
  color: var(--pp-ink);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1.18;
  text-align: left;
}
.pp-section-head h2::after {
  display: none;
}
.pp-section-head .pp-section-intro {
  max-width: none;
  margin: 0;
  color: var(--pp-muted);
  font-size: .95rem;
  line-height: 1.65;
  text-align: left;
}

.pp-grid-2 { display: grid; grid-template-columns: .88fr 1.12fr; gap: 18px; align-items: stretch; }
/* Equal columns for side-by-side figures (default .pp-grid-2 is for copy + image) */
.pp-grid-2.is-pair { grid-template-columns: 1fr 1fr; }
.pp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pp-report-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 28px; align-items: center; }
.pp-report-row + .pp-report-row { margin-top: 2.4rem; padding-top: 2.4rem; border-top: 1px solid var(--pp-line); }
.pp-report-row.reverse { grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); }
.pp-report-row .pp-figure { min-width: 0; }
.pp-report-row .pp-figure img { width: 100%; height: auto; }
.pp-report-copy { padding: 1.1rem 1.25rem; border: 1px solid var(--pp-line); border-radius: 10px; background: #fff; }
.pp-report-copy h3 { margin: 0 0 .65rem; color: var(--pp-ink); font-size: 1.22rem; font-weight: 780; letter-spacing: -.025em; }
.pp-report-copy p { margin: 0; color: var(--pp-muted); font-size: .9rem; line-height: 1.68; }
.pp-confidence-row { align-items: stretch; }
.pp-confidence-row .pp-report-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.pp-confidence-row .pp-figure { display: flex; min-height: 100%; flex-direction: column; justify-content: center; }
.pp-card { border: 1px solid var(--pp-line); border-radius: 8px; background: var(--pp-panel); box-shadow: none; }
.pp-card-copy { padding: 1.35rem 1.45rem; }
.pp-card h3 { margin: 0 0 .6rem; color: var(--pp-ink); font-size: 1.06rem; font-weight: 760; }
.pp-card p { color: var(--pp-muted); font-size: .9rem; line-height: 1.65; }
.pp-card p:last-child { margin-bottom: 0; }
.pp-list { display: grid; gap: 9px; margin: 1.1rem 0 0; }
.pp-list div { display: flex; justify-content: space-between; gap: .75rem; padding: .65rem .75rem; border-radius: 8px; background: var(--pp-soft); color: var(--pp-muted); font-size: .8rem; }
.pp-list strong { color: var(--pp-teal-dark); font-size: .77rem; text-align: right; }
.pp-figure { overflow: hidden; margin: 0; border-radius: 16px; background: transparent; }
.pp-figure.pp-card { border: 0; background: transparent; box-shadow: none; }
.pp-figure img { display: block; width: 100%; height: auto; min-height: 0; object-fit: initial; background: transparent; }
.pp-figure-solo {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.pp-figure-solo img {
  width: 100%;
  height: auto;
  background: transparent;
}
.pp-figure-solo figcaption {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}
.pp-figure-supplement {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.pp-figure figcaption { padding: .78rem 1rem .9rem; color: var(--pp-muted); font-size: .78rem; line-height: 1.5; }
.pp-tag { display: inline-flex; margin-bottom: .7rem; padding: .3rem .55rem; border-radius: 6px; background: var(--pp-soft); color: var(--pp-teal-dark); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pp-evidence-card { overflow: visible; border: 0; background: transparent; box-shadow: none; }
.pp-evidence-card .pp-figure img { height: auto; min-height: 0; }
.pp-evidence-card .pp-card-copy { margin-top: .8rem; padding: 1rem 1.15rem 1.2rem; border: 1px solid var(--pp-line); border-radius: 10px; background: #fff; }
.pp-evidence-stat { display: block; margin-top: .8rem; color: var(--pp-teal-dark); font-size: 1.38rem; font-weight: 820; letter-spacing: -.04em; }
.pp-number-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.pp-number { padding: 1.15rem; border: 1px solid var(--pp-line); border-radius: 10px; background: #fff; }
.pp-number strong { display: block; color: var(--pp-teal-dark); font-size: 1.8rem; letter-spacing: -.05em; line-height: 1; }
.pp-number span { display: block; margin-top: .55rem; color: var(--pp-muted); font-size: .79rem; line-height: 1.45; }
.pp-note { max-width: 820px; margin: 1.8rem auto 0; padding: .95rem 1.1rem; border-left: 3px solid var(--pp-teal); border-radius: 0 8px 8px 0; background: var(--pp-soft); color: var(--pp-muted); font-size: .82rem; line-height: 1.58; }
.pp-footer { padding: 2rem 1.25rem; border-top: 1px solid var(--pp-line); background: var(--pp-soft); color: var(--pp-muted); font-size: .78rem; text-align: center; }
.pp-footer a { color: var(--pp-teal-dark); font-weight: 700; }

/* Report + confidence page: wider canvas, figure-first stacks */
.pp-wrap-wide { width: min(1280px, 100%); }
.pp-hero-compact { padding: 3.3rem 1.25rem 2.7rem; }
.pp-hero-compact h1 { max-width: 920px; font-size: clamp(1.9rem, 3.3vw, 2.8rem); line-height: 1.12; }
.pp-hero-compact h2 { max-width: 720px; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.pp-page-report .pp-section { padding: 3.2rem 1.25rem; }
.pp-stack-block {
  display: grid;
  gap: 1rem;
  margin: 0 auto 2.4rem;
}
.pp-stack-block:last-of-type { margin-bottom: 0; }
.pp-stack-block + .pp-stack-block {
  margin-top: 2.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--pp-line);
}
.pp-figure-panel {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.pp-figure-panel img {
  width: 100%;
  height: auto;
  max-height: none;
}
.pp-figure-panel figcaption {
  padding: .7rem 1rem .85rem;
  text-align: left;
}
.pp-report-copy-wide {
  max-width: 920px;
}
.pp-report-split {
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, 1.58fr);
  gap: 1.4rem 1.6rem;
  align-items: center;
  margin: 0 0 2.2rem;
}
.pp-report-split + .pp-report-split {
  padding-top: 2.2rem;
  border-top: 1px solid var(--pp-line);
}
.pp-report-split .pp-report-copy {
  height: fit-content;
}
.pp-report-split .pp-figure-panel {
  margin: 0;
  min-width: 0;
}
.pp-report-split .pp-figure-panel img {
  width: 100%;
  height: auto;
}
.pp-confidence-split {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: 1.6rem 1.8rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.pp-confidence-split .pp-stack-block,
.pp-confidence-split .pp-stack-block + .pp-stack-block {
  margin: 0;
  padding: 0;
  border: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}
.pp-confidence-split .pp-figure-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  max-width: none;
  background: #fff;
}
.pp-confidence-split .pp-stack-block.is-narrow .pp-figure-panel {
  max-width: none;
  margin: 0;
}
.pp-confidence-split .pp-figure-panel img {
  flex: 1 1 auto;
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.pp-confidence-split .pp-figure-panel figcaption {
  margin-top: auto;
}
.pp-number-grid-tight {
  margin-top: 2rem;
}

/* Diagnosis and retrospective page */
.pp-page-diagnosis .pp-note + .pp-figure {
  margin-top: 2rem;
}
.pp-page-diagnosis .pp-figure + .pp-figure {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--pp-line);
}
.pp-page-diagnosis .pp-number-grid {
  margin-top: 2rem;
}
.pp-page-diagnosis .pp-number-grid + .pp-grid-3 {
  margin-top: 1.4rem;
}

/* Input page sequence explanation */
.pp-sequence-details {
  max-width: 980px;
  margin: 1.5rem auto 0;
}
.pp-sequence-details .pp-card-copy {
  height: 100%;
}

/* Dataset processing and training page */
.pp-page-process .pp-section { padding: 3.2rem 1.25rem; }
.pp-process-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 1.8rem;
  align-items: center;
}
.pp-process-row.reverse {
  grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr);
}
.pp-process-figure {
  width: 100%;
  max-width: 860px;
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
  background: transparent;
}
.pp-process-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.pp-process-figure figcaption {
  padding-left: .15rem;
  padding-right: .15rem;
}

/* Clinical page layout — consistent text/image alignment */
.pp-page-clinical .pp-section { padding: 2.8rem 1.25rem; }
.pp-page-clinical .pp-wrap-wide { width: min(1200px, calc(100% - 2rem)); }

.pp-align-row {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: stretch;
  margin: 0 0 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--pp-line);
}
.pp-align-row:last-of-type {
  margin-bottom: 0;
}
.pp-align-row .pp-report-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}
.pp-align-row .pp-figure-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  min-width: 0;
  height: 100%;
  background: #fff;
}
.pp-align-row .pp-figure-panel img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.pp-align-row .pp-figure-panel figcaption {
  margin-top: auto;
}

/* Flow diagram: compact left facts + wide figure, equal row height */
.pp-align-row.is-flow {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  align-items: stretch;
}
.pp-align-row.is-flow .pp-report-copy {
  justify-content: center;
  padding: 1rem 1.05rem;
}
.pp-align-row.is-flow .pp-report-copy h3 {
  margin-bottom: .75rem;
  font-size: 1.05rem;
}
.pp-align-row.is-flow .pp-list {
  margin-top: 0;
  gap: 8px;
}
.pp-align-row.is-flow .pp-list div {
  padding: .55rem .65rem;
  font-size: .76rem;
}
.pp-align-row.is-flow .pp-figure-panel {
  justify-content: center;
}
.pp-align-row.is-flow .pp-figure-panel img {
  height: 100%;
  min-height: 180px;
  max-height: 240px;
  object-fit: contain;
}

/* Wide short flow diagram legacy stack (unused on clinical) */
.pp-align-stack {
  display: grid;
  gap: 1.1rem;
  margin: 0 0 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--pp-line);
}
.pp-align-stack .pp-report-copy {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.pp-align-stack .pp-figure-panel {
  margin: 0;
  background: #fff;
}
.pp-align-stack .pp-figure-panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
}

/* Chart row: match copy and chart mid-height */
.pp-align-row.is-chart .pp-figure-panel img {
  height: 260px;
}

/* Tall multi-reader figure: left text box stretches to match figure */
.pp-align-row.is-tall {
  align-items: stretch;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}
.pp-align-row.is-tall .pp-report-copy {
  justify-content: flex-start;
  position: static;
  height: 100%;
  max-height: none;
}
.pp-align-row.is-tall .pp-note-inline {
  max-width: none;
  margin: 1.1rem 0 0;
  padding: .8rem .9rem;
  font-size: .76rem;
  line-height: 1.55;
}
.pp-align-row.is-tall .pp-figure-panel img {
  height: auto;
  max-height: 820px;
}

.pp-figure-impact {
  max-width: 920px;
  margin: 0 auto 2.2rem;
}
.pp-figure-impact img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
}
.pp-impact-cases {
  max-width: 920px;
  margin: -0.8rem auto 0;
}
.pp-impact-cases .pp-card-copy {
  height: 100%;
}
.pp-impact-cases + .pp-note {
  margin-bottom: 2.5rem;
}
.pp-clinical-summary {
  padding-top: 2rem;
  border-top: 1px solid var(--pp-line);
}
.pp-clinical-summary h2 {
  margin: 0 0 .6rem;
  color: var(--pp-ink);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 790;
  letter-spacing: -.045em;
  text-align: center;
}
.pp-clinical-summary h2::after {
  display: block;
  width: 46px;
  height: 2px;
  margin: .8rem auto 1.25rem;
  background: var(--pp-teal);
  content: "";
}

/* Academic Project Page Template-inspired subpage layout */
.pp-wrap,
.pp-wrap-wide,
.pp-page-clinical .pp-wrap-wide {
  width: min(960px, calc(100% - 2rem));
  max-width: 960px;
}

.pp-hero,
.pp-hero-compact {
  padding: 3rem 1.25rem 2.5rem;
  border-bottom: 0;
}

.pp-hero h1,
.pp-hero-compact h1 {
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.pp-hero .pp-kicker {
  display: none;
}

.pp-section,
.pp-page-report .pp-section,
.pp-page-process .pp-section,
.pp-page-clinical .pp-section {
  padding: 3rem 1.25rem;
  border-top: 0;
  border-bottom: 0;
}

.pp-section-head {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.pp-section-head h2,
.pp-section-head .pp-section-intro {
  text-align: center;
}

.pp-grid-2,
.pp-grid-2.is-pair,
.pp-report-row,
.pp-report-row.reverse,
.pp-process-row,
.pp-process-row.reverse,
.pp-report-split,
.pp-confidence-split,
.pp-align-row,
.pp-align-row.is-flow,
.pp-align-row.is-chart,
.pp-align-row.is-tall {
  grid-template-columns: 1fr;
}

.pp-report-row,
.pp-report-row.reverse,
.pp-process-row,
.pp-process-row.reverse,
.pp-report-split,
.pp-confidence-split,
.pp-align-row,
.pp-align-row.is-flow,
.pp-align-row.is-chart,
.pp-align-row.is-tall {
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
}

.pp-card,
.pp-report-copy,
.pp-evidence-card .pp-card-copy,
.pp-number {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.pp-card-copy,
.pp-report-copy {
  width: min(100%, 768px);
  margin-right: auto;
  margin-left: auto;
}

.pp-page-process .pp-report-copy p + p {
  margin-top: 0.85rem;
}

.pp-page-process .pp-section-intro {
  max-width: 900px;
  text-align: justify;
}

.pp-data-table-block {
  width: min(100%, 960px);
  margin: 0 auto;
}

.pp-data-table-block + .pp-data-table-block {
  margin-top: 2.6rem;
}

.pp-data-table-block h3 {
  margin: 0 0 0.9rem;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
}

.pp-table-caption {
  max-width: 900px;
  margin: 0 0 0.9rem;
  color: #000;
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: left;
}

.pp-table-scroll {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

.pp-data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
}

.pp-data-table-institutions {
  min-width: 820px;
}

.pp-data-table-public {
  min-width: 1040px;
}

.pp-data-table-public th:nth-child(1) { width: 13%; }
.pp-data-table-public th:nth-child(2) { width: 19%; }
.pp-data-table-public th:nth-child(3),
.pp-data-table-public th:nth-child(4) { width: 10%; }
.pp-data-table-public th:nth-child(5) { width: 17%; }
.pp-data-table-public th:nth-child(6) { width: 31%; }

.pp-data-table th,
.pp-data-table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--pp-line);
  vertical-align: top;
}

.pp-data-table th {
  font-weight: 700;
}

.pp-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.pp-data-table .is-total td {
  border-top: 1px solid #000;
  font-weight: 700;
}

.pp-table-note {
  margin: 0.75rem 0 0;
  color: #000;
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: left;
}

.pp-figure,
.pp-figure-solo,
.pp-figure-supplement,
.pp-process-figure,
.pp-figure-impact {
  width: 100%;
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
  border: 0;
  border-radius: 0;
}

.pp-figure-panel,
.pp-report-copy,
.pp-evidence-card .pp-card-copy {
  border-radius: 0;
}

.pp-report-split .pp-report-copy,
.pp-report-row.reverse .pp-report-copy,
.pp-align-row .pp-report-copy,
.pp-align-row.is-tall .pp-report-copy {
  order: 1;
}

.pp-report-split .pp-figure-panel,
.pp-report-row.reverse .pp-figure,
.pp-align-row .pp-figure-panel {
  order: 2;
}

.pp-confidence-split .pp-figure-panel img,
.pp-align-row.is-flow .pp-figure-panel img,
.pp-align-row.is-chart .pp-figure-panel img,
.pp-align-row.is-tall .pp-figure-panel img {
  height: auto;
  min-height: 0;
  max-height: none;
}

/* Figure 3b is compact in the paper; avoid enlarging it to the full page width. */
.pp-confidence-split .pp-stack-block.is-narrow .pp-figure-panel {
  width: min(100%, 620px);
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 800px) {
  .pp-grid-2, .pp-grid-2.is-pair, .pp-grid-3, .pp-report-row, .pp-report-row.reverse { grid-template-columns: 1fr; }
  .pp-report-row.reverse .pp-report-copy { order: 2; }
  .pp-confidence-split { grid-template-columns: 1fr; }
  .pp-confidence-split .pp-figure-panel img { height: min(300px, 72vw); }
  .pp-confidence-split .pp-stack-block.is-narrow .pp-figure-panel { max-width: 100%; }
  .pp-report-split { grid-template-columns: 1fr; }
  .pp-report-split .pp-report-copy { order: 1; }
  .pp-report-split .pp-figure-panel { order: 2; }
  .pp-clinical-flow,
  .pp-reader-split,
  .pp-align-row,
  .pp-align-row.is-flow,
  .pp-align-row.is-tall { grid-template-columns: 1fr; }
  .pp-align-row .pp-report-copy,
  .pp-reader-split .pp-report-copy,
  .pp-align-row.is-tall .pp-report-copy {
    position: static;
    height: auto;
    max-height: none;
    order: 1;
  }
  .pp-align-row .pp-figure-panel { order: 2; }
  .pp-align-row.is-flow .pp-figure-panel img,
  .pp-align-row.is-chart .pp-figure-panel img {
    height: auto;
    min-height: 0;
    max-height: 280px;
  }
  .pp-align-row.is-tall .pp-figure-panel img { max-height: none; }
  .pp-number-grid { grid-template-columns: 1fr 1fr; }
  .pp-page-process .pp-section-intro { text-align: left; }
  .pp-nav-inner { align-items: flex-start; flex-direction: column; padding: .75rem 1rem; }
  .pp-hero { padding-top: 3.7rem; }
  .pp-hero-compact { padding-top: 3.2rem; }
}
@media (max-width: 480px) {
  .pp-number-grid { grid-template-columns: 1fr; }
  .pp-nav-links { gap: .1rem; }
  .pp-nav-links a { padding: .35rem .42rem; font-size: .68rem; }
  .pp-figure img, .pp-evidence-card .pp-figure img { height: auto; min-height: 0; }
}
