﻿/* File: wwwroot/site/css/rich-content.css */

.rich-content {
    font-size: 0.95rem;
    line-height: 2;
    color: #374151;
}

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

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

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

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    margin: 1.5rem 0 0.75rem;
    font-weight: 800;
    line-height: 1.7;
    color: #111827;
}

.rich-content h2 {
    font-size: 1.35rem;
}

.rich-content h3 {
    font-size: 1.15rem;
}

.rich-content h4,
.rich-content h5,
.rich-content h6 {
    font-size: 1rem;
}

.rich-content ul,
.rich-content ol {
    margin: 0 0 1rem;
    padding-right: 1.5rem;
}

.rich-content ul {
    list-style: disc;
}

.rich-content ol {
    list-style: decimal;
}

.rich-content li {
    margin-bottom: 0.4rem;
}

.rich-content li > ul,
.rich-content li > ol {
    margin: 0.4rem 0 0;
}

.rich-content a {
    color: rgb(var(--color-primary));
    text-decoration: none;
}

.rich-content a:hover {
    text-decoration: underline;
}

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

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

.rich-content blockquote {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-right: 4px solid rgb(var(--color-primary));
    border-radius: 0.5rem;
    color: #4b5563;
}

.rich-content blockquote p:last-child {
    margin-bottom: 0;
}

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

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

.rich-content figure {
    margin: 1rem 0;
}

.rich-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

.rich-content table {
    width: 100%;
    margin: 1.25rem 0;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.rich-content th,
.rich-content td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: right;
}

.rich-content th {
    background: #f9fafb;
    font-weight: 700;
    color: #111827;
}

.rich-content pre {
    margin: 1.25rem 0;
    padding: 1rem;
    overflow-x: auto;
    background: #111827;
    color: #f9fafb;
    border-radius: 0.75rem;
    direction: ltr;
    text-align: left;
    font-size: 0.8rem;
}

.rich-content code {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    background: #f3f4f6;
    border-radius: 0.375rem;
    font-size: 0.85em;
    direction: ltr;
}

.rich-content pre code {
    display: block;
    padding: 0;
    background: transparent;
    color: inherit;
}

.rich-content img.mce-pagebreak {
    display: block;
    width: 100%;
    height: 1px;
    margin: 1.75rem 0;
    border: 0;
    border-top: 1px dashed #d1d5db;
    border-radius: 0;
}
