/**
 * Theme compatibility: full-width landing inside WordPress content area.
 * Targets Astra (jazzplay.ru) and common container themes.
 */

body.jpep-landing-active #content.site-content,
body.jpep-landing-active .site-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
}

body.jpep-landing-active .site-content > .ast-container,
body.jpep-landing-active .site-content > .container,
body.jpep-landing-active .site-content > .wrap {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.jpep-landing-active #primary,
body.jpep-landing-active .content-area,
body.jpep-landing-active .site-main,
body.jpep-landing-active article.page,
body.jpep-landing-active article.type-page,
body.jpep-landing-active .entry-content,
body.jpep-landing-active .wp-block-post-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.jpep-landing-active.ast-separate-container #primary,
body.jpep-landing-active.ast-separate-container .site-main,
body.jpep-landing-active.ast-separate-container .ast-article-single {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.jpep-landing-active .entry-header,
body.jpep-landing-active .entry-footer,
body.jpep-landing-active .post-navigation,
body.jpep-landing-active .comments-area {
  display: none !important;
}

body.jpep-landing-active .jazzplay-event-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/**
 * Hero on live site (Astra): small drop below menu, image still edge-to-edge.
 * Preview HTML has no ast-* class — unchanged, like admin.
 */
body.jpep-landing-active {
  --jpep-header-offset: 2.5rem;
}

@media (max-width: 921px) {
  body.jpep-landing-active {
    --jpep-header-offset: 2rem;
  }
}

body.jpep-landing-active .jazzplay-event-page .jpep-hero {
  display: flex !important;
  align-items: flex-end !important;
  position: relative;
  width: 100%;
  min-height: 72vh;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
}

body.jpep-landing-active .jazzplay-event-page .jpep-hero-bg {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

body.jpep-landing-active[class*="ast-"] .jazzplay-event-page .jpep-hero {
  margin-top: var(--jpep-header-offset);
  min-height: 72vh;
}

body.jpep-landing-active[class*="ast-"] .jazzplay-event-page .jpep-hero-bg {
  top: calc(-1 * var(--jpep-header-offset));
  height: calc(100% + var(--jpep-header-offset));
  bottom: auto;
}

body.admin-bar.jpep-landing-active[class*="ast-"] .jazzplay-event-page .jpep-hero {
  margin-top: calc(var(--jpep-header-offset) + 32px);
}

body.admin-bar.jpep-landing-active[class*="ast-"] .jazzplay-event-page .jpep-hero-bg {
  top: calc(-1 * var(--jpep-header-offset) - 32px);
  height: calc(100% + var(--jpep-header-offset) + 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar.jpep-landing-active[class*="ast-"] .jazzplay-event-page .jpep-hero {
    margin-top: calc(var(--jpep-header-offset) + 46px);
  }

  body.admin-bar.jpep-landing-active[class*="ast-"] .jazzplay-event-page .jpep-hero-bg {
    top: calc(-1 * var(--jpep-header-offset) - 46px);
    height: calc(100% + var(--jpep-header-offset) + 46px);
  }
}
