/* Keep the full masthead mission centered on one line at every width. */
header.site-header .brand-center {
  min-width: 0;
  container-type: inline-size;
}
/* Give each control room while keeping the utility group together. */
header.site-header .brand-right { gap: 14px; }
header.site-header .brand-right .header-social { gap: 12px; }
header.site-header .brand-right > div:has(> a[onclick^="translatePage"]) { gap: 10px !important; }
header.site-header :is(.refined-tagline, .tagline) {
  display: block;
  width: max-content;
  max-width: none;
  margin-inline: auto;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  font-size: min(14px, 3.12cqi);
  letter-spacing: .055em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
}
@media (min-width: 1241px) {
  header.site-header .masthead-row-refined {
    display: grid;
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    box-sizing: border-box;
    /* Center the tagline in the actual gap between the logo and controls. */
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    gap: 24px;
  }
}
@media (max-width: 480px) {
  header.site-header .brand-right { gap: 12px; }
}
@media (max-width: 960px) {
  header.site-header .brand-right .header-social + span { display: none !important; }
}
@media (max-width: 1240px) {
  header.site-header .masthead-row-refined {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
  }
  header.site-header :is(.brand-left, .brand-center, .brand-right) {
    flex: unset;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  header.site-header .refined-tagline {
    font-size: min(14px, 3.4cqi);
  }
}
/* Older Guidelines masthead: keep its existing logo and menu controls. */
header.site-header .masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  container-type: inline-size;
}
header.site-header .masthead > .tagline {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: min(14px, 3.12cqi);
}
