/* Single blog post — editorial layout (single.php + inc/bb-single-post.php).
   The .bbv visual blocks at the end are also loaded in the block editor. */

/* ===== Base / cleanup ===== */
body.single-post,body.single-post .site-content{background:#f6f7f9}
body.single-post #secondary,body.single-post .archive-header,body.single-post aside.entry-meta,body.single-post .entry-header .posted-on{display:none}
body.single-post #primary{width:100%;float:none;max-width:none;margin:0}
body.single-post .col-full{max-width:none;padding:0}
body.single-post .site,body.single-post .hfeed.site,body.single-post .site-content,body.single-post .shoptimizer-archive,body.single-post .col-full,body.single-post #primary,body.single-post main,body.single-post main>div.post{overflow:visible}
/* Sticky sidebar: the theme's #page{overflow-y:hidden} and body/.site{overflow-x:hidden}
   make them scroll containers, which kills position:sticky. clip cuts the sideways
   overflow without creating one. */
body.single-post,body.single-post #page,body.single-post .site{overflow:visible;overflow-x:clip}
body.single-post article.post,body.single-post .content-area,body.single-post .site-main{overflow:visible}
.bbp-progress{position:fixed;left:0;top:0;height:4px;width:0;background:linear-gradient(90deg,#22c55e,#15803d);z-index:99999}

/* ===== Hero ===== */
.bbp-hero{background:radial-gradient(1200px 300px at 85% 0%,rgba(22,163,74,.10),transparent 60%),linear-gradient(180deg,#eef3f0 0%,#f6f7f9 100%);border-top:1px solid #e5e7eb;padding:36px 20px 0}
.bbp-hero-in{max-width:1120px;margin:0 auto}
.bbp-crumbs{display:flex;align-items:center;gap:8px;font-size:13px;color:#6b7280;margin-bottom:18px}
.bbp-crumbs a{color:#374151;text-decoration:none;font-weight:600}
.bbp-crumbs a:hover{color:#15803d}
.bbp-cat{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:700;color:#0b1220;text-decoration:none;box-shadow:0 1px 2px rgba(17,24,39,.04)}
.bbp-cat:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--tc,#64748b)}
body.single-post .bbp-hero .entry-header{max-width:860px;margin:0;padding:0;border:0}
body.single-post .bbp-hero .entry-title{font-size:clamp(32px,4.6vw,52px);line-height:1.08;letter-spacing:-.025em;color:#0b1220;margin:16px 0 22px;font-weight:800}
.bbp-dek{font-size:19px;line-height:1.6;color:#4b5563;max-width:760px;margin:-8px 0 22px}
.bbp-meta{display:flex;align-items:center;flex-wrap:wrap;gap:14px 22px;padding:0 0 28px}
.bbp-author{display:flex;align-items:center;gap:10px}
.bbp-author img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.bbp-author b{display:block;color:#0b1220;font-size:14px}
.bbp-author small{color:#6b7280;font-size:12.5px}
.bbp-meta .it{display:inline-flex;align-items:center;gap:6px;color:#6b7280;font-size:13.5px}
.bbp-meta svg{width:16px;height:16px}
.bbp-share{margin-left:auto;display:flex;gap:8px}
.bbp-share button,.bbp-share a{width:38px;height:38px;border-radius:50%;border:1px solid #e5e7eb;background:#fff;display:grid;place-items:center;color:#374151;cursor:pointer;transition:all .15s;padding:0}
.bbp-share button:hover,.bbp-share a:hover,.bbp-share button.is-copied{border-color:#15803d;color:#15803d}
.bbp-share svg{width:16px;height:16px}

/* ===== Featured image ===== */
.bbp-imgwrap{padding:0 20px}
body.single-post .bbp-imgwrap .wp-post-image{display:block;width:100%;max-width:1120px;height:auto;aspect-ratio:21/9;object-fit:cover;border-radius:20px;margin:0 auto;box-shadow:0 20px 50px rgba(11,18,32,.15)}

/* ===== Layout ===== */
.bbp-layout{max-width:1120px;margin:0 auto;padding:44px 20px 40px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:56px;align-items:start}

/* ===== Body ===== */
.bbp-body{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:44px 52px;min-width:0}
body.single-post .bbp-body .entry-content{max-width:none;margin:0;font-size:17.5px;line-height:1.78;color:#1f2937}
body.single-post .bbp-body .entry-content>p{margin:0 0 1.25em}
body.single-post .bbp-body .entry-content>p:first-child{font-size:20px;line-height:1.65;color:#111827}
body.single-post .bbp-body .entry-content h2{font-size:28px;line-height:1.2;letter-spacing:-.015em;color:#0b1220;margin:2em 0 .6em;scroll-margin-top:110px}
body.single-post .bbp-body .entry-content h2:before{content:"";display:block;width:40px;height:4px;border-radius:4px;background:#22c55e;margin-bottom:14px}
body.single-post .bbp-body .entry-content h3{font-size:21px;color:#0b1220;margin:1.6em 0 .5em;scroll-margin-top:110px}
body.single-post .bbp-body .entry-content a{color:#15803d;text-decoration:underline;text-decoration-color:rgba(21,128,61,.35);text-underline-offset:3px;font-weight:600}
body.single-post .bbp-body .entry-content a:hover{text-decoration-color:#15803d}
body.single-post .bbp-body .entry-content strong{color:#0b1220}
body.single-post .bbp-body .entry-content ul,body.single-post .bbp-body .entry-content ol{padding-left:1.3em}
body.single-post .bbp-body .entry-content li{margin:.35em 0}
body.single-post .bbp-body .entry-content table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;font-size:15px}
body.single-post .bbp-body .entry-content th{background:#f6f7f9;text-align:left}
body.single-post .bbp-body .entry-content th,body.single-post .bbp-body .entry-content td{padding:10px 14px;border-bottom:1px solid #eef0f3}

/* Key takeaways */
.bbp-tldr{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:14px;padding:18px 22px;margin:0 0 30px}
.bbp-tldr b{display:block;font-size:12px;letter-spacing:.1em;color:#15803d;margin-bottom:8px}
.bbp-tldr ul{margin:0;padding-left:18px}
.bbp-tldr li{margin:4px 0;font-size:15.5px;line-height:1.55;color:#14532d}

/* Inline product */
.bbp-inline-cta{display:flex;align-items:center;gap:16px;margin:34px 0;padding:14px 16px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(17,24,39,.05);line-height:1.4}
.bbp-inline-cta img{width:88px;height:88px;object-fit:contain;border-radius:12px;background:radial-gradient(circle,#fff,#eef1f5);flex:none;padding:6px}
.bbp-inline-cta>div{min-width:0}
.bbp-inline-cta small{display:block;font-size:10.5px;font-weight:800;letter-spacing:.08em;color:#6b7280}
.bbp-inline-cta b{display:block;font-size:16px;line-height:1.3;color:#0b1220;margin:2px 0 6px}
.bbp-inline-cta .ch{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 6px}
.bbp-inline-cta .ch span{font-size:11px;font-weight:600;color:#374151;background:#f3f4f6;padding:3px 7px;border-radius:6px}
.bbp-inline-cta .pp{display:flex;align-items:baseline;gap:10px;font-size:13px;color:#6b7280}
.bbp-inline-cta .pp strong{font-size:17px;color:#15803d;font-weight:800}
.bbp-inline-cta .pp i{font-style:normal;color:#15803d;font-weight:600;font-size:12px}
body.single-post .entry-content .bbp-inline-cta a.btn{margin-left:auto;flex:none;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 16px;border-radius:999px;background:#15803d;color:#fff;-webkit-text-fill-color:#fff;text-decoration:none;font-size:13.5px;font-weight:700;white-space:nowrap}
body.single-post .entry-content .bbp-inline-cta a.btn svg{width:16px;height:16px}
body.single-post .entry-content .bbp-inline-cta a.btn:hover{background:#166534}

/* Help box */
.bbx-help2{display:grid;grid-template-columns:48px 1fr;gap:4px 16px;align-items:center;margin-top:40px;padding:22px 24px 24px;border-radius:16px;color:#fff;background:radial-gradient(320px 160px at 100% 0%,rgba(34,197,94,.3),transparent 65%),#0b1220}
.bbx-help2 .ic{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,#22c55e,#15803d);display:grid;place-items:center}
.bbx-help2 .ic svg{width:24px;height:24px;color:#fff}
.bbx-help2 .tx b{display:block;font-size:18px;color:#fff;margin:0 0 2px}
.bbx-help2 .tx span{font-size:13.5px;color:#cbd5e1}
.bbx-help2 .bt{grid-column:1/-1;margin-top:14px;display:flex;gap:10px}
.bbx-help2 .bt a{flex:1;display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 18px;border-radius:999px;font-size:14px;font-weight:700;white-space:nowrap;text-decoration:none;transition:all .2s}
.bbx-help2 .bt a.p{background:#22c55e;color:#0b1220}
.bbx-help2 .bt a.p:hover{background:#4ade80}
.bbx-help2 .bt a.g{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.22);color:#fff}
.bbx-help2 .bt a.g:hover{background:rgba(255,255,255,.14)}
@media(max-width:640px){.bbx-help2 .bt{flex-direction:column}}

/* Author */
.bbp-authorbox{display:flex;gap:18px;align-items:flex-start;margin-top:24px;padding:24px;border-radius:16px;background:#f6f7f9;border:1px solid #eef0f3}
.bbp-authorbox img{width:72px;height:72px;border-radius:50%;object-fit:cover;flex:none}
.bbp-authorbox small{font-size:11px;font-weight:800;letter-spacing:.1em;color:#6b7280}
.bbp-authorbox b{display:block;font-size:18px;color:#0b1220;margin:2px 0 6px}
.bbp-authorbox p{margin:0;font-size:14.5px;line-height:1.6;color:#4b5563}

/* ===== Sidebar ===== */
.bbp-side{position:sticky;top:96px;max-height:calc(100vh - 106px);overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column;gap:10px;padding-bottom:4px}
.bbp-side::-webkit-scrollbar{display:none}
.bbp-side h4{margin:0 0 6px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#6b7280;display:flex;justify-content:space-between}
.bbp-side h4 span{color:#15803d;letter-spacing:0;text-transform:none;font-weight:700}
.bbp-toc{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px 14px 8px}
.bbp-toc ol{list-style:none;margin:0;padding:0;counter-reset:t}
.bbp-toc li{counter-increment:t;margin:0}
.bbp-toc a{display:flex;gap:10px;padding:4px 8px;border-radius:10px;color:#4b5563;font-size:12.5px;line-height:1.35;text-decoration:none;transition:all .15s}
.bbp-toc a:before{content:counter(t,decimal-leading-zero);font-size:11px;font-weight:800;color:#9ca3af;padding-top:1px}
.bbp-toc a:hover{background:#f6f7f9;color:#0b1220}
.bbp-toc a.on{background:#f0fdf4;color:#14532d;font-weight:600}
.bbp-toc a.on:before{color:#15803d}

.bbp-prods{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px}
.bbp-pv{display:block;text-decoration:none;border:1px solid #eef0f3;border-radius:14px;overflow:hidden;transition:box-shadow .2s,border-color .2s}
.bbp-pv+.bbp-pv{margin-top:12px}
.bbp-pv:hover{border-color:#d1d5db;box-shadow:0 10px 24px rgba(17,24,39,.08)}
.bbp-pv .im{display:grid;place-items:center;height:128px;padding-top:6px;overflow:hidden;background:none}
.bbp-pv .im img{max-height:122px;max-width:92%;object-fit:contain;transition:transform .35s}
.bbp-pv:hover .im img{transform:scale(1.05)}
.bbp-pv .bd{padding:10px 12px 12px}
.bbp-pv .br{font-size:10.5px;font-weight:800;letter-spacing:.1em;color:#6b7280;text-transform:uppercase}
.bbp-pv b{display:block;color:#0b1220;font-size:14.5px;line-height:1.3;margin:2px 0 6px}
.bbp-pv:hover b{color:#15803d}
.bbp-pv .ch{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}
.bbp-pv .ch span{font-size:11px;font-weight:600;color:#374151;background:#f3f4f6;padding:3px 7px;border-radius:6px}
.bbp-pv .pr{display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding-top:8px;border-top:1px dashed #e5e7eb}
.bbp-pv .pr em{font-style:normal;font-size:20px;font-weight:800;color:#15803d}
.bbp-pv .pr em small{font-size:12px;font-weight:500;color:#6b7280;margin-right:3px}
.bbp-pv .pr i{font-style:normal;font-size:11.5px;color:#15803d;font-weight:600}
.bbp-pv .go{display:flex;align-items:center;justify-content:center;gap:8px;height:40px;margin-top:10px;border-radius:10px;background:#15803d;color:#fff;font-weight:700;font-size:14px;transition:background .2s}
.bbp-pv:hover .go{background:#166534}
.bbp-pv .go svg{width:17px;height:17px}

/* ===== Keep reading ===== */
.bbp-related{max-width:1120px;margin:0 auto;padding:10px 20px 64px}
.bbp-related h3{font-size:24px;color:#0b1220;margin:0 0 18px;display:flex;justify-content:space-between;align-items:baseline}
.bbp-related h3 a{font-size:14px;color:#15803d;font-weight:700;text-decoration:none}
.bbp-rgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.bbp-rc{display:flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;text-decoration:none;transition:all .25s}
.bbp-rc:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(17,24,39,.10)}
.bbp-rc img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
.bbp-rc div{padding:16px 18px 18px}
.bbp-rc b{display:block;color:#0b1220;font-size:17px;line-height:1.3}
.bbp-rc:hover b{color:#15803d}
.bbp-rc small{display:block;color:#6b7280;font-size:12.5px;margin-top:8px}

/* ===== Visual blocks (block patterns) ===== */
.bbv{margin:30px 0 34px;border:1px solid #e5e7eb;border-radius:18px;background:#fbfcfd;padding:22px;font-size:15px;line-height:1.5}
.bbv-h{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.1em;color:#15803d;text-transform:uppercase;margin-bottom:14px}
.bbv-h:before{content:"";width:18px;height:2px;background:#22c55e;border-radius:2px}
.bbv-eq{display:flex;align-items:stretch;justify-content:center;gap:10px;flex-wrap:wrap}
.bbv-eq .t{flex:1 1 90px;min-width:0;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px 8px;text-align:center}
.bbv-eq .t svg{width:26px;height:26px;color:#15803d;margin:0 auto 6px;display:block}
.bbv-eq .t b{display:block;font-size:19px;color:#0b1220;line-height:1.1}
.bbv-eq .t small{display:block;color:#6b7280;font-size:12px;margin-top:4px}
.bbv-eq .t.res{background:linear-gradient(135deg,#15803d,#22c55e);border-color:transparent}
.bbv-eq .t.res b,.bbv-eq .t.res small,.bbv-eq .t.res svg{color:#fff}
.bbv-eq .op{align-self:center;font-size:18px;font-weight:800;color:#9ca3af}
.bbv-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.bbv-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.bbv-c{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px;position:relative;overflow:hidden}
.bbv-c .ic{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:#f0fdf4;color:#15803d;margin-bottom:10px}
.bbv-c .ic svg{width:22px;height:22px}
.bbv-c .lb{font-size:12px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.06em}
.bbv-c .big{display:block;font-size:24px;font-weight:800;color:#0b1220;letter-spacing:-.02em;margin:2px 0 6px}
.bbv-c .big small{font-size:13px;font-weight:600;color:#6b7280}
.bbv-split .bbv-c .big{font-size:20px}
.bbv-c p{margin:0;font-size:13px;line-height:1.5;color:#4b5563}
.bbv-c .bar{height:6px;border-radius:6px;background:#eef0f3;margin:10px 0 0;overflow:hidden}
.bbv-c .bar i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#22c55e,#15803d)}
.bbv-c.hl{border-color:#15803d;box-shadow:0 0 0 3px rgba(21,128,61,.1)}
.bbv-c .rec{position:absolute;top:12px;right:12px;font-size:10px;font-weight:800;letter-spacing:.05em;color:#fff;background:#15803d;padding:3px 8px;border-radius:999px}
.bbv-c.amber .ic{background:#fff7ed;color:#ea580c}
.bbv-c.amber .bar i{background:linear-gradient(90deg,#fb923c,#ea580c)}

/* ===== Responsive ===== */
@media(max-width:1000px){.bbp-layout{grid-template-columns:1fr}.bbp-side{position:static;max-height:none;overflow:visible}.bbp-rgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.bbv-cards,.bbv-split{grid-template-columns:1fr}.bbv{padding:16px}}
@media(max-width:640px){.bbp-body{padding:26px 20px;border-radius:16px}.bbp-rgrid{grid-template-columns:1fr}.bbp-share{margin-left:0}.bbp-inline-cta{flex-wrap:wrap}body.single-post .entry-content .bbp-inline-cta a.btn{margin-left:0}body.single-post .bbp-imgwrap .wp-post-image{aspect-ratio:16/10;border-radius:14px}}

/* Products carousel (2+ products). One card per view: no gap, each card 100% of the track,
   snap per card; arrows / dots / autoplay scroll to the card's own offset (JS). */
.bbp-prods-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.bbp-prods-h h4{margin:0;justify-content:flex-start;gap:8px}
.bbc-nav{display:flex;gap:6px}
.bbc-nav button{width:30px;height:30px;padding:0;border-radius:50%;border:1px solid #e5e7eb;background:#fff;color:#0b1220;font-size:18px;line-height:1;display:grid;place-items:center;cursor:pointer;transition:all .15s}
.bbc-nav button:hover{border-color:#15803d;color:#15803d}
.bbc-track{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none}
.bbc-track::-webkit-scrollbar{display:none}
.bbc .bbc-track .bbp-pv{flex:0 0 100%;width:100%;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always;margin:0}
.bbc-dots{display:flex;justify-content:center;gap:6px;margin-top:10px}
.bbc-dots button{width:7px;height:7px;padding:0;border:0;border-radius:999px;background:#d1d5db;cursor:pointer;transition:all .2s}
.bbc-dots button.on{width:20px;background:#15803d}
/* Price row wraps instead of cutting "In stock · TX". */
.bbp-pv .pr{flex-wrap:wrap;gap:4px 8px}

/* One card per track slot, always full width (also guards against flex shrink). A single
   product has no track at all: its card sits straight in .bbp-prods at full width. */
.bbc-track>.bbp-pv{flex:0 0 100%;width:100%;box-sizing:border-box}
.bbp-prods>.bbp-pv{width:100%;box-sizing:border-box}
