/* Halbnord — navigation: top bar + mobile fullscreen menu */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--frost);
  border-bottom: 1px solid var(--line);
  /* IMPORTANT: no backdrop-filter, no transform — would trap fullscreen overlay */
}

.top-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--nox);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.brand__mark {
  width: 28px;
  height: 28px;
  background: var(--moss);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  top: 4px;
}
.brand:hover { color: var(--moss); }

.top-bar__links {
  display: none;
  align-items: center;
  gap: 32px;
}
.top-bar__links a {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--nox);
  position: relative;
  padding: 6px 0;
}
.top-bar__links a:hover { color: var(--moss); }
.top-bar__links a[aria-current="page"] { color: var(--moss); }
.top-bar__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--moss);
}

.top-bar__cta {
  display: none;
  font-size: 0.88rem;
  padding: 10px 18px;
}

@media (min-width: 1024px) {
  .top-bar__links { display: inline-flex; }
  .top-bar__cta { display: inline-flex; }
}

/* Burger */
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  padding: 0;
}
.burger:hover { background: var(--frost); border-color: var(--nox); }
.burger__bars {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}
.burger__bars::before,
.burger__bars::after,
.burger__bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--nox);
  display: block;
}
.burger__bars::before { top: 0; }
.burger__bars span { top: 5px; }
.burger__bars::after { bottom: 0; }
@media (min-width: 1024px) {
  .burger { display: none; }
}

/* Fullscreen mobile menu */
.full-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--frost);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s ease;
  overflow-y: auto;
}
.full-menu[aria-hidden="false"] { transform: translateX(0); }

.full-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.full-menu__close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.full-menu__close svg { width: 16px; height: 16px; }
.full-menu__close:hover { background: var(--nox); color: var(--frost); }
.full-menu__close:hover svg path { stroke: var(--frost); }

.full-menu__body {
  flex: 1;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.full-menu__body a {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--nox);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.full-menu__body a:hover { color: var(--moss); }
.full-menu__body a:last-child { border-bottom: none; }

.full-menu__foot {
  padding: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.full-menu__foot .meta {
  font-size: 0.88rem;
  color: var(--ridge);
}

body.menu-locked { overflow: hidden; }
