/* =====================================================================
   Nephroverse recap page. Reads the shared tokens from /css/modes.css
   (--paper, --ink, --accent, --btn-*, --bg-*, ...) so it follows the
   AAUREX / Cardioverse mode switch. The only page-level colours are the
   anatomy diagram tokens below, defined once per mode.
   ===================================================================== */

html:not([data-mode="cardioverse"]) body.page-nephroverse {
  --nv-cortex: #5a2f3a;
  --nv-medulla: #8c4552;
  --nv-stripe: rgba(244, 241, 234, .22);
  --nv-capsule: #D6C19A;
  --nv-pelvis: #E9DcC0;
  --nv-calyx: #E9DcC0;
  --nv-artery: #e0646b;
  --nv-vein: #7f9ee0;
  --nv-highlight: #F4F1EA;
  --nv-correct: #9DAE92;
  --nv-wrong: #e48a8f;
  --nv-scrim: linear-gradient(180deg, transparent 35%, rgba(10, 14, 22, .82));
}
html[data-mode="cardioverse"] body.page-nephroverse {
  --nv-cortex: #efc3b8;
  --nv-medulla: #c8605d;
  --nv-stripe: rgba(255, 255, 255, .42);
  --nv-capsule: #7d2a2a;
  --nv-pelvis: #EBCB91;
  --nv-calyx: #EBCB91;
  --nv-artery: #D21F26;
  --nv-vein: #2f5fb3;
  --nv-highlight: #1D1D1F;
  --nv-correct: #2d6a2f;
  --nv-wrong: #B3191F;
  --nv-scrim: linear-gradient(180deg, transparent 35%, rgba(20, 12, 12, .78));
}

body.page-nephroverse { --nv-wrap: 1240px; --nv-gutter: max(5vw, 20px); }
.page-nephroverse main > section { padding: 96px var(--nv-gutter); position: relative; }
.page-nephroverse .nv-wrap { max-width: var(--nv-wrap); margin: 0 auto; }
.page-nephroverse h2 {
  font: 550 clamp(32px, 4.2vw, 56px)/1.08 var(--font-sans);
  letter-spacing: -.04em; color: var(--ink); margin: 18px 0 22px; max-width: 18ch;
}
.page-nephroverse h2 em, .page-nephroverse h1 em {
  font: italic 400 1.08em/1 var(--font-serif); letter-spacing: -.01em; color: var(--serif-accent);
}
.page-nephroverse .nv-lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--muted); max-width: 62ch; }
.page-nephroverse p { color: var(--muted); }
.page-nephroverse .nv-prose p { font-size: 17px; line-height: 1.75; margin: 0 0 18px; max-width: 62ch; }
.page-nephroverse .nv-prose strong { color: var(--ink); font-weight: 600; }

