/* ============================================================================
   CCBONLINE INC. — Chinese typography layer
   Layer 3 of 3. Loaded after home.css.

   Chinese is set, not translated: same scale relationships, but zero letter
   spacing, looser leading (1.7–1.82), and its own max-widths. The English
   layout does not survive translation — every heading and long paragraph
   below needs its own measure, because the character count per line differs.
   ============================================================================ */

.page[data-lang='zh'] {
  font-family: var(--font-cjk);
}

/* ---------- Headings ----------------------------------------------------- */
.page[data-lang='zh'] .h1,
.page[data-lang='zh'] .h2 {
  font-family: var(--font-cjk);
  letter-spacing: 0;
  line-height: 1.16;
}
.page[data-lang='zh'] .h1 {
  font-size: clamp(30px, 3.4cqi, 52px);
  font-weight: 700;
  line-height: 1.26;
}
.page[data-lang='zh'] .h2 {
  font-size: clamp(23px, 2.4cqi, 33px);
  font-weight: 700;
  line-height: 1.3;
}
.page[data-lang='zh'] .h3 {
  font-family: var(--font-cjk);
  letter-spacing: 0;
  font-size: 16px;
  line-height: 1.55;
}
.page[data-lang='zh'] .lead {
  font-family: var(--font-cjk);
  line-height: 1.8;
}
.page[data-lang='zh'] .eyebrow { letter-spacing: 0.1em; }

/* ---------- Language toggle label ---------------------------------------- */
.page[data-lang='zh'] .lang button { letter-spacing: 0; font-size: 12px; }

/* ---------- Hero --------------------------------------------------------- */
/* The Chinese H1 is a rule, not a question — it needs a narrower measure than
   the English sentence, or the last character dangles on its own line. */
.page[data-lang='zh'] .hero h1 { max-width: 19ch; }
.page[data-lang='zh'] .promise-main {
  font-family: var(--font-cjk);
  letter-spacing: 0;
}
.page[data-lang='zh'] .promise-alt { font-size: 12px; letter-spacing: 0.02em; }
.page[data-lang='zh'] .hero-sub { line-height: 1.78; }

.page[data-lang='zh'] .stage-name { letter-spacing: 0.06em; font-size: 12.5px; }
.page[data-lang='zh'] .stage-q { line-height: 1.7; }

/* ---------- Thesis band -------------------------------------------------- */
.page[data-lang='zh'] .thesis .h2 { max-width: 20ch; }
.page[data-lang='zh'] .thesis-lead {
  font-family: var(--font-cjk);
  line-height: 1.85;
}
.page[data-lang='zh'] .thesis-item h3 {
  font-family: var(--font-cjk);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0;
}
.page[data-lang='zh'] .thesis-item p {
  font-family: var(--font-cjk);
  line-height: 1.78;
}

/* ---------- Services table ----------------------------------------------- */
.page[data-lang='zh'] .svc-name {
  font-family: var(--font-cjk);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}
.page[data-lang='zh'] .svc-alt,
.page[data-lang='zh'] .svc-stage { font-family: var(--font-cjk); letter-spacing: 0.02em; }
.page[data-lang='zh'] .svc-q { line-height: 1.75; }
.page[data-lang='zh'] .svc-d { line-height: 1.75; }
.page[data-lang='zh'] .svc-detail .body { line-height: 1.82; }
.page[data-lang='zh'] .svc-cadence { line-height: 1.6; }

/* ---------- Who we serve ------------------------------------------------- */
.page[data-lang='zh'] .who-col h3 {
  font-family: var(--font-cjk);
  font-size: 19px;
  letter-spacing: 0;
}
.page[data-lang='zh'] .who-list li { line-height: 1.75; }
.page[data-lang='zh'] .who-note { line-height: 1.8; }

/* ---------- Approach ----------------------------------------------------- */
.page[data-lang='zh'] .step p { line-height: 1.8; }
.page[data-lang='zh'] .step-foot { line-height: 1.85; }

/* ---------- Scope -------------------------------------------------------- */
.page[data-lang='zh'] .cap p { line-height: 1.78; }
.page[data-lang='zh'] .cap h3 { font-size: 14px; }
.page[data-lang='zh'] .boundary p { line-height: 1.8; }
.page[data-lang='zh'] .photo-frame .note { line-height: 1.7; }

/* ---------- CTA + footer ------------------------------------------------- */
.page[data-lang='zh'] .cta-lead { line-height: 1.85; }
.page[data-lang='zh'] .cta-note { line-height: 1.75; }
.page[data-lang='zh'] .foot-col button { line-height: 1.6; }
.page[data-lang='zh'] .foot-col h5 { letter-spacing: 0.08em; }

/* ---------- Dialog ------------------------------------------------------- */
.page[data-lang='zh'] .dialog h3 {
  font-family: var(--font-cjk);
  font-size: 19px;
  letter-spacing: 0;
}
.page[data-lang='zh'] .dialog .sub { line-height: 1.75; }
.page[data-lang='zh'] .dialog .fine { line-height: 1.7; }
.page[data-lang='zh'] .sent p { line-height: 1.8; }
.page[data-lang='zh'] .field label { letter-spacing: 0.06em; }

/* ---------- Small screens: fixed floors for CJK -------------------------- */
@container page (max-width: 620px) {
  .page[data-lang='zh'] .hero h1 { font-size: 30px; }
  .page[data-lang='zh'] .h2 { font-size: 22px; }
  .page[data-lang='zh'] .sec-head .lead { line-height: 1.8; }
}
