body.blog-floating-header .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 24px 0;
  background: transparent !important;
}

body.blog-floating-header #ast-desktop-header > .ast-main-header-wrap,
body.blog-floating-header #ast-mobile-header > .ast-main-header-wrap {
  max-width: 1320px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(238, 218, 255, 0.16);
  border-radius: 14px;
  background: rgba(28, 20, 35, 0.82);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

body.blog-floating-header #ast-desktop-header .ast-primary-header-bar,
body.blog-floating-header #ast-mobile-header .ast-primary-header-bar {
  min-height: 52px;
  padding: 0 6px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.blog-floating-header #ast-desktop-header .site-primary-header-wrap.ast-container {
  width: 100%;
  max-width: none;
  min-height: 52px !important;
  padding-right: 8px;
  padding-left: 14px;
}

body.blog-floating-header #ast-desktop-header .ast-builder-grid-row {
  min-height: 52px !important;
}

body.blog-floating-header .site-branding {
  padding: 0;
}

body.blog-floating-header .site-title a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

body.blog-floating-header #ast-desktop-header .main-header-menu {
  align-items: center;
  gap: 2px;
}

body.blog-floating-header #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  color: rgba(225, 213, 232, 0.58) !important;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

body.blog-floating-header #ast-desktop-header .main-header-menu > .menu-item:not(:last-child) > .menu-link:hover,
body.blog-floating-header #ast-desktop-header .main-header-menu > .menu-item:not(:last-child) > .menu-link:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07);
}

body.blog-floating-header #ast-desktop-header .main-header-menu > .menu-item:last-child > .menu-link {
  margin-left: 5px;
  padding-right: 18px;
  padding-left: 18px;
  color: #17111c !important;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

body.blog-floating-header #ast-desktop-header .main-header-menu > .menu-item:last-child > .menu-link:hover,
body.blog-floating-header #ast-desktop-header .main-header-menu > .menu-item:last-child > .menu-link:focus-visible {
  color: #17111c !important;
  background: #f5eaff;
  transform: translateY(-1px);
}

body.blog-floating-header .site-header + .site-content {
  padding-top: 12px;
}

@media (max-width: 921px) {
  body.blog-floating-header .site-header {
    padding: 10px 10px 0;
  }

  body.blog-floating-header #ast-mobile-header > .ast-main-header-wrap {
    border-radius: 12px;
  }

  body.blog-floating-header #ast-mobile-header .ast-primary-header-bar {
    min-height: 52px;
    padding: 0 8px 0 12px;
  }

  body.blog-floating-header #ast-mobile-header .ast-builder-grid-row {
    min-height: 52px !important;
  }

  body.blog-floating-header #ast-mobile-header .main-header-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #17111c !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  }

  body.blog-floating-header #ast-mobile-header .main-header-menu-toggle:hover,
  body.blog-floating-header #ast-mobile-header .main-header-menu-toggle:focus-visible {
    background: #f5eaff !important;
  }

  body.blog-floating-header #ast-mobile-header .main-header-menu-toggle .ast-mobile-svg {
    width: 20px;
    height: 20px;
  }

  body.blog-floating-header #ast-mobile-header .ast-mobile-header-content {
    max-width: 1320px;
    margin: 8px auto 0;
    overflow: hidden;
    border: 1px solid rgba(238, 218, 255, 0.16);
    border-radius: 12px;
    background: rgba(20, 14, 27, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(20px) saturate(125%);
    -webkit-backdrop-filter: blur(20px) saturate(125%);
  }

  body.blog-floating-header #ast-mobile-header .ast-mobile-header-content .main-header-menu {
    padding: 6px;
    background: transparent;
  }

  body.blog-floating-header #ast-mobile-header .ast-mobile-header-content .menu-link {
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    color: rgba(236, 228, 242, 0.72) !important;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
  }

  body.blog-floating-header #ast-mobile-header .ast-mobile-header-content .menu-item:last-child > .menu-link {
    color: #17111c !important;
    background: #ffffff;
  }

  body.blog-floating-header .site-header + .site-content {
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.blog-floating-header #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    transition: none;
  }
}