/* section label with chapter number */
.nv-label {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font: 700 10.5px/1.6 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.nv-label::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.page-nephroverse .nv-prose .nv-label { font-size: 10.5px; line-height: 1.6; margin: 0; }
.nv-label b { font-weight: 700; color: var(--ink); opacity: .55; }

/* ---------- buttons ---------- */
.nv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 24px;
  border-radius: 99px; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-ink);
  font: 600 13.5px/1.3 var(--font-sans); text-decoration: none;
  transition: transform .22s var(--ease-out), background-color .2s, border-color .2s, color .2s, box-shadow .25s;
}
.nv-btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.nv-btn:active { transform: scale(.97); }
.nv-btn--ghost { background: transparent; border-color: var(--btn-ghost-line); color: var(--btn-ghost-ink); }
.nv-btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--ink); }
.page-nephroverse :is(a, button):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- hero ---------- */
.page-nephroverse main > section.nv-hero { display: block; padding-top: 72px; padding-bottom: 88px; overflow: hidden; }
.nv-hero > .nv-wrap:first-child { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.nv-kicker { font: 600 13px/1.5 var(--font-sans); color: var(--muted); margin: 26px 0 0; }
.nv-title { margin: 6px 0 0; color: var(--ink); line-height: .92; }
.nv-title .nv-into { display: block; font: italic 400 clamp(34px, 4vw, 58px)/1 var(--font-serif); color: var(--ink); margin-bottom: 6px; }
.nv-title .nv-word {
  display: block; font: 400 clamp(60px, 9.4vw, 148px)/.9 'Anton', Impact, sans-serif; letter-spacing: -.01em;
  color: var(--promo-title);
}
.nv-title .nv-word span { color: var(--promo-title-alt); }
.nv-hero .nv-lead { margin: 28px 0 0; }
.nv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.nv-stack { position: relative; min-height: 560px; perspective: 1200px; }
.nv-stack figure { margin: 0; position: absolute; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lift); }
.nv-stack img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nv-stack .nv-shot-a { inset: 0 0 64px 12%; transform: rotate(1.5deg) translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .5s var(--ease-out); }
.nv-stack .nv-shot-b { width: 42%; aspect-ratio: 3/4; left: 0; bottom: 0; border: 6px solid var(--surface); transform: rotate(-4deg) translate3d(calc(var(--px, 0) * -1.6), calc(var(--py, 0) * -1.6), 0); transition: transform .5s var(--ease-out); }
.nv-stack .nv-shot-b img { object-position: 50% 45%; }
.nv-stamp {
  position: absolute; right: -6px; bottom: 26px; z-index: 2; display: grid; place-items: center; text-align: center;
  width: 118px; height: 118px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink);
  font: 700 10px/1.25 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; transform: rotate(10deg);
  box-shadow: var(--shadow-soft);
}
.nv-stamp b { display: block; font: 400 34px/1 'Anton', Impact, sans-serif; letter-spacing: 0; margin: 2px 0; }
.nv-stamp::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed currentColor; opacity: .45; }

/* ---------- key facts ---------- */
.nv-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 64px 0 0; border-top: 1px solid var(--line); }
.nv-fact { padding: 22px 22px 0 0; border-right: 1px solid var(--line); margin-right: 22px; }
.nv-fact:last-child { border-right: 0; margin-right: 0; }
.nv-fact dt { font: 700 10px/1.5 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.nv-fact dd { margin: 8px 0 0; font: 550 clamp(22px, 2.2vw, 30px)/1.15 var(--font-sans); letter-spacing: -.03em; color: var(--ink); }
.nv-fact dd small { display: block; margin-top: 6px; font: 400 13px/1.45 var(--font-sans); letter-spacing: 0; color: var(--muted); }

/* ---------- chapter bar ---------- */
.nv-chapters {
  position: sticky; top: 80px; z-index: 40; background: var(--header-surface); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nv-chapters ol {
  display: flex; gap: 6px; list-style: none; margin: 0 auto; padding: 10px var(--nv-gutter); max-width: calc(var(--nv-wrap) + 2 * var(--nv-gutter));
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.nv-chapters ol::-webkit-scrollbar { display: none; }
.nv-chapters a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border-radius: 99px;
  font: 600 12.5px/1.2 var(--font-sans); color: var(--muted); text-decoration: none; border: 1px solid transparent;
  transition: color .2s, border-color .2s, background-color .2s;
}
.nv-chapters a span { font-size: 10px; letter-spacing: .12em; opacity: .7; }
.nv-chapters a:hover { color: var(--ink); }
.nv-chapters a[aria-current="true"] { color: var(--ink); border-color: var(--line-strong); background: var(--surface-raised); }
.nv-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent-fill); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

/* ---------- chapter layouts ---------- */
.page-nephroverse main > section[id] { scroll-margin-top: 136px; }
.nv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.nv-split--flip > :first-child { order: 2; }
.nv-photo { margin: 0; }
.nv-photo-frame { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--surface); cursor: zoom-in; box-shadow: var(--shadow-soft); }
.nv-photo-frame img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease-out); }
.nv-photo-frame:hover img { transform: scale(1.03); }
.nv-photo figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.nv-zoom {
  position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 18px; line-height: 1; pointer-events: none;
}
.nv-note { margin-top: 26px; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 14px; line-height: 1.6; }
.nv-note p { margin: 0; font-size: 14px; }

