/* Homepage only: keep the cinematic desktop fixed-screen layout, but allow
   phones to scroll naturally to the complete dock and legal footer. */
@media (max-width: 920px), (max-height: 500px) and (pointer: coarse) {
  html:has(body.premium-landing-page),
  body.premium-landing-page {
    height: auto !important;
    min-height: 100svh !important;
    max-height: none !important;
  }

  html:has(body.premium-landing-page) {
    /* Root canvas is visible in the header/footer margins and during overscroll. */
    background: #08120d !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.premium-landing-page {
    overflow: visible !important;
  }

  body.premium-landing-page .cinematic-home,
  body.premium-landing-page .cinematic-hero {
    height: auto !important;
    min-height: calc(100svh - 154px) !important;
    max-height: none !important;
  }

  body.premium-landing-page .cinematic-hero {
    /* The heading/actions must never shrink underneath the bottom cards. */
    grid-template-rows: minmax(min-content, 1fr) auto !important;
  }

  body.premium-landing-page .dock-count strong {
    /* Keep the long GPS-/DPV label inside its column on 320px phones. */
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  body.premium-landing-page .dock-count {
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 6px;
  }
}
