/* Additions for the dynamic website only. Nothing here changes the reference
   design: every rule targets a state that the reference pages never have
   (an uploaded picture, a form error, the article body). */

/* Optional uploaded pictures (the gradient / illustration stays when none) */
.post-cover.has-img, .thumb.has-img, .featured-cover.has-img { background-size: cover; background-position: center; }
.post-cover.has-img::before, .featured-cover.has-img::before { display: none; }
.cover-panel img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }

/* Form error message (same box as .form-success, in red) */
.form-error { display: none; margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--r); background: #fdecec; color: #a82a30; font-weight: 600; font-size: 15px; }
.form-error.show { display: block; }

/* Blog article page */
.article-body { font-size: 17px; line-height: 1.8; color: var(--sp-text); }
.article-body h2 { font-size: 26px; margin: 2rem 0 .8rem; }
.article-body h3 { font-size: 21px; margin: 1.6rem 0 .6rem; }
.article-body p, .article-body ul, .article-body ol { margin-bottom: 1.1rem; }
.article-body blockquote { border-left: 3px solid var(--sp-primary); padding: .2rem 0 .2rem 1rem; color: var(--sp-ink); font-weight: 600; margin: 1.4rem 0; }
.article-body pre { background: var(--sp-bg); border: 1px solid var(--sp-line); border-radius: var(--r); padding: 1rem; overflow: auto; }
.article-body img { max-width: 100%; height: auto; }
