/* SMONAD header branding. All rules are scoped to the shared header. */
.global-header.s-header-branded {
  --s-header-menu-clearance: 266px;
}

.global-header.s-header-branded .s-header-masthead {
  background: #2e75b6;
}

.global-header.s-header-branded .s-header-masthead-inner {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(64px, 15vw, 180px);
  align-items: center;
  gap: clamp(16px, 6vw, 96px);
  max-width: var(--s-max, 1240px);
  margin-inline: auto;
  padding: 12px 32px;
}

.global-header.s-header-branded .s-header-masthead a {
  display: block;
  min-width: 0;
}

.global-header.s-header-branded .s-header-masthead a:focus-visible {
  outline: 3px solid #ffeb00;
  outline-offset: 4px;
}

.global-header.s-header-branded .s-header-masthead img {
  display: block;
  width: 100%;
  height: auto;
}

.global-header.s-header-branded .s-header-wordmark {
  max-width: 674px;
}

.global-header.s-header-branded .s-header-time-image {
  width: 100%;
  max-width: 180px;
  justify-self: end;
}

.global-header.s-header-branded .s-header-inner {
  gap: 20px;
  padding-block: 12px;
}

.global-header.s-header-branded .s-brand {
  gap: 10px;
}

.global-header.s-header-branded .s-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.global-header.s-header-branded .s-brand strong {
  font-size: 18px;
  letter-spacing: 1.8px;
}

.global-header.s-header-branded .s-brand small {
  display: none;
}

.global-header.s-header-branded .s-nav {
  gap: clamp(10px, 1.3vw, 18px);
}

.global-header.s-header-branded .s-nav > a {
  white-space: nowrap;
}

.global-header.s-header-branded .s-header-tools {
  gap: 12px;
  flex-shrink: 0;
}

.global-header.s-header-branded .s-menu-panel {
  /* Reserve space for the masthead and navigation before the scrollable menu. */
  max-height: calc(100vh - var(--s-header-menu-clearance));
  max-height: calc(100dvh - var(--s-header-menu-clearance));
}

@media (min-width: 801px) and (max-width: 1100px) {
  .global-header.s-header-branded .s-brand > span {
    display: none;
  }

  .global-header.s-header-branded .s-header-inner {
    gap: 14px;
  }
}

@media (max-width: 800px) {
  .global-header.s-header-branded {
    --s-header-menu-clearance: 250px;
  }

  .global-header.s-header-branded .s-header-masthead-inner {
    gap: 20px;
    padding: 10px 24px;
  }

  .global-header.s-header-branded .s-header-inner {
    gap: 14px;
  }
}

@media (max-width: 540px) {
  .global-header.s-header-branded {
    --s-header-menu-clearance: 210px;
  }

  .global-header.s-header-branded .s-header-masthead-inner {
    gap: 12px;
    padding-inline: 18px;
  }

  .global-header.s-header-branded .s-header-inner {
    gap: 10px;
    padding-block: 10px;
  }

  .global-header.s-header-branded .s-brand img {
    width: 32px;
    height: 32px;
  }

  .global-header.s-header-branded .s-brand strong {
    font-size: 17px;
  }

  .global-header.s-header-branded .s-header-tools {
    gap: 7px;
  }
}

@media (max-height: 450px) {
  .global-header.s-header-branded .s-menu-panel {
    /* Keep Explore usable in landscape; the document can scroll to its menu. */
    max-height: 65vh;
    max-height: 65dvh;
  }
}
