/* ============================================================
   BLOG ARTICLES (v3)
   Reuses v3.css tokens + home.css section grammar + solutions.css
   for the FAQ accordion and cross-link pills. Only what long-form
   prose needs — and doesn't already exist — lives here.
   ============================================================ */

/* ---------- hero ---------- */
.blog-hero{padding:104px 0 0}
.blog-breadcrumb{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.82rem;font-weight:600;color:var(--muted);margin-bottom:26px}
.blog-breadcrumb a{color:var(--muted);transition:color .2s}
.blog-breadcrumb a:hover{color:var(--primary)}
.blog-breadcrumb span[aria-hidden]{color:var(--muted-light)}
.blog-breadcrumb span[aria-current]{color:var(--primary)}

.blog-hero-copy{position:relative;z-index:1;max-width:820px}
/* .h-display is tuned for 3-6 word marketing headlines; an article title is
   longer, so pull the size down and open the line-height back up. */
.blog-title{font-size:clamp(1.9rem,4.4vw,3.1rem);line-height:1.12;letter-spacing:-.03em;margin:22px 0 0}
.blog-hero-copy .lead{margin-top:20px;max-width:660px}

.blog-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:26px;font-size:.9rem;color:var(--muted);font-weight:500}
.blog-meta strong{color:var(--foreground);font-weight:700}
.blog-meta span[aria-hidden]{color:var(--muted-light)}
/* the byline wraps on narrow phones and strands a separator at the end of a
   line — drop the dots and let the gap do the separating instead */
@media(max-width:430px){
  .blog-meta{gap:4px 14px}
  .blog-meta span[aria-hidden]{display:none}
}

.blog-cover{position:relative;z-index:1;margin:44px 0 0;padding:0}
.blog-cover img{display:block;width:100%;max-width:940px;height:auto;margin-inline:auto;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-lg)}

/* ---------- key takeaways ---------- */
.blog-takeaways{max-width:820px;margin:0 auto;background:#fff;border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:var(--radius);padding:30px 32px;box-shadow:var(--shadow-sm)}
.blog-takeaways-h{font-size:.78rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--primary);margin:0 0 18px;line-height:1.2}
.blog-takeaways ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
.blog-takeaways li{position:relative;padding-left:26px;font-size:1rem;line-height:1.62;color:var(--foreground)}
.blog-takeaways li::before{content:"";position:absolute;left:0;top:.55em;width:9px;height:9px;border-radius:50%;background:var(--primary-light);box-shadow:0 0 0 4px rgba(63,168,122,.16)}
@media(max-width:640px){
  .blog-takeaways{padding:22px 20px}
  .blog-takeaways li{font-size:.94rem;padding-left:22px}
}

/* ---------- article body ----------
   v3.css resets h1-h4 margins to 0 and strips list markers globally for the
   landing page. Prose needs both back — scoped so the reset still holds
   everywhere else. */
.blog-body{max-width:720px;margin:0 auto;font-size:1.06rem;line-height:1.75;color:var(--foreground)}
.blog-body h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:800;letter-spacing:-.025em;line-height:1.2;margin:60px 0 18px;scroll-margin-top:96px}
.blog-body h2:first-child{margin-top:0}
.blog-body h3{font-size:clamp(1.14rem,2vw,1.34rem);font-weight:700;letter-spacing:-.02em;line-height:1.3;margin:40px 0 12px;scroll-margin-top:96px}
.blog-body p{margin:0 0 22px}
.blog-body ul{list-style:disc;padding-left:24px;margin:0 0 24px}
.blog-body ol{list-style:decimal;padding-left:24px;margin:0 0 24px}
.blog-body li{margin-bottom:11px;padding-left:4px}
.blog-body li::marker{color:var(--primary-light)}
.blog-body ol li::marker{color:var(--primary);font-weight:700}
.blog-body li:last-child{margin-bottom:0}
.blog-body strong{font-weight:700;color:var(--foreground)}
.blog-body a{color:var(--primary);font-weight:600;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;transition:color .2s}
.blog-body a:hover{color:var(--primary-light)}

/* the Impressions -> Conversions line, given its own beat */
.blog-funnel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:18px 22px;text-align:center;font-size:1.02rem;letter-spacing:.01em;color:var(--primary);margin:0 0 26px}
.blog-funnel strong{color:var(--primary);font-weight:800}
@media(max-width:640px){
  .blog-body{font-size:1rem;line-height:1.72}
  .blog-body h2{margin:44px 0 14px}
  .blog-body h3{margin:30px 0 10px}
  .blog-funnel{font-size:.88rem;padding:14px 14px}
}

