/* =====================================================================
   page-blog.css — Blog index (blog.php) + article (article.php)
   ---------------------------------------------------------------------
   Loaded only on the Blog and Blog Article templates (see the conditional
   enqueue map in functions.php). Every rule is scoped under body.blog-page
   so nothing leaks to other pages. Reuses foundation tokens/atoms (.wrap,
   .eyebrow, .btn, :root colors); only blog-unique structure lives here.
   ===================================================================== */

/* ───────────────────────── Shared hero ───────────────────────── */
body.blog-page .bloghero{
  padding:74px 0 56px;
  background:radial-gradient(ellipse 60% 70% at 50% -25%, rgba(125,160,251,0.16) 0%, transparent 60%), var(--off);
  border-bottom:1px solid var(--border);
}
body.blog-page .bloghero h1{
  font-size:clamp(34px,5vw,58px);
  font-weight:800;
  letter-spacing:-0.046em;
  line-height:1.04;
  color:var(--ink-900);
  margin:18px 0 18px;
  max-width:16ch;
  text-wrap:balance;
}
body.blog-page .bloghero h1 em{color:var(--blue-600);font-style:normal}
body.blog-page .bloghero-dek{
  font-size:clamp(16px,1.7vw,19px);
  line-height:1.6;
  color:var(--ink-500);
  max-width:62ch;
  margin:0;
}

/* ───────────────────────── Index: card grid ───────────────────────── */
body.blog-page .blog-list{padding:48px 0 88px}
body.blog-page .blog-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
body.blog-page .blog-empty{
  font-size:17px;color:var(--ink-500);
  padding:40px 0;text-align:center;
}

/* ── "Load more" pagination ──────────────────────────────────────────────
   The blog is static: every card is in the DOM, but the ones past the initial
   batch carry .bc-rest (hidden) until JS reveals them. No-JS shows them all and
   drops the button (scripting:none net at the bottom of this block). */
body.blog-page .blog-card.bc-rest{display:none}
body.blog-page .blog-more-wrap{
  display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:44px;
}
body.blog-page .blog-more{
  font-family:var(--sans);font-size:14px;font-weight:600;color:var(--ink-900);
  background:var(--white);border:1px solid var(--border);border-radius:999px;
  padding:13px 28px;cursor:pointer;box-shadow:var(--shadow-sm);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
body.blog-page .blog-more:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--blue-200)}
body.blog-page .blog-more:focus-visible{outline:2px solid var(--blue-600);outline-offset:2px}
body.blog-page .blog-more-count{font-family:var(--mono);font-size:12px;color:var(--ink-500);letter-spacing:0.02em;margin:0}
/* Newly revealed cards fade up (motion-pref gated). */
@media (prefers-reduced-motion: no-preference){
  body.blog-page .blog-card.bc-in{animation:blog-card-in .5s cubic-bezier(.22,.61,.36,1) both}
}
@keyframes blog-card-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
/* No-JS: reveal every card and hide the button. */
@media (scripting: none){
  body.blog-page .blog-card.bc-rest{display:flex}
  body.blog-page .blog-more-wrap{display:none}
}

/* Card shell */
body.blog-page .blog-card{
  display:flex;
  flex-direction:column;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.blog-page .blog-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
  border-color:var(--blue-200);
}
/* The newest post spans the full row as a horizontal feature card */
body.blog-page .blog-card.lead{
  grid-column:1 / -1;
  flex-direction:row;
}

/* ───── Editorial media panel (no raster image — pure CSS, keeps text-LCP) ─────
   Replaces the old faux-UI mock. Confident, decodable masthead: brand wordmark,
   an oversized issue number (the post's position in the feed) set in the brand
   serif, and a real category/Featured kicker — over the dark brand gradient with
   a soft concentric "health-ring" motif. Every element is a true label, not an
   abstract interface to decode. */
body.blog-page .bc-media{
  position:relative;
  display:flex;flex-direction:column;
  padding:22px 24px;
  background:linear-gradient(150deg, var(--ink-950) 0%, var(--ink-800) 100%);
  overflow:hidden;
  isolation:isolate;
}
body.blog-page .blog-card:not(.lead) .bc-media{
  flex-direction:row;align-items:center;justify-content:space-between;
  height:128px;padding:0 26px;
}
body.blog-page .blog-card.lead .bc-media{flex:0 0 40%;min-height:300px}
/* Concentric health-ring motif — the product's audit/health-score nod, as
   texture not a literal UI. Anchored bottom-right, masked to a soft fade. */
