html:has(.site-header) {
  --nathivo-header-height: 92px;
  scroll-padding-top: calc(var(--nathivo-header-height) + 20px);
}

#wrapwrap .site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  isolation: isolate;
}

#wrapwrap .site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((100% - 100vw) / 2);
  right: calc((100% - 100vw) / 2);
  z-index: -1;
  pointer-events: none;
  background-color: transparent;
  transition: background-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

#wrapwrap .site-header.is-scrolled::before {
  background-color: rgba(242, 236, 223, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(25, 33, 28, .12);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #wrapwrap .site-header.is-scrolled::before {
    background-color: rgba(242, 236, 223, .97);
  }
}

@media (max-width: 860px) {
  html:has(.site-header) { --nathivo-header-height: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  #wrapwrap .site-header::before { transition: none; }
}
