/* Detached navigation lens: a separate optical layer, not a moving menu. */
.sejfer-glass-context .sg-header[data-glass-lens] { transform: none !important; }
/* WP's constrained-group block gap must not offset absolute optical layers. */
.sejfer-glass-context .sg-header > .sg-nav-lens {
  margin: 0 !important; max-width: none !important; padding: 0;
  inset: 0 auto auto 0; pointer-events: none !important;
}
.sg-nav-lens {
  position: absolute; top: 0; left: 0; z-index: 5; box-sizing: border-box;
  border-radius: 999px; pointer-events: none !important; isolation: isolate;
  border: 1px solid #ffffff70;
  background: linear-gradient(140deg,#ffffff8c,#e1eaff24 42%,#ffffff80);
  box-shadow: 0 3px 8px #344bc81c;
  opacity: 0; transition: opacity .14s ease, box-shadow .35s;
}
.sg-nav-lens[hidden] { display: none !important; }
.sg-nav-lens * { pointer-events: none !important; }
.sg-nav-lens.is-travelling {
  opacity: 1;
  box-shadow: 0 5px 10px #34446126;
}
.sg-nav-lens__aperture { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.sg-nav-lens__image { position: absolute; left: 0; top: 0; background: linear-gradient(125deg,#f8faff,#f0f3f9); }
.sg-nav-lens__word { position: absolute; display: flex; align-items: center; justify-content: center; white-space: nowrap; box-sizing: border-box; }
.sg-nav-lens__lock { flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6'%3E%3Crect x='5' y='10' width='14' height='11' rx='3'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3M12 14v3'/%3E%3C/svg%3E") center / contain no-repeat; }
/* A single soft optical slope. No inner outlines or separate glass plates. */
.sg-nav-lens__edge {
  display: none; position: absolute; inset: 0;
  box-sizing: border-box; border-radius: inherit; overflow: hidden;
  opacity: var(--lens-refraction,0);
  -webkit-mask-image: var(--lens-edge-mask);
  mask-image: var(--lens-edge-mask);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
@supports (mask-image: linear-gradient(#fff,transparent)) or (-webkit-mask-image: linear-gradient(#fff,transparent)) {
  .sg-nav-lens__edge { display: block; }
}
/* Red/cyan separation affects only the refracted perimeter, never centre copy. */
.sg-nav-lens__edge .sg-nav-lens__word { text-shadow: -1.15px .25px #f34f817d,1.15px -.25px #26cce9a6; }
.sg-nav-lens::after {
  content: ''; position: absolute; inset: 0; border: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(var(--lens-sheen-angle,120deg),#ffffff24,transparent 45%,#c2d0ed14 75%,#ffffff30);
  box-shadow: inset .8px .2px 1.2px #6aeaffad,inset -.8px -.2px 1.2px #fa87b68c,inset 0 1px 2px #fffffff0,inset 0 -2px 5px #7e91b866;
}
.sg-nav-lens::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 9px rgba(85,111,255,calc(var(--lens-origin,1) * .4)); }
.sg-header .sg-lens-source,.sg-action-lens-host .sg-lens-source { position: relative; }
.sg-action-lens-host { position: relative; isolation: isolate; width: fit-content; max-width: 100%; }
/* Reserve room for an equal glass margin without clipping the source button. */
@media (min-width:1101px) and (hover:hover) and (pointer:fine) {
  .sg-home .sg-actions.sg-action-lens-host { padding:12px; margin-left:-12px; box-sizing:border-box; }
  .sg-home .sg-actions.sg-action-lens-host > .sg-text-link { padding-inline:14px; }
}
.sg-action-lens-host > .sg-nav-lens { margin: 0 !important; padding: 0; max-width: none; }
.sg-action-lens-host .sg-nav-lens__image { background: linear-gradient(125deg,#f5f6f9,#eff2f7); }
/* The optical lens moves; the real action buttons stay put and clickable. */
.sg-action-lens-host > .sg-button:hover { transform: none; }
.sg-action-lens-host > .sg-button-primary::after { inset: 1px; border: 0; border-radius: inherit; }
.sg-lens-source::after { content: ''; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; background: linear-gradient(100deg,transparent,#ffffff80,transparent); opacity: calc(var(--glass-pull,0) * .55); }
.sg-motion-paused .sg-nav-lens { display: none !important; }
.sg-header:has(.is-menu-open) .sg-nav-lens { display: none !important; }
@media (max-width: 1100px), (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse), (forced-colors: active) {
  .sg-nav-lens { display: none !important; }
}
