/* Cosmoward v0.9.7 — shared stabilization only; normal Deck geometry untouched. */
@media (min-width:851px){
 /* Use the existing physical window more efficiently before altering its illustrated frame. */
 .v073-cockpit.story-mode .v073-window{top:4.1%;height:59.2%}
 .v073-cockpit.story-mode .v073-window .v07-main{padding:7px 13px 12px}
 .v073-cockpit.story-mode .v073-window .v07-chapnav{margin-bottom:4px}
 .v073-cockpit.story-mode .v073-window .v073-local-return{margin:2px 0 7px}
 .v073-cockpit.story-mode .v073-window .v07-major-shell .v07-main{gap:5px 13px;grid-template-columns:minmax(260px,39%) minmax(0,1fr)}
 /* A 42:58 narrative-to-visual allocation increases readable characters/line
    without hiding the image or touching the physical cockpit aperture. */
 .v073-cockpit.story-mode .v073-window .v075-text-scroll:has(.v07-major-shell),
 .v073-cockpit.story-mode .v073-window .v07-major-shell .v075-text-scroll{width:42%}
 .v073-cockpit.story-mode .v073-window .v07-major-shell .v07-journey-viewport{left:42%!important;width:58%!important}

 .v073-cockpit.story-mode .v073-window .v07-major-shell .v07-journey-copy{padding:8px 11px;background:linear-gradient(100deg,#03121fcf,#03121f98)}
 .v073-cockpit.story-mode .v073-window .v07-major-shell .v07-journey-viewport{height:clamp(260px,48vh,470px);min-height:260px}
 .v073-cockpit.story-mode .v073-window .v07-journey-copy h1{font-size:clamp(24px,2.3vw,31px);line-height:1.12}
 .v073-cockpit.story-mode .v073-window .journey-main{padding:7px 14px 12px;gap:6px}
 /* Larger context sheet without replacing cockpit or persistent destination console. */
 .v073-cockpit .v073-overlay-layer:has(.v07-context-sheet),
 .v073-cockpit .v073-overlay-layer:has(.context-sheet:not(.v091-mission-sheet)){top:3.5%;height:76.5%}
 .v073-cockpit .v073-overlay-layer .v07-context-sheet,
 .v073-cockpit .v073-overlay-layer .context-sheet:not(.v091-mission-sheet){
  width:min(670px,calc(100% - 16px));padding:14px 22px;top:6px;bottom:6px;
 }
 .v073-cockpit .v073-overlay-layer .v07-sheet-inner{font-size:clamp(15px,1.07vw,17px);line-height:1.65}
 .v073-cockpit .v073-overlay-layer .sheet-copy{font-size:clamp(15px,1.07vw,17px);line-height:1.65}
 .v073-cockpit .v073-overlay-layer .v07-context-sheet h2,
 .v073-cockpit .v073-overlay-layer .context-sheet h2{font-size:clamp(22px,2vw,28px);line-height:1.23}
}
/* Contextual reading surfaces must remain scrollable, including tall comparison tables. */
.v073-overlay-layer .v07-context-sheet .v07-sheet-inner{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.v073-overlay-layer .context-sheet:not(.v091-mission-sheet){display:flex;flex-direction:column;min-height:0}
.v073-overlay-layer .context-sheet:not(.v091-mission-sheet) .sheet-copy{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0}
.v073-overlay-layer .v07-context-sheet button:focus-visible,
.v073-overlay-layer .context-sheet button:focus-visible{outline:3px solid #f5db96;outline-offset:2px}
.v073-window .v07-depth-item,.v073-window .v07-inline-link{line-height:1.45;white-space:normal}
.v073-window .v07-story-body{max-width:74ch}
.v073-cockpit .v073-window-media{background:radial-gradient(ellipse at 50% 45%,#123047,#061523 78%)}
.v073-window-media img{object-position:50% 48%;background:#061523}
.v073-window .v074-media-destination-mars img{object-fit:cover;object-position:50% 46%}
.v073-window .v074-media-destination-earth-orbit img,
.v073-window .v074-media-destination-moon img{object-fit:cover;object-position:50% 50%}
.v073-window .journey-visual img[data-photo]{object-fit:cover;object-position:center}
.v073-window .journey-visual,.v073-window .v07-rendered-media{background:#061523}
@media(max-width:850px){
 .v073-cockpit .v073-overlay-layer:has(.v07-context-sheet),
 .v073-cockpit .v073-overlay-layer:has(.context-sheet:not(.v091-mission-sheet)){top:4%;height:74%}
 .v073-overlay-layer .v07-context-sheet,.v073-overlay-layer .context-sheet:not(.v091-mission-sheet){width:100%;left:0;right:0;max-height:96%;height:96%;padding:14px 16px;bottom:0}
 .v073-overlay-layer .v07-sheet-inner,.v073-overlay-layer .sheet-copy{font-size:16px!important;line-height:1.6!important}
 .v073-overlay-layer .v07-context-sheet h2,.v073-overlay-layer .context-sheet h2{font-size:22px;line-height:1.25}
 .v073-window .v07-journey-copy h1,.v073-window .journey-text h1{overflow-wrap:break-word}
 .v073-window .v07-story-body,.v073-window .sheet-aside{font-size:16px;line-height:1.6}
 .v073-cockpit{min-height:max(570px,100dvh)}
 .v073-overlay-layer .context-sheet,.v073-overlay-layer .v07-context-sheet{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.v073-window-media img,.v073-window .journey-visual img{transition:none!important;animation:none!important}}

/* Visible, truthful fallback during image fetch/decoding; no synthetic mission image. */
.v097-media-frame{background:radial-gradient(ellipse at 48% 45%,#14344a,#041322 78%)}
.v097-media-frame:not(.v097-media-ready)::before{
 content:'LOADING CURATED VISUAL';position:absolute;z-index:4;inset:0;
 display:flex;align-items:center;justify-content:center;text-align:center;
 color:#a9d5e4;font:600 12px ui-monospace,monospace;letter-spacing:.09em;
 background:radial-gradient(ellipse at 50% 40%,#163b52,#061624 80%);
 pointer-events:none;
}
.v097-media-frame.v097-media-failed:not(.v097-media-ready)::before{
 content:'IMAGE UNAVAILABLE · SEE SOURCE AND TRUTH LABEL BELOW';
 padding:16px;line-height:1.6;
}

/* Paint decoded chapter pixels above the renderer's historical pseudo-element overlays. */
.v073-window .v07-journey-viewport .v07-rendered-media{isolation:isolate;z-index:1}
.v073-window .v07-journey-viewport .v07-rendered-media img{position:relative;z-index:2}
.v073-window .v07-journey-viewport .v07-rendered-media::after{z-index:1;pointer-events:none}


/* Founder mobile-recording corrections, 2026-11-24. Scope: mobile reading, aperture and console precision only. */
@media (max-width:850px){
 /* Keep the fixed spacecraft console, but use the whole existing aperture for reading.
    The neutral Observation Deck stays the full establishing scene. */
 .v073-cockpit.story-mode .v073-window{top:4.8%;height:60.2%}
 .v073-cockpit.story-mode .v097-mobile-reading-layout>.v075-text-scroll{
   top:0;bottom:0;width:100%;height:100%;min-height:0;
   padding:9px 12px max(18px,env(safe-area-inset-bottom));
   background:linear-gradient(155deg,#051927f7,#041322f5);
   overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
   scrollbar-gutter:stable;
 }
 /* The opening view now contains navigation and the actual chapter headline.
    The visual follows the hook in the same scroll flow, then the full explanation. */
 .v073-window .v097-mobile-reading-layout .v07-journey-copy,
 .v073-window .v097-mobile-reading-layout .journey-text{
   display:block!important;position:relative;
   width:100%;padding:8px 2px!important;
   margin:0;background:transparent;
 }
 .v073-window .v097-mobile-reading-layout .v07-journey-copy>.v07-journey-viewport,
 .v073-window .v097-mobile-reading-layout .journey-text>.journey-visual{
   position:relative!important;inset:auto!important;
   left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
   order:initial;width:100%!important;height:auto!important;
   min-height:190px!important;max-height:none!important;
   margin:12px 0 8px!important;overflow:hidden;
   border:1px solid #40657b;border-radius:6px;
   background:radial-gradient(ellipse at center,#143248,#061523 85%);
 }
 .v073-window .v097-mobile-reading-layout .v07-journey-copy>.v07-journey-viewport:has(.v07-rendered-media),
 .v073-window .v097-mobile-reading-layout .journey-text>.journey-visual{
   display:flex;flex-direction:column;min-height:0!important;
 }
 .v073-window .v097-mobile-reading-layout .v07-journey-viewport .v07-rendered-media{
   position:relative!important;inset:auto!important;left:auto;top:auto;
   display:block;width:100%;height:clamp(180px,25dvh,240px)!important;
   min-height:180px;flex:none;overflow:hidden;background:#071827;
 }
 .v073-window .v097-mobile-reading-layout .v07-rendered-media img{
   display:block;position:relative;width:100%;height:100%;object-fit:contain;
 }
 .v073-window .v097-mobile-reading-layout .journey-text>.journey-visual{
   height:clamp(190px,27dvh,260px)!important;min-height:190px!important;
 }
 .v073-window .v097-mobile-reading-layout .journey-visual .chapter-art-image,
 .v073-window .v097-mobile-reading-layout .journey-visual img{object-fit:contain}
 .v073-window .v097-mobile-reading-layout .v07-journey-viewport .v07-media-attribution{
   position:relative;inset:auto;left:auto;right:auto;bottom:auto;
   width:100%;padding:8px 9px;font-size:11px!important;line-height:1.42;
   background:#051622;overflow-wrap:anywhere;
 }
 .v073-window .v097-mobile-reading-layout .v097-mobile-credit{
   width:100%;margin:0;border-top:1px solid #41667c;background:#081b2b;
 }
 .v073-window .v097-mobile-reading-layout .v097-mobile-credit>summary{
   display:flex;align-items:center;min-height:44px;cursor:pointer;
   padding:8px 10px;font-size:12px;line-height:1.45;
   color:#bce7f5;overflow-wrap:anywhere
 }
 .v073-window .v097-mobile-reading-layout .v097-mobile-credit[open]>summary{border-bottom:1px solid #41667c}
 .v073-window .v097-mobile-reading-layout .v097-mobile-credit>summary::after{
   content:'▼';margin-left:auto;flex:none;color:#a7e2f8;font-size:12px
 }
 .v073-window .v097-mobile-reading-layout .v097-mobile-credit[open]>summary::after{content:'▲'}

 .v073-window .v097-mobile-reading-layout .v097-mobile-credit .v07-media-attribution{
   position:relative;inset:auto;width:100%;padding:9px 10px;
   font-size:12px!important;line-height:1.5
 }

 .v073-window .v097-mobile-reading-layout .v07-journey-viewport .v07-visual-overlay{display:none}
 .v073-window .v097-mobile-reading-layout .v07-journey-viewport .v07-viewport-label{
   top:5px;left:7px;font-size:10px!important;
   background:#061b2de0;padding:3px 5px;z-index:5
 }
 /* The actual science diagram is now fully readable in normal page flow.
    Do not duplicate it inside a second disclosure. */
 .v073-window .v097-mobile-reading-layout .v07-journey-viewport:has(.v096-science-visual){
   display:block;min-height:0!important;height:auto!important
 }
 .v073-window .v097-mobile-reading-layout .v07-journey-viewport .v096-science-visual{
   position:relative;height:auto!important;min-height:0!important;
   overflow:visible;padding:14px 12px 12px
 }
 .v073-window .v097-mobile-reading-layout .v07-journey-viewport .v096-evidence-chain li,
 .v073-window .v097-mobile-reading-layout .v07-journey-viewport .v096-diagram-note{
   display:grid!important
 }
 .v073-window .v097-mobile-reading-layout .v07-journey-viewport .v096-diagram-note{display:block!important}
 .v073-window .v097-mobile-reading-layout .v096-mobile-evidence{display:none}
 .v073-window .v097-mobile-reading-layout .v07-story-body,
 .v073-window .v097-mobile-reading-layout .journey-body{font-size:16px;line-height:1.62}
 .v073-window .v097-mobile-reading-layout .v073-story-context,
 .v073-window .v097-mobile-reading-layout .mission-context{
   border:1px solid #406077;border-radius:7px;
   margin:10px 0 12px;background:#071c2c;
   padding:0 11px
 }
 .v073-window .v097-mobile-reading-layout details.v073-story-context>summary,
 .v073-window .v097-mobile-reading-layout details.mission-context>summary{
   min-height:54px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
   gap:5px;padding:8px 1px;cursor:pointer;font-size:15px;font-weight:650;color:#c1edfd;
 }
 .v073-window .v097-mobile-reading-layout details.v073-story-context>summary::after,
 .v073-window .v097-mobile-reading-layout details.mission-context>summary::after{
   content:'Tap to expand ↓';font:600 11px ui-monospace,monospace;color:#a7d6e8;
 }
 .v073-window .v097-mobile-reading-layout details[open].v073-story-context>summary::after,
 .v073-window .v097-mobile-reading-layout details[open].mission-context>summary::after{
   content:'Expanded · Tap to collapse ↑'
 }
 .v097-mobile-reading-cue{
   margin:0 0 8px;padding:6px 8px;
   border-left:2px solid #6bbcd8;
   background:#103349b2;color:#c6e4f2;
   font:600 11px/1.5 ui-monospace,monospace;
   letter-spacing:.015em
 }
 /* Destination images still belong in the outside window, but the reading area
    must begin earlier on mobile than the former 43% split. */
 .v073-stage:has(.has-destination) .v075-text-scroll{top:34%;bottom:0}
 .v073-stage:has(.has-destination) .v073-window .v074-media-destination-mars img{object-fit:cover}
 /* The active/hover face must be bounded by its physical button, not 100dvh math.
    Inset edges avoid tinting the painted metal bezel. */
 .v073-cockpit .v073-console .gateway-option .v075-panel-face{
   position:absolute;inset:2px!important;
   width:calc(100% - 4px)!important;height:calc(100% - 4px)!important;
   min-height:0!important;max-height:none!important;
   overflow:hidden!important;pointer-events:none
 }
 .v073-cockpit .v073-console .gateway-option{
   padding:0 6px!important;align-items:center!important;justify-content:center
 }
 .v073-console .gateway-option .gateway-orb{margin-top:0}
 .v073-console .gateway-option.selected .v075-panel-face polygon{
   stroke-width:1.7;filter:none
 }
}
@media(max-width:850px) and (hover:none){
 .v073-console .gateway-option:hover:not(.selected) .v075-panel-face polygon{
   fill:#041c29dc;stroke:#458da2;filter:none
 }
}

/* Give destination imagery more room while keeping the cockpit controls reachable. */
.v073-cockpit .v073-console .gateway-option .v075-panel-face {
  transform: scaleY(.95);
}

.v074-instruments .v074-instrument-left,
.v074-instruments .v092-dispatch-instrument {
  gap: 2px;
}

.v073-window .has-destination .gateway-story {
  padding: 12.6px !important;
}

.v073-window .has-destination .gateway-story h1 {
  font-size: clamp(23.4px, 2.7vw, 34.2px);
}

.v073-window .has-destination .v07-theme-area h2 {
  font-size: clamp(18.9px, 2vw, 25.2px);
}

.v073-window .has-destination .gateway-story > p:not(.gateway-source-note),
.v073-window .has-destination .v07-gateway-intro,
.v073-window .has-destination .v07-theme-teaser {
  font-size: 12.6px;
}

.v073-window .has-destination .v074-feature {
  padding: 10.8px !important;
}

@media (min-width: 851px) {
  .v073-window .has-destination > .v075-text-scroll {
    width: 33.3%;
  }

  .v073-window .has-destination > .v073-window-media {
    left: 33.3% !important;
    width: 66.7% !important;
  }

  .v073-window .has-destination:not(:has(.v073-window-media))::after {
    left: 33.3%;
  }

  .v074-instruments .v074-instrument-left,
  .v074-instruments .v092-dispatch-instrument {
    top: 64.11%;
    height: 7.38%;
    padding-block: 6px;
  }
}

@media (max-width: 850px) {
  .v073-window .has-destination {
    --destination-image-height: 45%;
  }

  .v073-window .has-destination > .v075-text-scroll {
    top: var(--destination-image-height);
    padding-top: 0;
  }

  .v073-window .has-destination .v075-text-scroll > .v073-destination-content {
    padding-top: 0 !important;
  }

  .v073-window .has-destination > .v073-window-media {
    height: var(--destination-image-height) !important;
  }

  .v073-stage:has(.has-destination) .v073-window .has-destination > .v073-window-media img {
    object-fit: cover;
  }

  .v073-window .has-destination:not(:has(.v073-window-media))::after {
    bottom: calc(100% - var(--destination-image-height));
    background-size: cover;
  }

  .v073-window .has-destination .gateway-story {
    padding: 9px !important;
  }

  .v073-window .has-destination .gateway-story h1 {
    font-size: 22.5px;
  }

  .v073-window .has-destination .gateway-story:has(.v074-moon-features) h1 {
    font-size: 22.5px;
  }

  .v073-window .has-destination .gateway-story > p:not(.gateway-source-note),
  .v073-window .has-destination .v07-gateway-intro,
  .v073-window .has-destination .v07-theme-teaser {
    font-size: 10px;
  }

  .v074-instruments .v074-instrument-left {
    height: 3.96%;
    min-height: 24.3px;
    gap: 0;
  }

  .v074-instruments .v092-dispatch-instrument::before {
    height: 24.3px;
    top: 9.35px;
  }
}

/* Use the same type hierarchy for every destination and featured panel. */
.v073-window .has-destination .gateway-story .eyebrow {
  font-size: 10px;
  line-height: 1.3;
}

.v073-window .has-destination .v07-theme-area h2 {
  line-height: 1.2;
}

.v073-window .has-destination .gateway-story .v07-journey-title {
  font-size: 14px;
  line-height: 1.35;
}

.v073-window .has-destination .v07-theme-area .primary-button {
  font-size: 14px;
  min-height: 44px;
}

@media (max-width: 850px) {
  .v073-stage:has(.has-destination) .v073-window .has-destination > .v074-media-destination-moon img {
    object-fit: contain;
  }

  /* Keep the complete planet lineup, with the illustration filling its own backdrop. */
  .v073-window .v074-media-destination-solar-system {
    background: #010812 url('/assets/solar-system-v075.png') center / cover no-repeat;
  }

  .v073-stage:has(.has-destination) .v073-window .has-destination > .v074-media-destination-solar-system img {
    object-fit: contain;
    backdrop-filter: blur(14px) brightness(.55);
  }

  .v073-window .has-destination .v07-theme-area h2 {
    font-size: 19px;
  }
}

.v098-help {
  position: relative;
}

.v098-help > summary,
.v098-credit-mobile > summary {
  list-style: none;
  cursor: pointer;
}

.v098-help > summary::-webkit-details-marker,
.v098-credit-mobile > summary::-webkit-details-marker {
  display: none;
}

.v098-help-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid #376077;
  border-radius: 8px;
  background: #071b2b;
  box-shadow: 0 8px 20px #0009;
  font-size: 13px;
}

.v098-help-panel > div + div {
  margin-top: 12px;
}

.v098-help-panel a {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.v098-help > summary:focus-visible,
.v098-credit-mobile > summary:focus-visible {
  outline: 2px solid #b1ecff;
  outline-offset: -2px;
}

.v098-credit-mobile {
  display: none;
}

@media (max-width: 850px) {
  .v073-cockpit .top-actions {
    gap: 2px;
  }

  .v073-cockpit .v098-help > summary {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .v073-window .has-destination .v073-window-media figcaption {
    padding: 0;
    background: #010812;
  }

  .v098-credit-desktop {
    display: none;
  }

  .v098-credit-mobile {
    display: block;
    font-size: 10px;
  }

  .v098-credit-mobile > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 24px;
    margin: 0;
    padding: 4px 6px;
    font-size: 10px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .v098-credit-mobile > summary span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .v098-credit-mobile > summary span:last-child {
    color: #b1ecff;
    text-decoration: underline;
  }

  .v098-credit-full {
    padding: 6px;
    background: #010812;
    text-align: left;
  }

  .v098-credit-full a {
    display: inline-block;
    padding: 4px 0;
  }
}
/* Full Hubble credits share the destination image caption. */
@media (min-width:851px){
 .v073-window :is(.v074-media-destination-mars,.v074-media-destination-deep-cosmos) figcaption{
  font-size:12px;line-height:1.45;padding:6px 10px;
 }
}
.v092-mission-tablet .v092-tablet-row a{color:#a8dfff;text-decoration:underline}

.v098-xdf-credit{margin-block:8px 12px;color:#c2e4f6;font-size:12px;line-height:1.5}
.v098-xdf-credit summary,.v098-xdf-credit a{color:#a8dfff;text-decoration:underline}
.v098-xdf-credit summary{cursor:pointer}
.v098-xdf-credit :is(summary,a):focus-visible{outline:2px solid #b1ecff;outline-offset:2px}

/* Identify the selected destination without relying on the panel tint. */
.v073-console .gateway-option[aria-pressed="true"] .gateway-option-text strong {
  position: relative;
}

.v073-console .gateway-option[aria-pressed="true"] .gateway-option-text strong::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  background: #b1ecff;
  pointer-events: none;
}

/* Keep an unmistakable focus ring inside the desktop button’s dark face. */
@media (min-width: 851px) {
  .v073-console .gateway-option:focus-visible .gateway-option-text {
    border-radius: 2px;
    background: #010812;
    outline: 2px solid #fff;
    box-shadow: 0 0 0 4px #010812;
  }
}

/* Keep Artemis attribution above the desktop cockpit foreground mask. */
@media (min-width: 851px) {
  .v073-window .journey-main.v075-window-layout > .v075-text-scroll,
  .v073-window .journey-main .nasa-media .placeholder-note {
    bottom: 12%;
  }
}

.legal-links{display:flex;flex-wrap:wrap;column-gap:16px;margin-block:8px;font-size:12px}
.legal-links a{display:inline-flex;align-items:center;min-height:24px;text-decoration:underline}
