/* The blog: the list (blog.php) and one article (blog_post.php). The body of an article is the editor's HTML (inc/blog.php cleans it), styled under .blog-body. */
.blog-page { background: var(--page-bg, #f5f5f5); padding: 96px 16px 56px; }
.blog-list { max-width: 1120px; margin: 0 auto; }
.blog-list-head { margin-bottom: 18px; }
.blog-list-head h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.5; }
.blog-list-head p { color: #6b7280; }
.blog-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 6px; padding-inline-start: 14px; margin-bottom: 14px; box-shadow: inset 0 0 0 1px #e5e7eb; }
.blog-search:focus-within { box-shadow: inset 0 0 0 2px #00ab6c; }
.blog-search i { color: #9ca3af; }
.blog-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 6px 0; font: inherit; }
.blog-search button { background: #00ab6c; color: #fff; border-radius: 10px; padding: 6px 18px; font-weight: 500; }
.blog-chips, .blog-pages { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.blog-pages { justify-content: center; margin: 28px 0 0; }
.blog-chips a, .blog-pages a { background: #fff; border-radius: 999px; padding: 4px 14px; font-size: .875rem; box-shadow: inset 0 0 0 1px #e5e7eb; }
.blog-chips a.is-active, .blog-pages a.is-active { background: #00ab6c; color: #fff; box-shadow: none; }
.blog-chips small { font-size: .75rem; color: #9ca3af; }
.blog-chips a.is-active small { color: rgba(255, 255, 255, .8); }
.blog-empty { background: #fff; border-radius: 16px; padding: 28px; text-align: center; color: #6b7280; }
.blog-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.blog-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .25); }
.blog-card-cover { display: block; aspect-ratio: 16 / 10; background: #eef2f7; overflow: hidden; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-cover img { transform: scale(1.05); }
.blog-card-nocover { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 2.2rem; color: #b6c2d1; }
.blog-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px; }
.blog-card-category { align-self: flex-start; font-size: .75rem; font-weight: 600; color: #00ab6c; background: #e6f7f0; border-radius: 999px; padding: 2px 10px; }
.blog-card h2 { font-size: 1.05rem; font-weight: 700; line-height: 1.7; }
.blog-card h2 a:hover { color: #00ab6c; }
.blog-card p { color: #4b5563; font-size: .9rem; line-height: 1.9; }
.blog-card-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; font-size: .75rem; color: #9ca3af; }
.blog-post { max-width: 800px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 28px; overflow-wrap: anywhere; }
.post-layout > .blog-post { max-width: none; } /* as wide as the column (post-layout.css) */
.blog-post h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.6; margin-bottom: 12px; }
.blog-post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: #6b7280; margin-bottom: 18px; }
.blog-post-cover { display: block; width: 100%; max-height: 560px; object-fit: cover; border-radius: 14px; margin-bottom: 22px; background: #eef2f7; }
.blog-body { line-height: 2.1; font-size: 1.02rem; }
.blog-body > :first-child { margin-top: 0; }
.blog-body p { margin: 0 0 14px; }
.blog-body h2 { font-size: 1.45rem; font-weight: 800; margin: 30px 0 10px; line-height: 1.7; }
.blog-body h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 8px; line-height: 1.7; }
.blog-body h4, .blog-body h5, .blog-body h6 { font-weight: 700; margin: 20px 0 6px; }
.blog-body ul { list-style: disc; padding-inline-start: 24px; margin: 0 0 14px; }
.blog-body ol { list-style: decimal; padding-inline-start: 24px; margin: 0 0 14px; }
.blog-body li { margin-bottom: 4px; }
.blog-body a { color: #00875a; text-decoration: underline; text-underline-offset: 3px; }
.blog-body img { max-width: 100%; height: auto; border-radius: 10px; }
.blog-body figure { margin: 0 0 18px; text-align: center; }
.blog-body figcaption { font-size: .85rem; color: #6b7280; margin-top: 6px; }
.blog-body blockquote { margin: 0 0 16px; padding: 10px 16px; border-inline-start: 4px solid #00ab6c; background: #f0fdf7; border-radius: 0 10px 10px 0; color: #374151; }
.blog-body pre { direction: ltr; text-align: left; overflow-x: auto; background: #111827; color: #e5e7eb; border-radius: 10px; padding: 14px; margin: 0 0 16px; font-size: .88rem; line-height: 1.7; }
.blog-body code { background: #f3f4f6; border-radius: 4px; padding: 1px 5px; font-size: .9em; }
.blog-body pre code { background: transparent; padding: 0; }
.blog-body hr { border: 0; border-top: 1px solid #e5e7eb; margin: 24px 0; }
.blog-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; display: block; overflow-x: auto; }
.blog-body th, .blog-body td { border: 1px solid #e5e7eb; padding: 8px 12px; vertical-align: top; }
.blog-body th { background: #f9fafb; font-weight: 700; }
@media (max-width: 640px) {
    .blog-page { padding: 84px 10px 40px; }
    .blog-post { padding: 18px; }
    .blog-post h1 { font-size: 1.5rem; }
}
