/* Shared Notes navigation. Deliberately independent of echo-lab.css so every
   article keeps its lightweight document shell while matching the new lab. */
.notes-header {
  position: fixed;
  z-index: 200;
  inset: 0 0 auto;
  height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fafaf9;
  background: rgba(15, 16, 14, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.notes-header__inner {
  display: flex;
  width: min(100%, 1200px);
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
  padding: 0 28px;
}

.notes-header a,
.notes-header a:hover {
  color: inherit;
}

.notes-header__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: #fafaf9;
  font: 800 18px/1 "Manrope", sans-serif;
  letter-spacing: 0.06em;
}

.notes-header__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.notes-header__dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.notes-header__dots i:nth-child(1) { background: #38bdf8; }
.notes-header__dots i:nth-child(2) { background: #ff7a3d; }
.notes-header__dots i:nth-child(3) { background: #ef4444; }

.notes-header__lab {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: rgba(250, 250, 249, 0.43);
  font: 500 8px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.notes-header__lab::before {
  content: "";
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.18);
}

.notes-header__nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(13px, 1.45vw, 22px);
}

.notes-header__nav > a {
  flex: 0 0 auto;
  color: rgba(250, 250, 249, 0.62);
  font: 500 12px/1 "Manrope", sans-serif;
  transition: color 150ms ease;
}

.notes-header__nav > a:hover,
.notes-header__nav > a:focus-visible {
  color: #fafaf9;
}

.notes-header__nav > a[aria-current="page"] {
  color: #c9ff5a;
}

.notes-header__nav > .notes-header__cta {
  padding: 10px 14px;
  color: #151613;
  background: #fafaf9;
  font-weight: 700;
}

.notes-header__nav > .notes-header__cta:hover,
.notes-header__nav > .notes-header__cta:focus-visible {
  color: #151613;
  background: #c9ff5a;
}

@media (max-width: 860px) {
  .notes-header {
    height: 112px;
  }

  .notes-header__inner {
    flex-wrap: wrap;
    align-content: center;
    gap: 10px;
    padding: 10px 18px 8px;
  }

  .notes-header__brand {
    height: 30px;
  }

  .notes-header__nav {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    gap: 19px;
    overflow-x: auto;
    padding: 0 0 3px;
    scrollbar-width: none;
  }

  .notes-header__nav::-webkit-scrollbar {
    display: none;
  }

  main {
    padding-top: 112px;
  }
}

@media (max-width: 420px) {
  .notes-header__lab {
    display: none;
  }
}
