/* Locker · Liquid Glass on the nav (js/glass.js).
   Only the sidebar (computers) and the floating pill bar (phones) are glass. Everything here only applies
   while the WebGL glass is running (html.lg-on); without it the nav keeps its normal look. */

/* ---------- the canvas: the glass film, its rim light and the sliding lens ---------- */
.lgn{display:none}
html.lg-on .lgn{display:block;position:absolute;z-index:-1;pointer-events:none;top:-64px;left:-64px;width:calc(100% + 128px);height:calc(100% + 128px)}
/* room on every side so the shadow fades all the way out instead of stopping in a line */
@media(max-width:860px){html.lg-on .lgn{left:-14px;width:calc(100% + 28px)}}

/* ---------- the bar: the real page shows through, softened and brightened ---------- */
html.lg-on .side{isolation:isolate;background:transparent;border-color:transparent;box-shadow:none;
  -webkit-backdrop-filter:blur(14px) saturate(1.9) brightness(1.04);backdrop-filter:blur(14px) saturate(1.9) brightness(1.04)}
html.lg-on[data-theme="dark"] .side{-webkit-backdrop-filter:blur(14px) saturate(1.6) brightness(.9);backdrop-filter:blur(14px) saturate(1.6) brightness(.9)}
/* Chromium also bends the page at the rim, like thick glass */
html.lg-ref .side{backdrop-filter:url(#lgBend) blur(10px) saturate(1.9) brightness(1.04)}
html.lg-ref[data-theme="dark"] .side{backdrop-filter:url(#lgBend) blur(10px) saturate(1.6) brightness(.9)}
@media(min-width:861px){html.lg-on .side{z-index:2}}

/* ---------- the selection is a drop of glass, so the flat pill goes ---------- */
html.lg-on .navpill{opacity:0}
html.lg-on .side .me{background:transparent;border-color:transparent}
html.lg-on .nav,html.lg-on .nav.on{background:transparent}
html.lg-on .nav{transition:color .3s var(--e),padding .35s var(--e)}
html.lg-on .nav.on{color:var(--ink)}
html.lg-on .nav.on svg{stroke-width:2.2}
html.lg-on .nav svg{transition:scale .12s linear}
html.lg-on .nav.on .nb{background:var(--ink);border-color:var(--bg)}
@media(max-width:860px){html.lg-on .nav.on .nb{background:var(--hac);border-color:var(--bg)}}

@media(prefers-reduced-transparency:reduce){
  html.lg-on .side,html.lg-ref .side{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--card)}
  @media(max-width:860px){html.lg-on .side,html.lg-ref .side{background:var(--hcard,var(--card))}}
}
