/* Shared site header styles */
html,
body {
  overscroll-behavior: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #e9eef3;
}

.site-nav {
  padding-block: 4px;
}

.site-nav-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}
.site-logo img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-link {
  display: inline-block;
  padding: 6px 6px;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  line-height: 1;
}

.site-nav-link:hover,
.site-nav-link.active {
  color: #0a6cff;
}

.site-hamburger {
  display: none;
  position: relative;
  width: 28px;
  height: 22px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.site-hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #0f172a;
  border-radius: 1px;
  transform-origin: center;
  transition: transform 200ms ease, opacity 200ms ease, top 200ms ease;
}

.site-hamburger span:nth-child(1) {
  top: 2px;
}

.site-hamburger span:nth-child(2) {
  top: 10px;
}

.site-hamburger span:nth-child(3) {
  top: 18px;
}

.site-hamburger[aria-expanded="true"] span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.site-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-hamburger[aria-expanded="true"] span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .site-logo img {
    height: 42px;
  }

  .site-hamburger {
    display: inline-block;
  }

  .site-nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #ffffff;
    border-bottom: 1px solid #e9eef3;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px;
  }

  .site-nav-menu.show {
    display: flex;
  }

  .site-nav-link {
    padding: 12px 6px;
    width: 100%;
  }
}

.site-header.compact .site-nav {
  padding-block: 2px;
}

.site-header.compact .site-nav-link {
  padding: 4px 4px;
}
