/* cl-navglass: almost-clear glass bottom bar and one draggable glass bubble (cl-navglass.js). Phones only: the bar is hidden above 700px.
   Everything is under nav.clng-on (set by the script), so without the script the bar keeps its earlier look.
   While a panel is open (html.cl-sheet-open) the blur stays off, as mobile.css already does. */
@media (max-width:700px){
/* bar: clear glass: white tint 9%, blur 1px (no saturate), thin light border, soft shadow (:root lifts it above r211's :root:root rule) */
:root nav.tabbar.r250-bar.clng-on{background:rgba(255,255,255,.09)!important;border:1px solid rgba(255,255,255,.6)!important;box-shadow:0 6px 22px rgba(9,17,36,.12),inset 0 1px 0 rgba(255,255,255,.55)!important;touch-action:none}
html:not(.cl-sheet-open) nav.tabbar.r250-bar.clng-on{-webkit-backdrop-filter:blur(1px)!important;backdrop-filter:blur(1px)!important}
:root[data-theme=dark] nav.tabbar.r250-bar.clng-on,html[data-r250t=dark] nav.tabbar.r250-bar.clng-on{background:rgba(22,28,44,.12)!important;border-color:rgba(255,255,255,.18)!important;box-shadow:0 8px 26px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.10)!important}
/* no backdrop-filter: a solid bar */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 :root nav.tabbar.r250-bar.clng-on{background:#fff!important}
 :root[data-theme=dark] nav.tabbar.r250-bar.clng-on,html[data-r250t=dark] nav.tabbar.r250-bar.clng-on{background:#161c2c!important}}
/* relicon-navtap: touch-action none (was pan-y). With pan-y a sideways drag on the bar counted as a browser scroll gesture and the
   next quick tap only "stopped" it (no click: two taps needed); a tap that slipped ~15px down also became a page scroll.
   "manipulation" was tested too: the browser then takes the sideways drag itself and cancels it. none also blocks double-tap zoom. */
nav.tabbar.clng-on .tab{position:relative;z-index:1;touch-action:none!important;-webkit-tap-highlight-color:transparent}
/* relicon-navtap: no tap flash on the bar itself either */
:root nav.tabbar.r250-bar.clng-on{-webkit-tap-highlight-color:transparent}
/* bubble: clear glass lens, no gold anywhere, no backdrop blur. It sits behind the icons (z-index 0, tabs 1); the icon of the tab under it is scaled 8% with a transform (the "magnified" look). */
nav.tabbar.clng-on .clng-pill{position:absolute;left:0;top:0;width:0;height:0;z-index:0;pointer-events:none;border-radius:20px;will-change:transform;
 transition:transform .28s cubic-bezier(.22,1,.36,1)}
/* relicon-navtap: the glass itself is an inner layer, so it can swell (scale) while the bubble slides (translate) */
nav.tabbar.clng-on .clng-pill>.clng-drop{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;pointer-events:none;
 background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.6);box-sizing:border-box;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 8px 12px -10px rgba(255,255,255,.75),0 2px 10px rgba(9,17,36,.12);
 transform-origin:50% 50%;will-change:transform;transition:transform .28s cubic-bezier(.22,1,.36,1)}
/* press: swell a little more in width than height (limits from the script keep it inside the bar), soft spring */
nav.tabbar.clng-on .clng-pill.clng-press>.clng-drop{transform:scale(var(--clng-sx,1.18),var(--clng-sy,1.1));transition:transform .22s cubic-bezier(.34,1.56,.64,1)}
:root[data-theme=dark] nav.tabbar.clng-on .clng-pill>.clng-drop,html[data-r250t=dark] nav.tabbar.clng-on .clng-pill>.clng-drop{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.45);box-shadow:inset 0 1px 0 rgba(255,255,255,.4),inset 0 8px 12px -10px rgba(255,255,255,.3),0 2px 10px rgba(0,0,0,.3)}
nav.tabbar.clng-on .clng-pill.clng-spring{transition:transform .34s cubic-bezier(.34,1.56,.64,1)}
nav.tabbar.clng-on .clng-pill.clng-still{transition:none!important}
nav.tabbar.clng-on .tab svg{transition:transform .2s ease}
nav.tabbar.clng-on .tab.clng-lens svg{transform:scale(1.08)}
/* the tabs' own active look is replaced by the bubble; the active icon and name keep the normal text colour */
nav.tabbar.clng-on .tab.active,nav.tabbar.clng-on .tab[aria-current]{background:transparent!important;box-shadow:none!important;color:var(--ink,#0d1526)!important;filter:none!important}
nav.tabbar.clng-on .tab.active svg,nav.tabbar.clng-on .tab[aria-current] svg{stroke:currentColor!important}
:root[data-theme=dark] nav.tabbar.clng-on .tab.active,:root[data-theme=dark] nav.tabbar.clng-on .tab[aria-current]{color:#fff!important}
/* the last content of the page is never under the bar (bar height from the script, 8px gap below it, 16px room) */
body{padding-bottom:max(74px,calc(var(--clng-h,64px) + 24px + env(safe-area-inset-bottom)))!important}
}
@media (prefers-reduced-motion:reduce){nav.tabbar.clng-on .clng-pill,nav.tabbar.clng-on .clng-pill.clng-spring,nav.tabbar.clng-on .tab svg{transition:none!important}
 nav.tabbar.clng-on .clng-pill>.clng-drop,nav.tabbar.clng-on .clng-pill.clng-press>.clng-drop{transform:none!important;transition:none!important}}
