/*
Theme Name: BioPure Wellness
Theme URI: https://biopurewellness.com
Author: BioPure Wellness
Description: Lightweight custom theme for BioPureWellness.com. Matches the BioPure Wellness Fullscript storefront look. Pages are built in HTML using the "Full Width (HTML)" template and the bpw- design classes below.
Version: 1.0.9
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: biopure-wellness
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
	--bpw-ink: #1f2d3d;            /* headings / main text */
	--bpw-text: #3c4a5a;           /* body text */
	--bpw-muted: #66768a;          /* secondary text */
	--bpw-primary: #36485c;        /* Fullscript dark slate buttons */
	--bpw-primary-hover: #2a394a;
	--bpw-border: #d5dce4;
	--bpw-border-soft: #e6ebf0;
	--bpw-bg: #ffffff;
	--bpw-tint: #f5f7fa;           /* light panels */
	--bpw-blue: #e4ebf3;           /* table header / info blue */
	--bpw-blue-soft: #f0f5fa;
	--bpw-mint: #eaf1ee;           /* storefront banner green */
	--bpw-green: #2e7d4f;          /* sale price / success */
	--bpw-green-soft: #d8ebdd;
	--bpw-gold: #f3ead7;           /* badge background */
	--bpw-red: #b3261e;

	--bpw-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--bpw-sans: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--bpw-radius: 8px;
	--bpw-radius-sm: 6px;
	--bpw-radius-lg: 12px;
	--bpw-shadow: 0 1px 2px rgba(31, 45, 61, .06), 0 4px 12px rgba(31, 45, 61, .06);
	--bpw-shadow-lg: 0 8px 30px rgba(31, 45, 61, .12);
	--bpw-container: 1200px;
	--bpw-gutter: 24px;
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--bpw-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--bpw-text);
	background: var(--bpw-bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--bpw-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--bpw-primary-hover); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--bpw-serif);
	font-weight: 500;
	color: var(--bpw-ink);
	line-height: 1.2;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--bpw-border); margin: 2rem 0; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.bpw-skip { position: absolute; left: -9999px; }
