/* Flagship product adaptive authority.
   Loaded after product-specific and story materials so Principal and Deep Orbit
   respond to their owning containers rather than device-width assumptions.
   Identity remains in the product-specific stylesheets. */

body.principal-product .v1-product-hero,
body.deep-orbit-product .v1-product-hero {
  container-type: inline-size;
  container-name: flagship-product-hero;
  overflow: visible;
}

body.principal-product .v1-product-hero::before,
body.deep-orbit-product .v1-product-hero::before {
  height: clamp(22rem, 68cqi, 46rem);
}

body.principal-product .v1-section,
body.deep-orbit-product .v1-section,
body.principal-product .v1-cta,
body.deep-orbit-product .v1-cta {
  container-type: inline-size;
}

body.principal-product .principal-command-band,
body.deep-orbit-product .deep-orbit-mission-band {
  overflow: visible;
}

/* Content owns vertical geometry. Shared grids already use auto-fit. */
body.principal-product .v1-card,
body.deep-orbit-product .v1-card,
body.principal-product .v1-spec-card,
body.deep-orbit-product .v1-spec-card {
  min-height: 0;
}

body.principal-product .v1-product-meta > span,
body.deep-orbit-product .v1-product-meta > span,
body.principal-product .v1-card,
body.deep-orbit-product .v1-card,
body.principal-product .v1-spec-card,
body.deep-orbit-product .v1-spec-card,
body.principal-product .v1-roadmap-item,
body.deep-orbit-product .v1-roadmap-item,
body.principal-product .v1-download-panel,
body.deep-orbit-product .v1-download-panel,
body.principal-product .v1-cta,
body.deep-orbit-product .v1-cta {
  min-width: 0;
  overflow-wrap: anywhere;
}

@container flagship-product-hero (max-width: 46rem) {
  body.principal-product .v1-product-meta > span,
  body.deep-orbit-product .v1-product-meta > span,
  body.principal-product .v1-product-hero .button,
  body.deep-orbit-product .v1-product-hero .button {
    width: 100%;
  }

  body.principal-product .v1-product-hero .actions,
  body.deep-orbit-product .v1-product-hero .actions {
    width: 100%;
  }
}

@container (max-width: 46rem) {
  body.principal-product .v1-download-actions,
  body.deep-orbit-product .v1-download-actions,
  body.principal-product .v1-cta .actions,
  body.deep-orbit-product .v1-cta .actions {
    width: 100%;
  }

  body.principal-product .v1-download-actions .button,
  body.deep-orbit-product .v1-download-actions .button,
  body.principal-product .v1-cta .button,
  body.deep-orbit-product .v1-cta .button {
    width: 100%;
  }
}

/* Coarse pointers retain a visibly large physical target independent of width. */
@media (hover: none), (pointer: coarse) {
  body.principal-product .v1-product-hero .button,
  body.deep-orbit-product .v1-product-hero .button,
  body.principal-product .v1-download-actions .button,
  body.deep-orbit-product .v1-download-actions .button,
  body.principal-product .v1-cta .button,
  body.deep-orbit-product .v1-cta .button {
    min-height: 56px;
  }
}

/* Expensive backdrop material yields to an opaque premium surface when requested. */
@media (prefers-reduced-data: reduce), (prefers-reduced-transparency: reduce) {
  body.principal-product .v1-product-meta > span,
  body.principal-product .v1-interface-preview,
  body.principal-product .v1-card,
  body.principal-product .v1-feature-band,
  body.principal-product .v1-spec-card,
  body.principal-product .v1-roadmap-item,
  body.principal-product .v1-download-panel,
  body.principal-product .v1-cta {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #081628;
  }

  body.deep-orbit-product .v1-product-meta > span,
  body.deep-orbit-product .v1-interface-preview,
  body.deep-orbit-product .v1-card,
  body.deep-orbit-product .v1-feature-band,
  body.deep-orbit-product .v1-spec-card,
  body.deep-orbit-product .v1-roadmap-item,
  body.deep-orbit-product .v1-download-panel,
  body.deep-orbit-product .v1-cta {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #10111f;
  }
}

@media (prefers-contrast: more) {
  body.principal-product .v1-product-meta > span,
  body.principal-product .v1-interface-preview,
  body.principal-product .v1-card,
  body.principal-product .v1-feature-band,
  body.principal-product .v1-spec-card,
  body.principal-product .v1-roadmap-item,
  body.principal-product .v1-download-panel,
  body.principal-product .v1-cta {
    border-color: rgba(184, 220, 255, .72);
  }

  body.deep-orbit-product .v1-product-meta > span,
  body.deep-orbit-product .v1-interface-preview,
  body.deep-orbit-product .v1-card,
  body.deep-orbit-product .v1-feature-band,
  body.deep-orbit-product .v1-spec-card,
  body.deep-orbit-product .v1-roadmap-item,
  body.deep-orbit-product .v1-download-panel,
  body.deep-orbit-product .v1-cta {
    border-color: rgba(211, 202, 255, .74);
  }
}

@media (forced-colors: active) {
  body.principal-product .v1-product-hero::before,
  body.deep-orbit-product .v1-product-hero::before {
    display: none;
  }
}
