/* Blog layout on top of the Astro site's /assets/css/site.css (same tokens). */
html,body{overflow-x:clip}
.blog-head,.post-head{background:var(--pale);border-bottom:1px solid var(--line);padding:clamp(36px,4vw,64px) 0 clamp(36px,3.6vw,56px)}
.blog-head h1,.post-head h1{font-size:clamp(36px,3.4vw,58px);font-weight:700;line-height:1.06;letter-spacing:-.01em}
.post-head h1{max-width:none}
.blog-head .ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.post-meta{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:20px;font-size:15px;color:var(--steel)}
.blog-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:30px}
.blog-chips a{border:1px solid var(--line);background:#fff;border-radius:3px;padding:7px 12px;font-size:14.5px;color:var(--ink)}
.blog-chips a:hover{border-color:var(--deep);color:var(--deep)}
.blog-chips a[aria-current]{background:var(--deep);border-color:var(--deep);color:#fff}
.blog-list{row-gap:44px}
.pager{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:56px}
.pager .page-numbers{min-width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--line);background:#fff;border-radius:3px;font-size:15px;color:var(--ink)}
.pager .page-numbers.current{background:var(--deep);border-color:var(--deep);color:#fff}
.pager a.page-numbers:hover{border-color:var(--deep);color:var(--deep)}
.pager .dots{border:0;background:none}

.post-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:clamp(36px,4vw,72px);align-items:start;padding-top:clamp(36px,4vw,64px);padding-bottom:clamp(36px,4vw,64px)}
.post-side{position:sticky;top:calc(var(--hdr) + 24px);display:grid;gap:24px}
.post-toc{border-left:2px solid var(--line);padding-left:18px}
.post-toc b{display:block;font-size:14px;font-weight:600;color:var(--steel);margin-bottom:10px}
.post-toc ol{list-style:none;display:grid;gap:8px;font-size:15px;line-height:1.4;max-height:50vh;overflow:auto}
.post-toc a{color:var(--ink)}
.post-toc a:hover{color:var(--deep)}
.post-quote{background:var(--pale);border:1px solid var(--line);border-radius:4px;padding:22px}
.post-quote b{font-family:"Barlow Semi Condensed","Barlow",sans-serif;font-size:22px;color:var(--ink)}
.post-quote p{margin:8px 0 18px;font-size:15px;color:var(--steel)}
.post-quote .btn{width:100%;justify-content:center}
.post-quote .more{display:block;margin-top:12px;font-size:15px;color:var(--deep);text-align:center}

/* post body: classic HTML and Elementor output, read in the site's type */
.post-body{font-size:18px;line-height:1.7;color:var(--text)}
.post-body,.post-body .elementor-widget-text-editor,.post-body .elementor-heading-title,.post-body .elementor-widget-container{font-family:"Barlow",system-ui,sans-serif}
.post-body h2,.post-body h3,.post-body h4,.post-body .elementor-heading-title{font-family:"Barlow Semi Condensed","Barlow",sans-serif!important;color:var(--ink)!important;letter-spacing:-.005em;line-height:1.15}
.post-body h2,.post-body h2.elementor-heading-title{font-size:clamp(26px,2.1vw,34px)!important;font-weight:600!important;margin:1.6em 0 .55em;scroll-margin-top:calc(var(--hdr) + 20px)}
.post-body h3,.post-body h3.elementor-heading-title{font-size:clamp(21px,1.6vw,25px)!important;font-weight:600!important;margin:1.3em 0 .45em}
.post-body p{margin:0 0 1.05em}
.post-body ul,.post-body ol{margin:0 0 1.1em 1.3em}
.post-body li{margin:.3em 0}
.post-body a{color:var(--deep);text-decoration:underline;text-underline-offset:3px}
.post-body img{max-width:100%;height:auto;border-radius:3px}
.post-body table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:16px}
.post-body th,.post-body td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
.post-body th{background:var(--pale);font-weight:600}
.post-body blockquote{border-left:3px solid var(--deep);padding-left:18px;color:var(--steel)}
.post-body .elementor-section.elementor-section-boxed>.elementor-container,.post-body .e-con-boxed>.e-con-inner{max-width:100%}
.post-body .e-con{--padding-left:0;--padding-right:0}
.post-body>:first-child h2:first-child{margin-top:0}
.post-body .elementor-element,.post-body .elementor-widget-container{max-width:100%}
.post-body iframe,.post-body video,.post-body figure,.post-body .wp-caption{max-width:100%}

@media (max-width:980px){
  .post-grid{grid-template-columns:minmax(0,1fr)}
  .post-side{position:static}
  .post-toc{display:none}
}
@media (max-width:900px){.blog-grid.blog-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){.post-body table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}}
@media (max-width:600px){.blog-grid.blog-list{grid-template-columns:1fr}.post-body{font-size:17px}}

