/* Floating, translucent navigation */
.site-header {
  position: fixed; z-index: 90; top: auto; bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%; right: auto; transform: translateX(-50%);
  width: min(1140px, calc(100% - 36px)); height: auto; min-height: 70px;
  display: flex; gap: 22px; align-items: center; padding: 7px 8px 7px 20px;
  border: 1px solid rgba(255,255,255,.23); border-radius: 28px;
  background: rgba(10, 20, 34, .68);
  box-shadow: 0 18px 48px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  backdrop-filter: blur(26px) saturate(175%);
}
.site-header .brand { flex: 0 0 auto; gap: 4px; }
.site-header .brand-name { font-size: 15px; letter-spacing: .1em; }
.site-header .brand-subtitle { font-size: 8px; letter-spacing: .13em; }
.site-header .navigation {
  position: relative; inset: auto; display: flex; flex: 1 1 auto; min-width: 0;
  flex-direction: row; align-items: stretch; justify-content: space-between; gap: 0;
  padding: 0; background: transparent; box-shadow: none; touch-action: pan-y;
}
.site-header .navigation .nav-slider {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0; opacity: 0;
  border-radius: 21px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.09));
  border: 1px solid rgba(255,255,255,.19);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 4px 12px rgba(0,0,0,.13);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), width .3s ease, opacity .15s;
}
.site-header .navigation .nav-slider.no-transition { transition: none; }
.site-header .navigation.is-dragging .nav-slider { transition-duration: .12s; }
.site-header .navigation > .nav-item,
.site-header .navigation > .nav-item:hover,
.site-header .navigation > .nav-item[aria-current="page"] {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; min-height: 54px;
  display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 7px;
  border: 0; border-radius: 21px; background: transparent; color: #f8f4f3;
  font-size: 12px; font-weight: 500; line-height: 1.2; text-decoration: none;
}
.site-header .navigation:not(.has-slider) > .nav-item[aria-current="page"] { background: rgba(255,255,255,.17); }
.site-header .navigation > .nav-item:hover { color: white; }
.site-header .nav-icon { flex: 0 0 20px; width: 20px; height: 20px; }
.site-header .nav-label { white-space: nowrap; }
.site-header .nav-label-short { display: none; }
.site-footer { padding-bottom: calc(115px + env(safe-area-inset-bottom)); }
@media (max-width: 850px) {
  .site-header {
    width: calc(100% - 20px); min-height: 0; gap: 0; padding: 6px;
    bottom: max(10px, env(safe-area-inset-bottom)); border-radius: 26px;
  }
  .site-header .brand { display: none; }
  .site-header .navigation > .nav-item,
  .site-header .navigation > .nav-item:hover,
  .site-header .navigation > .nav-item[aria-current="page"] {
    min-height: 57px; flex-direction: column; gap: 4px; padding: 6px 1px;
    font-size: 10px; border-radius: 20px;
  }
  .site-header .nav-icon { flex-basis: 20px; width: 20px; height: 20px; }
  .site-header .nav-label-full { display: none; }
  .site-header .nav-label-short { display: inline; }
  .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}
@media (max-width: 350px) {
  .site-header .navigation > .nav-item,
  .site-header .navigation > .nav-item:hover,
  .site-header .navigation > .nav-item[aria-current="page"] { font-size: 9px; }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(10, 20, 34, .94); }
}
@media (prefers-reduced-motion: reduce) { .site-header .navigation .nav-slider { transition: none; } }
.site-header .navigation { -webkit-user-select: none; user-select: none; }
.site-header .nav-icon, .site-header .nav-label { pointer-events: none; }
html { scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
