/*
 * Japanese UI copy must wrap at natural phrase boundaries.  Do not use
 * forced mid-word wrapping here: it can split product names and button labels.
 */
html[lang="ja"] :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,legend,summary,button,a,span,strong,small,th,td):not(pre *):not(code *):not(.terminal *):not(.browser-log *):not(.admin-command-result *){
  line-break:strict;
  word-break:normal;
  word-break:auto-phrase;
  overflow-wrap:var(--ui-overflow-wrap,normal)!important;
}

/* Explicitly supplied phrases may wrap only between their child spans. */
.phrase-wrap{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  column-gap:.35em;
  max-width:100%;
  text-align:center;
}
.phrase-wrap>span{white-space:nowrap!important}

/* The About page once forced each heading phrase onto one unbreakable line. */
.phrase-heading>span{white-space:normal!important}
