/* The reference header has one extra control for the site's five languages. */
.nova-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  min-height: 34px;
  padding: 4px 8px;
  white-space: nowrap;
  font:
    650 12px/1.2 "Helvetica Neue",
    Arial,
    sans-serif;
  border: 1px solid #dcdbe6;
  border-radius: 30px;
  color: #39354a;
  background: #ffffffd9;
}
.nova-language select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.nova-language:has(> select:focus-visible) {
  border-color: currentColor;
}
body > header > .actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 334px;
  gap: 8px;
  flex-shrink: 0;
}
body > header > .actions > :is(.nova-language, .pill, .header-account) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: 46px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
}
body > header > .actions > .nova-language {
  border-color: #dcdbe6;
}
body > header > .actions > .nova-language:has(> select:focus-visible) {
  border-color: currentColor;
}
body > header > .actions > .header-account {
  border-color: #dcd3fa;
  background: #f3efff;
  color: #5639cf;
}
body > header > .actions > .header-account:disabled {
  cursor: default;
}
body > header > .actions > a.header-account:hover {
  background: #eae1ff;
}
body > header nav a[aria-current="page"],
body > header nav .site-about-toggle.is-current {
  color: #5639cf;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}
body > header nav .site-about-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  line-height: 1.15;
  white-space: nowrap;
}
body > header nav .site-about-toggle:is(:hover, [aria-expanded="true"]) {
  color: #5639cf;
}
body > header .site-about-menu {
  position: absolute;
  z-index: 1;
  top: calc(100% + 8px);
  width: min(204px, calc(100% - 16px));
  padding: 6px;
  border: 1px solid #e4def5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px #34235f24, 0 2px 8px #34235f0e;
}
.site-about-menu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: var(--about-hover-start, 0px);
  width: var(--about-hover-width, 0px);
  height: var(--about-hover-gap, 0px);
}
.site-about-menu a {
  display: block;
  padding: 10px 13px;
  border-radius: 10px;
  color: #29223e;
  font-size: 14px;
  font-weight: 650;
}
.site-about-menu a + a {
  margin-top: 2px;
}
.site-about-menu a:is(:hover, :focus-visible, [aria-current="page"]) {
  color: #5639cf;
  background: #f1edff;
}
.site-about-menu a:focus-visible {
  outline-width: 2px;
  outline-offset: -2px;
}
.sitefoot .nova-language {
  margin-top: 5px;
  background: transparent;
  color: inherit;
  border-color: #777384;
}
.sitefoot .nova-language span {
  display: inline;
  margin: 0;
}
#dialog > .nova-language,
#detail > .nova-language {
  margin-bottom: 12px;
}
#about-video-dialog form .nova-language {
  margin-inline-start: auto;
}
#creator-drawer .nova-language {
  flex: none;
  margin: 5px 8px 0 auto;
}
#creator-drawer #drawer-close {
  flex: none;
}
@media (min-width: 992px) {
  #creator-drawer .nova-language {
    position: absolute;
    right: 52px;
    top: 14px;
    z-index: 1;
    margin: 0;
  }
}
html:not([lang="en"]) :is(.program-columns, .partner-board, .pa-layout, .hd-desk) > * {
  min-width: 0;
}
html:not([lang="en"]) .company-page h1 {
  overflow-wrap: break-word;
}
@media (min-width: 761px) {
  body > header {
    gap: clamp(6px, 1vw, 14px);
  }
  body > header nav {
    min-width: 0;
    align-items: center;
    gap: 8px;
  }
  body > header nav a {
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }
}
@media (min-width: 1241px) {
  html[lang="zh-CN"] body > header {
    gap: 32px;
  }
  html[lang="zh-CN"] body > header nav {
    gap: 22px;
  }
}
@media (min-width: 761px) and (max-width: 1240px) {
  html[lang] body > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "navigation navigation";
    height: auto;
    row-gap: 2px;
    padding: 6px 14px;
    border-radius: 26px;
  }
  html[lang] body > header .brand {
    grid-area: brand;
    justify-self: start;
  }
  html[lang] body > header .actions {
    grid-area: actions;
  }
  html[lang] body > header nav {
    grid-area: navigation;
    justify-content: space-between;
  }
  html[lang] body > header nav a {
    display: grid;
    align-items: center;
    min-height: 34px;
    font-size: 13px;
  }
  body > header nav .site-about-toggle {
    min-height: 34px;
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  body > header > .actions {
    width: min(280px, calc(100vw - 133px));
    gap: 5px;
  }
  body > header > .actions > :is(.nova-language, .pill, .header-account) {
    height: 42px;
    padding-inline: 3px;
    font-size: 12px;
  }
  body > header nav {
    width: 100%;
    min-width: 0;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body > header nav::-webkit-scrollbar {
    display: none;
  }
  body > header nav a,
  body > header nav .site-about-toggle {
    flex: none;
  }
  body > header nav .site-about-toggle {
    min-height: 42px;
    font-size: clamp(12px, 3.25vw, 14px);
  }
}
@media (max-width: 360px) {
  body > header {
    column-gap: 4px;
  }
  body > header .brand img {
    width: 72px;
  }
  body > header > .actions {
    width: calc(100vw - 125px);
  }
  body > header > .actions > :is(.nova-language, .pill, .header-account) {
    padding-inline: 1px;
    font-size: 10.5px;
  }
}
@media (max-width: 600px) {
  html:not([lang="en"]) #home-opps .hd-bar {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  html:not([lang="en"]) .creator .metric {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html:not([lang="en"]) .creator .metric > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
@media (width > 760px) and (width < 992px) {
  #alliance .pa-card .pa-name {
    flex-wrap: wrap;
  }
  #alliance .pa-card .pa-name h3 {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 760px) {
  #public-detail .program-columns .alliance-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  #public-detail .program-columns .alliance-tags span {
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
  }
}