body.blog-page .bc-media::before{
  content:"";position:absolute;z-index:-1;
  width:340px;height:340px;right:-120px;bottom:-120px;border-radius:50%;
  background:
    radial-gradient(circle, transparent 0 53%, rgba(125,160,251,0.16) 53.5% 54.5%, transparent 55%),
    radial-gradient(circle, transparent 0 70%, rgba(125,160,251,0.12) 70.5% 71.5%, transparent 72%),
    radial-gradient(circle, transparent 0 87%, rgba(125,160,251,0.09) 87.5% 88.5%, transparent 89%);
}
/* Blue glow, top-right */
body.blog-page .bc-media::after{
  content:"";position:absolute;z-index:-1;
  width:260px;height:260px;right:-70px;top:-80px;
  background:radial-gradient(circle, rgba(59,110,248,0.42) 0%, transparent 62%);
}
/* Brand wordmark — top of the panel */
body.blog-page .bc-brand{
  font-family:var(--sans);font-weight:800;font-size:14px;letter-spacing:-0.02em;
  color:var(--ink-150);line-height:1;
}
body.blog-page .bc-brand em{color:var(--blue-400);font-style:normal}
/* Oversized issue number — the editorial hero */
body.blog-page .bc-issue{
  font-family:var(--sans);font-weight:800;font-size:84px;line-height:0.82;
  letter-spacing:-0.05em;color:rgba(255,255,255,0.11);
  margin-top:auto;
  -webkit-font-feature-settings:"tnum";font-feature-settings:"tnum";
}
/* Category / Featured kicker — bottom, real label */
body.blog-page .bc-media-cat{
  font-family:var(--mono);font-size:10.5px;font-weight:500;letter-spacing:0.18em;
  text-transform:uppercase;color:var(--blue-200);margin-top:10px;
}
/* Non-lead strip: wordmark left, big issue number right; tighter rhythm */
body.blog-page .blog-card:not(.lead) .bc-brand{order:1}
body.blog-page .blog-card:not(.lead) .bc-issue{
  order:2;margin-top:0;font-size:60px;line-height:1;
}
body.blog-page .blog-card:not(.lead) .bc-media-cat{
  position:absolute;left:26px;bottom:16px;margin-top:0;
}

/* Card body */
body.blog-page .bc-body{
  display:flex;flex-direction:column;
  padding:24px 26px 22px;flex:1 1 auto;
}
body.blog-page .blog-card.lead .bc-body{padding:40px clamp(28px,4vw,48px);justify-content:center}
body.blog-page .bc-meta{
  display:flex;align-items:center;gap:10px;margin-bottom:13px;
  font-family:var(--mono);font-size:11px;
}
body.blog-page .bc-cat{color:var(--blue-600);font-weight:500;letter-spacing:0.12em;text-transform:uppercase}
body.blog-page .bc-read{color:var(--hint)}
body.blog-page .bc-sep{width:4px;height:4px;border-radius:50%;background:var(--ink-150)}
body.blog-page .bc-title{
  display:block;
  font-size:clamp(19px,2.2vw,23px);font-weight:800;letter-spacing:-0.025em;
  line-height:1.18;color:var(--ink-900);margin-bottom:10px;
}
body.blog-page .blog-card.lead .bc-title{font-size:clamp(24px,3vw,34px);letter-spacing:-0.035em;line-height:1.08}
body.blog-page .bc-dek{
  display:block;font-size:15px;line-height:1.62;color:var(--ink-500);
  margin-bottom:18px;
}
body.blog-page .blog-card.lead .bc-dek{font-size:16.5px;max-width:54ch}
body.blog-page .bc-foot{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:auto;padding-top:6px;
}
body.blog-page .bc-date{font-family:var(--mono);font-size:11px;color:var(--hint)}
body.blog-page .bc-go{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13.5px;font-weight:600;color:var(--blue-600);
}
body.blog-page .bc-go .arrow{transition:transform .18s ease}
body.blog-page .blog-card:hover .bc-go .arrow{transform:translateX(4px)}

/* ───────────────────────── Article ───────────────────────── */
body.blog-page .bs-wrap{
  max-width:760px;margin:0 auto;
  padding-left:clamp(20px,5vw,40px);padding-right:clamp(20px,5vw,40px);
}
body.blog-page .blog-single{padding-top:42px}

