/* Оформление текста новостей и статей (common/richtext.py). Подключается на
   сайте (templates/site/_content_blocks.html) и в предпросмотре админки
   (templates/_richtext_toolbar.html). */
.rich-text { font-size: 1.02rem; line-height: 1.7; color: #1d2735; overflow-wrap: anywhere; }
.rich-text > :first-child { margin-top: 0; }
.rich-text p { margin: 0 0 14px; }
.rich-text h2 { font-size: 1.35rem; line-height: 1.3; color: #0E2240; margin: 28px 0 10px; padding-left: 12px; border-left: 4px solid #D6A35C; }
.rich-text h3 { font-size: 1.12rem; line-height: 1.35; color: #0E2240; margin: 22px 0 8px; }
.rich-text strong { color: #0E2240; font-weight: 700; }
.rich-text mark { background: linear-gradient(transparent 45%, #FFE39A 45%); color: inherit; padding: 0 2px; }
.rich-text a { color: #1c5fa8; text-decoration: underline; text-underline-offset: 2px; }
.rich-text a:hover { color: #0E2240; }
.rich-text ul, .rich-text ol { margin: 0 0 16px; padding-left: 24px; }
.rich-text li { margin: 0 0 6px; }
.rich-text ol li::marker { color: #b8772a; font-weight: 700; }
.rich-text ul li::marker { color: #b8772a; }
.rich-text ul.rt-check, .rich-text ul.rt-cross { list-style: none; padding-left: 0; }
.rich-text ul.rt-check li, .rich-text ul.rt-cross li { position: relative; padding-left: 32px; }
.rich-text ul.rt-check li::before, .rich-text ul.rt-cross li::before {
  position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff;
}
.rich-text ul.rt-check li::before { content: "✓"; background: #1F9D6B; }
.rich-text ul.rt-cross li::before { content: "✕"; background: #D9534F; }
.rich-text blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid #c7d2e3; background: #f5f7fb; color: #3a4a63; font-style: italic; border-radius: 0 10px 10px 0; }
.rich-text .rt-important, .rich-text .rt-tip { margin: 18px 0; padding: 14px 18px 14px 50px; border-radius: 12px; position: relative; }
.rich-text .rt-important { background: #FFF6E0; border: 1px solid #F2D58F; }
.rich-text .rt-important::before { content: "!"; position: absolute; left: 16px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: #D6A35C; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.rich-text .rt-tip { background: #EEF5FF; border: 1px solid #C9DCF5; }
.rich-text .rt-tip::before { content: "i"; position: absolute; left: 16px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: #1c5fa8; color: #fff; font-weight: 800; font-style: italic; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.rich-text hr { border: 0; border-top: 1px solid #e3e7ee; margin: 26px 0; }