/* ---------- anatomy explorer ---------- */
.nv-explorer { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 48px; align-items: start; }
.kx-stage { position: relative; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-card); padding: 18px; }
.kx-view { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 99px; width: max-content; margin: 0 0 8px auto; }
.kx-view button {
  appearance: none; border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 99px;
  font: 600 12px/1 var(--font-sans); cursor: pointer;
}
.kx-view button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.kx-panel { aspect-ratio: 420/500; position: relative; }
.kx-panel[hidden] { display: none; }
.kx-photo { margin: 0; height: 100%; display: flex; flex-direction: column; }
.kx-photo picture { flex: 1; min-height: 0; }
.kx-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.kx-photo figcaption { font-size: 12.5px; color: var(--muted); padding-top: 10px; }
.kx-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.kx-svg .k-cortex { fill: var(--nv-cortex); }
.kx-svg [data-part="medulla"] path:not(.k-stripe) { fill: var(--nv-medulla); }
.kx-svg .k-stripe { fill: none; stroke: var(--nv-stripe); stroke-width: 1.4; stroke-linecap: round; }
.kx-svg .k-calyx-stem { fill: none; stroke: var(--nv-calyx); stroke-width: 9; stroke-linecap: round; }
.kx-svg .k-calyx-cup { fill: none; stroke: var(--nv-calyx); stroke-width: 6; stroke-linecap: round; }
.kx-svg .k-pelvis { fill: var(--nv-pelvis); }
.kx-svg .k-ureter { fill: none; stroke: var(--nv-pelvis); stroke-width: 15; stroke-linecap: round; }
.kx-svg .k-artery { fill: none; stroke: var(--nv-artery); stroke-width: 12; stroke-linecap: round; }
.kx-svg .k-vein { fill: none; stroke: var(--nv-vein); stroke-width: 14; stroke-linecap: round; }
.kx-svg .k-branch { stroke-width: 3.2; }
.kx-svg .k-capsule { fill: none; stroke: var(--nv-capsule); stroke-width: 4; }
.kx-svg .k-hilum { fill: none; stroke: var(--nv-highlight); stroke-width: 2; stroke-dasharray: 5 6; opacity: 0; }
.kx-svg .k-part { cursor: pointer; transition: opacity .35s, filter .35s; }
.kx-svg.has-active .k-part:not(.is-active):not([data-part="hilum"]) { opacity: .28; }
.kx-svg .k-part.is-active { filter: drop-shadow(0 0 0 var(--nv-highlight)) drop-shadow(0 0 6px var(--nv-highlight)); }
.kx-svg [data-part="hilum"].is-active .k-hilum { opacity: 1; }
.kx-svg [data-part="capsule"].is-active .k-capsule { stroke: var(--nv-highlight); stroke-width: 5; }
@media (prefers-reduced-motion: no-preference) {
  .kx-svg [data-part="hilum"].is-active .k-hilum { animation: kx-dash 1.2s linear infinite; }
  .kx-svg .k-artery.k-branch, .kx-svg .k-vein.k-branch { stroke-dasharray: 2 0; }
}
@keyframes kx-dash { to { stroke-dashoffset: -22; } }

