/* Blog — list and article pages (uses the tokens from frontend.css) */
.blog-hero { padding: 4rem 0 2.5rem; }
.blog-hero h1 { font-size: 2.6rem; }
.blog-cats { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.blog-cats a { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.blog-cats a:hover { border-color: var(--primary); color: var(--primary); }
.blog-cats a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.blog-search { max-width: 460px; margin: 1.25rem auto 0; }

.blog-grid { padding: 2.5rem 0 4rem; }
.post-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(35, 35, 59, .10); color: var(--ink); }
.post-card .cover { aspect-ratio: 1200 / 630; background: linear-gradient(135deg, #2d2560, #5b3fc4); overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .cover.ph { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-size: 2.4rem; }
.post-card .body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card .cat { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.post-card h2, .post-card h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.35; margin: 0; }
.post-card p { color: var(--ink-soft); font-size: .92rem; line-height: 1.55; margin: 0; flex: 1; }
.post-card .meta { color: var(--ink-soft); font-size: .8rem; }
.post-card.lead-card { flex-direction: row; }
.post-card.lead-card .cover { flex: 0 0 55%; aspect-ratio: auto; min-height: 300px; }
.post-card.lead-card h2 { font-size: 1.6rem; }
@media (max-width: 767.98px) { .post-card.lead-card { flex-direction: column; } .post-card.lead-card .cover { aspect-ratio: 1200/630; min-height: 0; } .post-card.lead-card h2 { font-size: 1.25rem; } .blog-hero h1 { font-size: 2rem; } }

/* Article */
.article-head { padding: 3rem 0 1.5rem; }
.article-head .crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.article-head .crumbs a { color: var(--ink-soft); text-decoration: none; }
.article-head .crumbs a:hover { color: var(--primary); }
.article-head h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.article-head .meta { color: var(--ink-soft); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1rem; }
.article-cover { border-radius: 20px; overflow: hidden; margin-bottom: 2rem; box-shadow: 0 18px 40px rgba(35,35,59,.12); }
.article-cover img { width: 100%; height: auto; display: block; }
@media (max-width: 767.98px) { .article-head h1 { font-size: 1.8rem; } .article-head { padding-top: 2rem; } }

.article-body { font-size: 1.08rem; line-height: 1.8; color: var(--ink); max-width: 740px; }
.article-body > * + * { margin-top: 1.1rem; }
.article-body h2 { font-size: 1.6rem; font-weight: 800; margin-top: 2.6rem; letter-spacing: -.01em; scroll-margin-top: 90px; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.8rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li + li { margin-top: .35rem; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body sup a, .article-body sup { font-size: .7em; color: var(--ink-soft); text-decoration: none; }
.article-body blockquote { border-left: 4px solid var(--primary); background: var(--light); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.article-body th { background: var(--light); font-weight: 700; }
.article-body h2#key-takeaways + ul { background: var(--light); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1rem 1rem 2.4rem; }

.article-toc { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.2rem; font-size: .9rem; }
.article-toc h6 { font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .6rem; }
.article-toc ol { padding-left: 1.1rem; margin: 0; }
.article-toc li + li { margin-top: .4rem; }
.article-toc a { color: var(--ink); text-decoration: none; }
.article-toc a:hover { color: var(--primary); }
.article-toc-mobile { border: 1px solid var(--border); border-radius: 14px; padding: .8rem 1rem; background: var(--surface); margin-bottom: 1.5rem; }
.article-toc-mobile summary { font-weight: 700; cursor: pointer; }

.note-box { border-radius: 14px; padding: 1rem 1.2rem; font-size: .95rem; line-height: 1.6; }
.note-box.vet { background: #FFF7ED; border: 1px solid #FED7AA; color: #7C2D12; }
.cta-box { margin-top: 2.5rem; border-radius: 20px; padding: 1.8rem; color: #fff; background: radial-gradient(500px 200px at 90% 0%, rgba(255,143,177,.45), transparent 60%), linear-gradient(135deg, #2d2560, #4b36b0); }
.cta-box h3 { font-weight: 800; font-size: 1.35rem; color: #fff; }
.cta-box p { color: #dcd6ff; margin: .4rem 0 1.1rem; }
.sources { margin-top: 2.5rem; font-size: .9rem; color: var(--ink-soft); }
.sources h2 { font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.sources ol { padding-left: 1.3rem; }
.sources a { color: var(--ink-soft); word-break: break-word; }
.share-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.share-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; background: var(--surface); }
.share-row a:hover { border-color: var(--primary); color: var(--primary); }
.related { padding: 3rem 0 4rem; background: var(--light); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .note-box.vet { background: #2a1d12; border-color: #5b3a1d; color: #fed7aa; }
}
