/* Mobile reading shell. Desktop artwork, copy, palette and geometry stay locked. */
@media (max-width: 800px), (max-width: 950px) and (max-height: 500px) {
  .pilot-page.pilot-page {
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    grid-template-rows: 44px minmax(0, 1fr) auto;
  }
  .pilot-page .pilot-chrome { display: flex !important; grid-row: 1 !important; min-height: 44px; padding: 8px 16px; }
  .pilot-page .pilot-title, .pilot-page .pilot-title b { width: 100%; max-width: none; }
  .pilot-page .pilot-title b { font-size: 10px; letter-spacing: .06em; }
  .pilot-page .pilot-shell { grid-row: 2 !important; min-height: 0; overscroll-behavior-y: contain; }
  .pilot-page.is-story .pilot-deck { width: 100% !important; }
  .pilot-page .pilot-view-switch { display: none !important; }
  .pilot-page .pilot-nav {
    grid-row: 3 !important;
    height: auto !important;
    position: relative;
    min-height: 56px !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: 44px !important;
    gap: 0 4px;
    padding: 5px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .pilot-page :is(.pilot-return, .deck-links) { grid-area: 1 / 1; }
  .pilot-page .pilot-return { font-size: 9px; letter-spacing: .02em; white-space: nowrap; }
  .pilot-page .pilot-return::before { margin-right: 4px; }
  .pilot-page .deck-links { min-width: 0; gap: 1px; }
  .pilot-page .deck-links > a:not(.pilot-return) { font-size: 10px; line-height: 1.4; }
  .pilot-page .pilot-nav-center { grid-area: 1 / 2; gap: 0; }
  .pilot-page .pilot-tools { grid-area: 1 / 3; }
  .pilot-page .pilot-dots { display: none; }
  .pilot-page .pilot-progress { min-width: 46px; font-size: 11px; }
  .pilot-page .pilot-fullscreen { font-size: 9px; letter-spacing: 0; white-space: nowrap; }
  .pilot-page .pilot-fullscreen::before { margin-right: 4px; }
  .pilot-page .pilot-arrow { min-width: 44px; min-height: 44px; }
  .pilot-page .ism-contact-band a { display: inline-block; padding-block: 4px; }

  /* Keep secondary content legible without changing approved heading styles. */
  .pilot-page .pilot-slide figcaption { font-size: 12px !important; line-height: 1.4 !important; }
  .pilot-page .ism-kicker { font-size: 11px !important; line-height: 1.4 !important; }
  .pilot-page :is(.ism-phase-detail h3, .package-service-charge) { font-size: 12px !important; }
  .pilot-page .package-size > p { font-size: 12px !important; line-height: 1.4 !important; }
}

@media (min-width: 801px) and (max-width: 950px) and (max-height: 500px) {
  /* A reading column in a rotated phone, not a desktop canvas shrunk to fit. */
  .pilot-page.is-story .pilot-deck { max-width: 720px !important; margin-inline: auto !important; }
  .pilot-page.is-story .pilot-slide:not(.baked-slide) { aspect-ratio: auto !important; }
}
