/**
 * Единые стили HTML из TinyMCE: редактор (content_css) и публичные страницы (.rich-content).
 */
.rich-content {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #1f2937;
    word-wrap: break-word;
}

.rich-content > *:first-child {
    margin-top: 0;
}

.rich-content > *:last-child {
    margin-bottom: 0;
}

.rich-content h1 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 1.75rem 0 1rem;
    color: #0f172a;
}

.rich-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 1.5rem 0 0.75rem;
    color: #0f172a;
}

.rich-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 1.25rem 0 0.5rem;
    color: #111827;
}

.rich-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: #111827;
}

.rich-content p {
    margin: 0.75rem 0;
}

.rich-content strong,
.rich-content b {
    font-weight: 600;
    color: #111827;
}

.rich-content em,
.rich-content i {
    font-style: italic;
}

.rich-content ul {
    list-style-type: disc;
    margin: 0.75rem 0 0.75rem 1.5rem;
    padding: 0;
}

.rich-content ol {
    list-style-type: decimal;
    margin: 0.75rem 0 0.75rem 1.5rem;
    padding: 0;
}

.rich-content li {
    margin: 0.35rem 0;
    padding-left: 0.25rem;
}

.rich-content li > ul,
.rich-content li > ol {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.rich-content a {
    color: #4a6b5d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rich-content a:hover {
    color: #3d5a4d;
}

.rich-content blockquote {
    border-left: 4px solid #64748b;
    margin: 1.25rem 0;
    padding: 0.5rem 0 0.5rem 1rem;
    color: #475569;
    font-style: italic;
}

.rich-content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95em;
}

.rich-content th,
.rich-content td {
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.rich-content th {
    background: #f3f4f6;
    font-weight: 600;
    color: #111827;
}

.rich-content thead th {
    background: #e5e7eb;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.75rem 0;
}

.rich-content pre,
.rich-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}

.rich-content pre {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.rich-content code {
    background: #f3f4f6;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
}

/* Обёртка блока на странице */
.content-block--text {
    margin-bottom: 2rem;
}

.content-block--quote {
    margin: 2rem 0;
    padding-left: 1.25rem;
    border-left-width: 4px;
    border-left-style: solid;
    font-style: italic;
}

.content-block--quote .rich-content {
    font-size: 1.125rem;
    line-height: 1.65;
}

.content-block--quote .rich-content p {
    margin: 0.25rem 0;
}

.content-block--divider {
    margin: 2.5rem 0;
    border-top: 1px solid #e5e7eb;
}