.lab-nav {
  position: absolute; /* overlay at top but scrolls with page */
  top: var(--lab-toolbar-offset, 0);
  left: 0;
  right: 0;
  height: 80px; /* per spec */
  z-index: 2000; /* sits on top of everything */
  background: rgba(255, 255, 255, 0.05); /* subtle translucent background */
  pointer-events: auto;
}

.lab-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 5%;
  padding-right: 5%;
}

.lab-nav__left {
  display: flex;
  align-items: center;
}

.lab-nav__logo {
  height: 52px; /* fixed logo height */
  max-height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.lab-nav__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.lab-nav__logo-link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.lab-nav__right {
  display: flex;
  align-items: center;
}

.lab-nav__items {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.lab-nav__item { margin: 0; }

.lab-nav__link {
  text-decoration: none;
  line-height: 150%; /* 27px */
  color: rgba(255, 255, 255, 0.80);
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--Text-Sizes-Text-Medium, 18px);
  font-style: normal;
  font-weight: 500;
  transition: color .15s ease;
}

/* Hover/focus style */
.lab-nav__link:hover,
.lab-nav__link:focus {
  color: rgba(204, 204, 204, 0.30);
  font-weight: 700;
  text-decoration: none;
}

/* When Concrete toolbar is visible, push nav below it and ensure toolbar overlays nav */
.ccm-toolbar-visible .lab-nav {
  z-index: 500; /* keep below toolbar while still above content */
}

/* Mobile: show hamburger, hide horizontal items */
.lab-nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.80);
}

.lab-nav__toggle:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.lab-nav__toggle-bars,
.lab-nav__toggle-bars::before,
.lab-nav__toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.80);
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.lab-nav__toggle-bars { position: relative; }
.lab-nav__toggle-bars::before,
.lab-nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.lab-nav__toggle-bars::before { top: -7px; }
.lab-nav__toggle-bars::after { top: 7px; }

/* Mobile panel dropdown */
.lab-nav__panel {
  position: absolute;
  top: 80px; /* below bar */
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 10%;
  z-index: 1999;
}
.lab-nav__panel-list { list-style: none; margin: 0; padding: 0; }
.lab-nav__panel-item { margin: 8px 0; }
.lab-nav__panel-link {
  text-decoration: none;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.80);
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--Text-Sizes-Text-Medium, 18px);
  font-style: normal;
  font-weight: 500;
}
.lab-nav__panel-link:hover,
.lab-nav__panel-link:focus { color: rgba(204, 204, 204, 0.30); font-weight: 700; }

/* Responsive rules */
@media (max-width: 991.98px) {
  /* On mobile, solidify nav background so the overlay stays legible */
  .lab-nav {
    background: rgba(11, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  }

  .lab-nav__panel {
    background: rgba(11, 14, 23, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  }

  .lab-nav__items { display: none; }
  .lab-nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
}
