/* Desktop links sit beside the page's own header actions. On a narrow
   screen the same list collapses behind the menu button, matching the
   homepage: hidden until opened, then the full set of items. */

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav-panel {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav-panel a {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-panel a[aria-current="page"] {
  color: #f6d4b0;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.85rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.site-nav-icon,
.site-nav-icon::before,
.site-nav-icon::after {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.site-nav-icon {
  position: relative;
}

.site-nav-icon::before,
.site-nav-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-nav-icon::before {
  top: -6px;
}

.site-nav-icon::after {
  top: 6px;
}

.site-nav.is-open .site-nav-icon {
  background: transparent;
}

.site-nav.is-open .site-nav-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav.is-open .site-nav-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .header-tools {
    align-self: flex-start;
    padding-top: 0.35rem;
  }

  .site-nav {
    position: static;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav-panel {
    display: none;
  }

  .site-nav.is-open .site-nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    position: absolute;
    z-index: 30;
    top: calc(100% - 0.4rem);
    left: clamp(1rem, 4vw, 2rem);
    right: clamp(1rem, 4vw, 2rem);
    width: auto;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    background: rgba(23, 37, 31, 0.94);
  }
}