/* ---------- author ---------- */
.blog-author{max-width:720px;margin:56px auto 0;display:flex;gap:18px;align-items:flex-start;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px 26px}
.blog-author-ic{width:46px;height:46px;flex:none;border-radius:14px;background:var(--primary-08);color:var(--primary);display:flex;align-items:center;justify-content:center;overflow:hidden}
.blog-author-ic img{width:100%;height:100%;object-fit:cover}
.blog-author-name{font-weight:800;font-size:1rem;color:var(--foreground)}
.blog-author-role{margin-top:2px;font-weight:600;font-size:.9rem;color:var(--muted)}
.blog-author-bio{margin:8px 0 0;font-size:.92rem;line-height:1.65;color:var(--muted)}
@media(max-width:640px){
  .blog-author{padding:20px;gap:14px}
  .blog-author-bio{font-size:.88rem}
}

/* ---------- index (blog landing page) ---------- */
.blog-index-hero{padding:118px 0 56px;text-align:center}
.blog-index-hero .section-head{position:relative;z-index:1}
.blog-index-title{margin:22px 0 0;font-size:clamp(2.1rem,5vw,3.6rem)}
.blog-index-hero .lead{margin:20px auto 0;max-width:620px}

.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
@media(max-width:980px){.blog-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:660px){.blog-grid{grid-template-columns:1fr;gap:20px}}

.blog-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);transition:transform .25s var(--ease),box-shadow .25s var(--ease),border-color .2s}
.blog-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--primary-10)}
.blog-card-link{display:flex;flex-direction:column;height:100%;color:inherit}
.blog-card-cover{background:var(--surface);border-bottom:1px solid var(--border);aspect-ratio:16/9;overflow:hidden}
.blog-card-cover img{display:block;width:100%;height:100%;object-fit:cover}
.blog-card-body{display:flex;flex-direction:column;flex:1;padding:22px 22px 24px}
.blog-card-cat{font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--primary)}
.blog-card-title{font-size:1.12rem;font-weight:800;letter-spacing:-.02em;line-height:1.3;margin:10px 0 0}
.blog-card-excerpt{font-size:.9rem;line-height:1.6;color:var(--muted);margin:10px 0 0}
.blog-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;font-size:.8rem;color:var(--muted-light);font-weight:500}
.blog-card-cta{margin-top:18px;font-size:.9rem}
.blog-card:hover .blog-card-cta svg{transform:translateX(3px)}
.blog-card-cta svg{transition:transform .25s var(--ease)}
/* push the CTA to the bottom so cards in a row line up regardless of excerpt length */
.blog-card-body > .blog-card-meta{margin-top:auto;padding-top:16px}

/* featured (newest) post — spans the grid and lays out horizontally */
.blog-card--featured{grid-column:1/-1}
.blog-card--featured .blog-card-link{flex-direction:row;align-items:stretch}
/* keep the 1200x630 ratio — the cover is a designed graphic, so letting it fill
   an arbitrary box (object-fit:cover) crops the wordmark off the edges */
.blog-card--featured .blog-card-cover{flex:0 0 52%;border-bottom:0;border-right:1px solid var(--border);aspect-ratio:16/9;align-self:center}
.blog-card--featured .blog-card-body{justify-content:center;padding:38px 40px}
.blog-card--featured .blog-card-title{font-size:clamp(1.3rem,2.2vw,1.75rem);margin-top:12px}
.blog-card--featured .blog-card-excerpt{font-size:1rem;margin-top:14px;max-width:52ch}
.blog-card--featured .blog-card-meta{margin-top:20px;padding-top:0}
@media(max-width:820px){
  .blog-card--featured .blog-card-link{flex-direction:column}
  .blog-card--featured .blog-card-cover{flex:none;border-right:0;border-bottom:1px solid var(--border);aspect-ratio:16/9}
  .blog-card--featured .blog-card-body{padding:24px 22px 26px}
}

/* ---------- misc ---------- */
/* the blog reuses .sol-faq / .sol-crosslinks from solutions.css as-is */
.blog .sol-faq{max-width:820px}
@media(max-width:900px){
  .blog-hero{padding:88px 0 0}
  .blog-index-hero{padding:96px 0 40px}
  .blog-cover{margin-top:34px}
}
