/* The shell stays open for the header's category popover. Only the lens is clipped. */
body[data-page] :is(.header, .bottom-nav) {
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 3px 10px rgba(35, 66, 89, .10);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body[data-page] :is(.header, .bottom-nav)::before,
body[data-page] :is(.header, .bottom-nav)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

body[data-page] :is(.header, .bottom-nav)::before {
  z-index: -2;
  background-color: transparent;
  box-shadow: inset 0 2px 3px rgba(255, 240, 240, .26),
              inset 0 -2px 3px rgba(222, 161, 165, .20);
  clip-path: inset(0 round 999px);
}

body[data-page] :is(.header, .bottom-nav)::after {
  z-index: -1;
  box-sizing: border-box;
  padding: 1.7px;
  background: linear-gradient(151deg, #fffcfc 1%, #f6d6d8 14%, #b16b729c 36%,
    #c6919687 54%, #ffe9e9 82%, #fffdfd 93%, #d0969b 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.optical-filter-defs { position: absolute; width: 0; height: 0; pointer-events: none; }
.optical-core {
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}
.header.optical-live::before { backdrop-filter: url(#forno-header-lens); }
.bottom-nav.optical-live::before { backdrop-filter: url(#forno-nav-lens); }

@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  .optical-core { display: none; }
  body[data-page] :is(.header, .bottom-nav)::before {
    background: Canvas;
    backdrop-filter: none;
  }
}
