/* Текст, відформатований в адмінці (admin/sanitize.js). Стоїть в обгортці <rt-text>; стилі дизайну
   для «strong», «li» чи «a» на нього не поширюються (звідси «:is(…, #_)»: вага як у селектора з id). */
rt-text { display: inline; }
rt-text.rt-blocks { display: block; }
rt-text :is(strong, em, u, s, sup, sub, a, #_) { all: revert; }
rt-text :is(strong, #_) { font-weight: 700; }
rt-text :is(a, #_) { color: inherit; text-decoration: underline; text-underline-offset: .18em; }

rt-p, rt-h, rt-ul, rt-ol, rt-quote { display: block; }
rt-p, rt-ul, rt-ol, rt-quote { margin: 0 0 .65em; }
rt-text > :last-child { margin-bottom: 0; }
rt-h { margin: .9em 0 .4em; font-weight: 700; line-height: 1.25; }
rt-text > rt-h:first-child { margin-top: 0; }
rt-h[aria-level="2"] { font-size: 1.35em; }
rt-h[aria-level="3"] { font-size: 1.15em; }
rt-ul, rt-ol { padding-left: 1.4em; text-align: left; }
rt-li { display: list-item; margin: .2em 0; list-style: disc outside; }
rt-ol > rt-li { list-style-type: decimal; }
rt-quote { padding-left: .9em; border-left: 3px solid currentColor; }
.rt-center { text-align: center; }
.rt-right { text-align: right; }

rt-c.rt-accent { color: var(--color-bg-accent, #f4d94e); }
rt-c.rt-dark { color: var(--color-text-primary, #1c1b19); }
rt-c.rt-muted { opacity: .62; }
rt-c.rt-light { color: var(--color-text-inverse, #fbf7ef); }
rt-c.rt-mark { padding: 0 .16em; border-radius: .18em; background: var(--color-bg-accent, #f4d94e); color: #1c1b19; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
rt-c.rt-big { font-size: 1.2em; }
rt-c.rt-small { font-size: .82em; }
