/* Blog list and article pages (generated by tools/build_blog.py).
   Builds on site.css: same tokens, header, footer, buttons and cards. */

/* ---------- list page ---------- */
.blog-hero .wrap{max-width:820px;margin-inline:auto;text-align:center;}
.blog-hero .lede{margin:18px auto 0;max-width:640px;}
.blog-list{padding-bottom:clamp(40px,6vw,72px);}

.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:22px;}
.post-card{display:flex;}
.post-card__link{display:flex;flex-direction:column;width:100%;background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;transition:transform .22s,box-shadow .22s,border-color .22s;}
.post-card__link:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#CFDDF3;}
.post-card__link:focus-visible{outline:3px solid var(--yellow);outline-offset:3px;}
.post-card__media{aspect-ratio:16/10;overflow:hidden;background:var(--tint);}
.post-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .4s;}
.post-card__link:hover .post-card__media img{transform:scale(1.03);}
.post-card__body{display:flex;flex-direction:column;gap:8px;padding:18px 20px 22px;flex:1;}
.post-card__date{font-size:.8125rem;font-weight:600;color:var(--muted);}
.post-card__title{font-size:1.125rem;line-height:1.3;letter-spacing:-.015em;}
.post-card__body p{font-size:.9rem;line-height:1.6;}
.post-card__go{margin-top:auto;padding-top:6px;font-size:.875rem;font-weight:600;color:var(--blue);}
@media (prefers-reduced-motion:reduce){.post-card__link,.post-card__media img{transition:none;}}

.post-empty{text-align:center;max-width:560px;margin:0 auto;padding:clamp(32px,5vw,56px) 24px;border:1px dashed #CFDDF3;border-radius:var(--radius-lg);background:var(--bg-alt);}
.post-empty h2{font-size:1.375rem;margin-bottom:10px;}
.post-empty__actions{margin-top:20px;}

/* ---------- article page ---------- */
.post-hero{padding-bottom:clamp(20px,3vw,32px);}
.post-hero .wrap{max-width:900px;}
.post-hero h1{font-size:clamp(1.9rem,4.2vw,2.875rem);}
.post-hero .lede{margin-top:16px;}
.post-meta{font-size:.875rem;font-weight:600;color:var(--blue);margin-bottom:14px;}
.post-hero__media{margin:clamp(24px,4vw,36px) 0 0;}
.post-hero__media img{width:100%;height:auto;max-height:560px;object-fit:cover;border-radius:var(--radius-xl);box-shadow:var(--shadow-lg);}
.post-wrap{padding-bottom:clamp(40px,6vw,72px);}
.post-wrap .svc-body{max-width:none;}

.post-body{font-size:1.0625rem;color:var(--body);min-width:0;}
.post-body h2{margin-top:44px;}
.post-body>h2:first-child{margin-top:0;}
.post-body h3{font-size:1.1875rem;margin:30px 0 10px;}
.post-body h4{font-family:var(--sans);font-size:1.0625rem;font-weight:700;color:var(--ink);margin:24px 0 8px;}
.post-body p,.post-body ul,.post-body ol,.post-body blockquote,.post-body figure,.post-body .post-table,.post-body pre{margin:0 0 18px;}
.post-body p+p{margin-top:0;}
.post-body a:not(.btn){color:var(--blue);font-weight:500;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;}
.post-body a:not(.btn):hover{color:var(--blue-dark);text-decoration-thickness:2px;}
.post-body strong{color:var(--ink);}
.post-body ul,.post-body ol{padding-left:1.4em;}
.post-body li{margin:6px 0;}
.post-body li::marker{color:var(--blue);font-weight:700;}
.post-body li>ul,.post-body li>ol{margin:6px 0 0;}
.post-body blockquote{border-left:4px solid var(--yellow);background:var(--yellow-soft);border-radius:0 var(--radius) var(--radius) 0;padding:16px 20px;color:var(--ink);}
.post-body blockquote>:last-child{margin-bottom:0;}
.post-body figure img,.post-body p img{width:100%;height:auto;border-radius:var(--radius-lg);}
.post-body hr{border:0;border-top:1px solid var(--line);margin:36px 0;}
.post-body code{font-size:.9em;background:var(--tint);padding:2px 6px;border-radius:6px;}
.post-body pre{overflow-x:auto;background:var(--bg-alt);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;}
.post-body pre code{background:none;padding:0;}
.post-table{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);}
.post-table table{border-collapse:collapse;width:100%;font-size:.9375rem;}
.post-table th,.post-table td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top;}
.post-table th{background:var(--tint);color:var(--ink);font-weight:700;}
.post-table tr:last-child td{border-bottom:0;}

.post-inline-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px;padding-top:28px;border-top:1px solid var(--line);}

.post-services{padding-block:clamp(40px,6vw,64px);}
.post-more{padding-top:clamp(40px,6vw,64px);}
.blog-cta-wrap{padding-top:clamp(32px,5vw,56px);}
.post-services+.blog-cta-wrap{padding-top:clamp(40px,6vw,64px);}

/* CTA band buttons */
.cta__actions{display:flex;flex-direction:column;gap:12px;}
.btn--wa{background:#fff;color:var(--blue-deep);}
.btn--wa .icon{fill:#25D366;}
.btn--wa:hover{background:var(--tint);}

@media (max-width:640px){
  .post-body{font-size:1rem;}
  .post-inline-cta .btn{width:100%;}
  .cta__actions .btn{width:100%;}
  .post-hero__media img{border-radius:var(--radius-lg);}
}
