/* Shared navigation material and geometry for every published page. */
.nav-wrap {
  position: fixed;
  z-index: 30;
  top: 22px;
  left: 0;
  right: 0;
  width: min(450px, calc(100% - 28px));
  height: 60px;
  margin-inline: auto;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(18,24,28,.96), rgba(4,7,9,.92));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 14px 38px rgba(0,0,0,.32);
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: background .18s ease;
}

.nav-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  pointer-events: none;
  border-radius: 20px;
  background: linear-gradient(115deg, rgba(255,255,255,.095), transparent 28%, transparent 68%, rgba(101,200,255,.055));
}

.nav-wrap .nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 60px;
  padding: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(255,255,255,.025), rgba(3,6,8,.14));
  box-shadow: none;
}

.nav-wrap .nav::before,
.nav-wrap .nav::after { content: none; }
.nav-wrap .nav-links { position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 3px; }
.nav-wrap .mark-link { display: grid; place-items: center; width: 32px; height: 41px; margin-right: 9px; flex: 0 0 auto; color: white; }
.nav-wrap .nav-mark { display: block; width: 30px; height: 22px; overflow: visible; transform: translateY(-.5px); }
.nav-wrap .nav-link { padding: 10px 17px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 400; line-height: 1; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.nav-wrap .nav-link:hover,
.nav-wrap .nav-contact:hover,
.nav-wrap .mark-link:hover { color: white; }

@media (max-width: 650px) {
  .nav-wrap {
    top: 14px;
    width: min(340px, calc(100% - 20px));
    height: 68px;
    border-radius: 24px;
  }
  .nav-wrap .nav { height: 68px; padding: 7px 6px; gap: 2px; border-radius: 23px; }
  .nav-wrap .nav-links { width: 100%; height: 100%; gap: 1px; }
  .nav-wrap .mark-link { width: 27px; height: 48px; margin-right: 7px; transform: translateX(-3px); }
  .nav-wrap .nav-mark { width: 24px; height: 19px; transform: translateY(-1px); }
  .nav-wrap .nav-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 5px; }
}

@media (max-width: 820px) {
  .nav-wrap,
  .nav-wrap.liquidglass-ready,
  .nav-wrap.native-glass {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    overflow: visible;
    border: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    transform: none;
    transition: none;
    animation: load-drop .65s .08s cubic-bezier(.2,.8,.2,1) both;
  }
  .nav-wrap canvas { display: none !important; }
  .nav-wrap .nav {
    border: 1px solid rgba(255,255,255,.18);
    background: linear-gradient(145deg, rgba(18,24,28,.95), rgba(7,10,12,.9));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 12px 34px rgba(0,0,0,.34);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-wrap { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-wrap .nav { border-color: rgba(255,255,255,.18); background: rgba(10,13,15,.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .nav-wrap { background: transparent; }
  .nav-wrap .nav { border-color: rgba(255,255,255,.3); background: rgba(5,7,9,.94); }
}
