/* Floating navigation: one continuous pill at every screen size. */
.sticky-display {
  position: fixed;
  display: flex;
  justify-content: center;
  inset-inline: 0;
  z-index: 10;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.sticky-menu {
  width: max-content;
  max-width: calc(100vw - 24px);
  border-radius: 999px;
  background-color: rgba(44, 44, 44, 0.8588235294);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.sticky-menu nav,
.sticky-menu .nav-container {
  border-radius: inherit;
}
.sticky-menu .nav-container {
  position: relative;
  display: flex;
  padding: 7px;
  isolation: isolate;
}
.sticky-menu .nav-container a {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: white;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Extend the hit area to the edge without changing the inset highlight. */
.sticky-menu .nav-container a::before {
  content: "";
  position: absolute;
  inset: -7px 0;
}
.sticky-menu .nav-container a:first-of-type::before {
  left: -7px;
}
.sticky-menu .nav-container a:last-of-type::before {
  right: -7px;
}
.sticky-menu .nav-container a:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}
.sticky-menu .nav-pill {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
}
.sticky-menu .nav-pill-active {
  background-color: #737373;
}
.sticky-menu .nav-pill-hover {
  background-color: #474747;
}
.sticky-menu.nav-ready .nav-pill {
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    width 480ms cubic-bezier(0.22, 1, 0.36, 1), opacity 150ms ease;
}
@media screen and (max-width: 767px) {
  .sticky-menu .nav-container a {
    padding: 6px 5px;
    font-size: 13px;
    line-height: 13px;
  }
}
@media screen and (max-width: 479px) {
  .sticky-menu .nav-container a {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 11.5px;
  }
}
@media screen and (max-width: 379px) {
  .sticky-menu .nav-container a {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 11px;
  }
}
@media screen and (max-width: 349px) {
  .sticky-menu .nav-container a {
    padding-right: 2px;
    padding-left: 2px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-menu.nav-ready .nav-pill {
    transition: none;
  }
}

/* The floating controls stay light over page content. */
.nav-toggle { display: none; }
.sticky-menu { background: rgb(38 38 38 / 64%); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: background 220ms ease, box-shadow 220ms ease; box-shadow: 0 6px 24px #0000000d; }
.sticky-menu:is(:hover, :focus-within) { background: #2c2c2c; }
.profile-fab { color: #e5e5e5; position: fixed; z-index: 11; top: max(18px, env(safe-area-inset-top)); right: max(22px, env(safe-area-inset-right)); display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #ffffff2e; border-radius: 50%; background: #242424eb; box-shadow: 0 5px 20px #0002; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity 220ms, translate 220ms, visibility 220ms, scale 220ms; }
.profile-fab.is-visible { opacity: 1; visibility: visible; translate: 0 0; }
.profile-fab:hover { scale: 1.06; }
.profile-fab:focus-visible { outline: 2px solid #00b7a2; outline-offset: 4px; }
@media (max-width: 767px) {
  .sticky-display { justify-content: flex-end; padding-inline: 18px; box-sizing: border-box; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .sticky-menu.mobile-nav-ready { position: relative; width: 52px; border-radius: 50%; background: #2c2c2cdb; }
  .mobile-nav-ready .nav-toggle { position: relative; display: block; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; color: white; background: transparent; cursor: pointer; }
  .nav-toggle span { position: absolute; top: 24px; left: 24px; width: 4px; height: 4px; border-radius: 4px; background: currentColor; transition: translate 280ms, rotate 280ms, width 280ms, height 280ms, opacity 180ms; }
  .nav-toggle span:first-child { translate: -8px 0; }
  .nav-toggle span:last-child { translate: 8px 0; }
  .menu-open .nav-toggle span:first-child { width: 20px; height: 2px; translate: -8px 1px; rotate: 45deg; }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:last-child { width: 20px; height: 2px; translate: -8px 1px; rotate: -45deg; }
  .mobile-nav-ready nav { position: absolute; bottom: 64px; right: 0; width: 216px; max-width: calc(100vw - 36px); padding: 6px; border: 1px solid #ffffff18; border-radius: 22px; background: #2c2c2cf5; box-shadow: 0 12px 36px #0002; opacity: 0; visibility: hidden; translate: 0 9px; scale: .96; transform-origin: bottom right; transition: opacity 220ms, visibility 220ms, translate 320ms cubic-bezier(.22,1,.36,1), scale 320ms cubic-bezier(.22,1,.36,1); }
  .mobile-nav-ready.menu-open nav { opacity: 1; visibility: visible; translate: 0 0; scale: 1; }
  .sticky-menu.mobile-nav-ready .nav-container { display: grid; gap: 3px; padding: 0; }
  .sticky-menu.mobile-nav-ready .nav-container a { display: block; padding: 14px 16px; border-radius: 15px; font-size: 13px; line-height: 1.3; }
  .sticky-menu.mobile-nav-ready .nav-container a.active { background: #ffffff16; color: #7ee0d2; }
  .sticky-menu.mobile-nav-ready .nav-container a::before { display: none; }
  .mobile-nav-ready .nav-pill { display: none; }
  .profile-fab { top: max(12px, env(safe-area-inset-top)); right: 12px; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-menu, .profile-fab, .mobile-nav-ready nav, .nav-toggle span { transition: none; }
}
