/* Blog (/blog): only what Tailwind's precompiled build does not already give the page.
   Colours follow the site: slate text, blue-600 (#2563eb) accent. */

.blog-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.blog-cover { display: block; aspect-ratio: 16 / 9; background: #f1f5f9; }
.blog-lead .blog-cover { min-height: 100%; }
.blog-cover--empty { display: flex; align-items: center; justify-content: center; color: #93c5fd; font-size: 1.75rem; background: #eff6ff; }

.blog-tag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 0.75rem; font-weight: 700; }
.blog-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.blog-avatar { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; flex: none; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 0.75rem; font-weight: 800; }
.blog-avatar--lg { width: 2.75rem; height: 2.75rem; font-size: 1rem; }

.blog-preview { margin: 0; padding: 0.65rem 1rem; background: #fde68a; color: #0f172a; font-size: 0.8rem; font-weight: 700; text-align: center; }

.blog-hero { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: cover; margin-top: 2rem; border-radius: 1rem; border: 1px solid #e2e8f0; }

/* The editor's article body: only the tags app/services/blog.py lets through. */
.blog-prose { margin-top: 2.25rem; color: #334155; font-size: 1.0625rem; line-height: 1.8; }
.blog-prose > * + * { margin-top: 1.25rem; }
.blog-prose h2 { margin-top: 2.5rem; color: #0f172a; font-size: 1.5rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.blog-prose h3 { margin-top: 2rem; color: #0f172a; font-size: 1.2rem; line-height: 1.4; font-weight: 700; }
.blog-prose h4 { margin-top: 1.5rem; color: #0f172a; font-weight: 700; }
.blog-prose a { color: #2563eb; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.blog-prose a:hover { color: #1d4ed8; }
.blog-prose strong { color: #0f172a; }
.blog-prose ul, .blog-prose ol { padding-left: 1.4rem; }
.blog-prose ul { list-style: disc; }
.blog-prose ol { list-style: decimal; }
.blog-prose li + li { margin-top: 0.5rem; }
.blog-prose li::marker { color: #2563eb; }
.blog-prose blockquote { padding: 0.15rem 0 0.15rem 1.1rem; border-left: 2px solid #cbd5e1; color: #0f172a; font-size: 1.15rem; font-weight: 600; font-style: italic; }
.blog-prose figure { margin-top: 2rem; margin-bottom: 2rem; }
.blog-prose img { display: block; max-width: 100%; height: auto; border-radius: 0.875rem; border: 1px solid #e2e8f0; }
.blog-prose figcaption { margin-top: 0.6rem; color: #64748b; font-size: 0.875rem; line-height: 1.5; }
.blog-prose hr { border: 0; border-top: 1px solid #e2e8f0; }
.blog-prose code { padding: 0.1rem 0.3rem; border-radius: 0.3rem; background: #f1f5f9; font-size: 0.9em; }
.blog-prose pre { overflow-x: auto; padding: 1rem; border-radius: 0.75rem; background: #0f172a; color: #e2e8f0; font-size: 0.875rem; }
.blog-prose pre code { padding: 0; background: none; }
.blog-prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.55; }
.blog-prose th, .blog-prose td { padding: 0.65rem 0.8rem; border: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.blog-prose th { background: #f8fafc; color: #0f172a; font-weight: 700; }
