/* =====================================================================
   BLOG - index, topic and article pages (generated by tools/build_blog.py)
   ---------------------------------------------------------------------
   Built from the site's own pieces: the brand tokens, Archivo for UI and
   Anton for page headings, the 13px tracked teal eyebrow, the site's pill
   buttons and the homepage's dark closing band. The one addition is a
   serif (Source Serif 4) for long-form reading: article text and summaries.
   ===================================================================== */

.bl-main{background:#fff;}
.bl-main .wrap{max-width:1200px;}

/* draft builds only - never in a normal build */
.bl-draft{margin:0; padding:12px clamp(20px,4vw,40px); background:#fff7e0; border-bottom:1px solid #f1d98c;
  color:#5c4400; font-size:14px; text-align:center;}
.bl-tag-draft{margin-left:10px; padding:2px 8px; border-radius:999px; background:#fff7e0; border:1px solid #f1d98c;
  color:#5c4400; font-size:11px; letter-spacing:.06em;}

/* shared text pieces */
.bl-eyebrow{font-size:13px; font-weight:800; letter-spacing:2.2px; text-transform:uppercase; color:var(--u-primary-deep); line-height:1;}
.bl-cat{display:flex; align-items:center; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--u-primary-deep); line-height:1.2;}
.bl-meta{display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; font-size:13px; color:#41505d;}
.bl-meta-name{font-weight:700; color:var(--ink);}
.bl-avatar{display:block; flex:0 0 auto; border-radius:50%; object-fit:cover; background:var(--u-primary-tint);}
.bl-avatar-initials{display:grid; place-items:center; color:var(--u-primary-deep); font-weight:800; font-size:13px;}
.bl-byline{display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; font-size:14px; color:#41505d;}
.bl-byline .bl-avatar{width:36px; height:36px;}
.bl-byline-name{font-weight:700; color:var(--ink);}

/* neutral stand-in for a post with no image */
.bl-ph{position:absolute; inset:0; background:repeating-linear-gradient(135deg,#eef3f4 0 10px,#e5edef 10px 20px);}

/* ---- INDEX ---------------------------------------------------------- */
.bl-intro{padding:clamp(48px,7vw,80px) 0 clamp(28px,3vw,40px);}
.bl-h1{margin-top:16px; max-width:16ch; font-family:'Anton','Haettenschweiler','Arial Narrow',Impact,sans-serif; font-weight:400;
  text-transform:uppercase; letter-spacing:.4px; line-height:1; color:var(--ink); font-size:clamp(40px,5.4vw,64px);}
.bl-lede{margin-top:18px; max-width:62ch; font-size:clamp(16px,1.6vw,18px); line-height:1.6; font-weight:500; color:#41505d;}

/* topic filter: real links to the topic pages, styled as pills */
.bl-filters{display:flex; flex-wrap:wrap; gap:8px; margin-top:32px;}
.bl-pill{display:inline-flex; align-items:center; min-height:40px; padding:0 16px; border-radius:999px;
  border:1px solid var(--border); background:#fff; color:var(--ink); font-size:14px; font-weight:600;
  transition:border-color .15s, color .15s;}
.bl-pill:hover{border-color:var(--u-primary); color:var(--u-primary-deep);}
.bl-pill[aria-current="page"]{background:var(--ink); border-color:var(--ink); color:#fff; font-weight:700;}
.bl-pill:focus-visible{outline:2px solid var(--u-primary); outline-offset:2px;}

/* featured: the latest post, on "All" only */
.bl-featured{padding-bottom:clamp(40px,5vw,56px);}
.bl-feat{position:relative; display:flex; flex-wrap:wrap; background:#fff; border:1px solid var(--border);
  border-radius:12px; overflow:hidden; transition:box-shadow .2s, border-color .2s;}
.bl-feat:hover{box-shadow:var(--shadow-lift); border-color:var(--u-primary-border);}
.bl-feat:focus-within{outline:2px solid var(--u-primary); outline-offset:2px;}
.bl-feat-media{position:relative; flex:1 1 460px; min-height:300px; background:#eef3f4;}
.bl-feat-media img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.bl-feat-body{flex:1 1 360px; display:flex; flex-direction:column; justify-content:center; gap:14px; padding:clamp(28px,3.4vw,44px);}
.bl-feat-eyebrow{display:flex; align-items:center; gap:10px; font-size:13px; font-weight:700; color:#41505d;}
.bl-feat-label{color:var(--u-primary-deep); text-transform:uppercase; letter-spacing:.12em; font-weight:800;}
.bl-feat-t{font-size:clamp(24px,2.8vw,34px); line-height:1.15; font-weight:800; letter-spacing:-.015em; color:var(--ink); text-wrap:balance;}
.bl-feat-t a{color:inherit;}
.bl-feat-t a::after{content:""; position:absolute; inset:0;}  /* the whole card is the link */
.bl-feat-t a:focus{outline:none;}
.bl-feat-dek{font-family:'Source Serif 4',Georgia,serif; font-size:18px; line-height:1.55; color:#41505d; text-wrap:pretty;}

/* the grid */
.bl-list{padding-bottom:clamp(64px,8vw,96px);}
.bl-list-head{display:flex; justify-content:space-between; align-items:baseline; gap:16px;
  border-top:1px solid var(--border); padding-top:26px; margin-bottom:26px;}
.bl-list-head h2{font-size:22px; font-weight:800; letter-spacing:-.01em; color:var(--ink);}
.bl-list-head span{font-size:14px; color:#41505d;}
.bl-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:28px;}
.bl-empty{color:#41505d;}
.bl-card{position:relative; display:flex; flex-direction:column; background:#fff; border:1px solid var(--border);
  border-radius:12px; overflow:hidden; transition:box-shadow .2s, transform .2s, border-color .2s;}
.bl-card:hover{box-shadow:var(--shadow-lift); transform:translateY(-2px); border-color:var(--u-primary-border);}
.bl-card:focus-within{outline:2px solid var(--u-primary); outline-offset:2px;}
.bl-card-media{position:relative; aspect-ratio:16/10; background:#eef3f4;}
.bl-card-media img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.bl-card-body{flex:1; display:flex; flex-direction:column; gap:12px; padding:22px 24px 24px;}
.bl-card-t{font-size:21px; line-height:1.25; font-weight:800; letter-spacing:-.01em; color:var(--ink); text-wrap:balance;}
.bl-card-t a{color:inherit;}
.bl-card-t a::after{content:""; position:absolute; inset:0;}  /* the whole card is the link */
.bl-card-t a:focus{outline:none;}
.bl-card-dek{font-size:15px; line-height:1.6; color:#41505d; text-wrap:pretty;}
.bl-card .bl-meta{margin-top:auto; padding-top:8px;}

/* ---- ARTICLE -------------------------------------------------------- */
/* The title block and the article text share one 720px reading column,
   centred on the screen. "On this page" never takes width from it: on wide
   screens it sits in the empty margin to the left (see the 1280px rule
   below), otherwise in a box above the article. */
.bl-art-head,.bl-art-grid{max-width:800px; margin:0 auto; padding-left:clamp(20px,4vw,40px); padding-right:clamp(20px,4vw,40px);}

.bl-art-head{padding-top:clamp(32px,5vw,52px); padding-bottom:32px;}
.bl-crumbs ol{list-style:none; display:flex; flex-wrap:wrap; gap:8px; font-size:14px; color:#41505d;}
.bl-crumbs li + li::before{content:"/"; margin-right:8px; color:#9aa7ae;}
.bl-crumbs a{color:#41505d;}
.bl-crumbs a:hover{color:var(--u-primary-deep); text-decoration:underline;}
.bl-crumbs li:last-child a{color:var(--u-primary-deep); font-weight:700;}
.bl-art-h1{margin-top:24px; font-family:'Anton','Haettenschweiler','Arial Narrow',Impact,sans-serif; font-weight:400;
  text-transform:uppercase; letter-spacing:.4px; line-height:1.02; color:var(--ink); font-size:clamp(34px,4.6vw,56px); text-wrap:balance;}
.bl-art-dek{margin-top:18px; font-family:'Source Serif 4',Georgia,serif; font-size:clamp(19px,2vw,22px); line-height:1.5; color:#3d4b53; text-wrap:pretty;}
.bl-art-by{display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:28px;}
.bl-art-by .bl-avatar{width:44px; height:44px;}
.bl-art-by-text{display:flex; flex-direction:column; gap:2px;}
.bl-art-by-name{font-size:15px; font-weight:700; color:var(--ink);}
/* the author's name links to their card on the Team page */
.bl-art-by-name:hover,.bl-author-name a:hover{color:var(--u-primary-deep); text-decoration:underline; text-underline-offset:3px;}
.bl-author-name a{color:inherit;}
.bl-art-by-meta{font-size:14px; color:#41505d;}
.bl-copy{margin-left:auto; min-height:38px; padding:0 16px; border-radius:999px; border:1px solid var(--border);
  background:#fff; color:var(--ink); font:inherit; font-size:13px; font-weight:700; cursor:pointer;
  transition:border-color .15s, color .15s;}
.bl-copy:hover{border-color:var(--u-primary); color:var(--u-primary-deep);}
.bl-copy:focus-visible{outline:2px solid var(--u-primary); outline-offset:2px;}

.bl-cover{max-width:1120px; margin:0 auto; padding:0 clamp(20px,4vw,40px);}
.bl-cover-media{position:relative; aspect-ratio:21/9; border-radius:12px; overflow:hidden; background:#eef3f4;}
.bl-cover-media img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  object-position:center 30%;}  /* a 21:9 crop of a 4:3 photo: keep the upper part, where faces are */

.bl-art-grid{padding-top:clamp(40px,5vw,56px); padding-bottom:clamp(56px,7vw,80px);}

/* "On this page": a folded row above the article, opened with a tap, so the
   whole list does not push the article down on phones and tablets (the list
   is still in the page for search engines and AI tools) ... */
.bl-toc{margin-bottom:32px; border:1px solid var(--border); border-radius:12px;}
.bl-toc-t{display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:0 20px;
  list-style:none; cursor:pointer; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#41505d;}
.bl-toc-t::-webkit-details-marker{display:none;}
.bl-toc-t::after{content:""; flex:none; width:8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor;
  transform:translateY(-2px) rotate(45deg); transition:transform .15s;}
.bl-toc-fold[open] .bl-toc-t::after{transform:translateY(2px) rotate(-135deg);}
.bl-toc-t:focus-visible{outline:2px solid var(--u-primary); outline-offset:-2px; border-radius:12px;}
.bl-toc ol{list-style:none; display:flex; flex-direction:column; gap:10px; margin:0 20px 18px; padding-left:14px; border-left:2px solid var(--border);}
.bl-toc a{font-size:14px; line-height:1.4; font-weight:600; color:#3d4b53;}
.bl-toc a:hover{color:var(--u-primary-deep);}

.bl-art-col{min-width:0;}
.bl-takeaways{margin-bottom:44px; padding:26px 30px; border-radius:12px; background:var(--u-primary-tint); border:1px solid var(--u-primary-border);}
.bl-takeaways h2{margin-bottom:12px; font-size:13px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--u-primary-deep);}
.bl-takeaways ul{padding-left:20px; display:flex; flex-direction:column; gap:8px; font-size:16px; line-height:1.55; color:#1c2b33;}

/* the article text: a serif at reading size */
.bl-prose h2{margin:44px 0 14px; font-size:28px; line-height:1.2; font-weight:800; letter-spacing:-.015em; color:var(--ink); scroll-margin-top:100px;}
.bl-prose h2:first-child{margin-top:0;}
.bl-prose h3{margin:32px 0 10px; font-size:21px; line-height:1.3; font-weight:800; color:var(--ink);}
.bl-prose p,.bl-prose ul,.bl-prose ol{font-family:'Source Serif 4',Georgia,serif; font-size:19px; line-height:1.7; color:#24323a;}
.bl-prose p{margin:0 0 20px; text-wrap:pretty;}
.bl-prose ul,.bl-prose ol{margin:0 0 20px; padding-left:24px; display:flex; flex-direction:column; gap:8px;}
.bl-prose a{color:var(--u-primary-deep); text-decoration:underline; text-underline-offset:3px;}
.bl-prose a:hover{color:var(--u-primary-dark);}

.bl-faq{margin-top:52px; padding-top:40px; border-top:1px solid var(--border); scroll-margin-top:100px;}
.bl-faq h2{margin-bottom:18px; font-size:28px; font-weight:800; letter-spacing:-.015em; color:var(--ink);}
.bl-faq-item{margin-bottom:12px; padding:16px 20px; border:1px solid var(--border); border-radius:12px; background:#fff;}
.bl-faq-item summary{cursor:pointer; font-size:17px; line-height:1.4; font-weight:700; color:var(--ink);}
.bl-faq-item summary:focus-visible{outline:2px solid var(--u-primary); outline-offset:4px; border-radius:4px;}
.bl-faq-item p{margin-top:10px; font-family:'Source Serif 4',Georgia,serif; font-size:17px; line-height:1.65; color:#3d4b53;}

.bl-author{display:flex; gap:18px; align-items:flex-start; margin-top:44px; padding:26px; border:1px solid var(--border); border-radius:12px; background:#fff;}
.bl-author .bl-avatar{width:56px; height:56px;}
.bl-author-name{font-size:17px; font-weight:800; color:var(--ink);}
.bl-author-role{margin:2px 0 10px; font-size:14px; font-weight:600; color:var(--u-primary-deep);}
.bl-author-bio{font-size:15px; line-height:1.6; color:#41505d;}

/* keep reading */
.bl-related{background:var(--page); border-top:1px solid var(--border);}
.bl-related .wrap{padding-top:clamp(48px,6vw,64px); padding-bottom:clamp(56px,7vw,80px);}
.bl-related-head{display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:16px; margin-bottom:26px;}
.bl-related-head h2{font-size:26px; font-weight:800; letter-spacing:-.015em; color:var(--ink);}
.bl-related-head a{font-size:15px; font-weight:700; color:var(--u-primary-deep);}
.bl-related-head a:hover{text-decoration:underline;}
.bl-related-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px;}
.bl-rel{position:relative; display:flex; flex-direction:column; gap:10px; padding:22px 24px; background:#fff;
  border:1px solid var(--border); border-radius:12px; transition:box-shadow .2s, border-color .2s;}
.bl-rel:hover{box-shadow:var(--shadow-lift); border-color:var(--u-primary-border);}
.bl-rel:focus-within{outline:2px solid var(--u-primary); outline-offset:2px;}
.bl-rel-t{font-size:19px; line-height:1.3; font-weight:800; color:var(--ink);}
.bl-rel-t a{color:inherit;}
.bl-rel-t a::after{content:""; position:absolute; inset:0;}
.bl-rel-t a:focus{outline:none;}
.bl-rel .bl-meta{margin-top:auto;}

/* ---- CLOSING BAND: the homepage's dark call to action ---------------- */
.bl-cta{position:relative; overflow:hidden; color:#fff; text-align:center; padding:clamp(56px,7vw,86px) 0;
  background:
    radial-gradient(1100px 640px at 80% 24%, rgba(0,188,183,.16), transparent 60%),
    linear-gradient(120deg, #071620 0%, #0b2530 46%, #0e433f 100%);}
.bl-cta-eyebrow{font-size:13px; font-weight:800; letter-spacing:2.2px; text-transform:uppercase; color:#5fe0dc; line-height:1;}
.bl-cta-h{margin-top:12px; font-family:'Anton','Haettenschweiler','Arial Narrow',Impact,sans-serif; font-weight:400;
  text-transform:uppercase; letter-spacing:.4px; line-height:1.04; color:#fff; font-size:clamp(32px,5vw,64px);}
.bl-cta-h .em{color:var(--u-primary);}
.bl-cta-btns{display:flex; justify-content:center; flex-wrap:wrap; gap:14px; margin-top:30px;}

/* ---- WIDE SCREENS ---------------------------------------------------- */
/* ... and from 1280px, where the margin beside the 720px column has room for
   it, a sticky list in that margin, always open (scripts/blog.js opens it;
   its heading is a plain label here, not a toggle). Three columns with equal
   outer ones keep the text centred whatever the list's width. */
@media (min-width:1280px){
  .bl-art-grid{max-width:none; display:grid; grid-template-columns:minmax(0,1fr) 720px minmax(0,1fr); align-items:start;}
  .bl-art-col{grid-column:2; grid-row:1;}
  .bl-toc{grid-column:1; grid-row:1; justify-self:end; width:200px; margin:0 40px 0 0; border:0; border-radius:0;
    position:sticky; top:96px;}  /* just under the site's sticky 72px header */
  .bl-toc-t{min-height:0; margin-bottom:14px; padding:0; cursor:default;}
  .bl-toc-t::after{display:none;}
  .bl-toc ol{gap:12px; margin:0;}
}

/* ---- PHONES & TABLETS ---------------------------------------------- */
@media (max-width:760px){
  .bl-grid,.bl-related-grid{grid-template-columns:minmax(0,1fr);}
  .bl-feat-media{flex-basis:100%; min-height:0; aspect-ratio:16/10;}
  .bl-prose p,.bl-prose ul,.bl-prose ol{font-size:18px;}
  .bl-copy{margin-left:0;}
  .bl-takeaways{padding:22px 22px;}
}
@media (prefers-reduced-motion:reduce){
  .bl-card,.bl-feat,.bl-rel,.bl-toc-t::after{transition:none;}
  .bl-card:hover{transform:none;}
}
