html[data-locale-pending] body {
  visibility: hidden;
}

:where(h1, h2, h3, button, [role="button"]) {
  text-wrap: balance;
}

:where(p, li, dt, dd, blockquote) {
  text-wrap: pretty;
}

html:not(:lang(ko)) :where(h1, h2, h3) {
  word-break: normal;
  overflow-wrap: anywhere;
}

:is(
  html:lang(en),
  html:lang(de),
  html:lang(fr),
  html:lang(it),
  html:lang(es),
  html:lang(pt-BR),
  html:lang(ru),
  html:lang(tr),
  html:lang(id)
) :where(h1, h2, h3, p, li, dt, dd, blockquote, button, [role="button"], label) {
  hyphens: auto;
}

:is(html:lang(ja), html:lang(zh-CN)) {
  line-break: strict;
}

:is(html:lang(ja), html:lang(zh-CN), html:lang(ar), html:lang(hi))
  :where(h1, h2, h3, p, li, dt, dd, blockquote, button, [role="button"], label) {
  hyphens: none;
  overflow-wrap: break-word;
}
