/* Blog and FAQs (blog.php, blog-post.php, faq.php). Mobile first: one column, 16px gutters, large readable text. */
.blog-wrap { max-width: 760px; margin-inline: auto; padding-inline: 16px; padding-block: 32px 64px; display: grid; gap: 22px; }
.blog-wrap > * { min-width: 0; }
.blog-head { display: grid; gap: 8px; }
.blog-head .lede, .post-head .lede { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.5; }
.blog-head h1, .post-head h1 { margin: 0; text-wrap: balance; }

.blog-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.blog-cats::-webkit-scrollbar { display: none; }
.blog-cats a { flex: none; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.blog-cats a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.post-grid { display: grid; gap: 16px; }
.post-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.post-card-link { display: grid; gap: 6px; padding: 0 0 16px; text-decoration: none; color: inherit; }
.post-card-link > :not(img) { padding-inline: 16px; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; margin-bottom: 8px; background: var(--paper); }
.post-card h2 { margin: 4px 0 0; font: 800 20px/1.2 var(--f-display); font-stretch: 112%; text-wrap: balance; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.post-card-link:hover h2 { color: var(--accent); }
.post-meta { font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.blog-empty { background: var(--sheet); border: 1px dashed var(--rule); border-radius: 12px; padding: 20px; }
.blog-pages { display: flex; gap: 10px; justify-content: space-between; }

/* A post */
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.post-head { display: grid; gap: 10px; }
.post-head .post-meta { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 13px; }
.post-cover { margin: 0; }
.post-cover img { width: 100%; height: auto; border-radius: 12px; display: block; }
.post-body { font-size: 18px; line-height: 1.7; }
.post-body > * { margin: 0 0 18px; }
.post-body h2 { font: 800 25px/1.2 var(--f-display); font-stretch: 112%; margin: 34px 0 12px; scroll-margin-top: 80px; text-wrap: balance; }
.post-body h3 { font: 700 20px/1.3 var(--f-display); font-stretch: 108%; margin: 26px 0 10px; }
.post-body h4 { font-size: 18px; margin: 22px 0 8px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--accent); text-underline-offset: 3px; }
.post-body figure { margin: 26px 0; }
.post-body figure img, .post-body p img { width: 100%; height: auto; border-radius: 10px; display: block; }
.post-body figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.post-body blockquote { margin-inline: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.post-body code { font-family: var(--f-mono); font-size: .88em; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 5px; }

.post-cta { border-radius: 14px; padding: 20px; display: grid; gap: 8px; border: 1px solid var(--rule); background: var(--accent-soft); }
.post-cta.partners { background: var(--sheet); }
.post-cta p { margin: 0; }
.post-cta-k { font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.post-cta-h { font: 800 22px/1.2 var(--f-display); font-stretch: 112%; }
.post-cta .btn { justify-self: start; margin-top: 6px; }

.post-faq h2, .post-related h2, .faq-group h2 { font: 800 22px/1.2 var(--f-display); font-stretch: 112%; margin: 6px 0 12px; }
.post-faq details, .faq-group details { border: 1px solid var(--rule); border-radius: 10px; margin-bottom: 8px; background: var(--sheet); }
.post-faq summary, .faq-group summary { cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 17px; line-height: 1.4; list-style-position: inside; min-height: 48px; }
.post-faq details > div, .faq-group details > div { padding: 0 16px 6px; font-size: 16px; }
.faq-group details:target { border-color: var(--accent); }
.post-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.post-related a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; color: inherit; background: var(--sheet); }
.post-related a span { color: var(--muted); font-size: 14px; }
.post-note { color: var(--muted); }

@media (min-width: 760px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card.lead { grid-column: 1 / -1; }
  .post-card.lead h2 { font-size: 28px; }
  .blog-cats { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1100px) { .blog-wrap { max-width: 1040px; } .post.blog-wrap { max-width: 760px; } .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-body .post-cta .btn, .post-cta .btn { color: var(--accent-ink); text-decoration: none; }
.post-cta.partners .btn { background: var(--ink); color: var(--paper); }
