/* All display formatting is restricted to these classes and semantic tags. */
.rich-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.rich-formatted { font-weight: 400; }
.rich-text .rt-small, .rt-small { font-size: .875em; }
.rich-text .rt-large, .rt-large { font-size: 1.25em; }
.rich-text strong, .rich-text b { font-weight: 700; }
.rich-text em, .rich-text i { font-style: italic; }
.rich-text u { text-decoration: underline; text-underline-offset: .14em; }
.rich-source[hidden], .field .rich-source[hidden] { display: none; }
.rich-editor { width: 100%; min-width: 0; }
.rich-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 6px 8px; background: #f1f1f1; border: 1px solid #8e8e8e; border-bottom: 0; }
.rich-control { min-width: 38px; min-height: 36px; padding: 4px 9px; border: 1px solid transparent; background: transparent; color: #222; font-size: 17px; }
.rich-control:hover, .rich-control[aria-pressed="true"] { border-color: #bbb; background: white; }
.rich-control[aria-pressed="true"] { color: #c9001b; box-shadow: inset 0 -2px #c9001b; }
.rich-bold { font-weight: 700; }
.rich-italic { font-style: italic; }
.rich-underline { text-decoration: underline; }
.rich-size-label { display: flex; align-items: center; gap: 8px; margin-left: 7px; font-size: 13px; }
.field .rich-toolbar .rich-size { width: 100px; min-height: 36px; margin: 0; padding: 4px 7px; background: white; font-size: 14px; }
.rich-editor-surface { min-height: 102px; padding: 12px 13px; background: #fafafa; border: 1px solid #8e8e8e; font-size: 16px; font-weight: 400; line-height: 1.5; cursor: text; }
.rich-editor-surface div, .rich-editor-surface p { margin: 0; }
.rich-editor-surface:focus-visible { outline: 3px solid #1768a8; outline-offset: 2px; }
.rich-editor-surface font[size="2"] { font-size: 14px; }
.rich-editor-surface font[size="3"] { font-size: 16px; }
.rich-editor-surface font[size="5"] { font-size: 20px; }
.rich-editor-status { min-height: 19px; margin: 5px 0 0; color: #626262; font-size: 12px; text-align: right; }
.rich-editor-status.is-error { color: #aa0017; }
@media (max-width: 480px) { .rich-size-label { font-size: 0; gap: 0; } .rich-editor-surface { min-height: 112px; } }