/* Reading-progress bar — fixed at the top, fills as the article body scrolls
   past (main.js Module 20). Mirrors the docs .progress-bar; admin-bar offset
   uses the compound body.admin-bar.blog-page selector. */
body.blog-page .bs-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:200;background:transparent;pointer-events:none}
body.blog-page .bs-progress-fill{display:block;height:100%;width:0;background:var(--blue-600);transition:width .12s linear}
body.admin-bar.blog-page .bs-progress{top:32px}
@media (max-width:782px){body.admin-bar.blog-page .bs-progress{top:46px}}

body.blog-page .bs-crumbs{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  font-family:var(--mono);font-size:11.5px;color:var(--hint);margin-bottom:26px;
}
body.blog-page .bs-crumbs a{color:var(--ink-500);text-decoration:none}
body.blog-page .bs-crumbs a:hover{color:var(--blue-600)}
body.blog-page .bs-crumb-sep{color:var(--ink-300)}
body.blog-page .bs-crumb-here{color:var(--blue-600)}

body.blog-page .bs-head{padding-bottom:30px;margin-bottom:34px;border-bottom:1px solid var(--border)}
body.blog-page .bs-head h1{
  font-size:clamp(30px,4.4vw,46px);font-weight:800;letter-spacing:-0.04em;
  line-height:1.07;color:var(--ink-900);margin:16px 0 18px;text-wrap:balance;
}
body.blog-page .bs-dek{
  font-size:clamp(17px,2vw,20px);line-height:1.5;color:var(--ink-500);
  margin:0 0 22px;max-width:60ch;
}
body.blog-page .bs-byline{
  display:flex;align-items:center;gap:11px;
  font-family:var(--mono);font-size:12px;color:var(--ink-500);
}
body.blog-page .bs-author{color:var(--ink-700);font-weight:500}
body.blog-page .bs-byline .bs-sep{width:4px;height:4px;border-radius:50%;background:var(--ink-150)}

