#site-navbar {
  --nav-bg: #101418;
  --nav-surface: #171d24;
  --nav-surface-2: #202833;
  --nav-text: #95a4b6;
  --nav-text-strong: #dce3e9;
  --nav-blue: #73a7ff;
  --nav-line: #4e6177;
  --nav-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  position: relative;
  z-index: 30;
  display: contents;
  color: var(--nav-text-strong);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#site-navbar *,
#site-navbar *::before,
#site-navbar *::after {
  box-sizing: border-box;
}

#site-navbar a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

#site-navbar button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

#site-navbar a:focus-visible,
#site-navbar button:focus-visible {
  outline: 3px solid var(--nav-blue);
  outline-offset: 4px;
}

.site-titlebar {
  position: sticky;
  top: 0;
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100vw;
  max-width: 100vw;
  height: 80px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(16, 20, 24, 0.88);
  border-bottom: 1px solid rgba(78, 97, 119, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@supports (width: 100dvw) {
  .site-titlebar {
    width: 100dvw;
    max-width: 100dvw;
  }
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.site-brand img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav-indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  border-radius: 10px;
  background: var(--nav-surface-2);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--indicator-x, 0), var(--indicator-y, 0), 0);
}

.site-nav-indicator.is-positioned {
  opacity: 1;
}

.site-nav-indicator.can-animate {
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    height 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 120ms ease;
}

.site-nav-links a,
.site-mobile-sidebar > a {
  position: relative;
  z-index: 1;
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--nav-text);
  font-size: 14px;
  font-weight: 550;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.site-mobile-sidebar > a:hover,
.site-mobile-sidebar > a[aria-current="page"] {
  color: var(--nav-text-strong);
  background: var(--nav-surface-2);
}

.site-nav-links a[aria-current="page"] {
  background: transparent;
}

.site-nav-links a:hover {
  color: var(--nav-text-strong);
  background: rgba(220, 227, 233, 0.1);
  box-shadow: inset 0 0 0 1px rgba(220, 227, 233, 0.12);
}

.site-nav-links a[aria-current="page"],
.site-mobile-sidebar > a[aria-current="page"] {
  color: var(--nav-blue);
}

.site-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  background: var(--nav-surface);
  border: 1px solid var(--nav-line);
  border-radius: 12px;
  cursor: pointer;
}

.site-menu-button svg {
  width: 22px;
  height: 22px;
}

.site-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.site-mobile-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(300px, 85vw);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--nav-surface);
  border-right: 1px solid var(--nav-line);
  box-shadow: var(--nav-shadow);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 240ms ease;
}

@media (min-width: 701px) {
  .site-mobile-sidebar,
  .site-sidebar-backdrop,
  .site-menu-button {
    display: none !important;
  }
}

.site-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.site-sidebar-top img {
  display: block;
  width: 145px;
  max-width: 75%;
  height: auto;
}

.site-sidebar-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--nav-surface-2);
  border: 1px solid var(--nav-line);
  border-radius: 10px;
  cursor: pointer;
}

.site-sidebar-close svg {
  width: 20px;
  height: 20px;
}

.site-mobile-sidebar > a {
  padding: 13px 14px;
  font-size: 15px;
}

body.site-nav-open {
  overflow: hidden;
}

body.site-nav-open .site-sidebar-backdrop {
  opacity: 1;
  visibility: visible;
}

body.site-nav-open .site-mobile-sidebar {
  transform: translateX(0);
  visibility: visible;
}

@media (max-width: 700px) {
  .site-titlebar {
    display: none;
  }

  .site-menu-button {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 35;
    display: flex;
    background: rgba(23, 29, 36, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-mobile-sidebar {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  #site-navbar *,
  #site-navbar *::before,
  #site-navbar *::after {
    transition-duration: 0.01ms !important;
  }

  .site-nav-indicator.can-animate {
    transition-duration: 0.01ms !important;
  }

}