/* Anuna global navigation strip
   Shared across every static surface. Adapts to each page's theme via CSS
   custom properties — fall-back colours hold up if a surface doesn't define
   them. Sits above any per-page nav as a thin global strip. */

.global-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 16, 14, 0.78);
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  padding: 0.55rem 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.92rem;
}

.global-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.global-wordmark {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text, #e8e4d8);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.global-wordmark .dot { color: var(--moss, #80b47f); margin-left: 0.1rem; }
.global-wordmark:hover { opacity: 0.85; }

.global-nav-links {
  display: flex;
  gap: 1.7rem;
  align-items: center;
  list-style: none;
}
.global-nav-links a {
  color: var(--text-dim, #9aa097);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.global-nav-links a:hover { color: var(--text, #e8e4d8); }
.global-nav-links a.is-current { color: var(--text, #e8e4d8); }
.global-nav-links a.is-current::before {
  content: '·';
  color: var(--moss, #80b47f);
  margin-right: 0.35rem;
  font-weight: 700;
}

.global-nav-cta {
  padding: 0.4rem 0.95rem;
  background: var(--moss, #80b47f) !important;
  color: var(--ink, #0f1410) !important;
  border-radius: 3px;
  font-weight: 500;
  transition: filter 0.2s;
}
.global-nav-cta:hover { filter: brightness(1.1); color: var(--ink, #0f1410) !important; }

@media (max-width: 720px) {
  .global-nav-links a:not(.global-nav-cta):not(.is-current) { display: none; }
  .global-nav-inner { gap: 1rem; }
}

/* When a per-page nav sits beneath the global strip (tool detail pages,
   membership), push it down by the strip's height so they don't overlap.
   The combinator selector outweighs the un-prefixed `nav` rule in each
   page's inline <style>. */
.global-nav ~ nav { top: 46px; }