.kx-parts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.kx-parts button {
  appearance: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 550 13px/1.2 var(--font-sans); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
}
.kx-parts button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--swatch, var(--accent)); box-shadow: 0 0 0 1px var(--line-strong); }
.kx-parts button:hover { border-color: var(--accent); transform: translateY(-1px); }
.kx-parts button[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.kx-info { border-top: 1px solid var(--line); padding-top: 22px; min-height: 190px; }
.kx-info h3 { margin: 0 0 10px; font: 550 26px/1.2 var(--font-sans); letter-spacing: -.03em; color: var(--ink); }
.kx-info p { margin: 0; font-size: 16px; line-height: 1.7; max-width: 52ch; }
.kx-count { display: block; margin-top: 18px; font: 600 11px/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.kx-nav { display: flex; gap: 10px; margin-top: 18px; }
.kx-nav button {
  appearance: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink); font-size: 18px; cursor: pointer; transition: border-color .2s;
}
.kx-nav button:hover { border-color: var(--accent); }

/* ---------- syndrome sorter ---------- */
.nv-quiz { margin-top: 56px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-card); padding: clamp(22px, 3.4vw, 40px); }
.nv-quiz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.nv-quiz-head h3 { margin: 0; font: 550 clamp(22px, 2.4vw, 30px)/1.2 var(--font-sans); letter-spacing: -.03em; color: var(--ink); }
.nv-quiz-head p { margin: 6px 0 0; font-size: 14px; }
.nv-score { font: 600 12px/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.nv-meter { height: 3px; background: var(--line); border-radius: 3px; margin: 22px 0 28px; overflow: hidden; }
.nv-meter i { display: block; height: 100%; width: var(--done, 0%); background: var(--accent-fill); transition: width .4s var(--ease-out); }
.page-nephroverse .nv-clue { font: 500 clamp(24px, 3vw, 38px)/1.2 var(--font-sans); letter-spacing: -.03em; color: var(--ink); margin: 0 0 26px; min-height: 2.4em; }
.nv-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nv-choices button {
  appearance: none; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); text-align: left; cursor: pointer; font: 600 16px/1.3 var(--font-sans);
  transition: border-color .2s, transform .2s var(--ease-out), background-color .2s;
}
.nv-choices button small { display: block; margin-top: 4px; font: 400 13px/1.4 var(--font-sans); color: var(--muted); }
.nv-choices button:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.nv-choices button:disabled { cursor: default; }
.nv-choices button.is-right { border-color: var(--nv-correct); box-shadow: inset 0 0 0 1px var(--nv-correct); }
.nv-choices button.is-wrong { border-color: var(--nv-wrong); box-shadow: inset 0 0 0 1px var(--nv-wrong); }
.page-nephroverse .nv-feedback { min-height: 3.4em; margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.nv-feedback b.ok { color: var(--nv-correct); }
.nv-feedback b.no { color: var(--nv-wrong); }
.nv-quiz-foot { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.nv-cheat { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.nv-cheat summary { cursor: pointer; font: 600 14px/1.4 var(--font-sans); color: var(--ink); }
.nv-cheat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.nv-cheat h4 { margin: 0 0 8px; font: 600 15px/1.3 var(--font-sans); color: var(--ink); }
.nv-cheat ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* ---------- creative ---------- */
.nv-duo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: end; }
.nv-duo .nv-photo:last-child { margin-bottom: 64px; }
.nv-props { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.nv-props li { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-strong); font: 500 13px/1.3 var(--font-sans); color: var(--ink); }

/* ---------- gallery ---------- */
.nv-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; margin-top: 44px; }
.nv-tile { position: relative; margin: 0; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--surface); cursor: zoom-in; color: #fff; text-align: left; font: inherit; }
.nv-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.nv-tile:hover img { transform: scale(1.04); }
.nv-tile::after { content: ''; position: absolute; inset: 0; background: var(--nv-scrim); opacity: .9; transition: opacity .3s; }
.nv-tile span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font: 500 15px/1.35 var(--font-sans); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.nv-tile small { display: block; font: 700 9.5px/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; opacity: .85; margin-bottom: 4px; }
.nv-tile:nth-child(1) { grid-column: span 7; aspect-ratio: 1/1; }
.nv-tile:nth-child(2) { grid-column: span 5; aspect-ratio: auto; } /* stretches to the square tile beside it */
.nv-tile:nth-child(3) { grid-column: span 4; aspect-ratio: 3/4; }
.nv-tile:nth-child(4) { grid-column: span 4; aspect-ratio: 3/4; }
.nv-tile:nth-child(5) { grid-column: span 4; aspect-ratio: 3/4; }

/* ---------- photo viewer (dialog). Dark in both modes: photos read best on near-black. ---------- */
#nv-viewer { border: 0; padding: 20px; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: #0d0d0f; color: #f4f1ea; }
#nv-viewer::backdrop { background: #0d0d0f; }
#nv-viewer figure { height: calc(100% - 96px); margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
#nv-viewer picture { display: contents; }
#nv-viewer figure img { max-height: calc(100% - 44px); max-width: 100%; object-fit: contain; border-radius: 6px; }
#nv-viewer figcaption { font-size: 15px; text-align: center; max-width: 60ch; }
#nv-viewer button { appearance: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #6b6b70; background: #222226; color: #fff; font-size: 22px; cursor: pointer; }
#nv-viewer button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.nv-viewer-close { position: absolute; right: 18px; top: 14px; z-index: 2; }
.nv-viewer-controls { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 20px; }
.nv-viewer-controls span { font: 600 13px/1 var(--font-sans); letter-spacing: .1em; min-width: 54px; text-align: center; }

/* ---------- what's next ---------- */
.nv-next { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.nv-next a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 240px; padding: 30px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--bg-card); color: var(--ink); text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.nv-next a:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.nv-next small { font: 700 10px/1.5 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.nv-next strong { display: block; font: 550 clamp(26px, 2.8vw, 36px)/1.1 var(--font-sans); letter-spacing: -.035em; margin-top: 12px; }
.nv-next p { margin: 10px 0 0; font-size: 15px; }
.nv-next .nv-arrow { font: 600 14px/1 var(--font-sans); color: var(--accent); }
.nv-next .nv-arrow::after { content: ' →'; display: inline-block; transition: transform .3s var(--ease-out); }
.nv-next a:hover .nv-arrow::after { transform: translateX(5px); }

/* ---------- reveal motion (only with JS, only without reduced motion) ---------- */
html.nv-motion .nv-rise { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
html.nv-motion .nv-rise.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nv-hero > .nv-wrap:first-child, .nv-split, .nv-explorer { grid-template-columns: 1fr; }
  .nv-split--flip > :first-child { order: 0; }
  .nv-stack { min-height: 0; aspect-ratio: 1/1; max-width: 560px; width: 100%; margin: 8px auto 0; }
  .nv-facts { grid-template-columns: 1fr 1fr; }
  .nv-fact:nth-child(2) { border-right: 0; margin-right: 0; }
  .nv-fact:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 22px; }
  .nv-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-tile:nth-child(n) { grid-column: span 1; aspect-ratio: 3/4; }
  .nv-tile:nth-child(1) { grid-column: span 2; aspect-ratio: 1/1; }
  .kx-stage { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 700px) {
  .page-nephroverse main > section { padding: 64px 20px; }
  .page-nephroverse main > section.nv-hero { padding-top: 40px; padding-bottom: 64px; }
  .nv-actions .nv-btn { flex: 1 1 auto; }
  .nv-stamp { width: 92px; height: 92px; font-size: 8.5px; right: 0; bottom: 18px; }
  .nv-stamp b { font-size: 26px; }
  .nv-stack .nv-shot-a { inset: 0 0 48px 10%; }
  .nv-facts { margin-top: 44px; }
  .nv-fact { padding-right: 12px; margin-right: 12px; }
  .nv-choices, .nv-cheat-grid, .nv-next { grid-template-columns: 1fr; }
  .nv-duo { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nv-duo .nv-photo:last-child { margin-bottom: 40px; }
  .nv-tile span { font-size: 13px; left: 12px; right: 12px; bottom: 12px; }
  .nv-gallery { gap: 10px; }
  .nv-chapters { top: 80px; }
  .nv-next a { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-stack figure, .nv-photo-frame img, .nv-tile img, .nv-next a, .kx-svg .k-part { transition: none; }
}

/* editorial.css colours every paragraph with html[data-mode] body.editorial p;
   restate the page's own paragraph colours at a matching specificity. */
html[data-mode] body.page-nephroverse .nv-label { color: var(--accent); }
html[data-mode] body.page-nephroverse :is(.nv-clue, .nv-feedback) { color: var(--ink); }
html[data-mode] body.page-nephroverse .nv-feedback b.ok { color: var(--nv-correct); }
html[data-mode] body.page-nephroverse .nv-feedback b.no { color: var(--nv-wrong); }
html[data-mode] body.page-nephroverse .nv-stamp { color: var(--btn-ink); }
html[data-mode] body.page-nephroverse .nv-zoom { color: #fff; }
