/* Site title text next to the logo: hidden visually, kept for screen readers and search engines */
.site-header .ast-site-title-wrap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Mobile menu: opens as an overlay under the header instead of pushing the page down */
@media (max-width: 921.99px) {
  #masthead,
  #ast-mobile-header {
    position: relative;
  }
  #masthead {
    z-index: 100;
  }
  #ast-mobile-header .ast-mobile-header-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9998;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    padding: 6px 0 14px;
    background: linear-gradient(160deg, #1c0055 0%, #5a0080 100%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 14px 14px;
  }
  #ast-mobile-header .ast-mobile-header-content .ast-builder-menu-mobile,
  #ast-mobile-header .ast-mobile-header-content .ast-main-header-bar-alignment,
  #ast-mobile-header .ast-mobile-header-content .main-header-bar-navigation,
  #ast-mobile-header .ast-mobile-header-content .site-navigation,
  #ast-mobile-header .ast-mobile-header-content .main-navigation {
    height: auto !important;
    min-height: 0 !important;
  }
  #ast-mobile-header .ast-mobile-header-content .main-header-menu {
    background: transparent;
    border: 0;
  }
  #ast-mobile-header .ast-mobile-header-content .menu-item > .menu-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 24px;
    font-size: 1.1rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  #ast-mobile-header .ast-mobile-header-content .menu-item:last-child > .menu-link {
    border-bottom: 0;
  }
  #ast-mobile-header .ast-mobile-header-content .menu-item > .menu-link:hover,
  #ast-mobile-header .ast-mobile-header-content .menu-item > .menu-link:focus {
    background: rgba(255, 255, 255, 0.1);
  }
}
