/* ==========================================================================
   Single post template (70/30). Layout from the standard article template.
   Colors and type follow the Tek Cabinets tokens.
   ========================================================================== */

.bgp {
	--bgp-primary: var(--brand, #2E5A44);
	--bgp-primary-dark: var(--brand-deep, #1D3A2C);
	--bgp-primary-soft: #E7F0EB;
	--bgp-secondary: var(--ink-soft, #575D59);
	--bgp-ink: var(--ink, #1C1F1D);
	--bgp-text: #333833;
	--bgp-muted: var(--ink-soft, #575D59);
	--bgp-surface: var(--stone, #F2F2EF);
	--bgp-border: var(--line, #D9DAD5);
	--bgp-font-head: var(--font-head, "Manrope", Arial, sans-serif);
	--bgp-font-body: var(--font-body, "DM Sans", Arial, sans-serif);
	--bgp-radius: var(--radius, 2px);
	--bgp-radius-sm: var(--radius, 2px);
	--bgp-container: 1240px;
	--bgp-gutter: 16px;
	--bgp-gap: 32px;
	--bgp-offset: 20px; /* sticky header height + 20px, set by post.js */

	display: block;
	background: #fff;
	color: var(--bgp-text);
	font-family: var(--bgp-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
@media (min-width: 768px)  { .bgp { --bgp-gutter: 24px; } }
@media (min-width: 1200px) { .bgp { --bgp-gap: 48px; } }

/* The Elementor header pulls the next section up under itself (negative bottom
   margin, meant for full-bleed heroes). The article template has no hero, so on
   this template only the content starts below the header. The header itself is
   unchanged. */
body.bg-post-template .elementor-location-header > .e-con.e-parent,
body.bg-post-template .elementor-location-header > .elementor-section { --margin-bottom: 0px; margin-bottom: 0; }

body .bgp *, body .bgp *::before, body .bgp *::after { box-sizing: border-box; }
body .bgp a { font-family: inherit; font-size: inherit; color: var(--bgp-primary-dark); }
body .bgp img { max-width: 100%; height: auto; }
body .bgp :focus-visible { outline: 2px solid var(--bgp-primary); outline-offset: 2px; }

/* Same width as the other pages (.wrap): the theme's 1440px max and gutter.
   main.site-main is reset because Hello Elementor caps it at 1140px. */
body main.site-main.bgp { max-width: none; width: 100%; margin: 0; padding: 0; }
.bgp-container { width: 100%; max-width: var(--max, 1440px); margin-inline: auto; padding-inline: var(--gutter, 24px); }

/* ---------- Reading progress ---------- */
.bgp-progress { position: fixed; top: calc(var(--header-h, 96px) - 3px); left: 0; right: 0; height: 3px; z-index: 110; pointer-events: none; background: var(--line, #D9DAD5); }
.bgp-progress span { display: block; height: 100%; background: var(--bgp-primary); transform-origin: 0 50%; transform: scaleX(0); }
body.tek-post-page .site-header { border-bottom-color: transparent; }

/* ---------- Breadcrumbs ---------- */
.bgp-breadcrumbs { padding: 18px 0 0; font-family: var(--bgp-font-head); font-size: .8125rem; color: var(--bgp-muted); }
.bgp-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.bgp-breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.bgp-breadcrumbs li + li::before { content: "/"; color: var(--bgp-border); }
body .bgp .bgp-breadcrumbs a { color: var(--bgp-secondary); text-decoration: none; font-weight: 500; }
body .bgp .bgp-breadcrumbs a:hover { color: var(--bgp-primary-dark); }
.bgp-breadcrumbs [aria-current] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 36ch; }

/* ---------- 70 / 30 layout ---------- */
.bgp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 20px 0 64px; }
@media (min-width: 1024px) {
	.bgp-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(40px, 4vw, 64px); align-items: start; }
	.bgp-layout > .bgp-sidebar { align-self: stretch; }
}
.bgp-post { min-width: 0; }

/* ---------- Post header ---------- */
body .bgp .bgp-post__cat { display: inline-block; font-family: var(--bgp-font-head); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bgp-primary-dark); text-decoration: none; }
body .bgp .bgp-post__title { margin: 8px 0 14px; padding: 0; font-family: var(--bgp-font-head); font-weight: 700; color: var(--bgp-ink); font-size: clamp(1.625rem, 1.25rem + 1.4vw, 2.25rem); line-height: 1.25; letter-spacing: -.01em; }
.bgp-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-bottom: 20px; font-family: var(--bgp-font-head); font-size: .8125rem; color: var(--bgp-muted); }
.bgp-meta__info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.bgp-meta__author { display: inline-flex; align-items: center; gap: 10px; color: var(--bgp-ink); font-weight: 600; }
.bgp-avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--bgp-secondary); color: #fff; font-family: var(--bgp-font-head); font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.bgp-avatar--lg { width: 44px; height: 44px; font-size: .875rem; }
/* Author byline: photo + "Written by / Name", then a divider before the date. */
.bgp-meta__info { gap: 8px 12px; }
body .bgp .bgp-meta__author { text-decoration: none; color: var(--bgp-ink); }
.bgp-avatar { position: relative; overflow: hidden; background: var(--bgp-primary); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--bgp-primary-soft); }
.bgp-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bgp-meta__byline { display: flex; flex-direction: column; line-height: 1.25; }
.bgp-meta__by { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bgp-muted); }
.bgp-meta__name { font-size: .9375rem; font-weight: 700; color: var(--bgp-ink); }
body .bgp a.bgp-meta__author:hover .bgp-meta__name { color: var(--bgp-primary-dark); }
.bgp-meta__sep { width: 1px; height: 28px; margin-inline: 6px; background: var(--bgp-border); }
@media (max-width: 479px) { .bgp-meta__sep { display: none; } .bgp-meta__author { flex-basis: 100%; } }
.bgp-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--bgp-muted); opacity: .6; }
.bgp-share { display: flex; gap: 6px; }
body .bgp .bgp-share a, body .bgp .bgp-share button { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--bgp-border); background: #fff; color: var(--bgp-secondary); cursor: pointer; position: relative; line-height: 1; }
body .bgp .bgp-share a:hover, body .bgp .bgp-share button:hover { color: var(--bgp-primary-dark); border-color: var(--bgp-primary); background: #fff; }
.bgp-share svg { width: 14px; height: 14px; }
.bgp-share__toast { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--bgp-ink); color: #fff; font-size: .6875rem; padding: 3px 7px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.bgp-share .is-copied .bgp-share__toast { opacity: 1; }

.bgp-post__image { margin: 0 0 28px; }
.bgp-post__image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--bgp-radius); background: var(--bgp-surface); }

