#page:has(#masthead .hoin-header-tools) > .hoin-socialbar {
  display: none;
}

#masthead .main-header-menu .menu-link:focus,
#masthead :is(.main-header-menu-toggle, .ast-menu-toggle, .hoin-language-switcher summary, .hoin-language-options a):focus {
  outline: none;
}

#masthead .main-header-menu .menu-link:focus-visible {
  background-color: #edf4f8;
  border-radius: 6px;
  box-shadow: inset 0 -2px #07518d;
}

#masthead button:is(.main-header-menu-toggle, .ast-menu-toggle) {
  border-radius: 8px;
}

#masthead :is(.main-header-menu-toggle, .ast-menu-toggle):is(:hover, [aria-expanded="true"]) {
  background-color: #edf4f8;
}

#masthead :is(.main-header-menu-toggle, .ast-menu-toggle, .hoin-language-switcher summary, .hoin-language-options a):focus-visible {
  outline: 2px solid #07518d;
  outline-offset: -3px;
}

@media (forced-colors: active) {
  #masthead :is(.main-header-menu .menu-link, .main-header-menu-toggle, .ast-menu-toggle, .hoin-language-switcher summary, .hoin-language-options a):focus-visible {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }
}

.hoin-header-tools,
.hoin-header-social {
  display: flex;
  align-items: center;
}

.hoin-header-tools {
  gap: 9px;
  color: #243b52;
}

.hoin-header-social {
  gap: 3px;
}

.hoin-header-social a,
.hoin-language-switcher summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: #243b52;
  border-radius: 6px;
  text-decoration: none;
}

.hoin-header-social a {
  width: 34px;
}

.hoin-header-social a > span {
  font: 15px/1 HoinHeaderBrands;
}

.hoin-header-social a:is(:hover, :focus-visible),
.hoin-language-switcher summary:is(:hover, :focus-visible),
.hoin-language-switcher[open] summary {
  color: #07518d;
  background: #edf4f8;
}

.hoin-language-switcher {
  position: relative;
  margin: 0;
  padding-inline-start: 9px;
  border-inline-start: 1px solid #d7e3eb;
}

.hoin-language-switcher summary {
  gap: 6px;
  min-width: 62px;
  padding-inline: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.hoin-language-switcher summary::-webkit-details-marker {
  display: none;
}

.hoin-language-globe {
  position: relative;
  flex: 0 0 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.hoin-language-globe::before,
.hoin-language-globe::after {
  position: absolute;
  content: "";
}

.hoin-language-globe::before {
  inset: -1px 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.hoin-language-globe::after {
  inset: 50% 0 auto;
  border-top: 1px solid currentColor;
}

.hoin-language-chevron {
  width: 5px;
  height: 5px;
  margin: -2px 1px 0;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.hoin-language-switcher[open] .hoin-language-chevron {
  margin-top: 2px;
  transform: rotate(225deg);
}

#masthead .hoin-language-options {
  position: absolute;
  z-index: 10;
  inset: calc(100% + 8px) 0 auto auto;
  min-width: 142px;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: #fff;
  border: 1px solid #d7e3eb;
  border-radius: 9px;
  box-shadow: 0 6px 22px rgb(20 45 69 / .12);
}

#masthead .hoin-language-options li > * {
  display: block;
  padding: 8px 10px;
  border-radius: 5px;
  color: #243b52;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

#masthead .hoin-language-options :is([aria-current], a:hover, a:focus-visible) {
  color: #07518d;
  background: #edf4f8;
}

#masthead .hoin-language-options [aria-current]::after {
  float: right;
  width: 5px;
  height: 8px;
  margin: 3px 3px 0 10px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

#ast-mobile-header .hoin-header-tools > .hoin-header-social {
  display: none;
}

#ast-mobile-header .hoin-language-switcher {
  padding-inline-start: 0;
  border: 0;
}

#ast-mobile-header .hoin-header-social-mobile {
  padding: 6px 16px 10px;
  border-top: 1px solid #e5edf2;
}

#ast-mobile-header .hoin-header-social-mobile a,
#ast-mobile-header .hoin-language-switcher summary {
  min-height: 40px;
}

@media (max-width: 420px) {
  #ast-mobile-header .site-primary-header-wrap.ast-container {
    padding-inline: 14px;
  }

  #ast-mobile-header .ast-builder-grid-row.ast-builder-grid-row-has-sides {
    column-gap: 8px;
  }

  #ast-mobile-header .site-header-primary-section-right .ast-builder-layout-element {
    padding-inline: 0;
  }
}

@media (max-width: 360px) {
  #ast-mobile-header .site-primary-header-wrap.ast-container {
    padding-inline: 12px;
  }

  #ast-mobile-header .site-logo-img .hoin-brand-cn-name {
    font-size: 12px;
  }

  #ast-mobile-header .hoin-language-switcher summary {
    min-width: 34px;
    gap: 4px;
    padding-inline: 4px;
  }

  #ast-mobile-header .hoin-language-globe + span {
    display: none;
  }
}
