/* ===== blog (/blog, /blog/<slug>) — builds on style.css + solution.css ===== */

/* hero */
.bl-hero{ padding-top:clamp(18px,2.4vw,32px); animation:sl-in .9s var(--ease) both; }
@media (prefers-reduced-motion:reduce){ .bl-hero{ animation:none; } }
.bl-hero h1{ margin-top:clamp(14px,1.6vw,22px); max-width:17em; font-size:clamp(36px,4.8vw,68px); font-weight:600; letter-spacing:-.045em; line-height:1.03; color:var(--ink); text-wrap:balance; }
.bl-idx .bl-hero h1{ max-width:12em; font-size:clamp(42px,6.8vw,100px); letter-spacing:-.05em; line-height:.98; }
.bl-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin-top:clamp(20px,2.2vw,30px); font-size:15px; color:var(--soft); }
.bl-by{ display:inline-flex; align-items:center; gap:12px; color:var(--ink); font-weight:500; }
.bl-by img{ width:40px; height:40px; border-radius:50%; object-fit:cover; }
.bl-by a{ transition:color .2s; }
.bl-by a:hover{ color:var(--blue); }
.bl-meta time, .bl-meta .bl-rt{ display:inline-flex; align-items:center; gap:18px; }
.bl-meta time::before, .bl-meta .bl-rt::before{ content:""; width:4px; height:4px; border-radius:50%; background:#C3C6CC; }

/* short answer + top CTA */
.bl-short{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:24px 48px; margin-top:clamp(30px,3.6vw,52px); background:var(--bg2); border-radius:28px; padding:clamp(24px,3.2vw,44px); }
.bl-short p{ margin-top:16px; max-width:44em; font-size:clamp(17.5px,1.45vw,21px); font-weight:500; line-height:1.55; letter-spacing:-.01em; color:var(--ink); }

/* article layout: sticky table of contents + text column */
.bl-layout{ display:grid; grid-template-columns:minmax(0,270px) minmax(0,760px); justify-content:space-between; gap:clamp(32px,5vw,96px); padding-top:clamp(48px,5.4vw,80px); }
.bl-toc{ align-self:start; position:sticky; top:92px; }
.bl-toc p{ font-size:13.5px; font-weight:600; letter-spacing:.02em; text-transform:uppercase; color:var(--soft); margin-bottom:14px; }
.bl-toc ol{ list-style:none; margin:0; padding:0; border-left:1.5px solid var(--line); counter-reset:t; }
.bl-toc li{ counter-increment:t; }
.bl-toc a{ display:flex; gap:10px; margin-left:-1.5px; padding:7px 0 7px 16px; border-left:1.5px solid transparent; font-size:14.5px; line-height:1.4; color:var(--mut); transition:color .2s, border-color .2s; }
.bl-toc a::before{ content:counter(t, decimal-leading-zero); flex:none; font-variant-numeric:tabular-nums; color:#B4B7BD; }
.bl-toc a:hover, .bl-toc a.on{ color:var(--ink); border-left-color:var(--blue); }

/* prose */
.bl-prose{ min-width:0; font-size:18px; line-height:1.68; color:#2A2C31; }
.bl-prose > section{ scroll-margin-top:90px; }
.bl-prose > section + section{ margin-top:clamp(52px,5vw,72px); }
.bl-prose h2{ font-size:clamp(27px,2.5vw,36px); font-weight:600; letter-spacing:-.03em; line-height:1.12; color:var(--ink); text-wrap:balance; }
.bl-prose h3{ margin-top:30px; font-size:20px; font-weight:600; letter-spacing:-.015em; line-height:1.3; color:var(--ink); }
.bl-prose h2 + p{ margin-top:18px; font-weight:500; color:var(--ink); }
.bl-prose p + p, .bl-prose ul + p, .bl-prose ol + p, .bl-prose .sl-tw + p, .bl-prose h3 + p{ margin-top:16px; }
.bl-prose h3 + p{ margin-top:10px; }
.bl-prose a:not(.sl-pj):not(.lm-btn){ color:var(--blue); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; text-decoration-color:rgba(47,107,255,.35); transition:text-decoration-color .2s; }
.bl-prose a:not(.sl-pj):not(.lm-btn):hover{ text-decoration-color:var(--blue); }
.bl-prose ul:not([class]), .bl-prose ol:not([class]){ margin:18px 0 0; padding:0; list-style:none; display:grid; gap:12px; }
.bl-prose ul:not([class]) li{ position:relative; padding-left:24px; }
.bl-prose ul:not([class]) li::before{ content:""; position:absolute; left:3px; top:.68em; width:7px; height:7px; border-radius:50%; background:var(--blue); }
.bl-prose ol:not([class]){ counter-reset:o; }
.bl-prose ol:not([class]) li{ position:relative; padding-left:38px; counter-increment:o; }
.bl-prose ol:not([class]) li::before{ content:counter(o); position:absolute; left:0; top:.18em; display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:#E6EEFF; color:var(--blue); font-size:13.5px; font-weight:600; line-height:1; }
.bl-prose li b, .bl-prose p b{ color:var(--ink); font-weight:600; }
.bl-prose .sl-tw{ margin-top:24px; }
.bl-prose .sl-check{ margin-top:20px; font-size:17px; line-height:1.55; }
.bl-src{ margin-top:14px !important; font-size:14.5px; line-height:1.5; color:var(--soft); }

/* neutral comparison: both columns equal */
.bl-tbl thead th:last-child{ color:var(--ink); }
.bl-tbl td, .bl-tbl td:last-child{ color:#3A3C42; }
.bl-tbl tbody th{ width:24%; }

/* step plan */
.bl-steps{ list-style:none; margin:24px 0 0; padding:0; display:grid; gap:10px; counter-reset:s; }
.bl-steps li{ display:grid; grid-template-columns:44px minmax(0,1fr); gap:4px 18px; padding:22px 24px; border:1px solid var(--line); border-radius:22px; counter-increment:s; }
.bl-steps li::before{ content:counter(s); grid-row:1 / span 2; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--blue); color:#fff; font-size:16px; font-weight:600; }
.bl-steps b{ align-self:center; font-size:19px; font-weight:600; letter-spacing:-.015em; line-height:1.3; color:var(--ink); }
.bl-steps p{ font-size:16px; line-height:1.55; color:var(--mut); }

/* callout + inline CTA */
.bl-note{ margin-top:24px; padding:22px 24px; border-radius:20px; background:var(--bg2); font-size:16px; line-height:1.6; color:#3A3C42; }
.bl-note b{ color:var(--ink); }
.bl-cta{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:20px 32px; margin-top:clamp(40px,4vw,56px) !important; padding:clamp(24px,3vw,36px); border-radius:26px; background:var(--blue); color:#fff; }
.bl-cta > div > b{ display:block; font-size:clamp(21px,1.9vw,26px); font-weight:600; letter-spacing:-.025em; line-height:1.2; color:#fff; }
.bl-cta > div > span{ display:block; margin-top:8px; font-size:16px; line-height:1.5; color:rgba(255,255,255,.85); }

/* project card inside the text column */
.bl-pj{ margin-top:26px; }
.bl-pj .sl-pj{ border-radius:26px; }
.bl-pj .sl-pj-info{ padding-top:6px; }
.bl-pj .sl-stats b{ font-size:clamp(22px,2vw,28px); }
.bl-prose .bl-pj h3{ margin-top:0; color:#fff; font-size:clamp(24px,2.2vw,30px); letter-spacing:-.035em; line-height:1.08; }
.bl-prose .bl-pj b{ color:#fff; }
.bl-prose .bl-pj p{ margin-top:0; }
.bl-pj + p{ margin-top:22px !important; }

/* blog index cards */
.bl-list{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding-top:clamp(44px,5vw,72px); }
.bl-card{ display:flex; flex-direction:column; gap:14px; min-height:330px; padding:clamp(24px,2.4vw,34px); border-radius:28px; background:var(--bg2); transition:background .3s; }
.bl-card:hover{ background:#EAF0FF; }
.bl-card-k{ display:flex; flex-wrap:wrap; gap:8px 14px; font-size:14px; color:var(--soft); }
.bl-card-k span{ display:inline-flex; align-items:center; height:28px; padding:0 12px; border-radius:99px; background:#fff; font-size:13px; font-weight:600; color:var(--blue); }
.bl-card-k time{ display:inline-flex; align-items:center; }
.bl-card h2{ font-size:clamp(23px,2vw,29px); font-weight:600; letter-spacing:-.03em; line-height:1.15; color:var(--ink); text-wrap:balance; }
.bl-card p{ font-size:16px; line-height:1.55; color:var(--mut); }
.bl-card i{ display:grid; place-items:center; width:44px; height:44px; margin-top:auto; border-radius:50%; background:var(--blue); color:#fff; transition:transform .3s var(--ease); }
.bl-card i svg{ width:16px; height:16px; }
.bl-card:hover i{ transform:rotate(45deg); }
.bl-intro{ margin-top:clamp(18px,2vw,28px); max-width:38em; font-size:clamp(17px,1.4vw,20px); line-height:1.55; color:var(--mut); }

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .bl-layout{ grid-template-columns:minmax(0,1fr); gap:0; }
  .bl-toc{ position:static; padding:22px 22px 14px; border-radius:22px; border:1px solid var(--line); margin-bottom:clamp(40px,6vw,56px); }
  .bl-toc ol{ border-left:0; }
  .bl-toc a{ margin-left:0; padding:7px 0; border-left:0; }
  .bl-list{ grid-template-columns:1fr 1fr; }
}
@media (max-width:760px){
  .bl-short, .bl-cta{ grid-template-columns:1fr; }
  .bl-list{ grid-template-columns:1fr; gap:8px; }
  .bl-card{ min-height:0; }
}
@media (max-width:640px){
  .bl-hero h1{ font-size:clamp(32px,8.8vw,42px); letter-spacing:-.04em; }
  .bl-idx .bl-hero h1{ font-size:clamp(38px,10.6vw,50px); }
  .bl-meta{ font-size:14px; gap:8px 14px; }
  .bl-meta time, .bl-meta .bl-rt{ gap:14px; }
  .bl-by{ flex-basis:100%; }
  .bl-meta time::before{ display:none; }
  .bl-tbl tbody th{ width:auto; }
  .bl-tbl td:last-child::before{ color:var(--soft); }
  .bl-short{ margin-left:calc(var(--gut) * -1); margin-right:calc(var(--gut) * -1); border-radius:24px; padding:24px 20px; }
  .bl-short p{ font-size:17px; }
  .bl-prose{ font-size:17px; line-height:1.65; }
  .bl-prose h2{ font-size:26px; }
  .bl-steps li{ grid-template-columns:36px minmax(0,1fr); gap:4px 14px; padding:18px; }
  .bl-steps li::before{ width:36px; height:36px; font-size:14.5px; }
  .bl-steps b{ font-size:17.5px; }
  .bl-steps p{ grid-column:1 / -1; font-size:15.5px; }
  .bl-cta{ margin-left:calc(var(--gut) * -1); margin-right:calc(var(--gut) * -1); border-radius:24px; padding:26px 20px 20px; }
  .bl-note{ padding:18px; font-size:15.5px; }
  .bl-pj{ margin-left:calc(var(--gut) * -1); margin-right:calc(var(--gut) * -1); }
  .bl-card{ border-radius:24px; padding:24px 20px; }
}
