/* ══════════════════════════════════════════════════════════
   Out The Lot — blog styles (light theme)
   /assets/otl-article.css
   Used by /blog/index.html and every post. Replaces the old
   inline dark <style> blocks so the blog matches the main site.
   ══════════════════════════════════════════════════════════ */
:root{
  --red:#D32F2F; --red-dk:#b71c1c; --red-lt:#fee2e2;
  --ink:#0f172a; --ink-2:#1e293b;
  --slate:#475569; --mute:#94a3b8; --line:#e2e8f0; --line-2:#f1f5f9;
  --bg:#f8fafc; --card:#ffffff;
  --ready-bg:#d1fae5; --ready-bd:#10b981; --ready-fg:#047857;
  --qc-bg:#fef3c7; --qc-bd:#f59e0b; --qc-fg:#b45309;
  --ro-bg:#dbeafe; --ro-bd:#3b82f6; --ro-fg:#1d4ed8;
  --f:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
/* body, links and reset come from otl.css — the shell owns them */

/* ══ LAYOUT ══ */
.main .wrap{max-width:820px;padding:2.4rem 1.5rem 4rem}
article{max-width:740px;margin:0 auto;padding:2rem 0 4rem}

/* ══ INDEX PAGE ══ */
.page-header{margin-bottom:2.6rem;padding-bottom:2rem;border-bottom:1px solid var(--line)}
.eyebrow{display:inline-block;font-size:.68rem;font-weight:800;text-transform:uppercase;
  letter-spacing:.2em;color:var(--red);margin-bottom:.8rem}
h1{font-size:clamp(2rem,5.5vw,3.1rem);font-weight:800;letter-spacing:-.045em;
  line-height:1.06;color:var(--ink);margin-bottom:1rem}
h1 em{font-style:normal;color:var(--red)}
.intro{font-size:1.05rem;color:var(--slate);line-height:1.75;max-width:620px}

.posts{display:flex;flex-direction:column;gap:1rem;margin-top:2.4rem}
.post-card{background:#fff;border:1px solid var(--line);border-left:4px solid var(--ro-bd);
  border-radius:13px;padding:1.6rem 1.8rem;display:block;
  transition:transform .2s,box-shadow .2s,border-left-color .2s}
.post-card:hover{transform:translateX(5px);box-shadow:0 12px 30px rgba(15,23,42,.1);
  border-left-color:var(--red)}
.post-meta{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center;
  font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.11em;
  color:var(--mute);margin-bottom:.7rem}
.post-meta .tag{color:var(--red-dk);background:var(--red-lt);
  padding:.2rem .55rem;border-radius:5px;letter-spacing:.09em}
.post-card h2{font-size:1.28rem;font-weight:700;line-height:1.28;letter-spacing:-.028em;
  color:var(--ink);margin-bottom:.5rem}
.post-card p{font-size:.92rem;line-height:1.65;color:var(--slate);margin:0}

/* ══ ARTICLE ══ */
article h1{margin-bottom:1.1rem}
.lede{font-size:1.15rem;line-height:1.72;color:var(--slate);margin-bottom:1.8rem;
  font-weight:400}
article h2{font-size:1.5rem;font-weight:800;letter-spacing:-.035em;line-height:1.2;
  margin:2.6rem 0 .9rem;scroll-margin-top:5rem}
article h3{font-size:1.12rem;font-weight:700;letter-spacing:-.02em;margin:1.8rem 0 .6rem}
article p{color:var(--slate);margin-bottom:1.15rem;font-size:1rem;line-height:1.75}
article p strong,article li strong{color:var(--ink);font-weight:600}
article a{color:var(--red);font-weight:500;border-bottom:1px solid rgba(211,47,47,.3)}
article a:hover{border-bottom-color:var(--red)}
article ul,article ol{margin:0 0 1.3rem 1.3rem;color:var(--slate)}
article li{margin-bottom:.55rem;line-height:1.7}

/* byline */
.byline{display:flex;align-items:center;gap:.8rem;padding:1rem 0 1.6rem;
  margin-bottom:1.8rem;border-bottom:1px solid var(--line)}
.byline-avatar{width:42px;height:42px;border-radius:50%;background:var(--red);color:#fff;
  display:grid;place-items:center;font-weight:800;font-size:.85rem;flex-shrink:0;
  letter-spacing:.02em}
.byline-text{font-size:.86rem;color:var(--slate);line-height:1.45}
.byline-text strong{display:block;color:var(--ink);font-weight:700;font-size:.92rem}

/* callout */
.callout{background:#fff;border:1px solid var(--line);border-left:4px solid var(--red);
  border-radius:0 11px 11px 0;padding:1.3rem 1.5rem;margin:1.9rem 0}
.callout p{margin-bottom:.7rem}
.callout p:last-child{margin-bottom:0}
.callout strong{color:var(--ink)}

/* SMS preview */
.sms-preview{background:var(--line-2);border:1px solid var(--line);border-radius:13px;
  padding:1.3rem 1.5rem;margin:1.9rem 0}
.sms-label,.label{display:block;font-size:.64rem;font-weight:800;letter-spacing:.16em;
  text-transform:uppercase;color:var(--mute);margin-bottom:.8rem}
.sms-bubble{background:var(--ro-bg);border:1px solid var(--ro-bd);color:var(--ink);
  border-radius:16px 16px 16px 4px;padding:.95rem 1.15rem;max-width:400px;
  font-size:.94rem;line-height:1.6;box-shadow:0 2px 8px rgba(59,130,246,.14)}

/* toggle box */
.toggle-box{background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:1.3rem 1.5rem;margin:1.3rem 0}
.toggle-box .label{color:var(--red)}
.toggle-box p{margin-bottom:.7rem;font-size:.94rem}
.toggle-box p:last-child{margin-bottom:0}

/* CTA */
.cta-box{background:var(--ink);border-radius:16px;padding:2.4rem 2rem;margin:3rem 0 2rem;
  text-align:center;position:relative;overflow:hidden}
.cta-box::before{content:'';position:absolute;top:-55%;left:50%;transform:translateX(-50%);
  width:540px;height:360px;background:rgba(211,47,47,.3);filter:blur(100px);border-radius:50%}
.cta-box>*{position:relative}
.cta-box h3{color:#fff;font-size:1.5rem;font-weight:800;letter-spacing:-.035em;
  margin-bottom:.7rem}
.cta-box p{color:#94a3b8;margin-bottom:1.4rem;font-size:.96rem}
.cta-box a{display:inline-block;background:var(--red);color:#fff;border-radius:9px;
  padding:.82rem 2rem;font-weight:600;font-size:.94rem;border:none;transition:.15s}
.cta-box a:hover{background:var(--red-dk);transform:translateY(-2px);border:none}

/* related */
.related{border-top:1px solid var(--line);padding-top:1.8rem;margin-top:2.6rem}
.related .label{color:var(--mute)}
.related a{display:block;padding:.75rem 0;border-bottom:1px solid var(--line-2);
  color:var(--ink);font-weight:600;font-size:.95rem;border-left:none;transition:color .15s}
.related a:last-child{border-bottom:none}
.related a:hover{color:var(--red)}

/* ══════════════════════════════════════════════════════════
   ARTICLE COMPONENTS
   Used across the four posts. Structures verified against the
   live markup rather than inferred.
   ══════════════════════════════════════════════════════════ */

/* ── Numbered section heading: <h2><span class="num">01</span> … ── */
article h2 .num{display:inline-grid;place-items:center;width:2.05rem;height:2.05rem;
  background:var(--red);color:#fff;border-radius:9px;
  font-size:.86rem;font-weight:800;letter-spacing:-.01em;
  margin-right:.65rem;vertical-align:.08em;flex-shrink:0;
  box-shadow:0 3px 10px rgba(211,47,47,.28)}

/* ── Warning / diagnostic callout ── */
.warning-box{background:linear-gradient(135deg,#fffbeb,#fef3c7);
  border:1.5px solid var(--qc-bd);border-left-width:4px;
  border-radius:0 12px 12px 0;padding:1.2rem 1.4rem;margin:1.9rem 0}
.warning-box .label{color:var(--qc-fg);margin-bottom:.55rem}
.warning-box p{color:#78350f;margin-bottom:.6rem;font-size:.95rem;line-height:1.65}
.warning-box p:last-child{margin-bottom:0}
.warning-box strong{color:#7c2d12;font-weight:700}

/* ── Stat grid ── */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));
  gap:.85rem;margin:1.9rem 0}
.stat-card{background:#fff;border:1px solid var(--line);border-top:3px solid var(--red);
  border-radius:11px;padding:1.3rem 1.1rem;text-align:center;
  transition:transform .18s,box-shadow .18s}
.stat-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(15,23,42,.09)}
.stat-num{font-size:2.05rem;font-weight:800;letter-spacing:-.05em;line-height:1;
  color:var(--ink)}
.stat-label{font-size:.79rem;color:var(--slate);line-height:1.45;margin-top:.55rem}

/* ── Before / after comparison ── */
.compare{display:grid;grid-template-columns:1fr 1fr;gap:.85rem;margin:1.9rem 0}
.compare-card{border:1px solid var(--line);border-radius:12px;padding:1.2rem 1.35rem;
  background:#fff;border-left-width:4px}
.compare-card .label{margin-bottom:.5rem}
.compare-card p{font-size:.92rem;line-height:1.62;margin:0}
.compare-card.before{border-left-color:var(--issue-bd,#ef4444);background:#fef2f2}
.compare-card.before .label{color:#b91c1c}
.compare-card.before p{color:#7f1d1d}
.compare-card.after{border-left-color:var(--ready-bd);background:#f0fdf4}
.compare-card.after .label{color:var(--ready-fg)}
.compare-card.after p{color:#065f46}
@media(max-width:600px){.compare{grid-template-columns:1fr}}

/* ── Rollout timeline — mirrors the pipeline spine on the main site ── */
.timeline{position:relative;margin:1.9rem 0 1.9rem .4rem;padding-left:1.7rem}
.timeline::before{content:'';position:absolute;left:6px;top:.7rem;bottom:.7rem;
  width:2px;background:linear-gradient(180deg,var(--ro-bd),var(--ready-bd))}
.timeline-item{position:relative;padding:0 0 1.5rem}
.timeline-item:last-child{padding-bottom:0}
.timeline-item::before{content:'';position:absolute;left:-1.7rem;top:.42rem;
  width:14px;height:14px;border-radius:50%;background:#fff;
  border:3px solid var(--ro-bd);z-index:2}
.timeline-item:last-child::before{border-color:var(--ready-bd)}
.timeline-week{display:inline-block;font-size:.63rem;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--red);background:var(--red-lt);
  padding:.22rem .6rem;border-radius:999px;margin-bottom:.45rem}
.timeline-item h3{font-size:1.06rem;font-weight:700;letter-spacing:-.022em;
  margin:.15rem 0 .4rem}
.timeline-item p{font-size:.93rem;line-height:1.66;margin-bottom:0;color:var(--slate)}

/* ══ MOBILE — articles ══ */
@media(max-width:640px){
  article,.main .wrap{padding-left:.4rem;padding-right:.4rem}
  article h1{font-size:1.85rem}
  article h2{font-size:1.28rem;margin:2rem 0 .7rem}
  article h2 .num{width:1.75rem;height:1.75rem;font-size:.78rem;margin-right:.5rem}
  .lede{font-size:1.02rem}
  .stat-grid{grid-template-columns:1fr 1fr;gap:.6rem}
  .stat-card{padding:1rem .8rem}
  .stat-num{font-size:1.6rem}
  .stat-label{font-size:.72rem}
  .cta-box{padding:1.8rem 1.2rem}
  .cta-box h3{font-size:1.25rem}
  .sms-preview,.warning-box,.callout,.toggle-box{padding:1rem 1.1rem}
  .timeline{padding-left:1.5rem}
  .timeline-item::before{left:-1.5rem}
  footer .flinks{gap:.8rem;font-size:.8rem}
}
