/* Header and main navigation (BRAND.md 6.3).
   Without JS the bar is solid and mobile gets a "Menu" link to the footer navigation.
   With JS the bar is transparent over the hero, solid after 40px, and mobile gets the overlay. */
.ws-header{
  position:sticky;
  top:0;
  z-index:50;
  height:var(--ws-nav-h);
  margin-bottom:calc(-1 * var(--ws-nav-h));
  background:var(--ws-dark-3);
  color:var(--ws-white);
  --ws-fg:var(--ws-white);
  --ws-bg:var(--ws-dark-3);
  --ws-focus:var(--ws-white);
  transition:background-color var(--ws-ease);
}
.js .ws-header{ background:transparent; }
.js .ws-header.is-scrolled,
.js .ws-header.is-open{ background:var(--ws-dark-3); }

.ws-header__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--ws-space-3);
  height:100%;
}
.ws-header__logo{ display:block; flex:none; }
.ws-header__logo .ws-logo{ width:150px; height:auto; }
@media (min-width:1200px){ .ws-header__logo .ws-logo{ width:170px; } }

.ws-nav{ display:flex; align-items:center; }
.ws-nav__list{
  display:flex;
  align-items:center;
  gap:var(--ws-space-4);
}
.ws-nav__link{
  font-size:14px;
  font-weight:500;
  text-decoration:none;
  text-underline-offset:6px;
  text-decoration-thickness:2px;
}
.ws-nav__link:hover{
  color:var(--ws-white);
  text-decoration:underline;
  text-decoration-color:var(--ws-text-dim);
}
.ws-nav__link[aria-current="page"]{
  text-decoration:underline;
  text-decoration-color:var(--ws-fg); /* white on the dark header; --ws-dark on light (BRAND.md 6.3) */
}
.ws-nav__panel{
  display:flex;
  align-items:center;
  gap:var(--ws-space-4);
}

.ws-nav__toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  margin-right:-10px;
  padding:0;
  border:0;
  background:none;
  color:var(--ws-white);
}
.ws-nav__icon--close,
.ws-nav__toggle[aria-expanded="true"] .ws-nav__icon--open{ display:none; }
.ws-nav__toggle[aria-expanded="true"] .ws-nav__icon--close{ display:block; }

.ws-nav__fallback{
  display:none;
  font-size:14px;
  font-weight:500;
}

/* Mobile and tablet */
@media (max-width:991.98px){
  .ws-nav__panel{ display:none; }
  html:not(.js) .ws-nav__fallback{ display:inline-block; padding:12px 0; }
  .js .ws-nav__toggle:not([hidden]){ display:inline-flex; }

  .js .ws-header.is-open .ws-nav__panel{
    position:fixed;
    inset:var(--ws-nav-h) 0 0 0;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:var(--ws-space-5);
    padding:var(--ws-space-5) 24px;
    overflow-y:auto;
    background:var(--ws-dark-3);
  }
  .ws-header.is-open .ws-nav__list{
    flex-direction:column;
    align-items:flex-start;
    gap:var(--ws-space-2);
  }
  .ws-header.is-open .ws-nav__link{
    font-family:var(--ws-font-display);
    font-size:40px;
    font-weight:400;
    line-height:1.1;
    letter-spacing:.01em;
    text-transform:uppercase;
  }
}
@media (min-width:768px) and (max-width:991.98px){
  .js .ws-header.is-open .ws-nav__panel{ padding-inline:48px; }
}

/* Locks page scroll while the overlay is open. */
.ws-menu-open{ overflow:hidden; }

@media (prefers-reduced-motion:reduce){
  .ws-header{ transition:none; }
}
