/* Shared navbar component.
 * Used by the main site (index.html) and all docs pages.
 * Full-width bar; logo sits flush-left with a small fixed padding.
 */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 999;
  background: transparent;
  display: flex;
  justify-content: flex-start;
  transition: background 0.25s ease;
}

.navbar a, .navbar a:visited, .navbar a:hover, .navbar a:active {
  text-decoration: none;
  color: inherit;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 24px;
  box-sizing: border-box;
}

/* Scrolled state — solid white background with ink border. */
.navbar.scrolled {
  background: #ffffff;
  border-bottom: 1px solid var(--ink);
}

/* On docs pages, the navbar is always visible with the surface background
 * so it's visually distinct from the white sidebar and content panels. */
.navbar.solid {
  background: var(--bg, #e2e2e2);
  border-bottom: none;
}

/* Logo */
.navbar .title {
  font-family: 'Tinos', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 3rem;
  line-height: 1;
}

/* Nav links */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.navbar ul li {
  cursor: pointer;
  position: relative;
  color: #374151;
  font-weight: 300;
  transition: color 0.25s ease;
  font-size: 1rem;
}

.navbar ul li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--ink);
  transition: width 0.25s ease;
}

.navbar ul li:hover { color: #111827; }
.navbar ul li:hover::after { width: 100%; }

@media (max-width: 768px) {
  .navbar .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .navbar .title {
    font-size: 2rem;
  }
  .navbar ul {
    gap: 0.75rem;
  }
  .navbar ul li {
    font-size: 0.85rem;
  }
}
