/* English site: tighter header because English labels are longer than Chinese */
@media (min-width: 1024px) {
  header nav a {
    white-space: nowrap;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    font-size: 13px;
  }
  header nav {
    gap: 0;
  }
}

/* company name block: only show from xl up so the nav has room */
@media (max-width: 1279px) {
  header .hidden.sm\:block.text-white.font-semibold {
    display: none;
  }
}

/* slightly smaller hero lead so long English sentences stay compact */
@media (max-width: 640px) {
  header .text-sm {
    line-height: 1.35;
  }
}

/* English headlines run longer than Chinese: cap the display sizes */
@media (min-width: 1024px) {
  h1.lg\:text-7xl,
  h2.lg\:text-7xl {
    font-size: clamp(2.2rem, 3.2vw, 3rem);
    line-height: 1.08;
  }
  h1.lg\:text-6xl,
  h2.lg\:text-6xl {
    font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  }
  h1.lg\:text-5xl,
  h2.lg\:text-5xl {
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  }
}

/* balance headline line breaks so English text does not leave orphans */
h1, h2 { text-wrap: balance; }