/* Prose */
body.blog-page .bs-body{font-size:16.5px;line-height:1.78;color:var(--ink-700)}
body.blog-page .bs-body > p{margin:0 0 20px}
body.blog-page .bs-body .bs-lead{font-size:19px;line-height:1.66;color:var(--ink-800)}
body.blog-page .bs-body h2{
  font-size:clamp(23px,2.8vw,31px);font-weight:800;letter-spacing:-0.032em;
  line-height:1.12;color:var(--ink-900);margin:48px 0 16px;text-wrap:balance;
}
body.blog-page .bs-body h3{
  font-size:18px;font-weight:700;letter-spacing:-0.01em;color:var(--ink-900);
  margin:0 0 10px;
}
body.blog-page .bs-body a{color:var(--blue-700);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
body.blog-page .bs-body a:hover{color:var(--blue-600)}
body.blog-page .bs-body strong{color:var(--ink-900);font-weight:700}
body.blog-page .bs-body code{
  font-family:var(--mono);font-size:0.86em;
  background:var(--slate);border:1px solid var(--border);border-radius:5px;
  padding:1px 6px;color:var(--ink-800);
}

/* Checklist — each area is a card; the number rides inline in the heading, the
   "Check" line is plain prose and the "Fix" line is a brand-tinted callout so
   the detect→fix rhythm reads at a glance. */
body.blog-page .bs-checklist{
  list-style:none;counter-reset:bschk;
  margin:32px 0 38px;padding:0;
  display:flex;flex-direction:column;gap:14px;
}
body.blog-page .bs-checklist > li{
  counter-increment:bschk;
  background:var(--white);border:1px solid var(--border);border-radius:14px;
  box-shadow:var(--shadow-sm);
  padding:22px 24px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
body.blog-page .bs-checklist > li:hover{border-color:var(--blue-200);box-shadow:var(--shadow-md)}
body.blog-page .bs-checklist h3{
  display:flex;align-items:center;gap:13px;
  margin:0 0 12px;font-size:18px;
}
body.blog-page .bs-checklist h3::before{
  content:counter(bschk,decimal-leading-zero);
  flex-shrink:0;
  font-family:var(--mono);font-size:12.5px;font-weight:600;letter-spacing:-0.02em;
  color:var(--blue-600);background:var(--blue-100);border:1px solid var(--blue-200);
  border-radius:8px;width:30px;height:30px;
  display:inline-flex;align-items:center;justify-content:center;
}
body.blog-page .bs-check-do{font-size:15.5px;line-height:1.66;color:var(--ink-700);margin:0 0 12px}
body.blog-page .bs-fix{
  font-size:15px;line-height:1.6;color:var(--ink-800);margin:0;
  background:var(--blue-100);
  border:1px solid var(--blue-200);border-left:3px solid var(--blue-600);
  border-radius:10px;padding:12px 15px;
}
body.blog-page .bs-check-do strong{color:var(--ink-900)}
body.blog-page .bs-fix strong{color:var(--blue-700)}

/* Pull-quote */
body.blog-page .bs-pull{
  margin:40px 0;padding:8px 0 8px 26px;
  border-left:3px solid var(--blue-600);
}
body.blog-page .bs-pull p{
  font-family:var(--sans);font-weight:600;
  font-size:clamp(21px,2.6vw,27px);line-height:1.34;letter-spacing:-0.02em;
  color:var(--ink-900);margin:0;text-wrap:balance;
}

/* Tags */
body.blog-page .bs-tags{
  list-style:none;display:flex;flex-wrap:wrap;gap:9px;
  margin:40px 0 0;padding:26px 0 0;border-top:1px solid var(--border);
}
body.blog-page .bs-tags li{
  font-family:var(--mono);font-size:11px;letter-spacing:0.04em;
  color:var(--ink-500);background:var(--slate);
  border:1px solid var(--border);border-radius:999px;padding:5px 12px;
}

/* Closing CTA band */
body.blog-page .bs-cta{margin-top:64px;padding:64px 0;border-top:1px solid var(--border);background:var(--off)}
body.blog-page .bs-cta-card{
  position:relative;overflow:hidden;
  background:linear-gradient(150deg, var(--ink-950) 0%, var(--ink-800) 100%);
  border-radius:20px;padding:clamp(30px,4vw,48px);
  display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap;
  box-shadow:var(--shadow-lg);
}
body.blog-page .bs-cta-card::after{
  content:"";position:absolute;width:320px;height:320px;right:-90px;top:-110px;
  background:radial-gradient(circle, rgba(59,110,248,0.40) 0%, transparent 65%);
}
body.blog-page .bs-cta-text{position:relative;z-index:1;max-width:46ch}
body.blog-page .bs-cta-text .eyebrow{color:var(--blue-200)}
body.blog-page .bs-cta-text .eyebrow::before{background:var(--blue-400)}
body.blog-page .bs-cta-text h2{
  font-size:clamp(24px,3vw,33px);font-weight:800;letter-spacing:-0.035em;line-height:1.1;
  color:var(--white);margin:12px 0 12px;
}
body.blog-page .bs-cta-text h2 em{color:var(--blue-400);font-style:normal}
body.blog-page .bs-cta-text p{font-size:15.5px;line-height:1.62;color:var(--ink-300);margin:0}
body.blog-page .bs-cta-actions{position:relative;z-index:1;display:flex;flex-direction:row;flex-wrap:wrap;gap:12px}
body.blog-page .bs-cta-actions .btn{justify-content:center;white-space:nowrap}
body.blog-page .bs-cta-actions .btn.ghost{color:var(--ink-150);border-color:rgba(255,255,255,0.2)}
body.blog-page .bs-cta-actions .btn.ghost:hover{background:rgba(255,255,255,0.08);color:var(--white)}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width:860px){
  body.blog-page .blog-grid{grid-template-columns:1fr}
  body.blog-page .blog-card.lead{flex-direction:column}
  body.blog-page .blog-card.lead .bc-media{
    flex:0 0 auto;min-height:0;height:128px;
    flex-direction:row;align-items:center;justify-content:space-between;padding:0 26px;
  }
  body.blog-page .blog-card.lead .bc-brand{order:1}
  body.blog-page .blog-card.lead .bc-issue{order:2;margin-top:0;font-size:60px;line-height:1}
  body.blog-page .blog-card.lead .bc-media-cat{position:absolute;left:26px;bottom:16px;margin-top:0}
  body.blog-page .bs-cta-card{flex-direction:column;align-items:flex-start}
  body.blog-page .bs-cta-actions{width:100%}
}
@media (max-width:520px){
  body.blog-page .bloghero{padding:54px 0 40px}
  body.blog-page .blog-list{padding:34px 0 64px}
  body.blog-page .bc-body{padding:22px 20px 20px}
  body.blog-page .bs-checklist > li{padding:20px 18px}
}










































