/* Floating navigation, based on the user's rounded StreetTalk reference. */
html { scroll-padding-top: 100px; }
.header {
  position: fixed;
  inset: 16px 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  width: calc(100% - 64px);
  max-width: var(--container);
  height: 60px;
  margin-inline: auto;
  padding: 6px;
  border: 1px solid #343137;
  border-radius: 100px;
  background: #201e23;
  color: #fff;
  box-shadow: 0 4px 12px #2413320a;
  transition: box-shadow .25s;
}
.header.scrolled { box-shadow: 0 8px 24px #24133226; }
.header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 118px;
  align-self: stretch;
  border-radius: 100px;
}
.header .logo img { width: 92px; height: auto; }
.desktop-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; height: 46px; align-items: center; gap: 25px; }
.desktop-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7f4fa;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}
.desktop-nav a { min-height: 44px; padding: 0; }
.desktop-nav a:hover,
.mobile-nav a:hover { color: #cfb3f3; }
.nav-actions { display: flex; align-items: center; align-self: stretch; gap: 12px; margin-left: auto; }
.header .button.small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 0;
  padding: 0 20px;
  border: 2px solid #d1b9f3;
  border-radius: 100px;
  background: #6d28d9;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.header .button.small:hover { background: #7c3aed; border-color: #e3d3fa; }
.header :is(a,button):focus-visible { outline: 2px solid #e4d5ff; outline-offset: -5px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-radius: 50%;
}
.menu-toggle:hover { background: #36313e; }
.menu-toggle span { width: 20px; height: 2px; background: #fff; transition: transform .2s; }
.menu-toggle[aria-expanded=true] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav {
  position: absolute;
  inset: calc(100% + 10px) 0 auto;
  padding: 12px;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #ffffff24;
  border-radius: 24px;
  background: #201e23;
  box-shadow: 0 16px 40px #24133233;
}
.mobile-nav a {
  display: block;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: background .2s, border-color .2s;
}
.mobile-nav a + a { border-top: 1px solid #ffffff12; }
@media (min-width: 901px) and (max-width: 1240px) {
  .header { width: calc(100% - 40px); }
  .header .logo { flex-basis: 108px; }
  .header .logo img { width: 86px; }
  .desktop-nav { gap: 18px; }
  .desktop-nav a { font-size: 12px; }
  .header .button.small { padding-inline: 15px; font-size: 11px; }
}
@media (max-width: 900px) {
  .header { width: calc(100% - 40px); }
  .desktop-nav { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: flex; }
  .header .button.small { padding-inline: 18px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 90px; }
  .header { inset-block-start: 12px; width: calc(100% - 24px); height: 56px; padding: 5px; gap: 4px; }
  .header .logo { flex-basis: 94px; }
  .header .logo img { width: 74px; }
  .nav-actions { gap: 8px; }
  .header .button.small { padding-inline: 13px; font-size: 11px; }
  .menu-toggle { width: 44px; height: 44px; flex-basis: 44px; }
  .menu-toggle span { width: 17px; }
  .mobile-nav { border-radius: 22px; max-height: calc(100dvh - 90px); }
}
@media (max-width: 374px) {
  .header .logo { flex-basis: 86px; }
  .header .logo img { width: 70px; }
  .header .button.small { padding-inline: 11px; }
}
