.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 4rem;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    height 200ms ease;
}
/* The scrolled surface is applied by this release's runtime stylesheet (see
   javascript below): one rule scoped to this component version is rewritten
   on scroll, so the server-rendered navbar markup is never mutated and React
   hydration stays mismatch-free at any scroll position. The declarations are
   the elevated surface token at 80% over blurred page content: exactly
   white-80 for brands whose surface is white (the surface sits above the
   page background, so the foreground ink pair stays correct on tinted or
   dark brands too). */
.navbar--solid {
  border-bottom-color: var(--site-border);
  background: var(--site-surface, #ffffff);
}
.navbar--static {
  position: static;
}
.navbar-inner {
  width: min(72rem, calc(100% - 2rem));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--site-foreground);
  font-weight: 700;
  text-decoration: none;
}
.navbar-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The monogram mark keeps its 32px square at every width. */
.navbar-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: var(--site-radius-sm);
  background: var(--site-accent);
  color: var(--site-accent-foreground);
  font-size: 0.95rem;
}
/* Wide brand images (wordmark, site logo) stay height-bounded and contained;
   only the square mark locks to its 32px box at every width. */
.navbar-brand-logo {
  width: auto;
  height: 2rem;
  max-width: 9rem;
  flex-shrink: 0;
  object-fit: contain;
}
.navbar-brand-logo--mark {
  width: 2rem;
  max-width: 2rem;
}
.navbar-brand-logo--wordmark {
  max-width: 9rem;
  flex-shrink: 1;
  min-width: 0;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.navbar-link {
  color: var(--site-muted-foreground);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.3rem;
}
.navbar-link:hover,
.navbar-link:focus-visible {
  color: var(--site-foreground);
  text-decoration: underline;
}
.navbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--site-radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.navbar-cta--filled {
  background: var(--site-accent);
  color: var(--site-accent-foreground);
}
.navbar-cta--outline {
  border: 1px solid var(--site-border-strong);
  color: var(--site-foreground);
}
.navbar-cta:hover,
.navbar-cta:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}
.navbar a:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
}
/* The fixed bar leaves the page flow, so the spacer reserves its height. */
.navbar-spacer {
  height: 4rem;
}
.navbar--static + .navbar-spacer {
  display: none;
}
/* Anchored destinations must not land underneath the fixed bar. */
html:has(.navbar:not(.navbar--static)) {
  scroll-padding-top: 4.25rem;
}
@media (max-width: 760px) {
  /* Compact brand and action only; the link list is hidden. */
  .navbar-links {
    display: none;
  }
  .navbar-inner {
    width: min(72rem, calc(100% - 1.5rem));
    gap: 0.75rem;
  }
  .navbar-brand-logo--wordmark {
    height: 1.6rem;
    max-width: 7rem;
  }
  .navbar-brand-name {
    font-size: 0.95rem;
  }
  .navbar-cta {
    min-height: 2.25rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .navbar {
    transition: none;
  }
}