/* The glass nav shared by every page (see nav.js): the liquid pill, the accent copy of the links
   it reveals, and in Chromium the edge-refracted glass. Loaded after the page's own stylesheet. */

/* Hover is shown by the pill, not a background under the link. */
.nav-logo:hover { background: none; transform: none; }
.nav-links a:hover { background: transparent; border-color: transparent; transform: none; }

/* ── Liquid pill (after Kyant0's LiquidBottomTabs) ── */
.nav-pill {
  position: absolute; left: 0; top: 0; z-index: 2; border-radius: 999px;
  pointer-events: none; opacity: 0; transform-origin: center;
  background: rgba(0,0,0,0.10);
  transition: box-shadow .2s ease, background .2s ease, opacity .2s ease;
  will-change: transform, width;
}
.nav-pill.pressed {
  background: rgba(255,255,255,0.35);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.7),
    inset 0 -6px 12px rgba(0,0,0,0.10),
    0 6px 16px rgba(0,0,0,0.18);
  backdrop-filter: blur(2px) saturate(1.4);
}
/* Edge refraction (Chromium only, set by the script): the background bends at the glass's rim
   instead of the noise wobble. Elsewhere the blur and the noise filter above stay as they are. */
/* One layer there, as in the reference: the filtered backdrop carries its own rim, under a 60%
   white fill and one soft shadow. The tint and shine layers are for the fallback only. */
.lg-refract .liquidGlass-effect {
  backdrop-filter: url(#lg-nav); filter: none; background: rgba(255,255,255,0.6);
}
.lg-refract .liquidGlass-tint, .lg-refract .liquidGlass-shine { display: none; }
.lg-refract .liquidGlass-wrapper.dock { box-shadow: 0 4px 19px rgba(0,0,0,0.4); }
/* The pill wears the same glass, at rest and pressed. */
.lg-refract .nav-pill, .lg-refract .nav-pill.pressed {
  backdrop-filter: url(#lg-pill); background: rgba(255,255,255,0.6);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.nav-tint {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
}
.nav-tint .nav-logo, .nav-tint .nav-logo span, .nav-tint .nav-links a { color: var(--accent); }
.nav-tint .nav-cta { visibility: hidden; }

/* ── Phones: a tab bar at the bottom ──
   The section links come back as tabs within thumb reach; the logo and Get Started leave the bar
   (Pricing is a tab). Labels while they fit; icons (added by nav.js) only once they don't. */
.nav-ico { display: none; }
@media (max-width: 699px) {
  .nav-wrapper { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .nav-wrapper .nav-logo, .nav-wrapper .nav-cta { display: none; }
  .nav-wrapper .liquidGlass-text.dock { padding: 0; }   /* the bar's own padding is enough */
  .nav-wrapper .nav-links { display: flex; gap: 2px; }
  .nav-wrapper .nav-links a { padding: 10px 14px; font-size: 14px; }
  /* Room under the last of the page, so the bar never covers it. */
  body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
/* Too narrow for four labels: icons alone. The label stays in the link for screen readers. */
@media (max-width: 359px) {
  .nav-wrapper .nav-links a { padding: 9px 14px; font-size: 0; }
  .nav-ico {
    display: block; width: 22px; height: 22px;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  }
}
