/* Blog posts (Bricks template "Single Post", bricks/build_single_post.py). Loaded only on posts (inc/blog.php),
   after site.min.css: same tokens (--ink, --accent, --line, --soft…), same fonts. Presentation blocks su-* come from the
   seo-ultra-blog kit (mu-plugin) and take the site accent. */
.post-hero{padding-bottom:clamp(32px,4vw,56px)}
.post-wrap{max-width:var(--wrap)}
.post-wrap h1{font-size:clamp(34px,4.6vw,54px);line-height:1.1;margin:18px 0 0}
.post-meta{margin-top:20px;font-size:15px;color:var(--muted)}
.post-meta a{color:var(--ink2);font-weight:500;text-decoration:none;border-bottom:1px solid var(--line)}
.post-meta a:hover{border-bottom-color:var(--ink)}
.post-cover{margin:34px 0 0}
.post-cover img{width:100%;height:auto;border-radius:var(--radius)}

.post-body{margin-top:38px;font-size:18px;line-height:1.7;color:var(--ink2);overflow-wrap:break-word}
.post-body>:first-child{margin-top:0}
.post-body p{margin:0 0 20px}
.post-body h2{font-size:clamp(26px,3vw,34px);line-height:1.18;color:var(--ink);margin:52px 0 16px}
.post-body h3{font-size:22px;color:var(--ink);margin:36px 0 12px}
.post-body h4{font:600 18px/1.3 Inter,"Inter Fallback",sans-serif;color:var(--ink);margin:28px 0 10px}
.post-body a{color:var(--accent-deep);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.post-body a:hover{color:var(--accent)}
.post-body strong{color:var(--ink);font-weight:600}
.post-body ul,.post-body ol{margin:0 0 20px;padding-left:1.3em}
.post-body ul{list-style:disc}
.post-body ol{list-style:decimal}
.post-body li{display:list-item;margin:0 0 8px}
.post-body li>ul,.post-body li>ol{margin:8px 0 0}
.post-body blockquote{margin:28px 0;padding:4px 0 4px 20px;border-left:3px solid var(--accent);color:var(--ink)}
.post-body blockquote p:last-child{margin-bottom:0}
.post-body figure{margin:32px 0}
.post-body img{height:auto;border-radius:14px}
.post-body figure img{width:100%}
.post-body figcaption{margin-top:10px;font-size:14px;color:var(--muted);text-align:center}
.post-body hr{border:0;border-top:1px solid var(--line);margin:40px 0}
.post-body code{font:15px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--soft);border-radius:6px;padding:2px 6px}
.post-body pre{background:var(--soft);border-radius:14px;padding:18px 20px;overflow-x:auto;margin:0 0 20px}
.post-body pre code{background:none;padding:0}
.post-body table{font-size:16px}
.post-body .su-toc a{color:var(--ink2)}
.post-body .su-steps{list-style:none;padding-left:0}
.post-body .su-steps>li{display:block}
@media(max-width:600px){.post-body{font-size:17px}}

/* Post eyebrow links back to the list */
.post-wrap .eyebrow a{color:inherit;text-decoration:none}

/* Blog index (/blog/): Bricks page (bricks/build_blog_page.py) + shortcode [khaedits_posts] (inc/blog.php).
   Newest post = wide lead card, the rest in a 3-column grid. */
.blog-hero{padding-bottom:clamp(28px,3.5vw,44px)}
.blog-hero h1{margin-top:18px;max-width:820px;font-size:clamp(36px,5vw,58px)}
.blog-list{padding:0 0 clamp(56px,7vw,96px)}
.post-grid{display:grid;gap:28px;grid-template-columns:repeat(3,minmax(0,1fr))}
.post-card{position:relative;display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .25s,box-shadow .25s}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.post-card-img{background:var(--soft)}
.post-card-img img{width:100%;height:100%;aspect-ratio:16/9;object-fit:cover}
.post-card-body{flex:1;display:flex;flex-direction:column;gap:12px;padding:24px 26px 26px}
.post-card time{font-size:14px;color:var(--muted)}
.post-card h2{font-size:22px;line-height:1.25;letter-spacing:-.015em}
.post-card h2 a{text-decoration:none}
.post-card h2 a::after{content:"";position:absolute;inset:0}
.post-card:hover h2 a{color:var(--accent-deep)}
.post-card p{font-size:16px;color:var(--ink2)}
.post-card .more{margin-top:auto;padding-top:6px;font-size:15px;font-weight:600;color:var(--accent)}
.post-card.is-lead{grid-column:1/-1;flex-direction:row}
.post-card.is-lead .post-card-img{flex:0 0 56%}
.post-card.is-lead .post-card-body{justify-content:center;gap:16px;padding:clamp(28px,3.4vw,48px)}
.post-card.is-lead h2{font-size:clamp(26px,2.6vw,34px);line-height:1.15;letter-spacing:-.025em}
.post-card.is-lead p{font-size:17px}
.post-card.is-lead .more{margin-top:0}
@media(max-width:960px){.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.post-card.is-lead{flex-direction:column}.post-card.is-lead .post-card-img{flex:none}.post-card.is-lead .post-card-body{padding:24px 26px 26px}}
@media(max-width:640px){.post-grid{grid-template-columns:1fr;gap:20px}}
