/* Chinese-page overrides. Chinese has no spaces, so the word-by-word reveal used on the
   English pages splits headings mid-phrase. Loaded only by pages under /zh/. */

/* 1) Word-level heading animation is meaningless in Chinese: drop inline-block and let the
      browser break lines by Chinese rules. */
html[data-fx~="words"] .hero h1 .w,
html[data-fx~="mask"] .hero h1 .w {
  display: inline;
  opacity: 1;
  transform: none;
  filter: none;
}

/* 2) Chinese runs denser, so step the heading size down to stop 3 lines becoming 4. */
.hero h1 {
  /* ~13 characters per line reads best in Chinese; the English 54px setting breaks a
     26-character heading into three lines and cuts through phrases. */
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.3;
  letter-spacing: 0;
}

/* 3) Slightly looser body line-height: Chinese body copy has no word gaps to breathe. */
.lede { line-height: 1.75; }
table td, table th { line-height: 1.65; }

/* 4) Definition rows (.rowdef) do not need extra letter-spacing in Chinese. */
.rowdef { letter-spacing: 0; }
