/* Thai text wrapping utilities
   Scope: site-wide Thai readability support
   Purpose: improve Thai word wrapping without changing core layout
*/

html[lang="th"],
html[lang="th"] body {
  word-break: normal;
  overflow-wrap: break-word;
  line-break: auto;
  hyphens: none;
}

/* Use for short Thai words/labels that must not be broken */
.th-nowrap {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

/* Use for Thai titles that should wrap naturally but not break aggressively */
.th-safe-wrap {
  word-break: normal;
  overflow-wrap: break-word;
  line-break: auto;
  hyphens: none;
}

/* Use for compact UI labels, badges, buttons, chips, and menu text */
.th-ui-text {
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

/* Prevent awkward breaking in common compact elements without forcing the whole page nowrap */
button,
.btn,
.badge,
.chip,
.nav-link,
.menu-link,
.category-chip,
.filter-chip {
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}
