/* Keep Chinese and English language options readable on narrow phones. */
.site-header .offline-language-switcher select {
  width: 98px;
  min-width: 98px;
  min-height: 36px;
  padding: 5px 8px;
  font-family: Arial, Tahoma, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}
.site-header .offline-language-switcher option {
  background: #082437;
  color: #fff;
}
/* Longer translated navigation labels use the existing mobile menu earlier. */
@media (max-width: 1100px) and (min-width: 801px) {
  html[lang="en"] .site-header .navlinks { display: none; }
  html[lang="en"] .site-header .offline-language-switcher { margin-left: auto; }
  html[lang="en"] .menu { display: block; margin-left: 18px; }
  html[lang="en"] .mobile.open {
    position: fixed;
    z-index: 88;
    top: 88px;
    display: grid;
    width: 100%;
    padding: 15px var(--pad) 28px;
    background: #061522;
    color: #fff;
  }
  html[lang="en"] .mobile a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
    font-size: 15px;
  }
}
@media (max-width: 800px) {
  .site-header .offline-language-switcher { margin-right: 0; }
}
@media (max-width: 480px) {
  .site-header .nav { gap: 10px; }
  .site-header .brand-horizontal { width: clamp(128px, 38vw, 180px); height: 44px; }
  .site-header .offline-language-switcher { margin-left: auto; }
  .site-header .offline-language-switcher select { width: 88px; min-width: 88px; padding: 5px; }
  .site-header .menu { margin-left: 0; flex-shrink: 0; }
}
/* Grid items must be allowed to shrink before translated copy wraps. */
html[lang="en"] :is(.about-network, .about-domains, .metrics, .split) > * { min-width: 0; }
html[lang="en"] .about-network__places { white-space: normal; line-height: 1.65; }
html[lang="en"] .about-network__label { flex-wrap: wrap; gap: 8px 14px; }
html[lang="en"] .about-domains { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[lang="en"] .about-domains h3 { overflow-wrap: anywhere; }
@media (max-width: 800px) {
  html[lang="en"] .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[lang="en"] .split .title { overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  html[lang="en"] .metric { padding: 24px 12px; }
  html[lang="en"] .metric strong { font-size: 30px; overflow-wrap: anywhere; }
  html[lang="en"] .metric small { display: block; line-height: 1.4; }
  html[lang="en"] .careers-type-tabs { gap: 8px; }
  html[lang="en"] .careers-type-tabs button { flex: 1; min-width: 0; padding-inline: 0; font-size: 12px; }
}
/* Keep translated phrases separate when the Chinese layout suppresses its break. */
html[lang="en"] .about-network__intro h2 br { display: initial; }

/* Keep the English hero headline on two lines on desktop. */
@media (min-width: 851px) {
  html[lang="en"] .hero h1.hero-title {
    max-width: 100%;
    font-size: clamp(28px, 3.5vw, 50px);
    line-height: 1.15;
    white-space: nowrap;
  }
}
