/* ============================================================
   CKB-CMS-VERTICAL-SLICE-R1-C-R2-R1-R1
   Bilingual Heading Line-Balance, Orphan Prevention & Final
   Presentation Closure

   Presentation-only closure on top of Theme 0.4.4.
   The Event H1 keeps the exact 0.4.4 font size/line-height/letter-spacing,
   block origin and container geometry. Only line-breaking policy changes.
   ============================================================ */

/* Balance display-heading lines when wrapping is necessary. Modern browsers
   rebalance available break opportunities instead of leaving one final word
   or one Han character stranded on a short last line. A title that already
   fits on one line remains one line. */
.ckb-event-detail__header h1 {
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* CJK keeps normal legal ideographic break opportunities; balance chooses a
   less ragged break point without inserting language-specific hard breaks. */
html[data-review-lang="zh"] .ckb-event-detail__header h1 {
  line-break: strict;
}
