/* Classic post: the old engine's post_layouts 1 ("Blog Post") styles, emitted after the site's CSS.
   The old engine's body-text rules never reached browsers, so its posts had no spacing between
   paragraphs and headings; the body rhythm below replaces them. `.container` is unscoped here
   exactly as it was live (it narrows the header and footer on post pages too). */
.blog-post { padding: 4rem 0; }
.container { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.post-header { margin-bottom: 2rem; }
.post-header time { color: var(--text-secondary, #666); font-size: 0.875rem; }
.post-header h1 { font-size: 3rem; line-height: 1.2; margin: 0.5rem 0 1rem; color: var(--text-primary, #1e293b); }
.post-header .excerpt { font-size: 1.25rem; color: var(--text-secondary, #666); }
.featured-image { margin-bottom: 2rem; }
.featured-image img { width: 100%; height: auto; border-radius: var(--border-radius, 8px); }
.image-caption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-secondary, #666); font-style: italic; text-align: center; }
.post-content { font-size: 1.125rem; line-height: 1.8; }
/* The body's rhythm. chrome.css (and most sites' CSS) zero every margin and padding, so without these
   headings, paragraphs and lists sit flush against each other and bullets hang outside the column. */
.post-content > :first-child { margin-top: 0; }
.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content figure,
.post-content pre,
.post-content table { margin: 0 0 1.4em; }
.post-content h2 { margin: 2.2em 0 0.7em; line-height: 1.3; }
.post-content h3 { margin: 1.8em 0 0.5em; line-height: 1.35; }
.post-content h4 { margin: 1.5em 0 0.4em; line-height: 1.4; }
.post-content h2 + h3 { margin-top: 1em; }
.post-content ul,
.post-content ol { padding-left: 1.5em; }
.post-content li + li { margin-top: 0.5em; }
.post-content li > ul,
.post-content li > ol { margin: 0.5em 0 0; }
.post-content blockquote { padding-left: 1.25em; border-left: 3px solid var(--color-primary, #3b82f6); color: var(--text-secondary, #555); }
.post-content img { max-width: 100%; height: auto; }
.post-content figcaption { margin-top: 0.5em; font-size: 0.875rem; color: var(--text-secondary, #666); }
.post-content hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--border-color, #eee); }
.post-content > :last-child { margin-bottom: 0; }
.post-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-color, #eee); }
.back-link { font-weight: 600; color: var(--color-primary, #3b82f6); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.promo-divider { margin-top: 3rem; margin-bottom: 2rem; border: none; border-top: 1px solid var(--border-color, #eee); }
.post-promo { padding: 1.5rem; background: var(--bg-secondary, #f9fafb); border-radius: var(--border-radius, 8px); font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary, #4b5563); }
@media (max-width: 768px) { .post-header h1 { font-size: 2rem; } }

/* cc_components 4 (related-posts), legacy vocabulary. */
.related-posts { margin: 3rem 0; padding: 2rem 0; border-top: 1px solid #e5e7eb; }
.related-posts-title { font-size: 1.5rem; font-weight: 600; margin: 0 0 1.5rem; color: #111827; }
.related-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.related-post-card { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; }
.related-post-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.related-post-image { display: block; overflow: hidden; }
.related-post-image img { width: 100%; height: 160px; object-fit: cover; transition: transform 0.3s; }
.related-post-card:hover .related-post-image img { transform: scale(1.03); }
.related-post-content { padding: 1rem; }
.related-post-content h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; line-height: 1.3; }
.related-post-content h3 a { color: #111827; text-decoration: none; }
.related-post-content h3 a:hover { color: #2563eb; }
.related-post-excerpt { font-size: 0.875rem; color: #6b7280; margin: 0 0 0.75rem; line-height: 1.5; }
