.nf-interactive {
  --nf-ink: var(--wiki-text, #263b43);
  --nf-muted: var(--wiki-text-muted, #65757c);
  --nf-paper: var(--wiki-surface, #fff);
  --nf-soft: var(--wiki-surface-soft, #f5f7f7);
  --nf-line: var(--wiki-line, #dce3e5);
  --nf-accent: var(--wiki-accent, #347f82);
  --nf-blood: #ad6863;
  --nf-fluid: #377b91;
  --nf-return: #6a8670;
  --nf-tube: #ead6be;
  --nf-lumen: #fffaf0;
  --nf-cortex: #f8eeea;
  --nf-medulla: #f0e7d7;
  --nf-urine: #d9b459;
  container-type: inline-size;
  container-name: nephron;
  width: 100%;
  min-width: 0;
  margin: 1.5rem auto;
  color: var(--nf-ink);
  background: var(--nf-paper);
  border: 1px solid var(--nf-line);
  border-radius: var(--wiki-radius-lg, 18px);
  overflow: hidden;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
}
[data-md-color-scheme="slate"] .nf-interactive {
  --nf-blood: #cf938c;
  --nf-fluid: #77b6cd;
  --nf-return: #99b39c;
  --nf-tube: #75654c;
  --nf-lumen: #293235;
  --nf-cortex: #362f31;
  --nf-medulla: #39352b;
  --nf-urine: #c4a653;
}
.nf-interactive, .nf-interactive * { box-sizing: border-box; }
.nf-interactive [hidden] { display: none !important; }
.nf-interactive p { margin: 0; max-width: none; }
.nf-interactive h3, .nf-interactive h4 { margin: 0; color: var(--nf-ink); letter-spacing: -.02em; }
.nf-interactive button {
  appearance: none; margin: 0; min-height: 44px; padding: 9px 14px; border: 1px solid var(--nf-line);
  border-radius: 8px; color: var(--nf-ink); background: var(--nf-paper); font: inherit;
  font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.nf-interactive button:hover { background: var(--nf-soft); border-color: var(--nf-muted); }
.nf-interactive button[aria-pressed="true"] { background: color-mix(in srgb, var(--nf-accent) 12%, var(--nf-paper)); border-color: var(--nf-accent); color: var(--nf-ink); }
.nf-interactive button:disabled { opacity: .42; cursor: default; }
.nf-interactive :is(button, [role="button"]):focus-visible { outline: 3px solid var(--nf-accent); outline-offset: 3px; }
.nf-header { padding: 22px 26px 18px; display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.nf-header h3 { font-size: clamp(24px, 2.4cqw, 31px); line-height: 1.12; margin: 4px 0 9px; font-weight: 700; }
.nf-header p:not(.nf-eyebrow):not(.nf-scope) { color: var(--nf-muted); }
.nf-eyebrow { color: var(--nf-muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nf-interactive .nf-scope { max-width: 230px; color: var(--nf-muted); font-size: 13px; }
.nf-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 26px 16px; border-bottom: 1px solid var(--nf-line); }
.nf-tabs button { border-color: transparent; background: transparent; }
.nf-tabs button[aria-pressed="true"] { border-color: transparent; }
.nf-settings { padding: 16px 26px; display: grid; gap: 12px; background: var(--nf-soft); border-bottom: 1px solid var(--nf-line); }
.nf-substances, .nf-hydration { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nf-small-label { color: var(--nf-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nf-settings .nf-small-label { min-width: 76px; }
.nf-substances button { display: inline-flex; gap: 7px; align-items: center; }
.nf-substance-symbol { width: 24px; height: 24px; display: inline-grid; place-items: center; color: var(--nf-fluid); background: color-mix(in srgb, var(--nf-fluid) 8%, var(--nf-paper)); border-radius: 50%; font-size: 12px; }
.nf-scenario-note { color: var(--nf-muted); font-size: 13px; background: var(--nf-soft); }
.nf-scenario-note:not(:empty) { padding: 9px 26px; border-bottom: 1px solid var(--nf-line); }
.nf-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.nf-diagram-area { min-width: 0; padding: 19px 24px 14px; background: color-mix(in srgb, var(--nf-soft) 65%, var(--nf-paper)); }
.nf-diagram-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; font-size: 15px; font-weight: 600; }
.nf-model-label { font-size: 12px; font-weight: 400; color: var(--nf-muted); white-space: nowrap; }
.nf-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; color: var(--nf-muted); font-size: 13px; }
.nf-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.nf-line-key { display: inline-block; width: 22px; height: 0; border-top: 3px solid; }
.nf-blood-key { border-color: var(--nf-blood); }
.nf-fluid-key { border-color: var(--nf-fluid); border-top-style: dashed; }
.nf-return-key { border-color: var(--nf-return); position: relative; }
.nf-return-key::after { content: ""; position: absolute; right: -1px; top: -6px; width: 8px; height: 8px; border-top: 2px solid var(--nf-return); border-right: 2px solid var(--nf-return); transform: rotate(45deg); }
.nf-diagram { position: relative; width: 100%; min-height: clamp(280px, 45cqw, 650px); }
.nf-anatomy-svg { display: block; width: 100%; height: auto; overflow: visible; }
.nf-full-svg { min-height: clamp(280px, 42cqw, 640px); }
.nf-detail-svg, .nf-locator { display: none; }
.nf-anatomy-svg text { font-family: inherit; fill: var(--nf-ink); }
.nf-label { font-size: var(--nf-svg-label, 16px); font-weight: 500; }
.nf-note-label { font-size: calc(var(--nf-svg-label, 16px) * .9); fill: var(--nf-muted) !important; }
.nf-region-label { font-size: calc(var(--nf-svg-label, 16px) * .82); font-weight: 700; letter-spacing: .12em; fill: var(--nf-muted) !important; }
.nf-strong { font-weight: 700; }
.nf-blood-fill { fill: var(--nf-blood); }
.nf-fluid-fill { fill: var(--nf-fluid); }
.nf-return-fill { fill: var(--nf-return); }
.nf-cortex-fill { fill: var(--nf-cortex); }
.nf-medulla-fill { fill: var(--nf-medulla); }
.nf-boundary { fill: none; stroke: var(--nf-muted); stroke-width: 1; opacity: .35; stroke-dasharray: 4 6; }
.nf-tube-wall { fill: none; stroke: var(--nf-tube); stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; }
.nf-tube-lumen { fill: none; stroke: var(--nf-lumen); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.nf-fluid-path { fill: none; stroke: var(--nf-fluid); stroke-width: 2.5; stroke-dasharray: 6 7; stroke-linecap: round; }
.nf-blood-vessel { fill: none; stroke: var(--nf-blood); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.nf-capillary { stroke-width: 7; }
.nf-glom-vessel { fill: none; stroke: var(--nf-blood); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.nf-blood-flow { fill: none; stroke: var(--nf-lumen); stroke-width: 2; }
.nf-return-path { fill: none; stroke: var(--nf-return); stroke-width: 3; }
.nf-signal-path { fill: none; stroke: var(--nf-return); stroke-width: 1.8; stroke-dasharray: 3 4; }
.nf-filtration-arrow { fill: none; stroke: var(--nf-fluid); stroke-width: 3; }
.nf-label-line { fill: none; stroke: var(--nf-muted); stroke-width: 1.25; }
.nf-segment { cursor: pointer; }
.nf-segment .nf-tube-wall { transition: stroke .25s; }
.nf-segment.is-active .nf-tube-wall, .nf-segment:hover .nf-tube-wall { stroke: color-mix(in srgb, var(--nf-accent) 48%, var(--nf-tube)); }
.nf-segment:focus-visible .nf-tube-wall { stroke: var(--nf-accent); }
.nf-segment.is-active .nf-blood-vessel { stroke-width: 14; }
.nf-glomerulus { cursor: pointer; }
.nf-token { animation: nf-token-arrival .4s ease-out; }
.nf-token circle { fill: var(--nf-fluid); stroke: var(--nf-paper); stroke-width: 2; }
.nf-token.nf-token-blood circle { fill: var(--nf-blood); }
.nf-token text { font-size: calc(var(--nf-svg-label, 16px) * .94); font-weight: 700; fill: #fff; }
.nf-white-text { fill: #fff !important; }
.nf-blood-text { fill: var(--nf-blood) !important; }
.nf-return-text { fill: var(--nf-return) !important; }
.nf-kidney { fill: color-mix(in srgb, var(--nf-blood) 26%, var(--nf-paper)); stroke: var(--nf-blood); stroke-width: 2; }
.nf-pyramid { fill: color-mix(in srgb, var(--nf-blood) 15%, var(--nf-medulla)); stroke: var(--nf-blood); stroke-width: 1; }
.nf-pelvis { fill: none; stroke: var(--nf-tube); stroke-width: 9; stroke-linecap: round; }
.nf-locator-dot { fill: var(--nf-accent); stroke: var(--nf-paper); stroke-width: 2; }
.nf-locator-line { fill: none; stroke: var(--nf-muted); stroke-dasharray: 4 5; stroke-width: 1.25; }
.nf-interactive .nf-diagram-caption { color: var(--nf-muted); font-size: 12px; margin-top: 4px; }
.nf-inspector { padding: 26px 24px; border-left: 1px solid var(--nf-line); min-width: 0; }
.nf-inspector h4 { margin: 6px 0 11px; font-size: 22px; line-height: 1.2; }
.nf-inspector > p:not(.nf-small-label):not(.nf-process) { color: var(--nf-muted); line-height: 1.65; }
.nf-interactive .nf-process { display: inline-block; color: var(--nf-return); font-size: 13px; font-weight: 700; margin-top: 14px; }
.nf-route-ledger { padding: 13px 0 0; margin-top: 12px; border-top: 1px solid var(--nf-line); font-size: 13px; line-height: 1.6; }
.nf-prediction:not(:empty) { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--nf-line); }
.nf-prediction p { font-size: 14px; color: var(--nf-muted); }
.nf-prediction .nf-prompt { font-size: 14px; color: var(--nf-ink); font-weight: 700; margin-bottom: 4px; }
.nf-prediction > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.nf-feedback { background: var(--nf-soft); padding: 12px; margin-top: 12px; border-radius: 8px; font-size: 14px; }
.nf-compare-button { margin-top: 18px !important; }
.nf-sequence { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--nf-line); }
.nf-sequence button { display: flex; align-items: center; gap: 9px; padding: 12px 10px; min-height: 62px; border-radius: 0; border: 0; background: transparent; font-size: 12px; text-align: left; font-weight: 500; }
.nf-sequence button[aria-pressed="true"] { box-shadow: inset 0 3px var(--nf-accent); }
.nf-sequence button > span { display: inline-grid; place-items: center; flex: 0 0 25px; width: 25px; min-width: 25px; height: 25px; border: 1px solid var(--nf-line); border-radius: 50%; font-weight: 700; }
.nf-sequence button[aria-pressed="true"] > span { border-color: var(--nf-accent); color: var(--nf-accent); }
.nf-interactive[data-mode="gradient"] .nf-sequence, .nf-interactive[data-mode="adh"] .nf-sequence { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nf-navigation { display: flex; gap: 8px; padding: 15px 24px 18px; border-bottom: 1px solid var(--nf-line); }
.nf-interactive .nf-primary { background: var(--nf-accent); border-color: var(--nf-accent); color: var(--nf-paper); }
.nf-interactive .nf-primary:hover { filter: brightness(1.08); }
.nf-reset { margin-left: auto !important; }
.nf-water-chain { padding: 20px 24px; background: var(--nf-soft); }
.nf-chain-heading { display: flex; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.nf-chain-heading > span { color: var(--nf-muted); font-size: 13px; }
.nf-interactive .nf-chain { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nf-interactive .nf-chain li { position: relative; margin: 0; padding: 0 20px 0 16px; border-left: 1px solid var(--nf-line); }
.nf-chain li:first-child { padding-left: 0; border: 0; }
.nf-chain li:not(:last-child)::after { content: "→"; position: absolute; right: 2px; top: 16px; color: var(--nf-muted); }
.nf-chain li > span { display: block; color: var(--nf-muted); font-size: 12px; margin-bottom: 3px; }
.nf-chain strong { font-size: 14px; font-weight: 600; }
.nf-comparison { padding: 25px; border-top: 1px solid var(--nf-line); }
.nf-comparison h4 { font-size: 21px; margin-bottom: 6px; }
.nf-comparison p { color: var(--nf-muted); font-size: 14px; }
.nf-comparison-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px auto 14px; max-width: 880px; }
.nf-comparison-column { padding: 10px; min-width: 0; text-align: center; font-size: 15px; }
.nf-comparison-column.is-current { background: var(--nf-soft); border-radius: 10px; }
.nf-comparison-column svg { display: block; width: 100%; max-height: 255px; margin: 10px 0; }
.nf-comparison-column > p { font-size: 14px; }
.nf-comparison-column svg text { font-family: inherit; fill: var(--nf-ink); font-size: 12px; }
.nf-interactive .nf-comparison-takeaway { color: var(--nf-ink); font-weight: 600; }
.nf-beaker-wall, .nf-beaker-rim { fill: none; stroke: var(--nf-muted); stroke-width: 2; }
.nf-urine-fill { fill: var(--nf-urine); }
.nf-urine-excess { opacity: .35; }
.nf-urine-normal { opacity: .6; }
.nf-urine-deficit { opacity: .85; }
.nf-fluid-surface { fill: none; stroke: var(--nf-urine); stroke-width: 1.5; }
.nf-solute { fill: var(--nf-ink); opacity: .6; }
.nf-gradient-band { fill: var(--nf-medulla); }
.nf-band-0 { opacity: .35; }.nf-band-1 { opacity: .6; }.nf-band-2 { opacity: .8; }.nf-band-3 { opacity: 1; }
.nf-gradient-action { opacity: .58; transition: opacity .2s; }
.nf-gradient-action.is-emphasized { opacity: 1; }
.nf-gradient-action.is-emphasized .nf-return-path { stroke-width: 4.5; }
.nf-brain { fill: var(--nf-cortex); stroke: var(--nf-blood); stroke-width: 2; }
.nf-hypothalamus, .nf-pituitary { fill: var(--nf-blood); }
.nf-neuron { fill: none; stroke: var(--nf-blood); stroke-width: 3; }
.nf-duct-cell { fill: var(--nf-tube); stroke: var(--nf-muted); stroke-width: 1; }
.nf-lumen-fill { fill: color-mix(in srgb, var(--nf-fluid) 10%, var(--nf-paper)); }
.nf-membrane { fill: none; stroke: var(--nf-muted); stroke-width: 3; }
.nf-vesicle { fill: var(--nf-lumen); stroke: var(--nf-return); stroke-width: 2; }
.nf-aquaporin { fill: var(--nf-fluid); stroke: var(--nf-paper); stroke-width: 1; }
.nf-receptor { fill: none; stroke: var(--nf-fluid); stroke-width: 5; }
.nf-interactive .is-emphasized { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--nf-accent) 55%, transparent)); }
.nf-footer { padding: 14px 24px; border-top: 1px solid var(--nf-line); color: var(--nf-muted); font-size: 12px; line-height: 1.6; }
.nf-interactive.is-playing .nf-fluid-path { animation: nf-flow 1.6s linear infinite; }
@keyframes nf-flow { to { stroke-dashoffset: -26; } }
@keyframes nf-token-arrival { from { opacity: 0; } to { opacity: 1; } }
@container nephron (max-width: 1100px) {
  .nf-workspace { grid-template-columns: minmax(0,1fr); }
  .nf-inspector { border-left: 0; border-top: 1px solid var(--nf-line); display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.75fr); column-gap: 28px; padding: 20px 24px; }
  .nf-inspector > .nf-small-label, .nf-inspector > h4, .nf-inspector > [data-role="stage-text"], .nf-inspector > .nf-process { grid-column: 1; }
  .nf-inspector .nf-prediction { grid-column: 2; grid-row: 1 / 5; margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--nf-line); }
  .nf-route-ledger { grid-column: 1 / -1; }
  .nf-feedback { grid-column: 1 / -1; }
  .nf-compare-button { justify-self: start; }
  .nf-full-svg { min-height: clamp(300px, 48cqw, 630px); }
  .nf-diagram { min-height: clamp(300px, 48cqw, 630px); }
}
@container nephron (max-width: 750px) {
  .nf-header { padding: 20px; }
  .nf-tabs { padding: 0 18px 14px; }
  .nf-settings { padding: 14px 18px; }
  .nf-settings .nf-small-label { flex-basis: 100%; min-width: 0; }
  .nf-substances button { padding: 8px 10px; }
  .nf-sequence { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .nf-interactive .nf-chain { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 0; }
  .nf-interactive .nf-chain li { border-left: 0; padding-left: 0; }
  .nf-inspector { grid-template-columns: minmax(0,1fr); }
  .nf-inspector .nf-prediction { grid-column: 1; grid-row: auto; margin-top: 15px; padding: 15px 0 0; border-left: 0; border-top: 1px solid var(--nf-line); }
}
@container nephron (max-width: 640px) {
  .nf-header { display: block; }
  .nf-interactive .nf-scope { max-width: none; margin-top: 10px; }
  .nf-diagram-area { padding: 16px; }
  .nf-diagram-heading { display: block; }
  .nf-model-label { display: block; margin-top: 3px; }
  .nf-legend { gap: 12px; }
  .nf-full-svg { display: none; }
  .nf-detail-svg { display: block; max-height: 440px; width: 100%; }
  .nf-diagram { min-height: clamp(320px, 76cqw, 535px); }
  .nf-locator { display: flex; gap: 16px; align-items: center; border-bottom: 1px solid var(--nf-line); margin: 10px 0 12px; padding-bottom: 10px; }
  .nf-locator svg { width: 114px; height: 88px; flex: 0 0 114px; }
  .nf-locator > div { display: grid; gap: 3px; font-size: 13px; }
  .nf-locator strong { font-size: 15px; }
  .nf-locator span:last-child { color: var(--nf-muted); }
  .nf-mini-nephron { fill: none; stroke: var(--nf-fluid); stroke-width: 4; stroke-linecap: round; }
  .nf-inspector { padding: 20px 18px; }
  .nf-navigation { padding: 15px 18px; flex-wrap: wrap; }
  .nf-navigation button { flex: 1 0 auto; }
  .nf-reset { margin-left: 0 !important; }
  .nf-water-chain { padding: 18px; }
  .nf-chain-heading { display: block; }
  .nf-chain-heading > span { display: block; margin-top: 2px; }
  .nf-footer { padding: 13px 18px; }
  .nf-comparison { padding: 20px 16px; }
  .nf-comparison-columns { gap: 4px; }
  .nf-comparison-column { padding: 2px; }
  .nf-comparison-column svg text { font-size: 15px; }
  .nf-interactive[data-mode="gradient"] .nf-diagram, .nf-interactive[data-mode="adh"] .nf-diagram { min-height: 0; padding-top: 12px; }
  .nf-mechanism-svg { display: none; }
}
@container nephron (max-width: 420px) {
  .nf-header, .nf-settings { padding-left: 14px; padding-right: 14px; }
  .nf-tabs { padding-left: 10px; padding-right: 10px; gap: 3px; }
  .nf-tabs button { padding: 9px 10px; }
  .nf-substances { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nf-substances .nf-small-label { grid-column: 1 / -1; }
  .nf-substances button { justify-content: start; font-size: 13px; }
  .nf-hydration { gap: 6px; }
  .nf-hydration button { font-size: 13px; padding: 9px 10px; }
  .nf-diagram-area { padding-left: 12px; padding-right: 12px; }
  .nf-sequence button { flex-direction: column; align-items: start; font-size: 12px; gap: 6px; }
  .nf-navigation { padding-left: 12px; padding-right: 12px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nf-navigation button { padding: 10px 9px; }
  .nf-interactive .nf-chain { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 10px; }
  .nf-interactive .nf-chain li { padding-right: 16px; }
  .nf-chain li::after { display: none; }
  .nf-interactive[data-mode="gradient"] .nf-sequence, .nf-interactive[data-mode="adh"] .nf-sequence { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nf-comparison-columns { gap: 7px; }
  .nf-comparison-column { font-size: 13px; }
  .nf-comparison-column > p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-interactive *, .nf-interactive *::before, .nf-interactive *::after { animation: none !important; transition: none !important; }
}
/* Fine anatomical contours and continuous wall/lumen geometry. */
.nf-interactive .nf-anatomy-svg { overflow: hidden; }
.nf-interactive .nf-tube-contour { fill: none; stroke: color-mix(in srgb,var(--nf-muted) 55%,var(--nf-tube)); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.nf-interactive .nf-tube-wall { stroke-width: 14; }
.nf-interactive .nf-tube-lumen { stroke-width: 7; }
.nf-interactive .nf-fluid-path { stroke-width: 1.6; stroke-dasharray: 4 7; }
.nf-interactive .nf-capillary-mesh path { fill: none; stroke: var(--nf-blood); stroke-width: 1.7; opacity: .66; stroke-linecap: round; stroke-linejoin: round; }
.nf-interactive .nf-capillary-mesh .nf-vessel-venule { stroke-width: 3.5; opacity: 1; }
.nf-interactive .nf-anatomy-contour { fill: color-mix(in srgb,var(--nf-muted) 55%,var(--nf-tube)); stroke: color-mix(in srgb,var(--nf-muted) 55%,var(--nf-tube)); stroke-width: 2; }
.nf-interactive .nf-anatomy-contour .nf-tubular-line { stroke-width: 16; }
.nf-interactive .nf-anatomy-wall { fill: var(--nf-tube); stroke: none; }
.nf-interactive .nf-anatomy-wall .nf-tubular-line { stroke: var(--nf-tube); stroke-width: 14; }
.nf-interactive .nf-anatomy-lumen { fill: var(--nf-lumen); stroke: none; }
.nf-interactive .nf-anatomy-lumen .nf-tubular-line { stroke: var(--nf-lumen); stroke-width: 7; }
.nf-interactive .nf-tubular-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nf-interactive .nf-arteriole-wall path, .nf-interactive .nf-arteriole-lumen path, .nf-interactive .nf-glomerular-network path { fill: none; stroke: var(--nf-blood); stroke-linecap: round; stroke-linejoin: round; }
.nf-interactive .nf-arteriole-wall .nf-vessel-afferent { stroke-width: 11; }
.nf-interactive .nf-arteriole-wall .nf-vessel-efferent { stroke-width: 8; }
.nf-interactive .nf-arteriole-lumen path { stroke: color-mix(in srgb,var(--nf-blood) 25%,var(--nf-lumen)); }
.nf-interactive .nf-arteriole-lumen .nf-vessel-afferent { stroke-width: 6; }
.nf-interactive .nf-arteriole-lumen .nf-vessel-efferent { stroke-width: 3; }
.nf-interactive .nf-glomerular-network path { stroke-width: 2.8; }
.nf-interactive .nf-capsule-body { fill: var(--nf-lumen); stroke: var(--nf-tube); stroke-width: 5; stroke-linejoin: round; }
.nf-interactive .nf-corpuscle.is-active .nf-capsule-body { stroke: color-mix(in srgb,var(--nf-accent) 50%,var(--nf-tube)); }
.nf-interactive .nf-tuft-fill { fill: color-mix(in srgb,var(--nf-blood) 16%,var(--nf-lumen)); stroke: var(--nf-blood); stroke-width: 1; }
.nf-interactive .nf-tuft-vessel { fill: none; stroke: var(--nf-blood); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.nf-interactive .nf-tuft-fine { fill: none; stroke: var(--nf-blood); stroke-width: 1.7; stroke-linecap: round; }
.nf-interactive .nf-afferent { fill: none; stroke: var(--nf-blood); stroke-width: 9; stroke-linecap: round; }
.nf-interactive .nf-efferent { fill: none; stroke: var(--nf-blood); stroke-width: 5; stroke-linecap: round; }
.nf-interactive .nf-selectable-segments path { fill: none; stroke: transparent; stroke-width: 32; cursor: pointer; pointer-events: stroke; }
.nf-interactive .nf-selectable-segments path:hover, .nf-interactive .nf-selectable-segments path:focus-visible { stroke: color-mix(in srgb,var(--nf-accent) 15%,transparent); outline: none; }
.nf-interactive .nf-kidney { stroke-width: 1.4; fill: color-mix(in srgb,var(--nf-tube) 40%,var(--nf-lumen)); }
.nf-interactive .nf-kidney-inner { fill: var(--nf-lumen); stroke: color-mix(in srgb,var(--nf-muted) 30%,var(--nf-tube)); stroke-width: 1; }
.nf-interactive .nf-medullary-lobe { fill: color-mix(in srgb,var(--nf-blood) 16%,var(--nf-tube)); stroke: color-mix(in srgb,var(--nf-blood) 50%,var(--nf-tube)); stroke-width: .8; }
.nf-interactive .nf-medullary-striation { fill: none; stroke: var(--nf-blood); stroke-width: .65; opacity: .4; }
.nf-interactive .nf-calyx-edge { fill: none; stroke: color-mix(in srgb,var(--nf-muted) 35%,var(--nf-tube)); stroke-width: 6; stroke-linecap: round; }
.nf-interactive .nf-calyx { fill: none; stroke: var(--nf-lumen); stroke-width: 4; stroke-linecap: round; }
.nf-interactive .nf-pelvis-edge { fill: none; stroke: color-mix(in srgb,var(--nf-muted) 45%,var(--nf-tube)); stroke-width: 10; stroke-linecap: round; }
.nf-interactive .nf-pelvis { stroke: var(--nf-tube); stroke-width: 8; }
.nf-interactive .nf-kidney-vessels { fill: none; stroke: var(--nf-blood); stroke-width: 4; stroke-linecap: round; }
/* The drawing is the workspace. Explanations and predictions open on demand. */
.nf-interactive .nf-header { padding: 18px 24px 10px; align-items: center; }
.nf-interactive .nf-header h3 { margin: 0; font-size: 24px; }
.nf-interactive .nf-course-note { color: var(--nf-muted); font-size: 12px; }
.nf-interactive .nf-settings { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 24px 15px; background: var(--nf-paper); }
.nf-interactive .nf-settings label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--nf-muted); }
.nf-interactive select { font: inherit; font-size: 14px; color: var(--nf-ink); background: var(--nf-paper); border: 1px solid var(--nf-line); border-radius: 6px; padding: 9px 28px 9px 10px; min-height: 44px; max-width: 100%; }
.nf-interactive select:focus-visible, .nf-interactive summary:focus-visible { outline: 3px solid var(--nf-accent); outline-offset: 2px; }
.nf-interactive .nf-workspace { display: block; }
.nf-interactive .nf-diagram-area { padding: 16px 24px 8px; }
.nf-interactive .nf-diagram-heading { align-items: center; }
.nf-interactive .nf-legend { margin-top: 0; font-size: 12px; }
.nf-interactive .nf-diagram { min-height: 0; }
.nf-interactive .nf-full-svg { min-height: 0; max-height: 700px; }
.nf-interactive .nf-inspector { display: block; padding: 16px 24px; border-left: 0; border-top: 1px solid var(--nf-line); }
.nf-interactive .nf-step-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.nf-interactive .nf-inspector h4 { margin: 0; font-size: 18px; }
.nf-interactive .nf-inspector > p:not(.nf-small-label):not(.nf-process) { line-height: 1.5; font-size: 15px; max-width: 920px; color: var(--nf-ink); }
.nf-interactive .nf-navigation { padding: 0 24px 18px; border-bottom: 1px solid var(--nf-line); }
.nf-interactive .nf-optional { padding: 8px 24px 12px; }
.nf-interactive .nf-more { border: 0; margin: 0; padding: 0; box-shadow: none; background: transparent; }
.nf-interactive .nf-more + .nf-more { border-top: 1px solid var(--nf-line); }
.nf-interactive .nf-more > summary { display: list-item; min-height: 44px; padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--nf-muted); background: transparent; cursor: pointer; }
.nf-interactive .nf-more > summary::before, .nf-interactive .nf-more > summary::after { display: none; }
.nf-interactive .nf-more > p { margin: 0 0 12px; font-size: 14px; color: var(--nf-muted); line-height: 1.65; }
.nf-interactive .nf-more .nf-prediction { padding: 0 0 12px; margin: 0; border: 0; }
.nf-interactive .nf-more .nf-feedback { margin: 0 0 12px; }
.nf-interactive .nf-more .nf-water-chain { padding: 0 0 16px; background: transparent; }
.nf-interactive .nf-more .nf-sequence { border: 0; margin-bottom: 12px; }
.nf-interactive .nf-route-ledger { margin: 0 0 15px; }
@container nephron (max-width: 640px) {
  .nf-interactive .nf-header { padding: 16px 14px 9px; display: flex; gap: 10px; }
  .nf-interactive .nf-header h3 { font-size: 21px; }
  .nf-interactive .nf-settings { padding: 5px 14px 13px; gap: 8px 12px; }
  .nf-interactive .nf-settings label { flex: 1 1 140px; flex-direction: column; align-items: stretch; gap: 3px; font-size: 12px; }
  .nf-interactive .nf-view-choice { flex-basis: 100% !important; }
  .nf-interactive .nf-view-choice select { width: 100%; }
  .nf-interactive .nf-diagram-area { padding: 14px 12px 8px; }
  .nf-interactive .nf-diagram-heading { display: block; font-size: 14px; }
  .nf-interactive .nf-legend { margin-top: 6px; font-size: 11px; gap: 12px; }
  .nf-interactive .nf-detail-svg { max-height: 520px; }
  .nf-interactive .nf-inspector { padding: 14px; }
  .nf-interactive .nf-step-heading { gap: 9px; align-items: baseline; }
  .nf-interactive .nf-small-label { font-size: 10px; }
  .nf-interactive .nf-navigation { padding: 0 14px 15px; }
  .nf-interactive .nf-optional { padding: 5px 14px 10px; }
  .nf-interactive .nf-locator { margin-top: 8px; }
}
.nf-interactive .nf-brain-folds { fill: none; stroke: color-mix(in srgb,var(--nf-blood) 45%,var(--nf-cortex)); stroke-width: 1.4; stroke-linecap: round; }
.nf-interactive details.nf-more { border: 0; border-radius: 0; background: none; box-shadow: none; margin: 0; padding: 0; overflow: visible; }
.nf-interactive details.nf-more + details.nf-more { border-top: 1px solid var(--nf-line); }
.nf-interactive details.nf-more > summary { margin: 0; padding: 12px 0; border: 0; border-radius: 0; list-style-position: inside; background: none; box-shadow: none; }
.nf-interactive .nf-phone-caption { display: none; }
@container nephron (max-width: 640px) {
  .nf-interactive .nf-phone-caption { display: inline; }
  .nf-interactive .nf-full-caption { display: none; }
}

/* A stable viewport workspace keeps the active drawing beside its explanation.
   Width still chooses composition; svh supplies the available vertical budget. */
.nf-interactive {
  height: min(900px, calc(100svh - var(--interactive-viewport-offset, 96px)));
  min-height: 400px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow-anchor: none;
}
.nf-interactive .nf-header { padding: 6px 16px; gap: 12px; }
.nf-interactive .nf-header h3 { font-size: 21px; }
.nf-interactive .nf-header button { padding: 6px 10px; border: 0; background: transparent; font-weight: 500; }
.nf-interactive .nf-scenario-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.nf-interactive .nf-workspace { display: grid; grid-template-rows: minmax(0, 1fr) 166px; min-height: 0; }
.nf-interactive .nf-diagram-area { padding: 0 16px 6px; min-height: 0; display: grid; grid-template-rows: 44px 24px minmax(0,1fr); }
.nf-interactive .nf-diagram-heading { display: flex; gap: 8px; align-items: center; min-width: 0; }
.nf-interactive .nf-diagram-heading > select { flex: 1; width: 0; max-width: 430px; min-width: 0; }
.nf-interactive .nf-diagram-heading > button { margin-left: auto; font-weight: 500; padding-inline: 10px; }
.nf-interactive .nf-diagram-key { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--nf-muted); }
.nf-interactive .nf-legend { margin: 0; flex-wrap: nowrap; font-size: 12px; gap: 12px; }
.nf-interactive .nf-legend i { width: 16px; }
.nf-interactive .nf-diagram { height: 100%; min-height: 0; padding: 0; overflow: hidden; }
.nf-interactive .nf-diagram > .nf-anatomy-svg { width: 100%; height: 100%; max-height: none; min-height: 0; }
.nf-interactive[data-focused="true"] .nf-diagram > :is(.nf-full-svg,.nf-mechanism-svg) { display: none; }
.nf-interactive[data-focused="true"] .nf-diagram > .nf-detail-svg { display: block; }
.nf-interactive[data-focused="false"] .nf-diagram > .nf-detail-svg { display: none; }
.nf-interactive[data-focused="false"] .nf-diagram > :is(.nf-full-svg,.nf-mechanism-svg) { display: block; }
.nf-interactive[data-compact-overview="true"] .nf-full-svg :is(.nf-callouts,.nf-region-label,.nf-kidney-inset text) { display: none; }
.nf-interactive .nf-locator { display: flex; border: 0; padding: 0; margin: 0; }
.nf-interactive .nf-locator svg { width: 52px; height: 41px; flex-basis: 52px; }
.nf-interactive .nf-locator > div { display: none; }
.nf-interactive .nf-support { min-height: 0; border-top: 1px solid var(--nf-line); padding: 4px 16px 6px; display: grid; grid-template-rows: 36px minmax(0,1fr); }
.nf-interactive .nf-support-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nf-interactive .nf-support-heading select { min-height: 32px; padding: 3px 25px 3px 0; border: 0; background: transparent; width: min(65%,230px); }
.nf-interactive .nf-support-content { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: 5px; font-size: 15px; }
.nf-interactive .nf-support-content:focus-visible { outline: 2px solid var(--nf-accent); outline-offset: -2px; }
.nf-interactive .nf-inspector { border: 0; padding: 3px 0 0; display: block; }
.nf-interactive .nf-inspector h4 { font-size: 17px; line-height: 1.25; margin: 0 0 5px; }
.nf-interactive .nf-inspector > p { font-size: 15px; line-height: 1.45; }
.nf-interactive .nf-navigation { display: flex; flex-wrap: nowrap; gap: 8px; padding: 4px 16px 8px; border: 0; }
.nf-interactive .nf-navigation button { flex: 0 0 auto; min-width: 44px; }
.nf-interactive .nf-navigation .nf-primary { min-width: 110px; }
.nf-interactive .nf-navigation .nf-reset { margin-left: auto !important; }
.nf-interactive .nf-settings { padding: 0; margin: 0; border: 0; display: flex; gap: 8px 12px; }
.nf-interactive .nf-settings label { flex: 1 1 150px; min-width: 0; display: grid; gap: 2px; font-size: 12px; }
.nf-interactive .nf-settings select { width: 100%; min-width: 0; padding-block: 5px; min-height: 36px; }
.nf-interactive .nf-settings .nf-view-choice { flex-basis: 180px !important; }
.nf-interactive .nf-support-content :is(.nf-prediction,.nf-water-chain) { padding: 2px 0; margin: 0; border: 0; }
.nf-interactive .nf-feedback { margin-top: 8px; padding: 8px; }
.nf-interactive .nf-compare-button { margin-top: 6px !important; min-height: 34px; padding: 5px 10px; }
.nf-interactive .nf-route-ledger { margin: 8px 0 0; padding-top: 8px; }
.nf-interactive .nf-chain-heading { margin-bottom: 6px; }
.nf-interactive .nf-comparison { height: 100%; padding: 0; border: 0; display: grid; grid-template-rows: minmax(0,1fr); }
.nf-interactive .nf-comparison > :is(h4,p) { display: none; }
.nf-interactive .nf-comparison-columns { width: 100%; margin: 0; gap: 8px; min-height: 0; }
.nf-interactive .nf-comparison-column { display: grid; grid-template-rows: auto minmax(0,1fr) auto; padding: 4px; min-height: 0; font-size: 14px; }
.nf-interactive .nf-comparison-column svg { height: 100%; min-height: 0; max-height: none; margin: 0; }
.nf-interactive .nf-comparison-column > p { font-size: 13px; line-height: 1.3; }
@container nephron (max-width: 640px) {
  .nf-interactive .nf-header { padding-inline: 10px; }
  .nf-interactive .nf-header h3 { font-size: 19px; }
  .nf-interactive .nf-diagram-area { padding-inline: 10px; }
  .nf-interactive .nf-diagram-key > span { display: none; }
  .nf-interactive .nf-diagram-key { justify-content: center; }
  .nf-interactive .nf-workspace { grid-template-rows: minmax(0,1fr) 166px; }
  .nf-interactive .nf-support { padding-inline: 10px; }
  .nf-interactive .nf-small-label { font-size: 11px; }
  .nf-interactive .nf-navigation { padding-inline: 10px; }
  .nf-interactive .nf-settings label { flex-basis: 120px; }
  .nf-interactive .nf-settings .nf-view-choice { flex-basis: 100% !important; }
  .nf-interactive .nf-legend { font-size: 11px; gap: 10px; }
}
.nf-interactive .nf-diagram > .nf-anatomy-svg { margin-inline: auto; }
.nf-interactive .nf-mini-nephron { fill: none; stroke: var(--nf-fluid); stroke-width: 4; stroke-linecap: round; }
.nf-interactive .nf-support-heading .nf-small-label { white-space: nowrap; flex-shrink: 0; }
.nf-interactive .nf-header { padding-block: 0; }
.nf-interactive .nf-navigation { padding-top: 0; padding-bottom: 4px; }
.nf-interactive .nf-workspace { grid-template-rows: minmax(0,1fr) 120px; }
.nf-interactive .nf-inspector h4 { display: none; }
.nf-interactive .nf-diagram-heading .nf-compare-button { margin: 0 0 0 auto !important; min-height: 44px; }
.nf-interactive .nf-detail-svg .nf-region-label { display: none; }
.nf-interactive[data-compact-overview="true"] .nf-mechanism-svg text { display: none; }
