/* Shared site header — loaded after each page stylesheet. */
.topbar {
  height: 80px !important;
  border-bottom: 1px solid #1b2432 !important;
  background: rgba(7, 12, 20, 0.9) !important;
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20 !important;
}

.topbar .wrap {
  width: min(1320px, calc(100% - 56px));
}

.topbar .nav {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 800;
}

.topbar .brand-suffix {
  color: #8ca0bd;
  font-size: 0.68em;
  font-weight: 650;
  letter-spacing: 0.03em;
  margin-left: 4px;
}

.topbar .brand-logo {
  width: 33px !important;
  height: 33px !important;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgba(72, 126, 255, 0.55));
}

.topbar .site-nav-links {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 38px !important;
  color: #aeb7c5;
  font-size: 14px;
}

.topbar .site-nav-links a {
  display: grid;
  place-items: center;
  position: relative;
  color: inherit;
  white-space: nowrap;
}

.topbar .site-nav-links a:hover,
.topbar .site-nav-links .active {
  color: #6398ff;
}

.topbar .site-nav-links .active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -12px;
  right: -12px;
  height: 2px;
  background: #5889ff;
}

.topbar .site-download-link {
  justify-self: end;
  border: 1px solid #3967ad;
  border-radius: 8px;
  padding: 10px 17px;
  color: #d9e4f7;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.topbar .site-download-link:hover {
  background: #101d31;
}

.topbar .arrow {
  margin-left: 10px;
  color: #6ea1ff;
}

@media (max-width: 980px) {
  .topbar .wrap {
    width: calc(100% - 36px);
  }

  .topbar .nav {
    grid-template-columns: 1fr;
  }

  .topbar .site-nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 62px !important;
  }

  .topbar .wrap {
    width: calc(100% - 30px);
  }

  .topbar .brand {
    font-size: 18px;
  }

  .topbar .brand-logo {
    width: 29px !important;
    height: 29px !important;
  }

  .topbar .site-download-link {
    padding: 8px 10px;
    font-size: 11px;
  }
}
