/* Backspin Blog — editorial article layout (2026-10).
   Dark gradient hero with a big uppercase headline, numbered section heads, a dark CTA card,
   a sources block and a sand sign-off band. Keeps every AHD component (BackSpin cards, cover image,
   key takeaways, quick answer, tables, FAQ, next step, author box) and restyles them to match. */
:root{--ed-ink:#151210;--ed-ink2:#231d18;--ed-red:#9e1b32;--ed-red2:#c4122f;--ed-sand:#e4bf88;--ed-sand2:#cdb07a;--ed-cream:#f6f1e8;--ed-paper:#fbf8f2;--ed-line:#e2d9c6;--ed-text:#1d1915;--ed-muted:#5f574d}
body.ed-post{background:var(--ed-cream)}

/* ---------- hero ---------- */
.ed-post .article-hero{position:relative!important;display:block!important;min-height:0!important;margin:0!important;padding:0!important;
  background:linear-gradient(135deg,#311b19 0%,#1c1b1b 48%,#841f2b 100%)!important;
  color:#fff!important;overflow:hidden;border:0!important;border-radius:0!important;box-shadow:none!important}
.ed-post .article-hero::before,.ed-post .article-hero::after{display:none!important;content:none!important}
.ed-post .article-hero>img{display:none!important}
.ed-post .article-head{position:relative!important;max-width:1060px!important;margin:0 auto!important;padding:clamp(34px,6vw,64px) 20px 0!important;background:none!important;color:#fff!important;text-align:left!important;box-shadow:none!important;border:0!important}
.ed-post .article-head .breadcrumbs{font:700 12px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif!important;letter-spacing:.04em;color:rgba(255,255,255,.62)!important;margin:0 0 18px!important}
.ed-post .article-head .breadcrumbs a{color:rgba(255,255,255,.78)!important;text-decoration:none!important}
.ed-post .article-head .tag{display:block!important;background:none!important;border:0!important;padding:0!important;margin:0 0 18px!important;border-radius:0!important;
  font:800 clamp(11.5px,1.6vw,14px)/1.7 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif!important;letter-spacing:.22em!important;text-transform:uppercase;color:var(--ed-sand)!important}
.ed-post .article-head .tag::before{content:"AHD BACKSPIN BLOG · "}
.ed-post .article-head h1{font-family:system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif!important;font-weight:1000!important;text-transform:uppercase;letter-spacing:-.045em!important;
  font-size:clamp(40px,7.4vw,84px)!important;line-height:.96!important;margin:0 0 22px!important;color:#fff!important;max-width:16ch;text-wrap:balance;text-shadow:none!important}
.ed-post .article-head h1 .ed-acc{color:var(--ed-sand)}
.ed-post .article-head>p{font:800 clamp(18px,2.5vw,24px)/1.4 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif!important;color:#f4ece0!important;max-width:760px;margin:0 0 26px!important;text-shadow:none!important}
.ed-post .article-head .post-meta{font:600 13px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif!important;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.82)!important;margin:0!important;padding-bottom:26px}
.ed-post .article-head .post-meta a{color:#fff!important}
.ed-cover{max-width:1060px;margin:0 auto;padding:6px 20px 0}
.ed-cover-in{display:grid;grid-template-columns:auto 1fr;gap:0;border-top:1px solid rgba(255,255,255,.16)}
.ed-cover figure{margin:0;padding:22px 0 26px;grid-column:1/-1}
.ed-cover img{display:block;width:100%;max-width:620px;height:auto;border-radius:14px;box-shadow:0 22px 50px rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.12);margin:0 auto 0 0;cursor:zoom-in}
.ed-cover .ed-logo{display:flex;align-items:center;gap:12px;padding:16px 0 0;grid-column:1/-1}
.ed-cover .ed-logo img{width:150px!important;max-width:150px!important;height:auto!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;cursor:default;margin:0!important}
.ed-cover .ed-logo span{font:800 11px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif;letter-spacing:.2em;color:rgba(255,255,255,.7);text-transform:uppercase}

/* ---------- article body ---------- */
.ed-post .article-layout{background:var(--ed-cream)!important;padding-top:10px!important}
.ed-post .article-body{width:100%!important;min-width:0!important;max-width:740px!important;margin:0 auto!important;padding:28px 0 10px!important;background:transparent!important;box-shadow:none!important;border:0!important;
  font:400 17.5px/1.72 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif!important;color:var(--ed-text)!important;counter-reset:ed}
.ed-post .article-body>p{margin:0 0 20px}
.ed-post .article-body strong{font-weight:800;color:#100d0b}
.ed-post .article-body a{color:var(--ed-red);text-decoration-thickness:1.5px;text-underline-offset:3px}
.ed-post .article-body>h2{position:relative;font-family:system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif!important;font-weight:900!important;letter-spacing:-.02em!important;
  font-size:clamp(27px,3.6vw,36px)!important;line-height:1.08!important;color:#100d0b!important;margin:56px 0 18px!important;padding:22px 0 0!important;border:0!important;background:none!important;box-shadow:none!important;text-transform:none}
.ed-post .article-body>h2::before{content:"";position:absolute;left:0;top:0;width:46px;height:5px;border-radius:3px;background:var(--ed-red)}
.ed-post .article-body>h2.ed-num{counter-increment:ed}
.ed-post .article-body>h2.ed-num::after{content:none}
.ed-post .article-body>h2.ed-num>.ed-n{color:var(--ed-red);margin-right:.18em}
.ed-post .article-body>h3{font-family:system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif!important;font-weight:800!important;font-size:22px!important;line-height:1.2!important;margin:32px 0 10px!important;border:0!important;background:none!important;padding:0!important}
.ed-post .article-body ul,.ed-post .article-body ol{padding-left:22px;margin:0 0 22px}
.ed-post .article-body li{margin:0 0 9px}
.ed-post .article-body li::marker{color:var(--ed-red);font-weight:900}
.ed-post .article-body blockquote{margin:28px 0;padding:6px 0 6px 20px;border-left:5px solid var(--ed-red);font:800 22px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif;color:#100d0b;background:none}
.ed-post .article-body .ahd-big,.ed-post .article-body .big{font-family:system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif!important;font-weight:900!important}

/* first bold signature line under the hero */
.ed-post .article-body>p:first-child{font-size:14.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ed-muted);border-bottom:1px solid var(--ed-line);padding-bottom:16px}
.ed-post .article-body>p:first-child strong{color:var(--ed-muted);font-weight:800}

/* key takeaways / quick answer / table of contents */
.ed-post .key-takeaways{background:var(--ed-ink)!important;color:#f4ece0!important;border:0!important;border-radius:16px!important;padding:22px 24px!important;margin:26px 0!important;box-shadow:0 14px 34px rgba(21,18,16,.18)!important}
.ed-post .key-takeaways h3{color:var(--ed-sand)!important;font:800 12px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif!important;letter-spacing:.2em!important;text-transform:uppercase;margin:0 0 12px!important}
.ed-post .key-takeaways li{color:#efe6d6!important}.ed-post .key-takeaways strong{color:#fff!important}
.ed-post .key-takeaways li::marker{color:var(--ed-sand)}
.ed-post .ahd-quick-answer{background:#fff!important;border:1px solid var(--ed-line)!important;border-left:6px solid var(--ed-red)!important;border-radius:14px!important}
.ed-post .ba-toc{background:#fff!important;border:1px solid var(--ed-line)!important;border-radius:14px!important;padding:16px 20px!important}
.ed-post .ba-toc a{color:var(--ed-text)!important;font-weight:700}

/* BackSpin cards stay as they are, just framed */
.ed-post .article-body figure.bx{margin:34px 0!important}
.ed-post .ahd-tbl{border-radius:14px;overflow:hidden;border:1px solid var(--ed-line)}

/* FAQ */
.ed-post .faq .ba-faq-item{background:#fff;border:1px solid var(--ed-line);border-radius:14px;padding:16px 18px;margin:0 0 10px}
.ed-post .faq .ba-faq-item h3{margin:0 0 6px!important;font-size:18px!important}
.ed-post .faq .ba-faq-item p{margin:0}

/* next step = the dark CTA card */
.ed-post .ahd-next-step{background:var(--ed-ink)!important;color:#fff!important;border:0!important;border-radius:18px!important;padding:28px 26px!important;margin:44px 0!important;box-shadow:0 22px 46px rgba(21,18,16,.25)!important;position:relative;overflow:hidden}
.ed-post .ahd-next-step::before{content:"";position:absolute;right:-60px;bottom:-60px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(158,27,50,.55),rgba(158,27,50,0) 70%)}
.ed-post .ahd-next-step .ans-h{font-family:system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif!important;font-weight:900!important;text-transform:uppercase;letter-spacing:-.02em!important;font-size:clamp(26px,4vw,34px)!important;line-height:1.02!important;color:#fff!important}
.ed-post .ahd-next-step p{color:#e9dfcf!important}
.ed-post .ahd-next-step a{position:relative}
.ed-post .ahd-next-step .ans-actions a:first-child{background:var(--ed-red)!important;color:#fff!important;border-color:var(--ed-red)!important}

/* sources */
.ed-post .ba-sources{margin:40px 0 0!important;padding:22px 0 0!important;border-top:1px solid var(--ed-line)}
.ed-post .ba-sources small{display:block;font-size:14px!important;line-height:1.7;color:var(--ed-muted)}
.ed-post .ba-sources small::first-line{font:800 12px/2 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#100d0b}
.ed-post .ba-sources a{color:var(--ed-red)!important}

/* author + keep reading */
.ed-post .ahd-author{border-top-color:var(--ed-red)!important}
.ed-post .keep-reading h2{font-family:system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif!important;font-weight:900!important;text-transform:uppercase;letter-spacing:-.02em}

/* sand sign-off band */
.ed-band{background:#e6d6b6;color:#2a2219;text-align:center;padding:30px 20px;font:800 clamp(12px,1.6vw,14px)/1.6 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif;letter-spacing:.2em;text-transform:uppercase;border-top:1px solid #d6c39c;border-bottom:1px solid #d6c39c}
.ed-band b{display:block;font-family:system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif;font-weight:900;letter-spacing:-.01em;text-transform:none;font-size:clamp(20px,2.8vw,28px);margin-top:6px;color:#100d0b}

@media(max-width:640px){
  .ed-post .article-head h1{max-width:none}
  .ed-post .article-body{font-size:17px!important;padding:22px 0 6px!important}
  .ed-post .article-body>h2{margin-top:46px!important}
  .ed-cover img{border-radius:12px}
}

/* hero stat grid (only on posts listed in scripts/blog_stats.json) */
.ed-stats{max-width:1060px;margin:4px auto 0;padding:0 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.2)}
.ed-stats>div{padding:22px 8px 26px;text-align:center;border-right:1px solid rgba(255,255,255,.2)}.ed-stats>div:last-child{border-right:0}
.ed-stats b{display:block;font:1000 clamp(30px,4.6vw,44px)/1.1 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif;letter-spacing:-.05em;color:var(--ed-sand)}
.ed-stats span{display:block;margin-top:4px;font:800 12px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Inter,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#ece4d8}
@media(max-width:600px){.ed-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ed-stats>div:nth-child(2){border-right:0}.ed-stats>div:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.2)}}
/* Oct 16: tables scroll instead of clipping, and fit phones without sideways scrolling */
.ed-post .ahd-tbl{overflow-x:auto}
@media(max-width:600px){.ahd-tbl table{min-width:0!important;font-size:13.5px!important}.ahd-tbl th,.ahd-tbl td{padding:8px 9px!important}.ahd-tbl th{font-size:12px!important}}
