/* Texto formatado pelo editor (TinyMCE), onde ele é mostrado. */
.rich-text.rich-text { white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 .6em; }
.rich-text h2, .rich-text h3, .rich-text h4 { margin: .8em 0 .35em; color: var(--panel-text, inherit); font-weight: 800; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.rich-text h2 { font-size: 1.22em; }
.rich-text h3 { font-size: 1.1em; }
.rich-text h4 { font-size: 1em; }
.rich-text ul, .rich-text ol { margin: 0 0 .6em; padding-left: 1.35em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin: .15em 0; }
.rich-text li::marker { color: var(--yellow, currentColor); }
.rich-text blockquote { margin: 0 0 .6em; padding: .35em 0 .35em 12px; border-left: 3px solid color-mix(in srgb, var(--yellow, currentColor) 70%, transparent); color: inherit; opacity: .92; }
.rich-text a { color: var(--yellow, inherit); text-decoration: underline; text-underline-offset: 2px; }
.rich-text strong, .rich-text b { font-weight: 800; }
/* Negrito do texto continua na linha, mesmo em cartões que estilizam o <strong> do título como bloco. */
.rich-text.rich-text strong, .rich-text.rich-text b, .rich-text.rich-text em, .rich-text.rich-text i, .rich-text.rich-text u, .rich-text.rich-text s { display: inline; margin: 0; font-size: inherit; color: inherit; letter-spacing: inherit; text-transform: none; }

/* O campo, enquanto o editor carrega: o texto cru (com as tags) não pisca. */
.rich-js textarea[data-rich-text].rich-pending { color: transparent; caret-color: transparent; }

/* Editor dentro do painel. */
.tox.tox-tinymce { border-radius: 12px; border-color: color-mix(in srgb, var(--panel-text, #fff) 14%, transparent); }
.tox.tox-tinymce.is-invalid { border-color: var(--danger, #ff5d65); box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger, #ff5d65) 25%, transparent); }
.rich-counter { display: block; margin-top: 5px; color: var(--muted, #9ca5b4); font-size: .7rem; text-align: right; font-variant-numeric: tabular-nums; }
.rich-counter.is-over { color: var(--danger, #ff5d65); font-weight: 800; }
.rich-problem { display: block; margin-top: 4px; color: var(--danger, #ff5d65); font-size: .74rem; font-weight: 700; }

/* Notificação com texto do editor: cabe no cabeçalho e no aviso flutuante. */
.notification-rich { display: block; max-height: 6.6em; overflow: hidden; line-height: 1.45; }
.notification-rich p, .notification-rich ul, .notification-rich ol, .notification-rich blockquote { margin: 0 0 .2em; }
.notification-rich h2, .notification-rich h3, .notification-rich h4 { margin: 0 0 .2em; font-size: 1em; }
.notification-rich ul, .notification-rich ol { padding-left: 1.2em; }
