/* =========================================================
   NUVORELIX V6.1 — ASTRO TRUE FULL BLEED
   The Astro artwork spans the real viewport below the navbar.
   ========================================================= */

/* Astro is the one public page that intentionally escapes the generic
   .container / .cm-page wrapper. This prevents the artwork being clipped
   or shifted to one side by older layout layers. */
body.cm-nova-ux:has(.astro-cinematic-hero) main.container.cm-page,
body.cm-theme-c:has(.astro-cinematic-hero) main.container.cm-page{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}

body.cm-nova-ux:has(.astro-cinematic-hero),
body.cm-theme-c:has(.astro-cinematic-hero){
  background:#000!important;
  overflow-x:hidden!important;
}

.astro-cinematic-hero{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  aspect-ratio:1672 / 865!important;
  margin:0!important;
  transform:none!important;
  overflow:hidden!important;
  background:#000!important;
  border-top:1px solid rgba(212,175,55,.16)!important;
  border-bottom:1px solid rgba(212,175,55,.16)!important;
  isolation:isolate;
}

.astro-cinematic-bg{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:0!important;
  background-image:url('brand/astro-tcg-hero-bg.png')!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  background-size:cover!important;
  transform:none!important;
}

/* Slight dark edge treatment so the image blends into the Nuvorelix shell. */
.astro-cinematic-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(0,0,0,.05),transparent 18%,transparent 82%,rgba(0,0,0,.16)),
    linear-gradient(90deg,rgba(0,0,0,.07),transparent 10%,transparent 90%,rgba(0,0,0,.07));
}

.astro-bg-hitbox{
  z-index:5!important;
}

/* Full-bleed page content below the artwork returns to the normal readable width. */
.astro-association-note,
.astro-ecosystem-clean{
  position:relative;
  z-index:2;
}

.astro-association-note{
  margin-top:54px!important;
}

/* The original artwork is 1672x865. These percentages align with the
   visible CTAs in that exact composition. */
.astro-bg-hitbox-primary{
  left:8.25%!important;
  top:65.25%!important;
  width:16.2%!important;
  height:7.3%!important;
}
.astro-bg-hitbox-secondary{
  left:26.15%!important;
  top:65.25%!important;
  width:12.65%!important;
  height:7.3%!important;
}
.astro-bg-hitbox-monitor{
  left:48.8%!important;
  top:8.7%!important;
  width:44.4%!important;
  height:75.2%!important;
}

@media (min-width:1800px){
  /* On very wide monitors, cap the vertical footprint slightly while still
     keeping the image edge-to-edge. */
  .astro-cinematic-hero{
    max-height:calc(100vh - 88px)!important;
    aspect-ratio:auto!important;
    height:min(865px,calc(100vh - 88px))!important;
  }
  .astro-cinematic-bg{
    background-size:cover!important;
  }
}

@media(max-width:900px){
  .astro-cinematic-hero{
    width:100%!important;
    aspect-ratio:1672 / 865!important;
    height:auto!important;
    max-height:none!important;
  }
  .astro-cinematic-bg{
    background-size:cover!important;
    background-position:center center!important;
  }
  .astro-association-note{
    margin-top:32px!important;
  }
}

@media(max-width:620px){
  /* On phones, the desktop artwork would become too tiny if shown in full.
     Keep it edge-to-edge but crop symmetrically for legibility. */
  .astro-cinematic-hero{
    aspect-ratio:9 / 12!important;
  }
  .astro-cinematic-bg{
    background-size:auto 100%!important;
    background-position:35% center!important;
  }
  .astro-bg-hitbox{
    display:none!important;
  }
}
