/* Render the media through the same SVG lens when backdrop refraction is unavailable. */
html .nav.refraction-ready,
html .nav.refraction-ready.scrolled,
html:not(.svg-backdrop) .nav.refraction-ready,
html:not(.svg-backdrop) .nav.refraction-ready.scrolled {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}
.nav.refraction-ready .nav-inner {
  position: relative;
  z-index: 3;
}
/* Keep native frosting below the separately filtered refraction canvas. */
.nav.refraction-ready::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px) saturate(1.9) brightness(1.04);
  backdrop-filter: blur(8px) saturate(1.9) brightness(1.04);
}
.nav.refraction-ready::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08) 52%, rgba(255,255,255,0.16));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), inset 0 -1px 0 rgba(255,255,255,0.40);
}
.nav-refraction {
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
  opacity: 0.96;
  filter: url("#liquidGlass") blur(8px) saturate(1.9) brightness(1.04);
}
.nav-refraction[hidden] { display: none; }
