/* Site navbar, "FixtureLabs Store", shared by keyboard.html (Keyboard) and plugin.html (Plugin). Markup is copied in each page. */

:root { --nav: 64px; }

.site-nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgba(13, 14, 17, .07);
  transition: transform .45s var(--ease), box-shadow .3s;
}
.site-nav.tucked { transform: translateY(-100%); }
.site-nav.lifted { box-shadow: 0 10px 30px -18px rgba(13, 14, 17, .35); }
.site-nav .wrap {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.site-nav .brand { color: var(--ink); font-size: 17px; }
.site-nav .brand img { height: 20px; }

/* store links: plain text, the current page darker; coming-soon products greyed out and not clickable */
.nav-products { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav-products a, .nav-products .soon {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 0;
  font: 500 14px/1 var(--text); color: #50565f; text-decoration: none; white-space: nowrap; transition: color .2s;
}
.nav-products a:hover { color: var(--ink); }
.nav-products a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-products .soon { color: #c7c7cc; cursor: default; }
.nav-products .soon::after { content: "Soon"; font: 600 9.5px/1 var(--text); letter-spacing: .04em; text-transform: uppercase; color: #aeaeb2; }
.nav-products svg { display: none; }
.site-nav .brand b { font-weight: 500; color: #6e6e73; }

.nav-end { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav-end .nav-link { font: 500 14px/1 var(--text); color: #50565f; text-decoration: none; }
.nav-end .nav-link:hover { color: var(--ink); }
.nav-end .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.nav-back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: 99px;
  box-shadow: inset 0 0 0 1px #d2d2d7; font: 500 14px/1 var(--text); color: #50565f; text-decoration: none; white-space: nowrap; transition: color .2s, box-shadow .2s; }
.nav-back:hover { color: var(--ink); box-shadow: inset 0 0 0 1px #86868b; }

@media (max-width: 760px) {
  :root { --nav: 58px; }
  .site-nav .wrap { grid-template-columns: auto 1fr auto; gap: 10px; }
  .site-nav .brand span { display: none; }
  .nav-products { justify-self: center; gap: 14px; }
  .nav-products a { font-size: 13px; }
  .nav-products .soon { display: none; }
  .nav-end .nav-link { display: none; }
  .nav-end .btn { height: 36px; padding: 0 14px; font-size: 13px; }
  .nav-back { height: 32px; padding: 0 10px 0 8px; font-size: 13px; }
}

/* the first screen shares its height with the navbar */
@media (min-width: 1021px) {
  .pdp { height: calc(100svh - var(--announce) - var(--nav)); }
}

/* debug views (?snap=, ?at=) show one section alone */
.solo .site-nav, .solo-bring .site-nav { display: none !important; }

@media (max-width: 1100px) and (min-width: 761px) { .nav-products .soon::after { display: none; } }
@media (max-width: 480px) {
  .nav-back { width: 32px; padding: 0; justify-content: center; }
  .nav-back span { display: none; }
}
