/* ===================== NoDrama Blog ===================== */
/* Reuses main.css tokens, header + footer, .nd-faq accordion, .nd-finalcta/.nd-cta-dark. */
body.nodrama-blog-post #nodrama-main,body.nodrama-blog-index #nodrama-main{display:flex;flex-direction:column;flex:1 0 auto;overflow-x:clip;background:#fff}
.bp-wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 24px;box-sizing:border-box}

/* ===== Badge / tags ===== */
.bp-badge{display:inline-flex;align-items:center;padding:6px 14px;border-radius:999px;background:#edf8ef;color:#07951b;font-family:'League Spartan','General Sans',sans-serif;font-weight:600;font-size:13px;line-height:1;letter-spacing:.4px;text-transform:uppercase}
.bp-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.bp-tag{font-family:'League Spartan','General Sans',sans-serif;font-weight:500;font-size:14px;color:#6b6b6b}

/* ===== Header band ===== */
.bp-head{background:#fff;padding:56px 0 64px}
.bp-head__meta-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:24px}
.bp-head__meta{font-family:'League Spartan','General Sans',sans-serif;font-weight:400;font-size:15px;color:#6b6b6b}
.bp-head__dot{width:4px;height:4px;border-radius:999px;background:#c4c4c4;flex:0 0 auto}
.bp-head__title{margin:0 0 32px;font-family:'General Sans',sans-serif;font-weight:500;font-size:64px;line-height:1.1;letter-spacing:-1px;color:#262626;max-width:22ch}
.bp-hero{border-radius:16px;overflow:hidden;background:#fff;aspect-ratio:16/9;margin-bottom:32px}
.bp-hero img{width:100%;height:100%;object-fit:contain;display:block}
.bp-head__intro{margin:0;font-family:'League Spartan','General Sans',sans-serif;font-weight:400;font-size:22px;line-height:1.3;letter-spacing:-0.2px;color:#6b6b6b;max-width:60ch}

/* ===== Stat-bar figure (full-width, between banner and article) ===== */
.bp-statbar-figure{margin-bottom:40px}
.bp-statbar-figure__caption{margin-top:12px;font-family:'League Spartan','General Sans',sans-serif;font-size:13px;color:#8a8a8a}

/* ===== Body: sticky TOC + content ===== */
.bp-body{background:#fff;padding:56px 0 96px}
.bp-grid{display:flex;gap:32px;align-items:flex-start}
.bp-toc{flex:0 0 260px;box-sizing:border-box;position:sticky;top:32px;align-self:flex-start}
.bp-toc__promo{margin-top:24px;padding-top:20px;border-top:1px solid #ededed;display:flex;flex-direction:column;gap:12px}
.bp-toc__promo p{margin:0;font-family:'League Spartan','General Sans',sans-serif;font-size:14px;line-height:1.5;color:#6b6b6b}
.bp-toc__cta{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 16px;border:1px solid #262626;border-radius:4px;font-family:'League Spartan','General Sans',sans-serif;font-weight:600;font-size:14px;color:#262626;text-decoration:none;align-self:flex-start;transition:background .2s ease,color .2s ease}
.bp-toc__cta:hover{background:#262626;color:#fff}
.bp-toc__label{margin:0 0 20px;font-family:'League Spartan','General Sans',sans-serif;font-weight:600;font-size:13px;line-height:1.44;letter-spacing:.6px;text-transform:uppercase;color:#8a8a8a}
.bp-toc__list{display:flex;flex-direction:column}
.bp-toc__link{display:flex;align-items:flex-start;gap:8px;padding:8px 0;font-family:'League Spartan','General Sans',sans-serif;font-weight:500;font-size:15px;line-height:1.4;color:#8a8a8a;text-decoration:none;border-left:2px solid transparent;margin-left:-1px;padding-left:11px;transition:color .2s ease,border-color .2s ease}
.bp-toc__link:hover{color:#262626}
.bp-toc__dot{display:none;flex:0 0 6px;width:6px;height:6px;margin-top:6px;border-radius:999px;background:#00d920}
.bp-toc__link.is-active{color:#262626;font-weight:600;border-left-color:#00d920}
.bp-toc__link.is-active .bp-toc__dot{display:block}

.bp-content{flex:1;min-width:0;max-width:72ch;display:flex;flex-direction:column;gap:32px}
.nd-post-body{display:flex;flex-direction:column;gap:24px;font-family:'League Spartan','General Sans',sans-serif;font-size:18px;line-height:1.6;color:#404040}
.nd-post-body h2{margin:16px 0 0;font-family:'General Sans',sans-serif;font-weight:500;font-size:32px;line-height:1.2;letter-spacing:-0.3px;color:#262626;scroll-margin-top:32px}
.nd-post-body h3{margin:8px 0 0;font-family:'General Sans',sans-serif;font-weight:600;font-size:22px;line-height:1.3;color:#262626}
.nd-post-body p{margin:0}
.nd-post-body ul,.nd-post-body ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:10px}
.nd-post-body a{color:#262626;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.nd-post-body a:hover{color:#07951b}

/* ===== TL;DR callout ===== */
.nd-post-tldr{background:#edf8ef;border:1px solid #cdeed3;border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:12px}
.nd-post-tldr__label{font-family:'League Spartan','General Sans',sans-serif;font-weight:600;font-size:13px;letter-spacing:.6px;text-transform:uppercase;color:#07951b}
.nd-post-tldr p{margin:0;font-size:17px;color:#262626}

/* ===== Checklist ===== */
.nd-post-check{display:flex;flex-direction:column;gap:16px;margin:0;padding:0;list-style:none}
.nd-post-check__item{display:flex;gap:14px;align-items:flex-start}
.nd-post-check__icon{flex:0 0 22px;width:22px;height:22px;border-radius:999px;background:#00d920;display:flex;align-items:center;justify-content:center;margin-top:2px}
.nd-post-check__icon svg{width:11px;height:8px}

/* ===== Info alert ===== */
.nd-post-alert{background:#f4f8ff;border:1px solid #dbe6fb;border-radius:12px;padding:20px 24px;display:flex;flex-direction:column;gap:6px}
.nd-post-alert__title{font-family:'General Sans',sans-serif;font-weight:600;font-size:15px;color:#1d4ed8}
.nd-post-alert p{margin:0;font-size:16px}

/* ===== Stat bar chart ===== */
.nd-post-statbar{border:1px solid #e3e3e3;border-radius:16px;padding:32px;background:#fff;display:flex;flex-direction:column;gap:20px}
.nd-post-statbar__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px}
.nd-post-statbar__eyebrow{display:block;font-family:'League Spartan','General Sans',sans-serif;font-weight:600;font-size:13px;letter-spacing:.4px;text-transform:uppercase;color:#8a8a8a}
.nd-post-statbar__big{display:block;font-family:'General Sans',sans-serif;font-weight:600;font-size:27px;letter-spacing:-0.3px;color:#262626}
.nd-post-statbar__note{font-family:'League Spartan','General Sans',sans-serif;font-size:14px;color:#8a8a8a;max-width:34ch}
.nd-post-statbar__row{display:flex;height:96px;border-radius:8px;overflow:hidden;gap:2px}
.nd-post-statbar__seg{display:flex;flex-direction:column;justify-content:center;padding:0 16px;gap:4px;color:#fff}
.nd-post-statbar__seg--dark{background:#262626}
.nd-post-statbar__seg--light{background:#d4d4d4;color:#262626;min-width:72px}
.nd-post-statbar__seg-num{font-family:'General Sans',sans-serif;font-weight:600;font-size:22px;line-height:1}
.nd-post-statbar__seg-label{font-family:'League Spartan','General Sans',sans-serif;font-size:14px}
.nd-post-statbar__core{flex:0 0 6px;background:#00d920}
.nd-post-statbar__legend{display:flex;align-items:flex-start;gap:12px;font-family:'League Spartan','General Sans',sans-serif;font-size:14px;color:#6b6b6b}
.nd-post-statbar__legend-dot{width:24px;height:6px;border-radius:999px;background:#00d920;flex:0 0 auto;margin-top:6px}

/* ===== Dark stat callout (single big number) ===== */
.nd-post-statcard{background:#262626;color:#fff;border-radius:16px;padding:28px 32px;display:flex;flex-wrap:wrap;gap:24px;align-items:center}
.nd-post-statcard__num{font-family:'General Sans',sans-serif;font-weight:600;font-size:36px;line-height:1;letter-spacing:-0.5px;color:#00d920}
.nd-post-statcard__label{display:block;margin-top:4px;font-family:'League Spartan','General Sans',sans-serif;font-size:14px;color:#c4c4c4}
.nd-post-statcard p{margin:0;font-size:16px;color:#d4d4d4;max-width:34ch;flex:1 1 240px}

/* ===== Numbered steps ===== */
.nd-post-steps{display:flex;flex-direction:column;gap:16px;margin:0;padding:0;list-style:none}
.nd-post-step{display:flex;gap:16px;align-items:flex-start}
.nd-post-step__num{flex:0 0 40px;font-family:'General Sans',sans-serif;font-weight:600;font-size:20px;color:#00ad19}

/* ===== Misconception / misc cards ===== */
.nd-post-misc{display:flex;flex-direction:column;gap:16px}
.nd-post-misc__card{border:1px solid #e3e3e3;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:10px}
.nd-post-misc__q{margin:0;font-family:'General Sans',sans-serif;font-weight:600;font-size:18px;color:#262626}
.nd-post-misc__a{margin:0;font-size:16px}

/* ===== Dark checklist summary card (task name + cadence) ===== */
.nd-post-checklist-card{background:#262626;color:#fff;border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:16px}
.nd-post-checklist-card__label{font-family:'League Spartan','General Sans',sans-serif;font-weight:600;font-size:13px;letter-spacing:.4px;text-transform:uppercase;color:#00d920}
.nd-post-checklist-card__list{display:flex;flex-direction:column;gap:0;margin:0;padding:0;list-style:none}
.nd-post-checklist-card__row{display:flex;flex-wrap:wrap;gap:12px;align-items:baseline;justify-content:space-between;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.14)}
.nd-post-checklist-card__row:last-child{border-bottom:none;padding-bottom:0}
.nd-post-checklist-card__name{font-family:'General Sans',sans-serif;font-weight:600;font-size:17px;color:#fff}
.nd-post-checklist-card__cadence{font-family:'League Spartan','General Sans',sans-serif;font-size:14px;color:#00d920;white-space:nowrap}

/* ===== Three-state flow diagram (e.g. staging test / live push / rollback) ===== */
.nd-post-flow{border:1px solid #e3e3e3;border-radius:16px;padding:28px;background:#fff;display:flex;flex-direction:column;gap:20px}
.nd-post-flow__label{font-family:'League Spartan','General Sans',sans-serif;font-weight:600;font-size:13px;letter-spacing:.4px;text-transform:uppercase;color:#8a8a8a}
.nd-post-flow__row{display:flex;align-items:center;gap:16px}
.nd-post-flow__step{flex:1 1 0;min-width:0;border:1px solid #e3e3e3;border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:6px}
.nd-post-flow__step--pass{border-color:#00d920;background:#edf8ef}
.nd-post-flow__step--fallback{border-style:dashed;border-color:#c4c4c4}
.nd-post-flow__step-title{font-family:'General Sans',sans-serif;font-weight:600;font-size:16px;color:#262626}
.nd-post-flow__step-text{font-family:'League Spartan','General Sans',sans-serif;font-size:14px;color:#6b6b6b}
.nd-post-flow__arrow{color:#c4c4c4;flex:0 0 auto;font-size:20px}
.nd-post-flow__note{margin:0;font-family:'League Spartan','General Sans',sans-serif;font-size:14px;color:#8a8a8a}
.nd-post-flow-figure{margin:0}
.nd-post-flow-figure__caption{margin-top:12px;font-family:'League Spartan','General Sans',sans-serif;font-size:13px;color:#8a8a8a}
@media (max-width:600px){.nd-post-flow__row{flex-direction:column;align-items:stretch}.nd-post-flow__arrow{transform:rotate(90deg);align-self:center}}

/* ===== Comparison table ===== */
.nd-post-table-wrap{border:1px solid #e3e3e3;border-radius:12px;overflow-x:auto}
.nd-post-table{width:100%;border-collapse:collapse;font-size:15px}
.nd-post-table th{text-align:left;padding:12px 16px;font-family:'General Sans',sans-serif;font-weight:600;font-size:14px;color:#262626;background:#f7f7f7;white-space:nowrap}
.nd-post-table td{padding:12px 16px;font-family:'League Spartan','General Sans',sans-serif;color:#404040;border-top:1px solid #ededed;white-space:nowrap}
.nd-post-table td:first-child{font-weight:600;color:#262626}
.nd-post-table-figure{margin:0}
.nd-post-table-figure__caption{margin-top:12px;font-family:'League Spartan','General Sans',sans-serif;font-size:13px;color:#8a8a8a}

/* FAQ nested inside the narrow article column (not full-width like the homepage/solution pages) */
.nd-faq--post{padding:0;flex-direction:column;gap:20px;background:transparent}
.nd-faq--post .nd-faq__side{flex:none;max-width:none}
.nd-faq--post .nd-faq__title{font-size:28px;max-width:none}
.nd-faq--post .nd-faq__list{max-width:none}

/* ===== Related posts ===== */
.bp-related{border-top:1px solid #ededed;padding-top:28px;display:flex;flex-direction:column;gap:16px}
.bp-related__h{margin:0;font-family:'General Sans',sans-serif;font-weight:600;font-size:22px;color:#262626}
.bp-related__list{display:flex;flex-direction:column;gap:10px}
.bp-related__link{font-family:'League Spartan','General Sans',sans-serif;font-size:16px;color:#262626;text-decoration:underline;text-underline-offset:3px}
.bp-related__link:hover{color:#07951b}

/* ===== Author bio ===== */
.bp-author{border-top:1px solid #ededed;padding-top:28px;display:flex;gap:16px;align-items:flex-start}
.bp-author__avatar{border-radius:999px;flex:0 0 auto;width:64px;height:64px}
.bp-author__body{display:flex;flex-direction:column;gap:4px}
.bp-author__label{font-family:'League Spartan','General Sans',sans-serif;font-weight:600;font-size:12px;letter-spacing:.4px;text-transform:uppercase;color:#8a8a8a}
.bp-author__name{font-family:'General Sans',sans-serif;font-weight:600;font-size:18px;color:#262626}
.bp-author__bio{margin:4px 0 0;font-family:'League Spartan','General Sans',sans-serif;font-size:15px;line-height:1.5;color:#6b6b6b}

/* ===== Block style variations (Gutenberg) ===== */
.nd-post-body .wp-block-paragraph.is-style-lead,.nd-post-body p.is-style-lead{font-size:24px;line-height:1.35;font-weight:600;font-family:'General Sans',sans-serif;color:#262626}
.nd-post-body .wp-block-paragraph.is-style-note,.nd-post-body p.is-style-note{font-size:14px;color:#8a8a8a}
.nd-post-body ul.is-style-checklist{display:flex;flex-direction:column;gap:16px;list-style:none;padding:0;margin:0}
.nd-post-body ul.is-style-checklist li{display:flex;gap:14px;align-items:flex-start;padding-left:0}
.nd-post-body ul.is-style-checklist li::before{content:'';flex:0 0 22px;width:22px;height:22px;margin-top:2px;border-radius:999px;background:#00d920 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'%3E%3Cpath d='M1 4.2 4 7 10 1' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/11px no-repeat}
.nd-post-body ol.is-style-numbered-steps{display:flex;flex-direction:column;gap:16px;list-style:none;padding:0;margin:0;counter-reset:nd-step}
.nd-post-body ol.is-style-numbered-steps li{display:flex;gap:16px;align-items:flex-start;padding-left:0;counter-increment:nd-step}
.nd-post-body ol.is-style-numbered-steps li::before{content:counter(nd-step,decimal-leading-zero);flex:0 0 40px;font-family:'General Sans',sans-serif;font-weight:600;font-size:20px;color:#00ad19}

@media (max-width:1023px){
  .bp-grid{flex-direction:column;gap:40px}
  .bp-toc{position:static;flex:0 0 auto;width:100%}
  /* Once the TOC stacks above instead of sitting beside the article, let the
     article use the width that frees up instead of staying capped at the
     two-column reading width — otherwise it leaves a dead gap on the right. */
  .bp-content{max-width:none}
}
@media (max-width:767px){
  .bp-head{padding:40px 0}
  .bp-head__title{font-size:34px;letter-spacing:-0.5px}
  .bp-head__intro{font-size:18px}
  .nd-post-body h2{font-size:26px}
  .nd-post-statbar{padding:20px}
}
/* Bar segments stay side-by-side down to true phone widths, matching the source design. */
@media (max-width:480px){
  .nd-post-statbar__row{height:auto;flex-direction:column}
  .nd-post-statbar__core{flex-basis:6px;height:6px;width:100%}
}

/* ===== Blog index ===== */
.bpx-hero{background:#f1f1f1;padding:64px 0}
.bpx-hero__title{margin:0 0 16px;font-family:'General Sans',sans-serif;font-weight:500;font-size:56px;line-height:1.1;letter-spacing:-1px;color:#262626}
.bpx-hero__sub{margin:0;font-family:'League Spartan','General Sans',sans-serif;font-size:20px;line-height:1.4;color:#6b6b6b;max-width:60ch}
.bpx-grid{padding:64px 0 96px}
.bpx-grid__inner{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.bpx-card{display:flex;flex-direction:column;gap:16px;text-decoration:none;color:inherit}
.bpx-card__fig{border-radius:12px;overflow:hidden;aspect-ratio:16/10;background:#e9e9e9}
.bpx-card__fig img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.bpx-card:hover .bpx-card__fig img{transform:scale(1.03)}
.bpx-card__body{display:flex;flex-direction:column;gap:10px}
.bpx-card__title{margin:0;font-family:'General Sans',sans-serif;font-weight:500;font-size:22px;line-height:1.25;color:#262626}
.bpx-card__desc{margin:0;font-family:'League Spartan','General Sans',sans-serif;font-size:15px;line-height:1.5;color:#6b6b6b}
.bpx-card__meta{font-family:'League Spartan','General Sans',sans-serif;font-size:13px;color:#8a8a8a}
@media (max-width:1023px){.bpx-grid__inner{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.bpx-grid__inner{grid-template-columns:1fr}.bpx-hero__title{font-size:36px}}
