/*
 * Shared article typography.
 * Used by BOTH the admin markdown preview and the public article page so what an
 * administrator previews is exactly what a reader will see. Do not fork this file.
 */

.article-content {
    color: #2b2b2b;
    font-size: 1.05rem;
    line-height: 1.8;
    word-wrap: break-word;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-weight: 700;
    line-height: 1.3;
    margin: 2.2rem 0 1rem;
}

.article-content h1 { font-size: 2.1rem; }
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.4rem; }
.article-content h4 { font-size: 1.2rem; }

.article-content > *:first-child {
    margin-top: 0;
}

.article-content p {
    margin: 0 0 1.3rem;
}

.article-content a {
    color: #0b62d6;
    text-decoration: underline;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.3rem 1.4rem;
    padding-left: 0.6rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid #0b62d6;
    background: #f6f8fb;
    margin: 1.6rem 0;
    padding: 1rem 1.3rem;
    color: #444;
    font-style: italic;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.4rem 0;
}

.article-content code {
    background: #f0f2f5;
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 0.92em;
}

.article-content pre {
    background: #1e1e1e;
    color: #f2f2f2;
    border-radius: 8px;
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
    margin: 1.6rem 0;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    font-size: 0.97rem;
}

.article-content th,
.article-content td {
    border: 1px solid #dfe3e8;
    padding: 0.65rem 0.85rem;
    text-align: left;
}

.article-content th {
    background: #f6f8fb;
    font-weight: 600;
}

.article-content hr {
    border: 0;
    border-top: 1px solid #e2e6ea;
    margin: 2.2rem 0;
}
