:root {
  --lb-bg: #364449;
  --lb-text: #E7E4D1;
  --lb-border-soft: rgba(231, 228, 209, 0.14);
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  background: rgba(54, 68, 73, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lb-border-soft);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

/* Constrain logo block so it cannot squeeze everything */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}

/* Logo image stays stable */
.logo img {
  height: 38px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

/* If your logo text is inside the same <a>, clamp it safely */
.logo span {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-desktop a {
  margin-left: 18px;
  color: var(--lb-text);
  opacity: 0.92;
  font-size: 16px;
  white-space: nowrap;
}

.nav-desktop a:hover { opacity: 1; }

/* Hamburger */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex: 0 0 auto;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 5200;
}

/* Mobile menu panel */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100vh;
  background: #2f3d41;
  border-left: 1px solid var(--lb-border-soft);
  z-index: 5300;
  padding: 14px;
  transform: translateX(102%);
  transition: transform 180ms ease;
}

.menu-panel[data-open="true"] {
  transform: translateX(0);
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-brand {
  color: var(--lb-text);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-close {
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-links {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.menu-links a {
  color: var(--lb-text);
  font-size: 20px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--lb-border-soft);
  background: rgba(231, 228, 209, 0.04);
}

/* Mobile only */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: inline-flex; }

  /* Give logo text less room on mobile */
  .logo span { max-width: 150px; }
}
