/* ==========================================================================
   Article content typography (pages/news-detail.php)

   Note: this page also carries Tailwind's `prose` classes, but this project
   does not have the @tailwindcss/typography plugin installed, so `.prose`
   currently renders no styles of its own. These hand-written rules give
   the sanitized rich-text content (headings, lists, blockquotes, links,
   images) sensible spacing and type without adding a build-step dependency.
   ========================================================================== */

.article-content {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.75;
}

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

.article-content p {
    margin: 0 0 1.25em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #1f2937;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.6em 0 .6em;
}

.article-content h2 { font-size: 1.5em; }
.article-content h3 { font-size: 1.25em; }
.article-content h4 { font-size: 1.1em; }

.article-content strong,
.article-content b { font-weight: 700; color: #1f2937; }

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

.article-content ul,
.article-content ol {
    margin: 0 0 1.25em;
    padding-left: 1.5em;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
    margin: 0.35em 0;
}

.article-content li > ul,
.article-content li > ol {
    margin: .35em 0 .35em 0;
}

.article-content blockquote {
    margin: 1.5em 0;
    padding: .25em 1.25em;
    border-left: 4px solid #65a30d;
    background: #f7fee7;
    color: #3f6212;
    font-style: italic;
}

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

.article-content a {
    color: #65a30d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: #4d7c0f;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
    display: block;
}

.article-content code {
    background: #f3f4f6;
    border-radius: 4px;
    padding: .15em .4em;
    font-size: .9em;
}

.article-content pre {
    background: #1f2937;
    color: #f3f4f6;
    border-radius: 8px;
    padding: 1em;
    overflow-x: auto;
    margin: 0 0 1.25em;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}
