/**
 * Public landing + pre-auth surfaces — full viewport width on every device.
 * Prevents a mobile-width column from sticking on wide screens when shell
 * classes or legacy max-width rules disagree.
 */

html.public-landing-active,
html.public-landing-active body {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

html.public-landing-active #public-landing,
html.public-landing-active #public-landing-boot,
html.public-landing-active .public-landing {
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  box-sizing: border-box;
}

html.public-landing-active:not(.access-granted):not(.public-gate-active) #root,
html.public-landing-active:not(.access-granted):not(.public-gate-active) #vortex-ir-dash-host {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Premium v2 owns section width; legacy .public-landing__main caps must not apply */
@media (min-width: 481px) {
  .public-landing.public-landing--v2 .public-landing__main,
  .public-landing.public-landing--v2 .public-landing__main--v2 {
    max-width: none;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 900px) {
  .public-landing.public-landing--v2 {
    --landing-max: min(72rem, calc(100vw - max(2.5rem, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px))));
  }

  .public-landing--v2 .public-landing__standards {
    max-width: min(56rem, var(--landing-max));
  }

  .public-landing--v2 .public-landing__standards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-landing--v2 .public-landing__hero--center .public-landing__lead {
    max-width: 42rem;
  }

  .public-landing--v2 .public-landing__title--display {
    max-width: 20ch;
  }
}

@media (min-width: 1200px) {
  .public-landing--v2 .public-landing__marquee-section {
    width: 100%;
    max-width: 100vw;
  }
}

/* access-gate.css loads after public-landing and pins html/body to 100vh when access-locked;
   restore document scroll for the logged-out homepage (#public-landing). */
html.access-locked.public-landing-active:not(.public-gate-active),
html.access-locked.public-landing-active:not(.public-gate-active) body {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: static !important;
  touch-action: pan-y;
}
