/* Blog (src/routes/blog.tsx). Linked as /blog.css?v=N: bump N when this file changes. */
.blog { padding-top: 40px; padding-bottom: 72px; }
.blog-head h1 { margin: 0 0 8px; font-size: 36px; line-height: 1.15; }
.blog-head .lead { max-width: 640px; color: var(--ink-soft); font-size: 18px; }
.blog-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: inherit; text-decoration: none; }
.blog-card:hover { border-color: var(--line-strong); box-shadow: 0 6px 20px rgba(10, 37, 64, 0.07); }
.blog-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); }
.blog-card h2 { margin: 6px 0; font-size: 20px; line-height: 1.25; }
.blog-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 15px; }
.blog-cat { display: inline-block; margin-top: 12px; font: 700 12px var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-accent); }

.post { max-width: 740px; margin: 0 auto; font-size: 17px; line-height: 1.7; }
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.crumbs a { color: var(--ink-soft); }
.post h1 { margin: 0 0 8px; font-size: 38px; line-height: 1.15; }
.post-meta { margin: 0 0 28px; font-size: 14px; }
.post-body h2 { margin: 40px 0 8px; font-size: 26px; line-height: 1.25; }
.post-body h3 { margin: 28px 0 4px; font-size: 20px; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 16px; }
.post-body li { margin: 6px 0; }
.post-body a { color: var(--brand-accent); text-underline-offset: 2px; }
.post-body figure { margin: 28px 0; }
.post-body figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.post-body figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.post-body .callout { background: #f3f1ff; border-left: 4px solid var(--brand-accent); border-radius: 8px; padding: 12px 16px; margin: 20px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.post-body th, .post-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-faq { margin-top: 40px; }
.post-faq h2 { font-size: 26px; }
.post-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.post-faq summary { cursor: pointer; font-weight: 700; }
.post-faq details p { margin: 8px 0 0; }
.post-cta { margin-top: 48px; padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.post-cta h2 { margin: 0; font-size: 22px; }
.post-cta p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.keep-reading { max-width: 740px; margin: 40px auto 0; }
.keep-reading ul { padding-left: 20px; }
@media (max-width: 640px) {
  .post h1, .blog-head h1 { font-size: 28px; }
  .post { font-size: 16px; }
  .blog-grid { grid-template-columns: 1fr; }
}
