/* ── Shared Navigation ─────────────────────────────────────────────────────── */

.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(15, 39, 35, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,154,46,0.2);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Wordmark ─────────────────────────────────────────────────────────────── */
.top-wordmark {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--parchment);
  opacity: 0.8;
}

/* ── Back button ──────────────────────────────────────────────────────────── */
.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--parchment);
  border-radius: 2px;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-back:hover {
  background: rgba(242,237,227,0.1);
}

.btn-back:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Nav links (right side) ───────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-reading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--parchment);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--gold-light);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Icon buttons (in nav bar) ────────────────────────────────────────────── */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(242,237,227,0.08);
  border: 1px solid rgba(242,237,227,0.12);
  border-radius: 2px;
  cursor: pointer;
  color: var(--parchment);
  transition: background 0.2s;
}

.icon-btn:hover {
  background: rgba(242,237,227,0.15);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.icon-btn svg {
  flex-shrink: 0;
}

/* ── Section pill (current section indicator) ─────────────────────────────── */
.section-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(196,154,46,0.15);
  border: 1px solid rgba(196,154,46,0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}

.section-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.section-pill-text {
  font-family: var(--font-reading);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .top-bar {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .section-pill-text {
    font-size: 0.6rem;
  }
}

/* ── Animation ────────────────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}