/* Elementor widgets inside old posts, restyled to the site */
.post-body .elementor-widget-table-of-contents .elementor-toc__header{background:var(--pale);border-bottom:1px solid var(--line);padding:14px 18px}
.post-body .elementor-widget-table-of-contents .elementor-toc__header-title{font-family:"Barlow Semi Condensed","Barlow",sans-serif;font-size:19px;font-weight:600;color:var(--ink)}
.post-body .elementor-widget-table-of-contents .elementor-widget-container{border:1px solid var(--line)!important;border-radius:4px;overflow:hidden;background:#fff}
.post-body .elementor-toc__body{padding:14px 18px}
.post-body .elementor-toc__list-item-text,.post-body .elementor-toc__list-item-text:hover{color:var(--ink)!important;text-decoration:none;font-size:15.5px}
.post-body .elementor-toc__list-item-text:hover{color:var(--deep)!important}
.post-body .elementor-toc__list-item::before,.post-body .elementor-toc__list-item{color:var(--steel)}
.post-body .elementor-button{background:var(--deep)!important;color:#fff!important;border-radius:3px!important;font-family:"Barlow",sans-serif;font-weight:600;text-decoration:none}
.post-body .elementor-button:hover{background:var(--ink)!important}
.blog-head .lede,.post-head .lede{margin-top:16px}
.post-body iframe{width:100%;aspect-ratio:16/9;height:auto}

/* listing head with the newest post as cover */
.blog-head.has-lead .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(32px,4vw,72px);align-items:center}
.bh-lead{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line)}
.bh-img{aspect-ratio:16/9;overflow:hidden;background:var(--pale)}
.bh-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.bh-lead:hover .bh-img img{transform:scale(1.03)}
.bh-lbl{margin:18px 22px 0;font-size:14px;font-weight:600;color:var(--ice-deep)}
.bh-lead b{margin:6px 22px 0;font-family:"Barlow Semi Condensed","Barlow",sans-serif;font-size:clamp(24px,2vw,32px);line-height:1.15;color:var(--ink)}
.bh-lead:hover b{color:var(--deep)}
.bh-ex{margin:10px 22px 22px;color:var(--steel);font-size:15.5px}
@media (max-width:980px){.blog-head.has-lead .wrap{grid-template-columns:1fr}}
/* head type matches the static pages' .phead (kicker with the cyan rule, same h1 scale) */
.blog-head .kick,.post-head .kick{display:flex;align-items:center;gap:14px;font-size:17px;font-weight:500;color:var(--deep);margin-bottom:22px}
.blog-head .kick::before,.post-head .kick::before{content:"";width:40px;height:3px;background:var(--ice)}
.blog-head h1{font-size:clamp(38px,3.8vw,66px);line-height:1.04}
.blog-head .lede{margin-top:22px;font-size:clamp(18px,1.35vw,21px);line-height:1.5;color:#33475C}
/* breadcrumb pinned at --crumb-top like the static heads (site.css) */
.blog-head,.post-head{padding-top:0}
.blog-head>.wrap,.post-head>.wrap{padding-top:var(--crumb-gap)}
/* post titles make long, wrapping crumbs: keep them in flow, same top offset */
.post-head>.wrap{padding-top:var(--crumb-top)}
.post-head .crumbs{position:static;margin-bottom:clamp(24px,2.6vw,40px)}
/* text column starts under the breadcrumb, not centred against the lead post card */
.blog-head.has-lead .wrap{align-items:start}
@media (max-width:720px){.post-head .crumbs{margin-bottom:20px}}
