/**
 * Public-page menu bar: full-width background. The menu row matches the page column
 * and stays at least 720px wide until the 768px mobile layout.
 * The bar sits outside .main-wrapper so that wrapper's width and overflow stay as they are.
 * Admin pages and the login page do not mount this bar.
 */

.public-page-menu {
  display: block;
  position: relative;
  isolation: isolate;
  z-index: 40;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
}

.public-page-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #b7ecf1 0%, #e9f8fb 55%, #ffffff 100%);
  filter: saturate(1.4);
}

.public-page-menu-inner {
  display: flex;
  align-items: center;
  width: 64%;
  min-width: 720px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  min-height: 3.2rem;
}

@media (max-width: 768px) {
  .public-page-menu-inner {
    width: 97%;
    min-width: 0;
    padding-left: 4%;
    padding-right: 4%;
  }
}

.public-page-menu:not(.is-ready) {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.public-page-menu .admin-page-menu {
  flex: 0 0 auto;
  margin-left: 1%;
}

.public-page-menu .admin-menu-toggle {
  filter: none;
  opacity: 1;
}

.public-page-menu .admin-menu-toggle,
.public-page-menu .admin-menu-icon {
  width: 2.1rem;
  height: 2.1rem;
  margin-right: 0.35rem;
  margin-left: -0.4rem;
}

.public-page-menu .admin-menu-icon {
  background: none;
  background-color: #4c46a0;
  -webkit-mask-image: url(../get_media.php?path=icons/menu_icon.png);
  mask-image: url(../get_media.php?path=icons/menu_icon.png);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% auto;
  mask-size: 100% auto;
}

.public-page-menu-title {
  font-family: 'freight-display-pro', serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03rem;
  color: #4c46a0;
  white-space: nowrap;
}
