/* SkiinOBS V86 — multilingual semantic line-break fix.
   Loaded after the existing design layers so later !important resets do not
   undo phrase-aware wrapping. Preview internals remain isolated. */

/* Headings: balance lines, but preserve language-appropriate word/phrase units. */
body.lang-ja :where(h1,h2,h3,h4,h5,h6,.marketing-title),
html[lang^="ja"] body :where(h1,h2,h3,h4,h5,h6,.marketing-title){
  line-break:strict!important;
  word-break:auto-phrase!important;
  overflow-wrap:normal!important;
  text-wrap:balance!important;
}

body.lang-zh :where(h1,h2,h3,h4,h5,h6,.marketing-title),
html[lang^="zh"] body :where(h1,h2,h3,h4,h5,h6,.marketing-title){
  line-break:strict!important;
  word-break:auto-phrase!important;
  overflow-wrap:normal!important;
  text-wrap:balance!important;
}

body.lang-ko :where(h1,h2,h3,h4,h5,h6,.marketing-title),
html[lang^="ko"] body :where(h1,h2,h3,h4,h5,h6,.marketing-title){
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  text-wrap:balance!important;
}

body.lang-en :where(h1,h2,h3,h4,h5,h6,.marketing-title),
html[lang^="en"] body :where(h1,h2,h3,h4,h5,h6,.marketing-title){
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  text-wrap:balance!important;
}

/* Prose and controls: prefer clean phrase/word wrapping over arbitrary breaks. */
body.lang-ja :where(p,li,dd,dt,summary),
html[lang^="ja"] body :where(p,li,dd,dt,summary){
  line-break:strict!important;
  word-break:auto-phrase!important;
  overflow-wrap:break-word!important;
  text-wrap:pretty!important;
}

body.lang-zh :where(p,li,dd,dt,summary),
html[lang^="zh"] body :where(p,li,dd,dt,summary){
  line-break:strict!important;
  word-break:auto-phrase!important;
  overflow-wrap:break-word!important;
  text-wrap:pretty!important;
}

body.lang-ko :where(p,li,dd,dt,summary),
html[lang^="ko"] body :where(p,li,dd,dt,summary){
  word-break:keep-all!important;
  overflow-wrap:break-word!important;
  text-wrap:pretty!important;
}

body.lang-en :where(p,li,dd,dt,summary),
html[lang^="en"] body :where(p,li,dd,dt,summary){
  word-break:normal!important;
  overflow-wrap:break-word!important;
  hyphens:none!important;
  text-wrap:pretty!important;
}

/* The product preview has its own internal typography and must not inherit this patch. */
.skiin-preview,.skiin-preview *{text-wrap:initial!important}