.bpw-skip:focus { left: 16px; top: 16px; z-index: 1000; background: #fff; padding: 8px 12px; }

/* =========================================================
   3. LAYOUT
   ========================================================= */
.bpw-container { width: 100%; max-width: var(--bpw-container); margin: 0 auto; padding: 0 var(--bpw-gutter); }
.bpw-container--narrow { max-width: 820px; }
.bpw-section { padding: 72px 0; }
.bpw-section--sm { padding: 40px 0; }
.bpw-section--tint { background: var(--bpw-tint); }
.bpw-section--blue { background: var(--bpw-blue-soft); }
.bpw-section--mint { background: var(--bpw-mint); }
.bpw-section--dark { background: var(--bpw-primary); color: #e9eef4; }
.bpw-section--dark h1, .bpw-section--dark h2, .bpw-section--dark h3 { color: #fff; }
.bpw-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.bpw-section-head p { color: var(--bpw-muted); margin: 0; }
.bpw-center { text-align: center; }
.bpw-center .bpw-actions { justify-content: center; }
.bpw-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bpw-muted); margin-bottom: 10px; }
.bpw-lead { font-size: 1.15rem; color: var(--bpw-muted); max-width: 680px; }
.bpw-center .bpw-lead { margin-left: auto; margin-right: auto; }

.bpw-grid { display: grid; gap: 24px; }
.bpw-grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
.bpw-grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.bpw-grid-4 { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.bpw-split { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: center; }

/* =========================================================
   4. BUTTONS / BADGES
   ========================================================= */
.bpw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: var(--bpw-radius-sm);
	font-family: var(--bpw-sans); font-weight: 700; font-size: .95rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; border: 1px solid transparent;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.bpw-btn--primary { background: var(--bpw-primary); color: #fff; }
.bpw-btn--primary:hover { background: var(--bpw-primary-hover); color: #fff; }
.bpw-btn--outline { background: #fff; color: var(--bpw-ink); border-color: var(--bpw-ink); }
.bpw-btn--outline:hover { background: var(--bpw-tint); color: var(--bpw-ink); }
.bpw-btn--light { background: #fff; color: var(--bpw-primary); }
.bpw-btn--light:hover { background: var(--bpw-tint); color: var(--bpw-primary); }
.bpw-btn--green { background: var(--bpw-green); color: #fff; }
.bpw-btn--green:hover { background: #24653f; color: #fff; }
.bpw-btn--sm { padding: 8px 14px; font-size: .85rem; }
.bpw-btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.bpw-btn--block { width: 100%; }
.bpw-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.bpw-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--bpw-blue); color: var(--bpw-ink); }
.bpw-badge--green { background: var(--bpw-green-soft); color: #1f5a37; }
.bpw-badge--pick { background: #dcefe6; color: #1f5a37; }
.bpw-badge--gold { background: var(--bpw-gold); color: #6b5524; }
.bpw-badge--dark { background: var(--bpw-primary); color: #fff; }

/* =========================================================
   5. ANNOUNCEMENT BAR / HEADER / NAV
   ========================================================= */
.bpw-announce { background: var(--bpw-mint); color: var(--bpw-ink); font-size: .88rem; text-align: center; padding: 9px var(--bpw-gutter); }
.bpw-announce a { font-weight: 700; color: var(--bpw-ink); }

.bpw-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--bpw-border-soft); }
.admin-bar .bpw-header { top: 32px; }
.bpw-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.bpw-logo { display: flex; align-items: center; text-decoration: none; color: var(--bpw-ink); }
.bpw-logo img { max-height: 55px; width: auto; }
.bpw-logo__text { font-family: var(--bpw-serif); font-size: 1.6rem; font-weight: 500; letter-spacing: -.01em; }

.bpw-nav { flex: 1; display: flex; justify-content: center; }
.bpw-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.bpw-nav li { position: relative; }
.bpw-nav a { display: block; padding: 10px 14px; color: var(--bpw-ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: var(--bpw-radius-sm); }
.bpw-nav a:hover, .bpw-nav .current-menu-item > a, .bpw-nav .current_page_item > a { background: var(--bpw-tint); }
.bpw-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius); box-shadow: var(--bpw-shadow-lg); padding: 8px; flex-direction: column; }
.bpw-nav li:hover > .sub-menu, .bpw-nav li:focus-within > .sub-menu { display: flex; }

.bpw-header__actions { display: flex; align-items: center; gap: 12px; }
.bpw-signin { color: var(--bpw-ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.bpw-signin:hover { text-decoration: underline; }

.bpw-menu-toggle { display: none; background: none; border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius-sm); padding: 8px 10px; cursor: pointer; color: var(--bpw-ink); }
.bpw-menu-toggle svg { width: 22px; height: 22px; }

/* =========================================================
   6. HERO / BANNERS / TRUST
   ========================================================= */
.bpw-hero { padding: 80px 0 72px; background: var(--bpw-tint); }
.bpw-hero h1 { max-width: 760px; }
.bpw-hero .bpw-lead { margin-bottom: 28px; }
.bpw-hero--center { text-align: center; }
.bpw-hero--center h1, .bpw-hero--center .bpw-lead { margin-left: auto; margin-right: auto; }
.bpw-hero--center .bpw-actions { justify-content: center; }
.bpw-hero__image { border-radius: var(--bpw-radius-lg); overflow: hidden; }

.bpw-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; border-radius: var(--bpw-radius); background: var(--bpw-mint); border: 1px solid #d3e2da; flex-wrap: wrap; }
.bpw-banner h3, .bpw-banner h4 { margin: 0 0 4px; }
.bpw-banner p { margin: 0; color: var(--bpw-text); }
.bpw-banner--blue { background: var(--bpw-blue-soft); border-color: var(--bpw-blue); }
.bpw-banner--dark { background: var(--bpw-primary); border-color: var(--bpw-primary); color: #e9eef4; }
.bpw-banner--dark h3, .bpw-banner--dark h4 { color: #fff; }
.bpw-banner--dark p, .bpw-section--dark p, .bpw-section--dark .bpw-lead { color: #cfd8e2; }

.bpw-checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.bpw-checks li { position: relative; padding-left: 28px; }
.bpw-checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--bpw-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232e7d4f' stroke-width='2' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.bpw-checks--row { grid-template-columns: repeat(3, 1fr); }

.bpw-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bpw-trust__item { text-align: center; padding: 8px; }
.bpw-trust__icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--bpw-blue-soft); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.bpw-trust__item h4 { font-family: var(--bpw-sans); font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.bpw-trust__item p { font-size: .9rem; color: var(--bpw-muted); margin: 0; }

/* =========================================================
   7. CARDS (generic, collection, protocol, product)
   ========================================================= */
.bpw-card { background: #fff; border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius); padding: 24px; display: flex; flex-direction: column; }
.bpw-card--hover { transition: box-shadow .15s ease, transform .15s ease; }
.bpw-card--hover:hover { box-shadow: var(--bpw-shadow-lg); transform: translateY(-2px); }
.bpw-card h3 { margin-bottom: 8px; }
.bpw-card p { color: var(--bpw-muted); }
.bpw-card__foot { margin-top: auto; padding-top: 16px; }
a.bpw-card { text-decoration: none; color: inherit; }

/* Collection tile — Fullscript-style count + icon circle */
.bpw-collection { background: #fff; border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius); padding: 24px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease; }
.bpw-collection:hover { box-shadow: var(--bpw-shadow-lg); transform: translateY(-2px); color: inherit; }
.bpw-collection__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.bpw-collection__icon { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; background: var(--bpw-blue-soft); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.bpw-collection__count { font-family: var(--bpw-serif); font-size: 2rem; color: var(--bpw-ink); line-height: 1; }
.bpw-collection h3 { font-family: var(--bpw-sans); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.bpw-collection p { font-size: .92rem; color: var(--bpw-muted); margin: 0 0 16px; }
.bpw-collection__link { margin-top: auto; font-weight: 700; color: var(--bpw-primary); font-size: .92rem; }

/* Protocol card */
.bpw-protocol { background: #fff; border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius); overflow: hidden; display: flex; flex-direction: column; }
.bpw-protocol__head { background: var(--bpw-blue-soft); padding: 20px 24px; border-bottom: 1px solid var(--bpw-border-soft); }
.bpw-protocol__head h3 { margin: 6px 0 0; }
.bpw-protocol__body { padding: 20px 24px; display: flex; flex-direction: column; flex: 1; }
.bpw-protocol__body p { color: var(--bpw-muted); font-size: .95rem; }
.bpw-protocol__list { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--bpw-border-soft); }
.bpw-protocol__list li { padding: 10px 0; border-bottom: 1px solid var(--bpw-border-soft); display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.bpw-protocol__list li span:last-child { color: var(--bpw-muted); text-align: right; }
.bpw-protocol__foot { margin-top: auto; }

/* Product card — matches Fullscript catalog cards */
.bpw-product { background: #fff; border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius); padding: 16px; display: flex; flex-direction: column; }
.bpw-product__badges { display: flex; gap: 6px; min-height: 24px; margin-bottom: 8px; }
.bpw-product__img { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.bpw-product__img img { max-height: 100%; width: auto; object-fit: contain; }
.bpw-product__name { font-family: var(--bpw-sans); font-size: 1rem; font-weight: 600; color: var(--bpw-ink); margin: 0 0 2px; }
.bpw-product__brand { font-size: .88rem; color: var(--bpw-muted); margin: 0 0 6px; }
.bpw-product__size { font-size: .85rem; color: var(--bpw-text); margin: 0 0 8px; }
.bpw-product__price { margin: 0 0 14px; font-weight: 700; }
.bpw-product__price s { color: var(--bpw-muted); font-weight: 400; margin-right: 6px; }
.bpw-product__price ins { color: var(--bpw-green); text-decoration: none; }
.bpw-product .bpw-btn { margin-top: auto; }

/* Steps */
.bpw-steps { counter-reset: bpwstep; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bpw-step { counter-increment: bpwstep; background: #fff; border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius); padding: 24px; }
.bpw-step::before { content: counter(bpwstep); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bpw-primary); color: #fff; font-weight: 700; margin-bottom: 12px; }
.bpw-step h4 { font-family: var(--bpw-sans); font-weight: 700; }
.bpw-step p { color: var(--bpw-muted); margin: 0; font-size: .95rem; }

/* FAQ */
.bpw-faq details { border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius); padding: 0 20px; margin-bottom: 12px; background: #fff; }
.bpw-faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--bpw-ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.bpw-faq summary::-webkit-details-marker { display: none; }
.bpw-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.bpw-faq details[open] summary::after { content: "–"; }
.bpw-faq details > *:not(summary) { padding-bottom: 18px; margin: 0; color: var(--bpw-text); }

/* Table */
.bpw-table { width: 100%; border-collapse: collapse; border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius); overflow: hidden; }
.bpw-table th { background: var(--bpw-blue); text-align: left; padding: 12px 16px; font-size: .9rem; color: var(--bpw-ink); }
.bpw-table td { padding: 12px 16px; border-top: 1px solid var(--bpw-border-soft); font-size: .95rem; }

/* =========================================================
   8. CONTENT (pages + blog posts)
   ========================================================= */
.bpw-main { min-height: 50vh; }
.bpw-page-head { background: var(--bpw-tint); padding: 56px 0 40px; border-bottom: 1px solid var(--bpw-border-soft); }
.bpw-page-head h1 { margin: 0; }
.bpw-page-head .bpw-meta { margin-top: 12px; }
.bpw-meta { font-size: .9rem; color: var(--bpw-muted); }
.bpw-meta a { color: var(--bpw-muted); }

.bpw-prose { padding: 48px 0 72px; font-size: 1.06rem; }
.bpw-prose h2 { margin-top: 1.6em; }
.bpw-prose h3 { margin-top: 1.4em; }
.bpw-prose img { border-radius: var(--bpw-radius); margin: 1.5em 0; }
.bpw-prose blockquote { margin: 1.5em 0; padding: 16px 24px; border-left: 4px solid var(--bpw-primary); background: var(--bpw-tint); border-radius: 0 var(--bpw-radius) var(--bpw-radius) 0; }
.bpw-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.bpw-prose th, .bpw-prose td { border: 1px solid var(--bpw-border); padding: 10px 12px; text-align: left; }
.bpw-prose th { background: var(--bpw-blue); }
.bpw-prose .wp-block-image { margin: 1.5em 0; }
.bpw-featured { border-radius: var(--bpw-radius-lg); overflow: hidden; margin-top: 32px; }
.bpw-featured img { width: 100%; }

.bpw-post-cta { margin-top: 40px; }

/* Blog cards */
.bpw-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 48px 0; }
.bpw-post-card { border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease; }
.bpw-post-card:hover { box-shadow: var(--bpw-shadow-lg); transform: translateY(-2px); color: inherit; }
.bpw-post-card__img { aspect-ratio: 16 / 9; background: var(--bpw-blue-soft); overflow: hidden; }
.bpw-post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.bpw-post-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.bpw-post-card__body h2 { font-size: 1.25rem; margin-bottom: 8px; }
.bpw-post-card__body p { color: var(--bpw-muted); font-size: .95rem; }
.bpw-post-card__more { margin-top: auto; font-weight: 700; color: var(--bpw-primary); font-size: .92rem; }

.bpw-pagination { padding-bottom: 72px; }
.bpw-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bpw-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius-sm); text-decoration: none; color: var(--bpw-ink); }
.bpw-pagination .page-numbers.current { background: var(--bpw-primary); border-color: var(--bpw-primary); color: #fff; }

.bpw-empty { padding: 80px 0; text-align: center; }

/* WordPress core alignment helpers */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--bpw-muted); text-align: center; }

/* =========================================================
   9. FOOTER
   ========================================================= */
.bpw-footer { background: var(--bpw-tint); border-top: 1px solid var(--bpw-border-soft); padding: 56px 0 24px; font-size: .92rem; }
.bpw-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 40px; }
.bpw-footer h4 { font-family: var(--bpw-sans); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bpw-ink); margin-bottom: 14px; }
.bpw-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bpw-footer a { color: var(--bpw-text); text-decoration: none; }
.bpw-footer a:hover { color: var(--bpw-ink); text-decoration: underline; }
.bpw-footer__brand p { color: var(--bpw-muted); margin-top: 10px; }
.bpw-footer__cross { background: #fff; border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius); padding: 18px; }
.bpw-footer__cross p { color: var(--bpw-muted); margin: 6px 0 12px; }
.bpw-footer__legal { border-top: 1px solid var(--bpw-border); padding-top: 20px; color: var(--bpw-muted); font-size: .8rem; text-align: center; }
.bpw-footer__legal p { margin: 0 0 6px; }

/* =========================================================
   10. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	.bpw-grid-4, .bpw-trust { grid-template-columns: repeat(2, 1fr); }
	.bpw-footer__grid { grid-template-columns: 1fr 1fr; }
	.bpw-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.bpw-menu-toggle { display: inline-flex; }
	.bpw-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--bpw-border); padding: 12px var(--bpw-gutter) 20px; }
	.bpw-nav.is-open { display: block; }
	.bpw-nav ul { flex-direction: column; }
	.bpw-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
	.bpw-signin { display: none; }
	.bpw-grid-3, .bpw-grid-2, .bpw-split, .bpw-steps, .bpw-checks--row { grid-template-columns: 1fr; }
	.bpw-section { padding: 52px 0; }
	.bpw-hero { padding: 56px 0 48px; }
	.admin-bar .bpw-header { top: 46px; }
}
@media (max-width: 600px) {
	:root { --bpw-gutter: 18px; }
	.bpw-grid-4, .bpw-trust, .bpw-posts, .bpw-footer__grid { grid-template-columns: 1fr; }
	.bpw-header__inner { min-height: 68px; }
	.bpw-logo img { max-height: 44px; }
	.bpw-logo__text { font-size: 1.3rem; }
	.bpw-banner { padding: 18px; }
}
@media (max-width: 782px) and (min-width: 601px) {
	.admin-bar .bpw-header { top: 46px; }
}

/* =========================================================
   11. BLOG POST LAYOUT (1.0.7): title + image row, sidebar, FAQ
   ========================================================= */
.bpw-post-head { background: var(--bpw-tint); border-bottom: 1px solid var(--bpw-border-soft); padding: 28px 0; }
.bpw-post-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }
.bpw-post-head__grid--solo { grid-template-columns: minmax(0, 820px); }
.bpw-post-head h1 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.18; }
.bpw-post-head__excerpt { margin: 14px 0 0; color: var(--bpw-text); font-size: 1.02rem; }
.bpw-post-head .bpw-meta { margin-top: 14px; }
.bpw-post-head__img { border-radius: var(--bpw-radius-lg); overflow: hidden; box-shadow: var(--bpw-shadow); aspect-ratio: 3 / 2; background: var(--bpw-blue-soft); }
.bpw-post-head__img img { width: 100%; height: 100%; object-fit: cover; }

.bpw-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.bpw-post-main { min-width: 0; }
.bpw-post-main .bpw-prose { padding-top: 36px; }
.bpw-post-main .bpa { max-width: none; }

.bpw-sidebar { position: sticky; top: 96px; padding: 36px 0 72px; display: flex; flex-direction: column; gap: 22px; }
.admin-bar .bpw-sidebar { top: 128px; }
.bpw-side-box { background: #fff; border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius); padding: 18px 18px 16px; }
.bpw-side-title { font-family: var(--bpw-sans); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bpw-muted); margin: 0 0 12px; }
.bpw-side-form { display: flex; gap: 8px; }
.bpw-side-form input[type=search] { flex: 1; min-width: 0; border: 1px solid var(--bpw-border); border-radius: var(--bpw-radius-sm); padding: 9px 11px; font: inherit; font-size: .94rem; }
.bpw-side-form button { border: 0; background: var(--bpw-primary); color: #fff; border-radius: var(--bpw-radius-sm); padding: 0 14px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.bpw-side-form button:hover { background: var(--bpw-primary-hover); }
.bpw-side-list { list-style: none; margin: 0; padding: 0; }
.bpw-side-list li { padding: 9px 0; border-top: 1px solid var(--bpw-border-soft); }
.bpw-side-list li:first-child { border-top: 0; padding-top: 0; }
.bpw-side-list a { display: block; color: var(--bpw-ink); font-weight: 600; font-size: .93rem; line-height: 1.35; text-decoration: none; }
.bpw-side-list a:hover { color: var(--bpw-primary); text-decoration: underline; }
.bpw-side-list span { display: block; font-size: .78rem; color: var(--bpw-muted); margin-top: 3px; }
.bpw-side-products { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.bpw-side-products a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--bpw-ink); }
.bpw-side-products img, .bpw-side-noimg { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; background: #fff; border: 1px solid var(--bpw-border-soft); border-radius: var(--bpw-radius-sm); padding: 4px; }
.bpw-side-products strong { display: block; font-size: .9rem; line-height: 1.3; }
.bpw-side-products em { display: block; font-style: normal; font-size: .78rem; color: var(--bpw-muted); }
.bpw-side-products a:hover strong { text-decoration: underline; }
.bpw-side-btn { width: 100%; justify-content: center; text-align: center; }
.bpw-side-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bpw-side-tags a { font-size: .82rem; padding: 5px 11px; border: 1px solid var(--bpw-border); border-radius: 999px; text-decoration: none; color: var(--bpw-text); background: var(--bpw-tint); }
.bpw-side-tags a:hover { border-color: var(--bpw-primary); color: var(--bpw-primary); }

.bpw-post-main .bpw-faq { margin: 18px 0 32px; }
.bpw-faq__a p:last-child { margin-bottom: 0; }

@media (max-width: 1024px) {
	.bpw-post-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}
@media (max-width: 860px) {
	.bpw-post-head { padding: 22px 0; }
	.bpw-post-head__grid { grid-template-columns: 1fr; gap: 18px; }
	.bpw-post-head__img { order: -1; }
	.bpw-post-layout { grid-template-columns: 1fr; gap: 0; }
	.bpw-sidebar { position: static; padding-top: 0; }
}

.bpw-page-head .bpw-lead { margin-top: 14px; }
.bpw-page-head .bpw-lead p { margin: 0; }

/* 1.0.9: blog cards show the whole 3:2 featured image */
.bpw-post-card__img { aspect-ratio: 3 / 2; }
.bpw-post-card__img img { object-fit: contain; background: var(--bpw-blue-soft); }
