/* 04_VISUAL/xwui/xwui-lib/xwui-lib-basic/src/text/XWUILiveText/XWUILiveText.css */
/**
 * XWUILiveText styles.
 *
 * The component paints nothing of its own. The live region is a plain wrapper
 * around an XWUITypography run, so colour, size, weight and the RTL mirror all
 * come from the run and from the page; the wrapper only has to take no space of
 * its own and let long words break instead of widening a flex or grid item
 * (break-word, not anywhere: anywhere also shrinks the minimum width a table cell
 * needs and would split short words in a narrow column).
 *
 * Tokens only (there is none to use), logical properties only, and no motion,
 * so there is nothing for prefers-reduced-motion to switch off. The run keeps
 * XWUITypography's own coarse-pointer and contrast behaviour.
 */

.xwui-live-text {
    /* A flex or grid item may shrink below its text, so a long note wraps instead of overflowing. */
    min-inline-size: 0;
    max-inline-size: 100%;
    overflow-wrap: break-word;
}

/* A phrasing run (a span, an em, anything asked to flow inline) sits in a sentence: the region must not break the line. */
.xwui-live-text-inline {
    display: inline;
}