/* ---------- Mobile TOC (sidebar TOC from 1024px) ---------- */
.bgp-toc-mobile { margin: 0 0 28px; border: 1px solid var(--bgp-border); border-radius: var(--bgp-radius); background: var(--bgp-surface); }
.bgp-toc-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-family: var(--bgp-font-head); font-weight: 700; font-size: .9375rem; color: var(--bgp-ink); }
.bgp-toc-mobile summary::-webkit-details-marker { display: none; }
.bgp-toc-mobile summary svg { width: 18px; height: 18px; color: var(--bgp-primary); transition: transform .2s; }
.bgp-toc-mobile[open] summary svg { transform: rotate(180deg); }
.bgp-toc-mobile .bgp-toc-list { padding: 0 16px 14px; }
@media (min-width: 1024px) { .bgp-toc-mobile { display: none; } }

/* ==========================================================================
   Article typography – one rhythm for Gutenberg, Elementor, classic and
   pasted-document content. Margins live on the elements (not on sibling
   selectors) so the rhythm also works inside Elementor widget wrappers.
   ========================================================================== */
body .bgp .bgp-prose { font-family: var(--bgp-font-body); font-size: 1.0625rem; line-height: 1.75; color: var(--bgp-text); }
body .bgp .bgp-prose :is(p, ul, ol, figure, blockquote, pre, dl, .bgp-table, .wp-block-image, .wp-block-embed, .wp-block-gallery, .wp-block-columns, .bgp-faq, .wp-block-quote) { margin: 0 0 1.15em; }
body .bgp .bgp-prose :is(h2, h3, h4) { font-family: var(--bgp-font-head); color: var(--bgp-ink); text-transform: none; letter-spacing: -.005em; padding: 0; scroll-margin-top: var(--bgp-offset); }
body .bgp .bgp-prose h2 { font-size: clamp(1.3125rem, 1.15rem + .6vw, 1.5rem); line-height: 1.35; font-weight: 700; margin: 1.9em 0 .6em; }
body .bgp .bgp-prose h3 { font-size: 1.125rem; line-height: 1.4; font-weight: 700; margin: 1.5em 0 .5em; }
body .bgp .bgp-prose h4 { font-size: 1rem; line-height: 1.45; font-weight: 700; margin: 1.3em 0 .4em; }
body .bgp .bgp-prose > :first-child, body .bgp .bgp-prose > .bgp-embedded > :first-child { margin-top: 0; }
body .bgp .bgp-prose :is(p, li, td, th, dd, blockquote) { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; }
body .bgp .bgp-prose a { color: var(--bgp-primary-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body .bgp .bgp-prose a:hover { color: var(--bgp-primary); }
body .bgp .bgp-prose :is(strong, b) { color: var(--bgp-ink); font-weight: 700; }
body .bgp .bgp-prose a :is(strong, b, span, em) { color: inherit; }
body .bgp .bgp-prose mark { background: transparent; color: inherit; padding: 0; }
body .bgp .bgp-prose :is(ul, ol) { padding-left: 1.35em; }
body .bgp .bgp-prose li { margin: 0 0 .4em; }
body .bgp .bgp-prose li > :is(ul, ol) { margin: .4em 0 0; }
body .bgp .bgp-prose li::marker { color: var(--bgp-primary); }
body .bgp .bgp-prose blockquote, body .bgp .bgp-prose .wp-block-quote { padding: 14px 20px; border-left: 3px solid var(--bgp-primary); background: var(--bgp-surface); border-radius: 0 var(--bgp-radius) var(--bgp-radius) 0; font-style: normal; }
body .bgp .bgp-prose blockquote > :last-child { margin-bottom: 0; }
body .bgp .bgp-prose hr { border: 0; border-top: 1px solid var(--bgp-border); margin: 2em 0; }

/* Images & figures */
body .bgp .bgp-prose img { display: block; max-width: 100%; height: auto; border-radius: var(--bgp-radius); margin-inline: auto; }
body .bgp .bgp-prose figure { margin-inline: 0; max-width: 100%; }
body .bgp .bgp-prose figure img { margin-bottom: 0; }
body .bgp .bgp-prose figcaption, body .bgp .bgp-prose .wp-element-caption, body .bgp .bgp-prose .widget-image-caption { margin-top: 8px; font-size: .8125rem; line-height: 1.5; color: var(--bgp-muted); text-align: center; }
body .bgp .bgp-prose p > img:only-child { margin-block: .2em; }
body .bgp .bgp-prose iframe { max-width: 100%; border: 0; border-radius: var(--bgp-radius); }

/* Tables */
body .bgp .bgp-prose .bgp-table { overflow-x: auto; border: 1px solid var(--bgp-border); border-radius: var(--bgp-radius); -webkit-overflow-scrolling: touch; }
body .bgp .bgp-prose table { width: 100%; margin: 0; border-collapse: collapse; border: 0; font-size: .9375rem; line-height: 1.5; background: #fff; }
body .bgp .bgp-prose :is(th, td) { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--bgp-border); vertical-align: top; text-align: left; background: transparent; }
body .bgp .bgp-prose th, body .bgp .bgp-prose thead td, body .bgp .bgp-prose .bgp-table__head > td { background: var(--bgp-surface); font-family: var(--bgp-font-head); font-size: .8125rem; font-weight: 700; color: var(--bgp-ink); }
body .bgp .bgp-prose .bgp-table__head :is(strong, b) { font-weight: 700; }
body .bgp .bgp-prose tbody tr:not(.bgp-table__head) > th { background: transparent; font-family: var(--bgp-font-body); font-size: .9375rem; font-weight: 400; color: var(--bgp-text); }
body .bgp .bgp-prose tbody tr:not(.bgp-table__head) > th:first-child { font-weight: 600; color: var(--bgp-ink); }
body .bgp .bgp-prose tbody tr:not(.bgp-table__head) > th :is(strong, b) { font-weight: inherit; }
body .bgp .bgp-prose :is(td, th) > :is(p, ul, ol) { margin: 0 0 .5em; }
body .bgp .bgp-prose :is(td, th) > :last-child { margin-bottom: 0; }
body .bgp .bgp-prose tbody tr:last-child > * { border-bottom: 0; }
body .bgp .bgp-prose tbody tr:nth-child(even) > td { background: transparent; }
body .bgp .bgp-prose td:first-child { font-weight: 600; color: var(--bgp-ink); }
body .bgp .bgp-prose .wp-block-table { overflow-x: auto; }
body .bgp .bgp-prose .wp-block-table :is(thead, tfoot) { border: 0; }
body .bgp .bgp-prose .wp-block-table figcaption { padding: 8px 12px; margin: 0; }
@media (max-width: 599px) {
	body .bgp .bgp-prose .bgp-table--labelled thead, body .bgp .bgp-prose .bgp-table--labelled tr.bgp-table__head { display: none; }
	body .bgp .bgp-prose .bgp-table--labelled :is(tbody, tr, td, th) { display: block; width: 100%; }
	body .bgp .bgp-prose .bgp-table--labelled tr { padding: 12px 14px; border-bottom: 1px solid var(--bgp-border); }
	body .bgp .bgp-prose .bgp-table--labelled tbody tr:last-child { border-bottom: 0; }
	body .bgp .bgp-prose .bgp-table--labelled :is(td, th) { padding: 2px 0; border: 0; background: transparent; }
	body .bgp .bgp-prose .bgp-table--labelled :is(td, th)[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 600; color: var(--bgp-muted); }
	body .bgp .bgp-prose .bgp-table--labelled :is(td, th)[data-label] > p { display: inline; margin: 0; }
	body .bgp .bgp-prose .bgp-table--labelled tr > :first-child { font-family: var(--bgp-font-head); font-size: .9375rem; font-weight: 700; color: var(--bgp-ink); background: transparent; }
}

/* Content components from pasted-document posts (their own <style> is removed) */
body .bgp .bgp-prose :is(.takeaways, .summary, .final-note) { margin: 0 0 1.4em; padding: 20px 22px; border-radius: var(--bgp-radius); background: var(--bgp-surface); }
body .bgp .bgp-prose .takeaways { border-left: 3px solid var(--bgp-primary); }
body .bgp .bgp-prose :is(.takeaways, .summary, .final-note) > :first-child { margin-top: 0; }
body .bgp .bgp-prose :is(.takeaways, .summary, .final-note) > :last-child { margin-bottom: 0; }
body .bgp .bgp-prose .takeaways h2 { font-size: 1.0625rem; margin: 0 0 10px; }
body .bgp .bgp-prose .takeaways ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
body .bgp .bgp-prose .takeaways li { position: relative; padding-left: 26px; margin: 0; font-size: 1rem; line-height: 1.6; }
body .bgp .bgp-prose .takeaways li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--bgp-primary); border-bottom: 2px solid var(--bgp-primary); transform: rotate(-45deg); }
body .bgp .bgp-prose .summary { background: transparent; padding: 0; font-size: 1.125rem; color: var(--bgp-ink); }
body .bgp .bgp-prose .review-date { font-family: var(--bgp-font-head); font-size: .8125rem; color: var(--bgp-muted); }
body .bgp .bgp-prose .formula { margin: 0 0 1.15em; padding: 12px 16px; border: 1px dashed var(--bgp-border); border-radius: var(--bgp-radius-sm); font-family: var(--bgp-font-head); font-size: .9375rem; font-weight: 600; color: var(--bgp-ink); background: #fff; }
body .bgp .bgp-prose .table-wrap.bgp-table { margin: 0 0 1.15em; }

/* In-content CTA sections (original content, kept; dark-blue design from the
   original pasted-document styles, scoped to the article) */
body .bgp .bgp-prose .bgp-inline-cta { margin: 2em 0; padding: 30px 28px; border-radius: var(--bgp-radius); background: var(--brand-deep, #1D3A2C); color: #fff; text-align: center; }
body .bgp .bgp-prose .bgp-inline-cta :is(h2, h3, h4, p, li, strong) { color: #fff; }
body .bgp .bgp-prose .bgp-inline-cta :is(h2, h3, h4) { margin: 0 0 10px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.3; }
body .bgp .bgp-prose .bgp-inline-cta p { margin: 0 auto 20px; max-width: 640px; opacity: .92; }
body .bgp .bgp-prose .bgp-inline-cta > :last-child { margin-bottom: 0; }
body .bgp .bgp-prose .bgp-inline-cta .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
body .bgp .bgp-prose .bgp-inline-cta a:not(.button) { color: #fff; }
body .bgp .bgp-prose :is(a.button, .bgp-inline-btn, .wp-block-button__link, .elementor-button) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 2px solid var(--bgp-primary-dark); border-radius: var(--bgp-radius-sm); background: var(--bgp-primary-dark); color: #fff; font-family: var(--bgp-font-head); font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
body .bgp .bgp-prose :is(a.button, .bgp-inline-btn, .wp-block-button__link, .elementor-button):hover { background: var(--brand-deep, #1D3A2C); border-color: var(--brand-deep, #1D3A2C); color: #fff; }
body .bgp .bgp-prose a.button.secondary { background: transparent; border-color: #fff; color: #fff; }
body .bgp .bgp-prose a.button.secondary:hover { background: #fff; color: var(--brand-deep, #1D3A2C); }
body .bgp .bgp-prose .bgp-inline-btn a, body .bgp .bgp-prose .elementor-button .elementor-button-text { color: #fff; text-decoration: none; font-weight: 600; }
body .bgp .bgp-prose .bgp-inline-btn-wrap { text-align: center; }
@media (max-width: 599px) {
	body .bgp .bgp-prose .bgp-inline-cta { padding: 26px 18px; }
	body .bgp .bgp-prose .bgp-inline-cta .cta-actions { flex-direction: column; }
	body .bgp .bgp-prose .bgp-inline-cta a.button { width: 100%; }
}

/* FAQ accordion (all FAQ formats are converted to this markup) */
body .bgp .bgp-prose .bgp-faq { display: grid; gap: 8px; }
body .bgp .bgp-prose .bgp-faq__item { margin: 0; border: 1px solid var(--bgp-border); border-radius: var(--bgp-radius); background: #fff; scroll-margin-top: var(--bgp-offset); }
body .bgp .bgp-prose .bgp-faq__item[open] { border-color: #B7CFC2; }
body .bgp .bgp-prose .bgp-faq__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; }
body .bgp .bgp-prose .bgp-faq__q::-webkit-details-marker { display: none; }
body .bgp .bgp-prose .bgp-faq__q::after { content: "+"; flex-shrink: 0; font-family: var(--bgp-font-head); font-size: 1.25rem; font-weight: 600; line-height: 1; color: var(--bgp-primary); }
body .bgp .bgp-prose .bgp-faq__item[open] > .bgp-faq__q::after { content: "\2013"; }
body .bgp .bgp-prose .bgp-faq__title { display: block; margin: 0; font-family: var(--bgp-font-head); font-size: 1rem; font-weight: 700; line-height: 1.45; color: var(--bgp-ink); }
body .bgp .bgp-prose .bgp-faq__a { padding: 0 16px 16px; font-size: 1rem; }
body .bgp .bgp-prose .bgp-faq__a > :last-child { margin-bottom: 0; }
body .bgp .bgp-prose .bgp-faq__a :is(.elementor-element, .e-con, .e-con-inner) { padding: 0; margin: 0; }

/* WooCommerce product grids placed in content (e.g. [products] shortcode) */
body .bgp .bgp-prose ul.products { list-style: none; margin: 0 0 1.15em; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 768px) { body .bgp .bgp-prose ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body .bgp .bgp-prose ul.products::before, body .bgp .bgp-prose ul.products::after { display: none; }
body .bgp .bgp-prose ul.products li.product { float: none; width: auto; margin: 0; padding: 0 0 12px; display: flex; flex-direction: column; border: 1px solid var(--bgp-border); border-radius: var(--bgp-radius); overflow: hidden; background: #fff; }
body .bgp .bgp-prose ul.products li.product::marker { content: none; }
body .bgp .bgp-prose ul.products li.product a { text-decoration: none; }
body .bgp .bgp-prose ul.products li.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; margin: 0 0 10px; }
body .bgp .bgp-prose ul.products .woocommerce-loop-product__title { padding: 0 12px; font-family: var(--bgp-font-head); font-size: .875rem; font-weight: 700; line-height: 1.35; color: var(--bgp-ink); }
body .bgp .bgp-prose ul.products li.product .button { margin: 6px 12px 0; padding: 0; background: none; border: 0; font-family: var(--bgp-font-head); font-size: .8125rem; font-weight: 600; color: var(--bgp-primary-dark); }

/* Gutenberg layout blocks */
body .bgp .bgp-prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; }
body .bgp .bgp-prose .wp-block-column { flex: 1 1 240px; min-width: 0; }
body .bgp .bgp-prose .wp-block-column > :last-child { margin-bottom: 0; }
body .bgp .bgp-prose :is(.aligncenter, .has-text-align-center) { text-align: center; }

/* Elementor-built content: flatten section/column/container spacing to the article rhythm */
body .bgp .bgp-prose .elementor { margin: 0; }
body .bgp .bgp-prose :is(.elementor-section, .elementor-container, .elementor-column, .elementor-widget-wrap, .e-con, .e-con-inner) { padding: 0; margin: 0; max-width: 100%; width: 100%; min-height: 0; background: none; border: 0; box-shadow: none; }
body .bgp .bgp-prose .elementor-column > .elementor-element-populated, body .bgp .bgp-prose .elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 0; }
body .bgp .bgp-prose .e-con { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; --margin-top: 0px; --margin-bottom: 0px; }
body .bgp .bgp-prose .elementor-widget, body .bgp .bgp-prose .elementor-widget:not(:last-child) { margin: 0; margin-block-end: 0; }
body .bgp .bgp-prose .elementor-widget + .elementor-widget { margin-top: 1.15em; }
body .bgp .bgp-prose .elementor-widget-container > :last-child, body .bgp .bgp-prose .elementor-widget-text-editor > :last-child { margin-bottom: 0; }
body .bgp .bgp-prose .elementor-widget-heading .elementor-heading-title { margin: 1.2em 0 0; line-height: 1.35; }
body .bgp .bgp-prose .elementor > :first-child .elementor-widget:first-child .elementor-heading-title { margin-top: 0; }
body .bgp .bgp-prose .elementor-widget-image { text-align: center; }
body .bgp .bgp-prose .elementor-widget-text-editor { color: inherit; font: inherit; }

/* Post footer */
.bgp-post__foot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--bgp-border); display: flex; align-items: center; gap: 14px; }
.bgp-post__foot p { margin: 0; font-family: var(--bgp-font-head); font-size: .875rem; color: var(--bgp-muted); }
.bgp-post__foot strong { display: block; color: var(--bgp-ink); font-size: .9375rem; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.bgp-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bgp-box { border: 1px solid var(--bgp-border); border-radius: var(--bgp-radius); background: #fff; padding: 20px; }
body .bgp .bgp-box__title { margin: 14px 0 0; padding: 16px; padding-bottom: 0; font-family: var(--bgp-font-head); font-size: 21px; font-weight: 700; color: var(--bgp-ink); line-height: 1.35; }
body .bgp .bgp-box__label { margin: 0 0 12px; font-family: var(--bgp-font-head); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bgp-ink); }

/* 1. Quote form (GoHighLevel iframe) */
/* The GHL form draws its own bordered card, so the box frame is dropped here. */
.bgp-quote { border: 0; padding: 0; background: transparent; display: contents; gap: 20px }
body .bgp .bgp-quote .bgp-box__title { margin-bottom: 10px; font-size: 1.125rem; }
.bgp-sidebar__sticky { border: 1px solid var(--bgp-border); border-radius: var(--bgp-radius); background: #fff; padding: 0; box-shadow: 0 18px 40px -28px rgba(28, 31, 29, .45); }
.bgp-sidebar__sticky { border-top: 4px solid var(--bgp-primary); }
body .bgp .bgp-quote__eyebrow { margin: 0; padding: 22px 22px 0; font-family: var(--bgp-font-head); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bgp-primary); }
body .bgp .bgp-sidebar__sticky .bgp-box__title { margin: 6px 0 0; padding: 0 22px; font-size: clamp(1.5rem, 1.2rem + .6vw, 1.75rem); line-height: 1.2; letter-spacing: -.01em; }
body .bgp .bgp-sidebar__sticky .bgp-quote__lead { margin: 10px 0 6px; padding: 0 22px 16px; border-bottom: 1px solid var(--bgp-border); color: var(--bgp-muted); font-size: .9375rem; line-height: 1.5; }
.bgp-quote__form { overflow: hidden; max-height: 500px; }
.bgp-quote__form iframe { display: block; width: 100%; height: 700px !important; min-height: 0 !important; border: 0; background: #fff; }

/* Sticky group: TOC + CTA + guides */
.bgp-sidebar__sticky { display: flex; flex-direction: column; gap: 8px; max-height: none; overflow: visible; }
@media (min-width: 1024px) {
	.bgp-sidebar__sticky { position: sticky; top: var(--bgp-offset, 108px); align-self: start; }
}

/* 2. TOC */
.bgp-toc { display: none; }
@media (min-width: 1024px) { .bgp-toc { display: block; } }
.bgp-toc-list { list-style: none; margin: 0; padding: 0; }
.bgp-toc-list li { margin: 0; padding: 0; }
body .bgp .bgp-toc-list a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid var(--bgp-border); font-family: var(--bgp-font-head); font-size: .8125rem; font-weight: 500; line-height: 1.4; color: var(--bgp-muted); text-decoration: none; transition: color .15s, border-color .15s; }
body .bgp .bgp-toc-list a:hover { color: var(--bgp-ink); }
body .bgp .bgp-toc-list a.is-active { color: var(--bgp-primary-dark); border-left-color: var(--bgp-primary); font-weight: 700; }

/* 3. Short CTA */
.bgp-cta { background: var(--brand-deep, #1D3A2C); border-color: var(--brand-deep, #1D3A2C); color: rgba(255, 255, 255, .78); }
body .bgp .bgp-cta .bgp-box__title { color: #fff; margin: 0 0 6px; padding: 0; font-size: 1.125rem; }
.bgp-cta p { margin: 0 0 14px; font-size: .875rem; line-height: 1.55; }
body .bgp .bgp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--bgp-radius-sm); font-family: var(--bgp-font-head); font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: box-shadow .15s; }
body .bgp .bgp-btn--block { width: 100%; }
body .bgp .bgp-cta .bgp-btn { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); min-height: 48px; gap: 10px; white-space: nowrap; }
body .bgp .bgp-cta .bgp-btn:hover { background: #fff; box-shadow: none; color: var(--brand-deep, #1D3A2C); }
body .bgp .bgp-cta .bgp-btn--solid { background: #fff; color: var(--brand-deep, #1D3A2C); box-shadow: none; }
body .bgp .bgp-cta .bgp-btn--solid:hover { background: var(--stone, #F2F2EF); }
body .bgp .bgp-cta .bgp-btn--solid svg, body .bgp .bgp-cta .bgp-btn--solid svg path { color: var(--brand-deep, #1D3A2C); stroke: currentColor; }
body .bgp .bgp-cta__call { display: block; margin-top: 12px; text-align: center; font-family: var(--bgp-font-head); font-size: .875rem; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
body .bgp .bgp-cta__call:hover { color: rgba(255, 255, 255, .8); }
.bgp-btn svg { width: 18px; height: 18px; flex: none; display: block; }
.bgp-cta .bgp-btn svg, .bgp-cta .bgp-btn svg path { color: #fff; stroke: currentColor; fill: none; }
body .bgp .bgp-cta .bgp-btn:hover svg, body .bgp .bgp-cta .bgp-btn:hover svg path { color: var(--brand-deep, #1D3A2C); stroke: currentColor; }

/* 4. Guides */
.bgp-guides ul { list-style: none; margin: 0; padding: 0; }
.bgp-guides li { margin: 0; }
body .bgp .bgp-guides a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bgp-border); font-family: var(--bgp-font-head); font-size: .8125rem; font-weight: 600; color: var(--bgp-ink); text-decoration: none; }
body .bgp .bgp-guides li:last-child a { border-bottom: 0; padding-bottom: 0; }
body .bgp .bgp-guides li:first-child a { padding-top: 0; }
body .bgp .bgp-guides a:hover { color: var(--bgp-primary-dark); }
.bgp-guides svg { width: 14px; height: 14px; color: var(--bgp-primary); flex-shrink: 0; }

@media (max-width: 1023px) {
	.bgp-sidebar { max-width: 640px; width: 100%; margin-inline: auto; }
}

/* ==========================================================================
   Related posts
   ========================================================================== */
.bgp-related { background: var(--bgp-surface); padding: 48px 0 56px; }
.bgp-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
body .bgp .bgp-related__title { margin: 0; padding: 0; font-family: var(--bgp-font-head); font-size: 1.375rem; font-weight: 700; color: var(--bgp-ink); }
body .bgp .bgp-related__all { font-family: var(--bgp-font-head); font-size: .875rem; font-weight: 600; color: var(--bgp-primary-dark); text-decoration: none; white-space: nowrap; }
.bgp-related__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .bgp-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bgp-related__grid { grid-template-columns: repeat(4, 1fr); } }
body .bgp .bgp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bgp-border); border-radius: var(--bgp-radius); overflow: hidden; color: var(--bgp-ink); text-decoration: none; transition: box-shadow .2s; }
body .bgp .bgp-card:hover { box-shadow: 0 8px 24px rgba(29, 31, 34, .08); }
body .bgp .bgp-card:hover .bgp-card__title { color: var(--bgp-primary-dark); }
.bgp-card__img { aspect-ratio: 3 / 2; background: var(--bgp-border); overflow: hidden; }
body .bgp .bgp-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bgp-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bgp-card__cat { font-family: var(--bgp-font-head); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bgp-primary-dark); }
body .bgp .bgp-card__title { margin: 0; padding: 0; font-family: var(--bgp-font-head); font-size: .9375rem; font-weight: 700; line-height: 1.4; color: var(--bgp-ink); transition: color .15s; }
.bgp-card__date { margin-top: auto; padding-top: 4px; font-family: var(--bgp-font-head); font-size: .75rem; color: var(--bgp-muted); }

/* Previous / next article */
.bgp-pager { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 8px 0 48px; }
@media (min-width: 700px) { .bgp-pager { grid-template-columns: 1fr 1fr; } }
body .bgp .bgp-pager a { display: flex; flex-direction: column; gap: 6px; min-height: 88px; padding: 16px 18px; border: 1px solid var(--bgp-border); border-radius: var(--bgp-radius); background: #fff; color: var(--bgp-ink); text-decoration: none; }
body .bgp .bgp-pager a:hover { border-color: var(--bgp-primary); color: var(--bgp-primary-dark); }
.bgp-pager__label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--bgp-font-head); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bgp-primary-dark); }
.bgp-pager__label svg { width: 16px; height: 16px; flex: none; }
.bgp-pager__title { font-family: var(--bgp-font-head); font-size: .9375rem; font-weight: 700; line-height: 1.35; }
.bgp-pager__next { align-items: flex-end; text-align: right; }
.bgp-pager__next .bgp-pager__label { justify-content: flex-end; }
@media (max-width: 699px) { .bgp-pager__next { align-items: flex-start; text-align: left; } }

@media (prefers-reduced-motion: reduce) {
	.bgp *, .bgp *::before, .bgp *::after { transition: none !important; }
}
#bgp-quote-title { scroll-margin-top: calc(var(--bgp-offset, 108px) + 30px); }
/* Related heading uses the site-wide .label + .h2 styles, like the other pages. */
.bgp-related { padding: var(--pad-m, 72px) 0; }
.bgp-related__head { align-items: flex-end; margin-bottom: 32px; }
body .bgp .bgp-related__title { margin: var(--gap-label, 12px) 0 0; padding: 0; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-h2); line-height: var(--lh-heading, 1.1); letter-spacing: var(--track-head); color: var(--ink, #1C1F1D); }
