/* Header wordmark. Stops the brand name from being ellipsized or
   shaved by a short line box. Same layer as the shared mobile rules. */

@layer mobile-redesign {
  html body .site-header .brand,
  html body .home-page .brand,
  html body .site-header .brand span,
  html body .home-page .brand span {
    overflow: visible !important;
    text-overflow: clip !important;
    height: auto !important;
    max-height: none !important;
    line-height: 1.35 !important;
  }

  html body .site-header .brand,
  html body .home-page .brand {
    align-items: center !important;
    min-height: 36px !important;
  }

  html body .site-header .brand span,
  html body .home-page .brand span {
    max-width: none !important;
    min-width: auto !important;
    white-space: nowrap !important;
  }

  html[lang="en"] body .site-header .brand span::after,
  html[lang="en"] body .home-page .brand span::after {
    line-height: 1.35 !important;
  }

  @media (max-width: 390px) {
    html[lang="zh-CN"] body .site-header .brand span,
    html[lang="zh-CN"] body .home-page .brand span {
      font-size: 14px !important;
      letter-spacing: -0.02em !important;
    }
  }
}
