/* Keep the published chapter composition, camera world and original art.
   The browser owns continuous document scrolling; instruments play locally. */
html:has(>body.home-reimagined.a2p-fused-home){scroll-snap-type:none!important;scroll-behavior:auto}
body.home-reimagined.a2p-fused-home :is(.home-chapter,.site-footer){scroll-snap-align:none;scroll-snap-stop:normal}
body.home-reimagined.a2p-fused-home .scene-locator{display:none!important}
body.home-reimagined.a2p-fused-home :is(.home-scroll-story[data-scroll-stages],#journey.a2p-mission-ready.mission-scroll-enabled)>.home-chapter-inner{position:relative;top:auto;min-height:0;padding-block:0}
/* Remove only supplemental instructions; retain the published instruments. */
body.home-reimagined :is(.mission-camera-hint,.mission-camera-note,.atmosphere-hint,.story-flow-note,.a2p-pathway-swipe){display:none}
body.home-reimagined .a2p-pathway-caption>p:not(.a2p-pathway-status){display:none}
body.home-reimagined .platform-flow :is(.flow-carbon,.flow-nitrogen,.flow-core){cursor:pointer}
body.home-reimagined .platform-flow :is(.flow-carbon,.flow-nitrogen,.flow-core):focus-visible{outline:2px solid var(--home-ice,#a6d9e3);outline-offset:6px}

/* Desktop native chapter paging. Instruments keep their independent clocks;
   only the browser settles the document at a chapter boundary. */
@media (min-width:1000px) {
  html:has(>body.home-reimagined.a2p-fused-home) {
    scroll-snap-type:y mandatory!important;
    scroll-padding-top:var(--home-nav-height,72px);
  }
  body.home-reimagined.a2p-fused-home :is(#top,#journey,#challenge,#resources,#platform,#biology,#nutrition,#vision).home-chapter {
    --home-screen:calc(100svh - var(--home-nav-height,72px));
    --home-screen-inset:clamp(18px,3svh,34px);
    --home-screen-content:calc(var(--home-screen) - 2 * var(--home-screen-inset));
    height:var(--home-screen)!important;
    min-height:var(--home-screen)!important;
    padding-block:var(--home-screen-inset);
    box-sizing:border-box;
    border-block:0;
    scroll-snap-align:start;
    scroll-snap-stop:always;
    scroll-margin-top:0;
  }
  body.home-reimagined.a2p-fused-home .home-chapter::after {border:0}
  body.home-reimagined.a2p-fused-home .home-chapter>.home-chapter-inner {
    min-height:0;
    max-height:var(--home-screen-content);
    padding-block:0;
    position:relative;
    top:auto;
    row-gap:14px;
  }
  body.home-reimagined.a2p-fused-home :is(#journey,#challenge,#resources,#platform,#biology,#nutrition,#vision) .home-copy :is(.home-core-copy,.home-choice-panel p) {
    font-size:clamp(18px,1.52vw,22px);
    line-height:1.55;
  }
  body.home-reimagined.a2p-fused-home .home-copy .home-core-copy {margin-block:0 14px}
  body.home-reimagined.a2p-fused-home .home-copy .home-core-lead {margin-top:18px}
  body.home-reimagined.a2p-fused-home .home-choice-panel {padding:12px 16px}
  body.home-reimagined.a2p-fused-home :is(#journey,#challenge,#resources,#platform,#biology,#nutrition,#vision) .home-copy h2 {width:auto;max-width:100%;margin-bottom:14px}
  body.home-reimagined.a2p-fused-home .home-compact-controls {margin-top:12px;gap:8px}
  body.home-reimagined.a2p-fused-home .home-compact-controls .home-choice-list button {font-size:18px;line-height:1.25;padding:6px 10px;min-height:36px}
  body.home-reimagined.a2p-fused-home .site-footer {scroll-snap-align:end;scroll-snap-stop:normal}
  /* Preserve the original camera viewport; reserve space for its controls. */
  body.home-reimagined.a2p-fused-home #journey .mission-track {height:min(51svh,calc(var(--home-screen-content) - 112px))}
  /* The original two-chamber apparatus, routes and reactor all remain visible. */
  body.home-reimagined.a2p-fused-home #platform .platform-flow {gap:6px 20px}
  body.home-reimagined.a2p-fused-home #platform.home-chapter {display:flex;flex-direction:column;justify-content:center}
  body.home-reimagined.a2p-fused-home #platform .story-flow-controls {display:none}
  body.home-reimagined.a2p-fused-home #platform .home-cell-illustration {padding:0;border:0;background:transparent;width:min(100%,calc(var(--home-screen-content) * .64));max-width:480px}
  body.home-reimagined.a2p-fused-home #platform .home-cell-illustration img {width:100%;height:calc(var(--home-screen-content) * .36);max-height:240px;aspect-ratio:auto;object-fit:contain}
  body.home-reimagined.a2p-fused-home #platform .has-cell-illustration .flow-convergence {height:36px}
  body.home-reimagined.a2p-fused-home #platform .has-cell-illustration .flow-core>img {max-height:calc(var(--home-screen-content) * .22);object-fit:contain}
  body.home-reimagined.a2p-fused-home #platform .flow-input span,
  body.home-reimagined.a2p-fused-home #platform .flow-core span {font-size:18px;line-height:1.3}
  /* Fit the unchanged vector in a complete overview. Full-vector inspection
     keeps every source label at its original readable zoom when requested. */
  body.home-reimagined.a2p-fused-home #biology[data-pathway-ready="true"][data-choice="pathway"]>.home-chapter-inner {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:minmax(0,1fr);gap:0 clamp(28px,4vw,64px);height:var(--home-screen-content)}
  body.home-reimagined.a2p-fused-home #biology[data-pathway-ready="true"][data-choice="pathway"] .home-copy {display:block;grid-column:1;grid-row:1;max-width:58ch;align-self:center}
  body.home-reimagined.a2p-fused-home #biology[data-pathway-ready="true"][data-choice="pathway"] .home-copy h2 {margin:0 0 18px;font-size:clamp(30px,3.3vw,44px);line-height:1.15}
  body.home-reimagined.a2p-fused-home #biology[data-pathway-ready="true"][data-choice="pathway"] .home-copy>.home-tabset {margin:0}
  body.home-reimagined.a2p-fused-home #biology[data-pathway-ready="true"][data-choice="pathway"] .home-visual {grid-column:2;grid-row:1;height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;row-gap:12px}
  body.home-reimagined.a2p-fused-home #biology .a2p-native-pathway {display:grid;grid-template-rows:auto 2px minmax(0,1fr);row-gap:8px;height:100%;min-height:0}
  body.home-reimagined.a2p-fused-home #biology .a2p-pathway-toolbar {gap:6px;margin:0}
  body.home-reimagined.a2p-fused-home #biology :is(.a2p-pathway-modules,.a2p-pathway-actions) {gap:6px}
  body.home-reimagined.a2p-fused-home #biology .a2p-pathway-modules {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  body.home-reimagined.a2p-fused-home #biology .a2p-pathway-modules button {min-width:0;white-space:normal}
  body.home-reimagined.a2p-fused-home #biology :is(.a2p-pathway-previous,.a2p-pathway-next,.a2p-pathway-replay) {display:none}
  body.home-reimagined.a2p-fused-home #biology .a2p-native-pathway button {font-size:18px;line-height:1.2;min-height:34px;padding:6px 9px}
  body.home-reimagined.a2p-fused-home #biology .a2p-pathway-progress {margin:0}
  body.home-reimagined.a2p-fused-home #biology .a2p-pathway-scroll {min-height:0;height:100%;overflow-x:auto;overflow-y:hidden}
  body.home-reimagined.a2p-fused-home #biology .a2p-pathway-scroll>.ppt-pathway-map {width:auto;min-width:100%;max-width:none;height:100%;min-height:0}
  body.home-reimagined.a2p-fused-home #biology .home-compact-controls {margin:0}
  body.home-reimagined.a2p-fused-home #nutrition .home-visual {display:grid;grid-template-rows:64px 64px minmax(0,1fr) auto;gap:10px;height:var(--home-screen-content);min-height:0}
  body.home-reimagined.a2p-fused-home #nutrition :is(.nutrition-inputs,.nutrition-switchboard) {min-height:0;height:64px;margin:0;padding:0}
  body.home-reimagined.a2p-fused-home #nutrition :is(.nutrition-inputs,.nutrition-switchboard) img {max-height:64px;width:auto;object-fit:contain}
  body.home-reimagined.a2p-fused-home #nutrition .nutrition-visual {min-height:0;height:100%}
  body.home-reimagined.a2p-fused-home #nutrition .home-compact-controls {margin:0}
  body.home-reimagined.a2p-fused-home #nutrition .nutrition-visual .home-visual-panel>img {max-height:100%;object-fit:contain}
  body.home-reimagined.a2p-fused-home #vision .home-chapter-inner {min-height:0}
}
