/* ============================================================
   blog.css — Blog list (/blog) + single post (/blog/{slug})
   Built on the homepage components in style.css (hero, eyebrow,
   section-head, btn, faq). Loaded AFTER style.css.
   ============================================================ */

/* ---------- Shared hero (homepage hero + breadcrumb) ---------- */
.bl-hero{ padding:110px 0 120px; }
.bl-crumb{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:22px;
  font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  color:rgba(255,255,255,0.6);
}
.bl-crumb a{ color:var(--brass-light); transition:color .2s ease; }
.bl-crumb a:hover{ color:#fff; }
.bl-crumb em{ font-style:normal; color:#fff; max-width:420px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---------- List page ---------- */
.bl-list{ background:var(--parchment); padding-top:80px; }
.bl-toolbar{
  display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;
  margin-bottom:44px; padding-bottom:24px; border-bottom:1px solid var(--line-on-light);
}
.bl-filter{ display:flex; flex-wrap:wrap; gap:10px; }
.bl-filter a{
  padding:9px 20px; border:1px solid var(--line-on-light); border-radius:var(--radius-pill);
  font-size:14px; font-weight:600; color:var(--ink-text); background:#fff;
  transition:border-color .2s ease, color .2s ease, background .2s ease;
}
.bl-filter a:hover{ border-color:var(--brass); color:var(--brass); }
.bl-filter a.active{ background:var(--ink); border-color:var(--ink); color:#fff; }
.bl-count{ font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.06em; color:var(--slate); opacity:.7; }

/* Featured post */
.bl-featured{
  display:grid; grid-template-columns:1.1fr .9fr; margin-bottom:40px;
  background:#fff; border:1px solid var(--line-on-light); border-radius:var(--radius); overflow:hidden;
  transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.bl-featured:hover{ border-color:var(--brass); box-shadow:var(--shadow); transform:translateY(-4px); }
.bl-featured-img{ position:relative; min-height:340px; overflow:hidden; background:var(--ink); }
.bl-featured-img img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.bl-featured:hover .bl-featured-img img{ transform:scale(1.05); }
.bl-featured-badge{
  position:absolute; top:20px; left:20px; z-index:2;
  font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  background:var(--brass); color:#fff; padding:6px 12px;
}
.bl-featured-body{ padding:44px 40px; display:flex; flex-direction:column; justify-content:center; }
.bl-featured-body h2{ font-size:clamp(22px,2.4vw,30px); color:var(--ink); line-height:1.25; margin:14px 0 14px; }
.bl-featured-body p{ color:var(--slate); opacity:.85; margin-bottom:22px; }

/* Cards */
.bl-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.bl-card{
  display:flex; flex-direction:column; background:#fff;
  border:1px solid var(--line-on-light); border-radius:var(--radius); overflow:hidden;
  transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.bl-card:hover{ border-color:var(--brass); box-shadow:var(--shadow); transform:translateY(-6px); }
.bl-card-img{ position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--ink); }
.bl-card-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.bl-card-img::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(13,39,72,0) 45%, rgba(13,39,72,0.55)); }
.bl-card:hover .bl-card-img img{ transform:scale(1.06); }
.bl-tag{
  position:absolute; z-index:2; left:16px; bottom:14px;
  font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color:#fff; background:rgba(57,165,54,0.92); padding:5px 10px;
}
.bl-card-body{ padding:24px 22px 26px; display:flex; flex-direction:column; flex:1; }
.bl-meta{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--slate); opacity:.75;
}
.bl-meta i{ width:4px; height:4px; border-radius:50%; background:var(--brass); display:inline-block; }
.bl-card h3{ font-size:18.5px; line-height:1.35; color:var(--ink); margin:12px 0 10px; transition:color .2s ease; }
.bl-card:hover h3{ color:var(--brass); }
.bl-card p{ font-size:14.5px; color:var(--slate); opacity:.85; margin-bottom:20px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.bl-card-foot{ margin-top:auto; display:flex; justify-content:space-between; align-items:center; gap:12px; padding-top:18px; border-top:1px solid var(--line-on-light); }
.bl-author{ display:flex; align-items:center; gap:10px; font-size:13.5px; font-weight:600; color:var(--ink-text); }
.bl-avatar{
  width:32px; height:32px; border-radius:50%; background:var(--ink); color:var(--brass-light);
  display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; overflow:hidden; flex-shrink:0;
}
.bl-avatar img{ width:100%; height:100%; object-fit:cover; }
.bl-read{ display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:700; color:var(--brass); transition:gap .2s ease; white-space:nowrap; }
.bl-card:hover .bl-read, .bl-featured:hover .bl-read{ gap:10px; }
.bl-empty{
  text-align:center; padding:70px 20px; border:1px dashed var(--line-on-light); border-radius:var(--radius);
  color:var(--slate);
}
.bl-empty h3{ color:var(--ink); font-size:20px; margin-bottom:8px; }
.bl-empty .btn{ margin-top:20px; }

/* ---------- Single post ---------- */
.bl-post-hero{ padding:110px 0 130px; }
.bl-post-hero h1{ font-size:clamp(28px,3.8vw,50px); max-width:900px; }
.bl-post-cat{
  display:inline-block; margin-bottom:18px; padding:6px 14px;
  font-family:'IBM Plex Mono',monospace; font-size:11.5px; letter-spacing:.12em; text-transform:uppercase;
  background:var(--brass); color:#fff; transition:background .2s ease;
}
.bl-post-cat:hover{ background:var(--brass-light); }
.bl-post-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 26px; margin-top:28px; color:rgba(255,255,255,0.8); font-size:14px; }
.bl-post-meta .bl-author{ color:#fff; }
.bl-post-meta .bl-avatar{ width:40px; height:40px; border:2px solid var(--brass); }
.bl-post-meta span{ display:flex; align-items:center; gap:8px; }
.bl-post-meta svg{ color:var(--brass-light); }

.bl-post{ background:var(--parchment); padding-top:0; }
.bl-post-layout{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:48px; align-items:start; }
.bl-article{
  position:relative; z-index:3; margin-top:-70px;
  background:#fff; border:1px solid var(--line-on-light); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:48px 52px;
}
.bl-excerpt{
  font-size:18.5px; line-height:1.7; color:var(--ink); font-weight:500;
  padding:0 0 28px 22px; margin-bottom:32px; border-left:3px solid var(--brass);
  border-bottom:1px solid var(--line-on-light);
}

/* Article typography */
.blog-content{ font-size:16.5px; line-height:1.85; color:var(--ink-text); }
.blog-content > *:first-child{ margin-top:0; }
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4{ color:var(--ink); line-height:1.3; }
.blog-content h1{ font-size:clamp(24px,3vw,32px); margin:0 0 20px; }
.blog-content h2{ font-size:clamp(22px,2.5vw,28px); margin:44px 0 16px; padding-top:8px; }
.blog-content h3{ font-size:clamp(18px,2.1vw,22px); margin:32px 0 12px; }
.blog-content h4{ font-size:17px; margin:24px 0 10px; }
.blog-content p{ margin-bottom:18px; }
.blog-content ul, .blog-content ol{ margin:0 0 22px; padding-left:0; }
.blog-content ul li{ position:relative; padding-left:30px; margin-bottom:10px; }
.blog-content ul li::before{
  content:"✓"; position:absolute; left:0; top:4px; width:18px; height:18px; border-radius:50%;
  border:1px solid var(--verified); color:var(--verified); font-size:9px;
  display:flex; align-items:center; justify-content:center;
}
.blog-content ol{ list-style:none; counter-reset:bl; }
.blog-content ol li{ position:relative; padding-left:38px; margin-bottom:12px; counter-increment:bl; }
.blog-content ol li::before{
  content:counter(bl, decimal-leading-zero); position:absolute; left:0; top:1px;
  font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:14px; color:var(--brass);
}
.blog-content li p{ margin-bottom:6px; }
.blog-content a{ color:var(--brass); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.blog-content a:hover{ color:var(--verified); }
.blog-content img{ border-radius:12px; margin:26px 0; }
.blog-content strong, .blog-content b{ color:var(--ink); }
.blog-content blockquote{
  margin:28px 0; padding:22px 26px; background:var(--parchment-2); border-left:4px solid var(--brass);
  border-radius:0 12px 12px 0; color:var(--ink); font-size:17.5px; font-weight:500;
}
.blog-content hr{ border:none; border-top:1px solid var(--line-on-light); margin:36px 0; }

/* Editor content blocks (from the admin block editor) */
.blog-content .bc-section{ margin:0 0 30px; }
.blog-content .bc-eyebrow{
  display:inline-flex; align-items:center; gap:10px; margin-bottom:10px;
  font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--brass);
}
.blog-content .bc-eyebrow::before{ content:""; width:26px; height:1px; background:var(--brass); }
.blog-content .bc-title{ margin-top:0; }
.blog-content .bc-intro{ font-size:17.5px; color:var(--slate); }
.blog-content .stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; margin:28px 0; }
.blog-content .stat-box{ background:var(--ink); color:#fff; border-radius:var(--radius); padding:22px 20px; text-align:center; }
.blog-content .stat-label{ font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; color:rgba(255,255,255,0.65); }
.blog-content .stat-num{ font-size:30px; font-weight:800; color:var(--brass-light); line-height:1.2; margin-top:6px; }
.blog-content .table-wrap{ overflow-x:auto; margin:28px 0; border:1px solid var(--line-on-light); border-radius:12px; }
.blog-content .data-table, .blog-content table{ width:100%; border-collapse:collapse; font-size:15px; }
.blog-content th{ background:var(--ink); color:#fff; text-align:left; font-weight:600; padding:14px 16px; }
.blog-content td{ padding:13px 16px; border-top:1px solid var(--line-on-light); }
.blog-content tbody tr:nth-child(even) td{ background:var(--parchment-2); }
.blog-content .rk{
  display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; margin-right:6px;
  border-radius:50%; background:var(--mint); color:var(--verified); font-size:12px; font-weight:700;
}
.blog-content .rk-1{ background:var(--brass); color:#fff; }
.blog-content .sources-bar{ font-size:13.5px; color:var(--slate); background:var(--parchment-2); padding:12px 16px; border-radius:10px; margin:-12px 0 28px; }
.blog-content .callout{ margin:28px 0; padding:24px 26px; background:var(--mint); border-left:4px solid var(--brass); border-radius:0 12px 12px 0; }
.blog-content .callout-title{ font-weight:700; color:var(--ink); font-size:17px; margin-bottom:6px; }
.blog-content .callout p:last-child{ margin-bottom:0; }
.blog-content .answer-grid, .blog-content .link-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin:28px 0; }
.blog-content .answer-card, .blog-content .link-card{
  border:1px solid var(--line-on-light); border-radius:var(--radius); padding:22px 20px; background:#fff;
  transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.blog-content .answer-card:hover, .blog-content .link-card:hover{ border-color:var(--brass); transform:translateY(-4px); box-shadow:var(--shadow); }
.blog-content .answer-card h4, .blog-content .link-card h4{ margin:0 0 8px; }
.blog-content .answer-card p, .blog-content .link-card p{ font-size:14.5px; margin-bottom:12px; color:var(--slate); }
.blog-content .lc-link{ text-decoration:none; font-size:14px; }

/* Post FAQ (homepage accordion) */
.bl-faq{ margin-top:52px; padding-top:40px; border-top:1px solid var(--line-on-light); }
.bl-faq h2{ font-size:clamp(22px,2.6vw,28px); color:var(--ink); margin-bottom:10px; }
.bl-faq .faq-wrap{ max-width:none; }

/* Share */
.bl-share{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.bl-share-label{ font-size:13px; font-weight:600; color:var(--slate); margin-right:4px; }
.share-btn{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--line-on-light); cursor:pointer;
  background:#fff; color:var(--ink); display:inline-flex; align-items:center; justify-content:center;
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.share-btn:hover{ background:var(--brass); border-color:var(--brass); color:#fff; transform:translateY(-2px); }
.share-btn.copied{ background:var(--verified); border-color:var(--verified); color:#fff; }
.share-btn svg{ width:16px; height:16px; }
.bl-article-foot{
  display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;
  margin-top:48px; padding-top:28px; border-top:1px solid var(--line-on-light);
}
.bl-back{ display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:700; color:var(--ink); transition:color .2s ease, gap .2s ease; }
.bl-back:hover{ color:var(--brass); gap:12px; }

/* Sidebar */
.bl-aside{ position:sticky; top:100px; display:flex; flex-direction:column; gap:20px; margin-top:40px; }
.bl-box{ background:#fff; border:1px solid var(--line-on-light); border-radius:var(--radius); overflow:hidden; }
.bl-box-head{
  padding:16px 22px; background:var(--parchment-2);
  font-family:'IBM Plex Mono',monospace; font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--brass);
}
.bl-box-body{ padding:22px; }
.bl-author-card .bl-avatar{ width:64px; height:64px; font-size:24px; margin-bottom:14px; border:2px solid var(--brass); }
.bl-author-card h4{ font-size:17px; color:var(--ink); }
.bl-author-card .role{ font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--brass); margin:2px 0 12px; }
.bl-author-card p{ font-size:14px; line-height:1.65; color:var(--slate); }
.bl-links a{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding:13px 22px; border-top:1px solid var(--line-on-light);
  font-size:14.5px; font-weight:500; color:var(--ink-text); transition:background .2s ease, color .2s ease, padding .2s ease;
}
.bl-links a:first-child{ border-top:none; }
.bl-links a span{ color:var(--brass); }
.bl-links a:hover{ background:var(--mint); color:var(--ink); padding-left:28px; }
.bl-side-cta{ background:linear-gradient(140deg, var(--ink) 0%, var(--ink-3) 100%); color:#fff; border-radius:var(--radius); padding:28px 24px; }
.bl-side-cta .eyebrow{ color:var(--brass-light); margin-bottom:12px; }
.bl-side-cta .eyebrow::before{ background:var(--brass-light); }
.bl-side-cta h4{ font-size:19px; line-height:1.3; margin-bottom:10px; }
.bl-side-cta p{ font-size:14px; color:rgba(255,255,255,0.7); margin-bottom:20px; }
.bl-side-cta .btn{ width:100%; }

/* Related */
.bl-related{ background:var(--parchment-2); }

/* ---------- Final CTA (homepage hero style) ---------- */
.bl-cta{ text-align:center; padding:110px 0; }
.bl-cta-inner{ max-width:820px; margin:0 auto; }
.bl-cta .eyebrow{ justify-content:center; color:var(--brass-light); }
.bl-cta .eyebrow::before{ display:none; }
.bl-cta h2{ color:#fff; font-size:clamp(28px,3.8vw,46px); }
.bl-cta .lead{ margin:20px auto 0; max-width:600px; font-size:16px; color:rgba(255,255,255,0.78); }
.bl-cta .hero-actions{ justify-content:center; }

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .bl-post-layout{ grid-template-columns:1fr; gap:0; }
  .bl-aside{ position:static; display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
}
@media (max-width:900px){
  .bl-grid{ grid-template-columns:repeat(2,1fr); }
  .bl-featured{ grid-template-columns:1fr; }
  .bl-featured-img{ min-height:260px; }
}
@media (max-width:640px){
  .bl-hero, .bl-post-hero{ padding:80px 0 100px; }
  .bl-grid{ grid-template-columns:1fr; }
  .bl-featured-body{ padding:30px 24px; }
  .bl-article{ padding:30px 22px; margin-top:-50px; }
  .bl-toolbar{ flex-direction:column; align-items:flex-start; }
  .bl-cta{ padding:80px 0; }
  .bl-crumb em{ max-width:200px; }
}
