.header-parent {
  display: block;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--color-paper);
  border-bottom: 1px solid var(--color-line);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 0 20px;
}

.header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* the logo image already carries its own red "BNI" mark, so no separate
   red accent square in front of it here (unlike .kicker, which still uses
   one - that's a label bullet, not a stand-in for this logo). */
.header .logo-img {
  display: block;
  height: 22px;
  width: auto;
}

.header .menu-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 22px;
}

.header .menu-links li a {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-body);
  text-decoration: none;
}

.header .menu-links li a:hover,
.header .menu-links li a.active {
  color: var(--color-red);
}

.header .nav-utils {
  display: none;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header .nav-utils a {
  display: flex;
  align-items: center;
}

.header .nav-utils .register-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  color: #fff;
  background-color: var(--color-red);
  border: none;
  cursor: pointer;
}

.header .nav-utils .register-cta:hover {
  color: #fff;
}

.header .nav-utils .register-cta:hover {
  background-color: var(--color-ink);
}

.header .nav-utils .account-link img {
  width: 22px;
  height: auto;
}

.menu-left {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--color-text-body);
}

.menu-toggle-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.overflow-hide {
  overflow: hidden;
}

/* position:fixed unconditionally, not just in .active - without it, the
   closed menu is still display:block (only opacity:0) and sits in normal
   document flow, adding its own height (.menu-links alone has 120px of top
   padding) as blank space after whatever real content follows it in the
   DOM - here, the footer. */
.mobile-menu {
  display: block;
  position: fixed;
  height: 100vh;
  height: 100dvh;
  inset: 0;
  right: 100%;
  width: auto;
  opacity: 0;
  pointer-events: none;
  overflow: auto;
  z-index: 11;
  transition: 0.5s;
}

.mobile-menu.active {
  right: 0;
  opacity: 1;
  pointer-events: auto;
  background-color: color-mix(in srgb, var(--color-ink) 96%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-menu .close-button {
  display: none;
  color: var(--color-paper);
  position: absolute;
  top: 24px;
  right: 24px;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.mobile-menu .close-button.active {
  display: block;
}

.mobile-menu > .menu-links {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 120px 40px 40px;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
}

.mobile-menu > .menu-links > li > a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-paper);
  text-decoration: none;
}

.mobile-menu > .menu-links > li > a:hover {
  color: var(--color-red);
}

.mobile-menu > .menu-cta {
  margin: 0 40px;
  display: block;
}

@media screen and (min-width: 769px) {
  .header {
    height: 74px;
    padding: 0 60px;
  }

  .header .logo-img {
    height: 26px;
  }
}

/* nav switches from hamburger to the full inline link row + CTA here - matches
   the 1024px breakpoint where index.css's sections switch to desktop layout,
   so the header never has to fit 5 links + a CTA button below that width */
@media screen and (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .menu-left {
    display: none;
  }

  .header .menu-links {
    display: flex;
    gap: 26px;
  }

  .header .nav-utils {
    display: flex;
  }

  .mobile-menu,
  .mobile-menu.active {
    display: none;
  }
}
