/* Masthead redesign: logo left, search right, no hamburger on desktop,
   secondary "About Us / Submissions / ..." row, and a dark mobile drawer */

/* Desktop: the always-visible nav bar (.header-menu) replaces the need for
   the hamburger "Menu" toggle, so hide it above the .header-menu breakpoint */
@media (min-width: 62em) {
  .header__menu-toggle {
    display: none;
  }

  .header {
    padding: 0.9rem 0;
  }

  .header .container,
  .header-menu .container,
  .header-secondary-nav .container {
    width: min(100% - 4rem, 1440px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }

  .header__container {
    position: relative;
    min-height: 8.5rem;
  }

  .header__logo {
    max-height: 72px;
  }

  .header__actions {
    position: absolute;
    top: 0;
    right: 10rem;
    margin: 0;
  }

  .header__more {
    position: absolute;
    right: 10rem;
    bottom: 0;
  }

  .header__search-toggle {
    display: flex;
    align-items: center;
    min-width: 21rem;
    min-height: 2.8rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    color: #666;
    opacity: 1;
  }

  .header__search-toggle span {
    display: inline;
    margin-left: 0.45rem;
  }

  .header .btn.signin-link,
  .header .btn.signup-link {
    font-size: 0.889rem;
  }

  .header-menu .container {
    justify-content: flex-start;
  }

  .header-menu-nav ul {
    gap: 1.55rem;
  }

  .header-secondary-nav .container {
    justify-content: flex-start;
  }
}

/* Primary nav row (Home / Topics / Sections / Events / Summit / Membership) */
.header-menu-nav a {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  opacity: 1;
}

.header-menu-nav a:hover,
.header-menu-nav .nav-current a {
  color: #d11215;
}

/* Secondary row (About Us / Submissions / e-Magazine / Webinars / ...) */
.header-secondary-nav {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-secondary-nav .container {
  justify-content: flex-start;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.header-secondary-nav-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.header-secondary-nav-nav a {
  font-size: 0.889rem;
  font-weight: 500;
  color: #000;
}

.header-secondary-nav-nav a:hover,
.header-secondary-nav-nav .nav-current a {
  color: #d11215;
}

@media (min-width: 62em) {
  .header-secondary-nav-nav li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1.1em;
    margin-left: 1.25rem;
    vertical-align: middle;
    background: #d11215;
  }
}

@media (max-width: 61.9375em) {
  .header-secondary-nav .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Mobile hamburger drawer: dark full-screen style, single-column list */
@media (max-width: 61.9375em) {
  .menu {
    background-color: #14162b;
    color: #fff;
    max-height: calc(100% - var(--global-header-height));
  }

  .menu__navigation {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .menu .nav {
    gap: 0;
  }

  .menu .nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .menu .nav a {
    display: block;
    width: 100%;
    padding: 0.9em 0;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
  }

  .menu .nav a:hover {
    color: #d11215;
    text-decoration: none;
  }

  .menu .menu__posts {
    display: none;
  }

  .menu .signin-link,
  .menu .signup-link {
    color: #fff;
  }
}
