/* ============================================================
   B4B GLOBAL EDGE · EDGE Insights (v2)
   Layers on top of edge.css + homepage-v2.css (.r/.in reveals,
   v2-label). Reuses edge.css's existing blog components
   (.blog-filter, .blog-grid, .post-card, .post-hero, .article,
   .post-foot) wholesale rather than replacing them — per the
   client's own feedback, "the basic page structure is okay", it
   just needed to read more like an editorial magazine page.
   Loaded by blog-v2.html and every blog-*-v2.html post.
   ============================================================ */

/* ============================================================
   1 · HUB · one larger feature story above the regular grid, so
   the page doesn't read as a uniform wall of identical tiles
   ============================================================ */
.blog-feature{
  display:grid; grid-template-columns:1.15fr 1fr; gap:clamp(2rem,4vw,3.5rem);
  align-items:center; margin-top:2.2rem;
  padding-bottom:clamp(2.5rem,5vw,3.5rem); border-bottom:1px solid var(--line-d);
}
.blog-feature .thumb{border-radius:14px; overflow:hidden; aspect-ratio:4/3}
.blog-feature .thumb img{width:100%; height:100%; object-fit:cover; display:block}
.blog-feature .post-meta{justify-content:flex-start; gap:1rem}
.blog-feature h2{font-size:var(--fs-h2); margin:1rem 0 0; max-width:16ch}
.blog-feature p{color:#FFFFFF; margin-top:1rem; max-width:48ch}
.blog-feature .post-more{margin-top:1.4rem}
.blog-feature .byline{margin-top:1.6rem}

@media (max-width:800px){
  .blog-feature{grid-template-columns:1fr}
}

/* ---------- author byline (portrait, name, role) reused on every
   card and post: a real photo where one exists (Sunny Bird), a
   plain wordmark for pieces credited to the team generally, since
   no other individual author photos exist yet ---------- */
.byline{display:flex; align-items:center; gap:.65rem}
.byline .avatar{
  width:34px; height:34px; border-radius:50%; object-fit:cover; flex:none;
  background:var(--forest-2);
}
.byline .avatar.is-mark{
  display:flex; align-items:center; justify-content:center;
  background:var(--teal); color:#fff; font-family:var(--mono); font-weight:var(--w-medium);
  font-size:.6rem; letter-spacing:.02em;
}
.byline .who{display:flex; flex-direction:column; line-height:1.3}
.byline .who b{font-family:var(--body); font-weight:var(--w-medium); font-size:.85rem; color:var(--paper)}
.byline .who span{font-family:var(--mono); font-size:.68rem; letter-spacing:.04em; text-transform:uppercase; color:var(--mut-d)}
.post-card .byline{margin-top:.2rem}

/* ============================================================
   2 · POST · a fuller byline (with portrait) under the hero, an
   author card at the foot, related reading and a CTA chosen per
   post rather than the same one on every article
   ============================================================ */
.post-hero .byline{justify-content:center; margin-top:1.4rem}
.post-hero .byline .who{text-align:left}

.post-author-card{
  max-width:38rem; margin:clamp(3rem,5vw,4.5rem) auto 0; padding:1.6rem 1.5rem;
  border-top:1px solid var(--line-d); border-bottom:1px solid var(--line-d);
  display:flex; align-items:center; gap:1rem;
}
.post-author-card .avatar{width:clamp(6rem,10vw,7.5rem); height:clamp(6rem,10vw,7.5rem); border-radius:50%; object-fit:cover; object-position:50% 20%; flex:none; background:var(--forest-2)}
.post-author-card .avatar.is-mark{
  display:flex; align-items:center; justify-content:center;
  background:var(--teal); color:#fff; font-family:var(--mono); font-weight:var(--w-medium); font-size:.75rem;
}
.post-author-card{gap:1.4rem}
.post-author-card .who .by{margin:0 0 .35rem; color:var(--mut-d)}
.post-author-card .who b{display:block; font-family:var(--disp); font-weight:var(--w-book); font-size:var(--fs-h3); color:var(--paper)}
.post-author-card .who span{font-family:var(--mono); font-size:var(--fs-label); letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--sage); margin-top:.2rem; display:block}

.post-related{max-width:38rem; margin:clamp(2.5rem,5vw,3.5rem) auto 0; padding:0 1.5rem}
.post-related ul{display:grid; gap:.9rem; margin-top:1rem}
.post-related a{
  font-family:var(--disp); font-size:var(--fs-copy); color:var(--paper);
  text-decoration:none; border-bottom:1px solid var(--line-d); padding-bottom:.9rem;
  display:flex; justify-content:space-between; gap:1rem; align-items:baseline;
}
.post-related a:hover{color:var(--teal)}
.post-related a .arr{color:var(--teal); flex:none}

@media (max-width:640px){
  .post-author-card{flex-wrap:wrap}
}

/* grey image placeholder, swapped for a real photograph when supplied */
.post-feature .ph, .post-thumb .ph{
  width:100%; background:#9AA19F; display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:var(--fs-label); letter-spacing:var(--ls-label);
  text-transform:uppercase; font-weight:var(--w-medium); color:rgba(255,255,255,.85);
}
.post-feature .ph{border-radius:8px; aspect-ratio:16/8}
.post-thumb .ph{height:100%}

/* in-body photographs on migrated posts */
.article .post-fig{margin:2.2rem 0}
.article .post-fig img{width:100%; height:auto; display:block; border-radius:8px}
.post-back-top{display:flex; width:max-content; margin:0 auto 1.6rem}
