/* Glass lives on its own layer: filtering the header itself would capture the
   native Navigation block's fixed mobile overlay. No SVG or canvas effects. */
.nvrn-header { background: transparent; }
.nvrn-header::before {
 content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
 border-radius: inherit;
 background: linear-gradient(155deg, #fffffff5, #ffffffdd 48%, #f5f3f0ee);
 border: 1px solid #ffffffb3;
 box-shadow: inset 0 1px 0 #fff, inset 0 -1px 1px #19191905, 0 8px 22px #19191903;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
 .nvrn-header::before {
  background: linear-gradient(155deg, #ffffffd9, #ffffffa8 48%, #f5f3f0c2);
  -webkit-backdrop-filter: blur(20px) saturate(1.45);
  backdrop-filter: blur(20px) saturate(1.45);
 }
}
header[data-neverno-header] { min-height: var(--nvrn-header-space); }
header[data-neverno-header] .nvrn-header {
 position: fixed; left: 0; right: 0;
 top: var(--nvrn-admin-offset, 0px);
 margin-inline: auto; margin-bottom: 0;
 border-radius: 0 0 var(--nvrn-radius) var(--nvrn-radius);
 transition: top 420ms cubic-bezier(.22,1,.36,1);
}
header[data-neverno-header='hidden'] .nvrn-header { top: calc(-1 * var(--nvrn-header-measured) - 20px); }
header[data-neverno-header='visible'] .nvrn-header::before {
 box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #ffffff99, 0 12px 32px #19191910;
}
/* Interaction always takes precedence over scroll direction. */
header[data-neverno-header] .nvrn-header:has(.is-menu-open),
header[data-neverno-header] .nvrn-header:has(:focus-visible) { top: var(--nvrn-admin-offset, 0px); }
html { scroll-padding-top: calc(var(--nvrn-header-height, 118px) + var(--nvrn-admin-offset, 0px) + 20px); }
@media (prefers-reduced-motion: reduce) {
 header[data-neverno-header] .nvrn-header { transition: none; }
}
html[data-neverno-motion='paused'] header[data-neverno-header] .nvrn-header { transition: none; }

/* Match the red navigation even when core/global link rules load after theme CSS. */
:is(.wp-site-blocks, .editor-styles-wrapper) .nvrn-header .nvrn-navigation .wp-block-navigation-item__content,
:is(.wp-site-blocks, .editor-styles-wrapper) .nvrn-header .nvrn-navigation .wp-block-navigation-item__content:visited {
 color: var(--nvrn-readable-red) !important;
}
@media (max-width: 599px) {
 .nvrn-header .nvrn-wordmark { left: 24px; }
 .nvrn-header .nvrn-navigation { padding-right: 12px; }
}
