/* The site header's layout, shared by every page that carries id="header".
   Hand-written and loaded after the page's own stylesheet. It replaces Nicepage's header
   geometry (a menu and a logo pulled into place with negative margins) with one flex row:
   logo, menu, Organizer login, Sign up. Keyed on #header, which outranks nicepage.css's
   .u-header, and named outside the u-* namespace, so a Nicepage re-export cannot clash with
   it. A re-export does rewrite each page's <head> and <header>: re-add the <link> and the
   two .bc-header-* anchors afterwards, and take Home and Sign up out of the wide menu again
   (the logo is the way home there; the phone menu keeps both).

   The login button stays in the bar at every width, beside the menu icon on a phone, so an
   organizer reaches the console's sign-in page in one click from any page. Sign up is a
   button only where the full menu shows; below that it is in the phone menu. */

#header .u-sheet-1 {
  display: flex;
  align-items: center;
  min-height: 94px;
}

/* u-clearfix's pseudo-elements would become flex items. */
#header .u-sheet-1::before,
#header .u-sheet-1::after {
  display: none;
}

/* The logo PNG carries wide transparent padding; the negative margins trim it. */
#header .u-image-1 {
  order: 1;
  flex: none;
  width: 220px;
  height: 105px;
  margin: -6px auto -5px -32px;
}

#header .u-menu-1 {
  order: 2;
  flex: none;
  width: auto;
  margin: 0;
}

#header .bc-header-login {
  order: 3;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  padding: 9px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#header .bc-header-login:hover,
#header .bc-header-login:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: #1b3b5d;
}

#header .bc-header-login:focus-visible {
  outline: 2px solid #f2b705;
  outline-offset: 3px;
}

#header .bc-header-login svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#header .bc-header-signup {
  order: 4;
  flex: none;
  margin-left: 10px;
  padding: 10.5px 20px;
  border-radius: 999px;
  background: #f2b705;
  color: #0b152d;
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

#header .bc-header-signup:hover,
#header .bc-header-signup:focus-visible {
  background: #ffd042;
  color: #0b152d;
}

#header .bc-header-signup:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* The live count beside "Live", on every page: the number of events live right now. The
   home page's own script fills it; live-count.js does on the other pages. It is hidden
   until the API has answered, so it never shows as an empty dot. */
#header .bc-live-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55em;
  height: 1.55em;
  margin-left: 0.35em;
  padding: 0 0.45em;
  border-radius: 999px;
  background: #f2b705;
  color: #0b152d;
  font-size: 0.72em;
  font-weight: 800;
  line-height: 1;
}

#header .bc-live-nav-count[hidden] {
  display: none;
}

/* 992 to 1199px: the menu and both buttons share a 940px row. */
@media (min-width: 992px) and (max-width: 1199px) {
  #header .u-nav-1 {
    font-size: 1.0625rem;
  }

  #header .u-nav-link-2 {
    padding: 10px 13px;
  }

  #header .bc-header-login {
    margin-left: 8px;
    padding: 8px 14px;
    font-size: 0.9375rem;
  }

  #header .bc-header-signup {
    margin-left: 8px;
    padding: 9.5px 16px;
    font-size: 0.9375rem;
  }
}

/* Below 992px the menu is the hamburger: logo, Organizer login, menu icon. */
@media (max-width: 991px) {
  #header .u-image-1 {
    margin-left: -50px;
    margin-right: 0;
  }

  #header .u-menu-1 {
    order: 3;
    margin-left: 14px;
  }

  #header .bc-header-login {
    order: 2;
    margin-left: auto;
  }

  #header .bc-header-signup {
    display: none;
  }
}

@media (max-width: 575px) {
  #header .u-image-1 {
    width: 190px;
    height: 91px;
    margin-left: -43px;
  }

  #header .u-menu-1 {
    margin-left: 10px;
  }

  #header .bc-header-login {
    gap: 6px;
    padding: 11px 12px;
    font-size: 0.8125rem;
  }
}

/* The narrowest phones: the label alone, without the icon. Nicepage holds the row at 340px
   there, which pushes the menu icon off a 320px screen; let the row follow the screen. */
@media (max-width: 359px) {
  #header .u-sheet-1 {
    width: calc(100% - 20px) !important;
  }

  #header .u-image-1 {
    margin-right: -24px;
  }

  #header .bc-header-login svg {
    display: none;
  }
}
