/* Navigation expands to its links while retaining the centered floating bar. */
.site-header.topbar {
  position: fixed;
  z-index: 18;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 40px);
  height: 64px;
  padding: 0 19px;
  gap: clamp(16px, 2.2vw, 38px);
  border: 1px solid rgba(255, 255, 255, .9);
  color: #1c2926;
  background: rgba(251, 249, 243, .96);
  backdrop-filter: blur(13px);
  box-shadow: 0 4px 19px rgba(32, 34, 29, .07);
}
.site-header .brandlink { flex-shrink: 0; min-height: 44px; }
.site-navigation {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.3vw, 24px);
}
.site-nav-link, .nav-locale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 14px;
  color: #29342e;
  line-height: 1.2;
  white-space: nowrap;
}
.site-nav-link {
  position: relative;
  padding: 0 2px;
  min-width: 44px;
}
.site-nav-link::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 6px;
  left: 2px;
  height: 1px;
  background: #25746b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease-out;
}
.site-nav-link[aria-current]::after,
.site-nav-link:hover::after,
.site-nav-link:focus-visible::after {
  transform: scaleX(1);
}
body:has(#space:target, #reviews:target) .site-nav-link[data-nav-key="home"]:not(:hover):not(:focus-visible)::after {
  transform: scaleX(0);
}
body:has(#space:target) .site-nav-link[data-nav-key="space"]::after,
body:has(#reviews:target) .site-nav-link[data-nav-key="reviews"]::after {
  transform: scaleX(1);
}
.site-header .nav-locale {
  position: relative;
  flex-shrink: 0;
  gap: 7px;
  padding: 0 1px 0 clamp(14px, 1.3vw, 23px);
  font-size: 13px;
}
.nav-locale::before {
  content: "";
  position: absolute;
  left: 0;
  height: 19px;
  border-left: 1px solid #b9b5ac;
}
.nav-locale .icon { width: 17px; height: 17px; }
.nav-locale:hover, .site-nav-link:hover { color: #125d56; }
.site-header .nav-compact { display: none; }
html:has(.site-header) { scroll-padding-top: 102px; }

@media (max-width: 650px) {
  .site-header.topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand locale" "links links";
    width: calc(100% - 32px);
    max-width: 530px;
    height: auto;
    gap: 0 12px;
    padding: 2px 14px 0;
  }
  .site-header .brandlink { grid-area: brand; justify-self: start; }
  .site-header .brand { font-size: 14px; gap: 7px; }
  .site-header .brand svg { width: 27px; height: 27px; }
  .site-header .nav-locale { grid-area: locale; justify-self: end; padding: 0; }
  .site-header .nav-locale::before { display: none; }
  .site-header .site-navigation {
    grid-area: links;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    border-top: 1px solid #cbc8bc;
  }
  .site-nav-link { font-size: 13px; }
  html:has(.site-header) { scroll-padding-top: 122px; }
}
@media (max-width: 500px) {
  .site-header.topbar { width: calc(100% - 24px); padding-inline: 11px; }
  .site-header .nav-full { display: none; }
  .site-header .nav-compact { display: inline; }
  .site-header .site-navigation { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav-link::after { transition: none; }
}
