/*
 * Static recreation of the Nova X site header (src/components/site-header.tsx).
 * Tailwind is not loaded on this page, so the utility classes are translated
 * into plain CSS. Every rule is scoped under .nx-site-header so it does not
 * collide with Bulma or the blog styles.
 */

.nx-site-header,
.nx-site-header * {
  box-sizing: border-box;
}

.nx-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #1d5e47;
  background-color: #21684e;
  color: #ffffff;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nx-site-header a {
  text-decoration: none;
  color: inherit;
}

.nx-site-header p {
  margin: 0;
}

.nx-site-header img {
  filter: invert(1);
}

/* Desktop row: max-w-7xl, centered, px-6 py-3 md:px-10 */
.nx-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

@media (min-width: 768px) {
  .nx-site-header__inner {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Brand (logo + name), links to / */
.nx-site-header__brand {
  display: flex;
  flex: 1 1 0%;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .nx-site-header__brand {
    flex: none;
  }
}

.nx-site-header__logo {
  height: 1.75rem;
  width: auto;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .nx-site-header__logo {
    height: 2rem;
  }
}

/* Left logo is shown below 1024px only; right logo is shown at 1024px and up. */
.nx-site-header__logo--brand {
  display: block;
}

.nx-site-header__logo--end {
  display: none;
}

@media (min-width: 1024px) {
  .nx-site-header__logo--brand {
    display: none;
  }

  .nx-site-header__logo--end {
    display: block;
    height: 1.75rem;
  }
}

.nx-site-header__text {
  min-width: 0;
}

.nx-site-header__name {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .nx-site-header__name {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

.nx-site-header__tagline {
  display: none;
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .nx-site-header__tagline {
    display: block;
  }
}

/* Desktop nav (>= 768px) */
.nx-site-header__nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nx-site-header__nav {
    display: flex;
  }
}

.nx-site-header__link {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 150ms ease;
}

.nx-site-header__link:hover,
.nx-site-header__link:focus-visible,
.nx-site-header__link[aria-current="page"] {
  color: #ffffff;
}

/* Mobile row (< 768px): horizontally scrollable, separated by a top border */
.nx-site-header__mobile {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.5rem;
}

@media (min-width: 768px) {
  .nx-site-header__mobile {
    display: none;
  }
}

.nx-site-header__mobile-link {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.nx-site-header__mobile-link[aria-current="page"] {
  color: #ffffff;
}
