/*
Theme Name: BPH Gifts
Theme URI: https://birthdaypresentforhim.com/
Author: Birthday Present For Him
Description: Gift-guide theme for men's gift ideas: gift-finder homepage built from recipient, interest and occasion categories, lightweight CSS, inline SVG icons and Amazon Associates compliant affiliate components.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: bph-gifts
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--wine-900: #4a0d1f;
	--wine-800: #6b1430;
	--wine-700: #8a1c3f;
	--wine-600: #a8264f;
	--wine-100: #fbe4ea;
	--wine-50:  #fff3f6;
	--gold-500: #e0a526;
	--gold-400: #f2bf4b;
	--gold-100: #fdf1d2;
	--teal-600: #0f766e;
	--teal-100: #d5f2ee;
	--cream:    #fffaf3;
	--paper:    #ffffff;
	--ink:      #2a1b1f;
	--ink-2:    #5b4a4f;
	--ink-3:    #8c7b80;
	--line:     #efe3dc;
	--amazon:   #ff9f1c;

	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 24px;
	--r-pill: 999px;
	--shadow-1: 0 1px 2px rgba(74, 13, 31, .06), 0 4px 14px rgba(74, 13, 31, .06);
	--shadow-2: 0 10px 30px rgba(74, 13, 31, .12);
	--wrap: 1200px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--wine-700); text-decoration: none; }
a:hover { color: var(--wine-600); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.bph-skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--wine-800); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--r-sm) 0; }
.bph-skip-link:focus { left: 0; color: #fff; }

.bph-container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.bph-icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.bph-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ==========================================================================
   Top line + header
   ========================================================================== */
.bph-topline { background: var(--wine-900); color: var(--gold-100); font-size: .875rem; text-align: center; padding: .45rem 1rem; }
.bph-topline p { margin: 0; display: inline-flex; gap: .45rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.bph-topline a { color: var(--gold-400); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.bph-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 250, 243, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s;
}
.bph-header.is-scrolled { box-shadow: 0 6px 18px rgba(74, 13, 31, .08); }
.admin-bar .bph-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bph-header { top: 46px; } }

.bph-header__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.bph-brand { flex: none; }
.bph-brand .custom-logo { max-height: 52px; width: auto; }
@media (max-width: 1024px) { .bph-brand { flex: 0 1 auto; min-width: 0; } .bph-brand .custom-logo-link { display: block; } .bph-brand .custom-logo { max-height: none; height: auto; max-width: min(300px, 100%); } }
@media (max-width: 420px) { .bph-brand .custom-logo { max-width: min(230px, 100%); } }

.bph-logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.05; }
.bph-logo:hover { color: var(--ink); }
.bph-logo__mark {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
	background: linear-gradient(135deg, var(--wine-700), var(--wine-600));
	color: var(--gold-400); font-size: 1.35rem; transform: rotate(-6deg);
	box-shadow: 0 6px 14px rgba(138, 28, 63, .28);
}
.bph-logo__text em { font-style: italic; color: var(--wine-600); }
.bph-logo--light, .bph-logo--light:hover { color: #fff; }
.bph-logo--light .bph-logo__text em { color: var(--gold-400); }

.bph-nav { flex: 1; display: flex; justify-content: center; }
.bph-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.bph-nav li { position: relative; }
.bph-nav a { display: block; padding: .55rem .9rem; border-radius: var(--r-pill); color: var(--ink-2); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.bph-nav a:hover, .bph-nav .current-menu-item > a, .bph-nav .current-cat > a { background: var(--wine-50); color: var(--wine-700); }
.bph-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.bph-nav .sub-menu {
	list-style: none; margin: 0; padding: .5rem; position: absolute; left: 0; top: calc(100% + 6px);
	min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
	box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.bph-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.bph-nav li:hover > .sub-menu, .bph-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bph-nav .sub-menu a { border-radius: var(--r-sm); font-weight: 600; }
.bph-nav > ul > li:last-child > .sub-menu, .bph-nav > ul > li:nth-last-child(2) > .sub-menu { left: auto; right: 0; }

.bph-header__actions { display: flex; gap: .4rem; margin-left: auto; }
.bph-iconbtn {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--paper); color: var(--wine-800); cursor: pointer; font-size: 1.1rem;
}
.bph-iconbtn:hover { background: var(--wine-50); }
.bph-iconbtn--menu { display: none; }

.bph-searchbar { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: 1rem 0; }
.bph-searchbar.is-open { display: block; }

.bph-mobilemenu { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.bph-mobilemenu.is-open { display: block; }
.bph-mobilemenu ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.bph-mobilemenu .sub-menu, .bph-mobilemenu .children { padding: 0 0 0 1rem; }
.bph-mobilemenu a { display: block; padding: .65rem 0; border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 700; }

@media (max-width: 960px) {
	.bph-nav { display: none; }
	.bph-iconbtn--menu { display: grid; }
}

/* Search forms */
.bph-searchform { display: flex; gap: .5rem; }
.bph-searchform input {
	flex: 1; min-width: 0; padding: .75rem 1.1rem; border: 2px solid var(--line); border-radius: var(--r-pill); background: var(--cream);
}
.bph-searchform input:focus { border-color: var(--wine-600); outline: none; }
.bph-searchform button, .bph-finder button, .comment-form .submit {
	border: 0; cursor: pointer; padding: .75rem 1.4rem; border-radius: var(--r-pill);
	background: var(--wine-700); color: #fff; font-weight: 800;
}
.bph-searchform button:hover, .bph-finder button:hover, .comment-form .submit:hover { background: var(--wine-800); }

/* ==========================================================================
   Homepage
   ========================================================================== */
.bph-hero {
	position: relative; overflow: hidden; padding: 3.5rem 0 4rem;
	background:
		radial-gradient(900px 400px at 85% 10%, var(--gold-100), transparent 60%),
		radial-gradient(700px 380px at 0% 100%, var(--wine-100), transparent 60%),
		var(--cream);
}
.bph-hero::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 26px;
	background: repeating-linear-gradient(90deg, var(--wine-700) 0 22px, var(--gold-400) 22px 44px);
	opacity: .08;
}
.bph-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.bph-kicker {
	display: inline-flex; gap: .45rem; align-items: center; padding: .35rem .85rem; border-radius: var(--r-pill);
	background: var(--paper); border: 1px solid var(--line); color: var(--wine-700); font-weight: 800; font-size: .85rem;
	text-transform: uppercase; letter-spacing: .06em; box-shadow: var(--shadow-1);
}
.bph-hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin: 1rem 0 .9rem; letter-spacing: -.02em; }
.bph-hero__title em { font-style: italic; color: var(--wine-600); background: linear-gradient(transparent 62%, var(--gold-100) 62%); padding: 0 .1em; }
.bph-hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36rem; }

.bph-finder {
	display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; max-width: 36rem;
	padding: .45rem .45rem .45rem 1.1rem; background: var(--paper); border: 2px solid var(--line);
	border-radius: var(--r-pill); box-shadow: var(--shadow-2);
}
.bph-finder:focus-within { border-color: var(--wine-600); }
.bph-finder > .bph-icon { color: var(--ink-3); font-size: 1.2rem; }
.bph-finder input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .5rem 0; outline: none; }

.bph-quickchips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.1rem 0 0; }
.bph-quickchips a {
	display: inline-block; padding: .4rem .9rem; border-radius: var(--r-pill); background: var(--wine-50);
	color: var(--wine-800); font-weight: 700; font-size: .9rem; border: 1px solid var(--wine-100);
}
.bph-quickchips a:hover { background: var(--wine-700); color: #fff; }

.bph-hero__visual { position: relative; }
.bph-hero__card {
	display: block; background: var(--paper); border-radius: var(--r-lg); padding: .75rem; color: var(--ink);
	box-shadow: var(--shadow-2); transform: rotate(1.5deg); transition: transform .25s;
}
.bph-hero__card:hover { transform: rotate(0) translateY(-4px); color: var(--ink); }
.bph-hero__media { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--wine-50); }
.bph-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.bph-hero__ribbon {
	position: absolute; top: 14px; left: -6px; background: var(--gold-400); color: var(--wine-900);
	font-weight: 800; font-size: .8rem; padding: .3rem .8rem .3rem 1rem; border-radius: 0 var(--r-pill) var(--r-pill) 0;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}
.bph-hero__cardbody { display: flex; flex-direction: column; gap: .35rem; padding: 1rem .5rem .4rem; }
.bph-hero__cardbody strong { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; }
.bph-hero__cardbody span { display: inline-flex; align-items: center; gap: .4rem; color: var(--wine-700); font-weight: 700; font-size: .9rem; }

.bph-hero__art { position: relative; height: 360px; }
.bph-hero__box {
	position: absolute; display: grid; place-items: center; border-radius: 28px; box-shadow: var(--shadow-2);
}
.bph-hero__box .bph-icon { width: 46%; height: 46%; }
.bph-hero__box--a { width: 220px; height: 220px; left: 12%; top: 18%; background: linear-gradient(135deg, var(--wine-700), var(--wine-600)); color: var(--gold-400); transform: rotate(-8deg); }
.bph-hero__box--b { width: 140px; height: 140px; right: 6%; top: 0; background: var(--gold-400); color: var(--wine-800); transform: rotate(10deg); }
.bph-hero__box--c { width: 120px; height: 120px; right: 14%; bottom: 4%; background: var(--teal-600); color: #fff; transform: rotate(-4deg); }

@media (max-width: 900px) {
	.bph-hero { padding: 2.5rem 0 3rem; }
	.bph-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
	.bph-hero__art { height: 240px; }
	.bph-hero__box--a { width: 150px; height: 150px; }
	.bph-hero__box--b { width: 100px; height: 100px; }
	.bph-hero__box--c { width: 86px; height: 86px; }
}

/* Section scaffolding */
.bph-section { padding: 3.5rem 0; }
.bph-section--tint { background: var(--paper); border-block: 1px solid var(--line); }
.bph-section--rail { padding: 2.5rem 0; }
.bph-section--rail + .bph-section--rail { padding-top: 0; }
.bph-section--band { background: linear-gradient(120deg, var(--wine-900), var(--wine-700)); color: #fff; }

.bph-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.bph-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); display: flex; align-items: center; gap: .6rem; }
.bph-head__eyebrow { margin: 0 0 .3rem; color: var(--wine-600); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.bph-head__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold-100); color: var(--wine-700); font-size: 1.15rem; }
.bph-head__more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; white-space: nowrap; }
.bph-head--light h2 { color: #fff; }
.bph-head--light .bph-head__eyebrow { color: var(--gold-400); }

/* Recipients */
.bph-recipients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.bph-recipient {
	--tone: var(--wine-700); --tone-bg: var(--wine-50);
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem;
	padding: 1.5rem 1rem 1.25rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line);
	color: var(--ink); box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bph-recipient:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--tone); color: var(--ink); }
.bph-recipient--2 { --tone: var(--teal-600); --tone-bg: var(--teal-100); }
.bph-recipient--3 { --tone: #b45309; --tone-bg: var(--gold-100); }
.bph-recipient--4 { --tone: #4338ca; --tone-bg: #e5e7ff; }
.bph-recipient--5 { --tone: #be185d; --tone-bg: #fde4f1; }
.bph-recipient--6 { --tone: #15803d; --tone-bg: #dcf5e3; }
.bph-recipient__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tone-bg); color: var(--tone); font-size: 1.6rem; }
.bph-recipient__name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.bph-recipient__desc { color: var(--ink-3); font-size: .85rem; line-height: 1.4; }
@media (max-width: 1024px) { .bph-recipients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .bph-recipients { grid-template-columns: repeat(2, 1fr); } }

/* Interests */
.bph-interests { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.bph-interest {
	display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: var(--r-md);
	background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 800;
	transition: background .2s, color .2s;
}
.bph-interest:hover { background: var(--wine-700); color: #fff; }
.bph-interest:hover .bph-interest__icon { background: rgba(255, 255, 255, .15); color: var(--gold-400); }
.bph-interest__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold-100); color: var(--wine-700); font-size: 1.15rem; flex: none; }
.bph-interest__go { margin-left: auto; opacity: .45; }
@media (max-width: 960px) { .bph-interests { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bph-interests { grid-template-columns: 1fr; } }

/* Occasions */
.bph-occasions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.bph-occasion {
	display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; padding: 1.25rem; min-height: 130px;
	border-radius: var(--r-md); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
	color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; transition: background .2s, transform .2s;
}
.bph-occasion .bph-icon { font-size: 1.6rem; color: var(--gold-400); }
.bph-occasion:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-3px); }

/* Promise strip */
.bph-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.bph-promise__item { padding: 1.6rem; border-radius: var(--r-lg); background: var(--paper); border: 1px dashed var(--wine-100); }
.bph-promise__item > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--wine-700); color: var(--gold-400); font-size: 1.2rem; margin-bottom: 1rem; }
.bph-promise__item h3 { font-size: 1.2rem; }
.bph-promise__item p { color: var(--ink-2); margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .bph-promise { grid-template-columns: 1fr; } }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.bph-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.bph-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.bph-layout .bph-grid-3 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .bph-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bph-grid-3, .bph-grid-2, .bph-layout .bph-grid-3 { grid-template-columns: 1fr; } }

.bph-card {
	display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden;
	border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s;
}
.bph-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.bph-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--wine-50); overflow: hidden; }
.bph-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bph-card:hover .bph-card__media img { transform: scale(1.04); }
.bph-card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.bph-chip {
	align-self: flex-start; padding: .2rem .65rem; border-radius: var(--r-pill); background: var(--gold-100);
	color: #8a5a00; font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
}
.bph-card__title { font-size: 1.2rem; margin: 0; line-height: 1.3; }
.bph-card__title a { color: var(--ink); }
.bph-card__title a:hover { color: var(--wine-700); }
.bph-card__excerpt { color: var(--ink-2); font-size: .95rem; margin: 0; }
.bph-card__meta { margin: auto 0 0; padding-top: .4rem; color: var(--ink-3); font-size: .82rem; font-weight: 700; }

.bph-card--row { flex-direction: row; }
.bph-card--row .bph-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 180px; }
.bph-ribbon { position: absolute; z-index: 1; top: 12px; left: 12px; background: var(--wine-700); color: #fff; font-size: .75rem; font-weight: 800; padding: .25rem .7rem; border-radius: var(--r-pill); }
.bph-readmore { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; margin-top: auto; }

.bph-mini { display: flex; gap: .85rem; align-items: center; }
.bph-mini__media { flex: 0 0 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--wine-50); }
.bph-mini__media img { width: 100%; height: 100%; object-fit: cover; }
.bph-mini__title { font-size: 1rem; margin: 0 0 .2rem; }
.bph-mini__title a { color: var(--ink); }
.bph-mini__meta { color: var(--ink-3); font-size: .8rem; margin: 0; display: block; }

.bph-thumb-fallback {
	display: block; width: 100%; height: 100%; min-height: 120px;
	background:
		linear-gradient(90deg, transparent 46%, rgba(224, 165, 38, .55) 46% 54%, transparent 54%),
		linear-gradient(transparent 46%, rgba(224, 165, 38, .55) 46% 54%, transparent 54%),
		linear-gradient(135deg, var(--wine-100), var(--wine-50));
}

/* ==========================================================================
   Content layout (single, page, archive)
   ========================================================================== */
.bph-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
@media (max-width: 1024px) { .bph-layout { grid-template-columns: 1fr; } }

.bph-breadcrumb ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .85rem; color: var(--ink-3); }
.bph-breadcrumb li + li::before { content: "›"; margin-right: .35rem; color: var(--wine-100); font-weight: 800; }
.bph-breadcrumb a { color: var(--ink-2); font-weight: 700; }

.bph-pagehead {
	margin-bottom: 1.75rem; padding: 1.75rem; border-radius: var(--r-lg);
	background: linear-gradient(120deg, var(--wine-50), var(--gold-100)); border: 1px solid var(--line);
}
.bph-pagehead h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .35rem; }
.bph-pagehead p { color: var(--ink-2); margin: 0; }

.bph-article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--shadow-1); }
.bph-article__title { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; }
.bph-article__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--ink-3); font-size: .9rem; margin-bottom: 1.25rem; }
.bph-article__meta strong { color: var(--ink); }
.bph-article__thumb { margin: 1.5rem 0; border-radius: var(--r-md); overflow: hidden; }
.bph-article__thumb img { width: 100%; }

.bph-prose { font-size: 1.07rem; }
.bph-prose h2 { font-size: 1.75rem; margin-top: 2.2rem; padding-bottom: .4rem; border-bottom: 3px solid var(--gold-100); }
.bph-prose h3 { font-size: 1.35rem; margin-top: 1.8rem; }
.bph-prose a { text-decoration: underline; text-decoration-color: var(--wine-100); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.bph-prose a:hover { text-decoration-color: var(--wine-600); }
.bph-prose ul, .bph-prose ol { padding-left: 1.4rem; }
.bph-prose li { margin-bottom: .4rem; }
.bph-prose ul li::marker { color: var(--wine-600); }
.bph-prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--cream); border-left: 4px solid var(--gold-500); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; }
.bph-prose img { border-radius: var(--r-md); }
.bph-prose figure { margin: 1.5rem 0; }
.bph-prose figcaption { font-size: .85rem; color: var(--ink-3); text-align: center; margin-top: .4rem; }
.bph-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.bph-prose th, .bph-prose td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; }
.bph-prose th { background: var(--wine-50); }

.bph-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.bph-tags a { padding: .3rem .8rem; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; }

.bph-authorbox { display: flex; gap: 1rem; margin-top: 2rem; padding: 1.25rem; border-radius: var(--r-md); background: var(--cream); }
.bph-authorbox img { border-radius: 50%; }
.bph-authorbox h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.bph-authorbox p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.bph-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.bph-postnav a { display: block; padding: 1rem 1.2rem; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.bph-postnav a.is-next { text-align: right; }
.bph-postnav span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 800; }
.bph-postnav strong { color: var(--ink); font-family: var(--font-display); }

.bph-sectionhead { display: flex; align-items: center; justify-content: space-between; margin: 2.5rem 0 1.25rem; }
.bph-sectionhead h2 { margin: 0; font-size: 1.6rem; }
.bph-related { margin-top: 1rem; }

.bph-pagination { display: flex; flex-wrap: wrap; gap: .4rem; margin: 2.25rem 0 0; }
.bph-pagination a, .bph-pagination span {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .8rem;
	border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font-weight: 800; color: var(--ink-2);
}
.bph-pagination .current { background: var(--wine-700); border-color: var(--wine-700); color: #fff; }

.bph-empty { text-align: center; padding: 4rem 1rem; }
.bph-empty h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--wine-700); margin-bottom: .25rem; }
.bph-empty p { color: var(--ink-2); }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.bph-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.bph-widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; box-shadow: var(--shadow-1); }
.bph-widget--sticky { position: sticky; top: 96px; }
.bph-widget__title { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; margin-bottom: .9rem; }
.bph-widget__title .bph-icon { color: var(--wine-600); }
.bph-widget ul { list-style: none; margin: 0; padding: 0; }

.bph-finderbox li + li { border-top: 1px dashed var(--line); }
.bph-finderbox a { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; color: var(--ink); font-weight: 700; }
.bph-finderbox a:hover { color: var(--wine-700); }
.bph-finderbox__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--wine-50); color: var(--wine-700); }
.bph-finderbox__go { margin-left: auto; opacity: .4; }

.bph-toplist { list-style: none; margin: 0; padding: 0; counter-reset: top; display: flex; flex-direction: column; gap: .9rem; }
.bph-toplist li { counter-increment: top; }
.bph-toplist__item { position: relative; display: flex; gap: .8rem; align-items: center; color: var(--ink); }
.bph-toplist__item::before {
	content: counter(top); position: absolute; left: -6px; top: -6px; z-index: 1; display: grid; place-items: center;
	width: 24px; height: 24px; border-radius: 50%; background: var(--gold-400); color: var(--wine-900); font-weight: 800; font-size: .8rem;
}
.bph-toplist__media { flex: 0 0 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; background: var(--wine-50); }
.bph-toplist__media img { width: 100%; height: 100%; object-fit: cover; }
.bph-toplist__title { font-weight: 700; line-height: 1.35; font-size: .95rem; }

/* Disclosure */
.bph-disclosure { padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--gold-100); border: 1px solid #f3dc9f; font-size: .88rem; color: #5c4300; }
.bph-disclosure p { margin: 0; }
.bph-disclosure__head { display: flex; align-items: center; gap: .4rem; font-weight: 800; margin-bottom: .3rem; color: #7a5800; }
.bph-disclosure--inline { margin: 0 0 1.25rem; }

/* ==========================================================================
   Affiliate components
   ========================================================================== */
.bph-btn-amazon {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.3rem;
	border-radius: var(--r-pill); background: var(--amazon); color: #1d1300 !important; font-weight: 800;
	text-decoration: none !important; box-shadow: 0 4px 0 #d57f00; transition: transform .1s, box-shadow .1s;
}
.bph-btn-amazon:hover { transform: translateY(1px); box-shadow: 0 3px 0 #d57f00; }
.bph-btn-amazon--block { display: flex; width: 100%; }

.bph-product {
	display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; margin: 2rem 0; padding: 1.5rem;
	border-radius: var(--r-lg); background: var(--paper); border: 2px solid var(--line); position: relative;
}
.bph-product__media { display: grid; place-items: center; background: var(--cream); border-radius: var(--r-md); padding: .75rem; }
.bph-product__award { display: inline-block; padding: .25rem .8rem; border-radius: var(--r-pill); background: var(--wine-700); color: #fff; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.bph-product__name { font-size: 1.4rem; margin: .5rem 0 .35rem; border: 0 !important; padding: 0 !important; }
.bph-product__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.bph-pros, .bph-cons { padding: .9rem 1rem; border-radius: var(--r-sm); font-size: .93rem; }
.bph-pros { background: #e9f8ef; }
.bph-cons { background: #fdeceb; }
.bph-pros h4, .bph-cons h4 { font-size: .95rem; margin-bottom: .4rem; font-family: var(--font-body); font-weight: 800; }
.bph-pros ul, .bph-cons ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 640px) {
	.bph-product { grid-template-columns: 1fr; }
	.bph-product__cols { grid-template-columns: 1fr; }
}

.bph-rating { display: inline-flex; align-items: center; gap: .15rem; color: var(--gold-500); }
.bph-rating__label { margin-left: .45rem; color: var(--ink-3); font-size: .8rem; font-weight: 700; }

.bph-table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--r-md); border: 1px solid var(--line); }
.bph-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 !important; }
.bph-table th { background: var(--wine-800); color: #fff; text-align: left; padding: .75rem; border: 0 !important; }
.bph-table td { padding: .75rem; border: 0 !important; border-top: 1px solid var(--line) !important; }
.bph-table tr:nth-child(even) td { background: var(--cream); }
.bph-table .bph-btn-amazon { padding: .45rem .9rem; font-size: .85rem; white-space: nowrap; }

/* Comments */
.bph-comments { margin-top: 2rem; }
.bph-comments ol { padding-left: 0; list-style: none; }
.bph-comments .comment-body { padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 1rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bph-footer { position: relative; margin-top: 3rem; background: var(--wine-900); color: rgba(255, 255, 255, .78); padding: 3.5rem 0 1.5rem; }
.bph-footer__wave {
	position: absolute; left: 0; right: 0; top: -22px; height: 24px;
	background: radial-gradient(circle at 12px -2px, transparent 13px, var(--wine-900) 14px) 0 0 / 24px 24px repeat-x;
}
.bph-footer__cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
	margin-bottom: 2.75rem; padding: 1.25rem 1.5rem; border-radius: var(--r-md);
	background: linear-gradient(120deg, rgba(255, 255, 255, .08), rgba(242, 191, 75, .1)); border: 1px solid rgba(242, 191, 75, .25);
}
.bph-footer__cta-kicker { margin: 0; color: var(--gold-400); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.bph-footer__cta-title { margin: .15rem 0 0; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.bph-footer__cta-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.bph-footer .bph-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 700; font-size: .9rem; }
.bph-footer .bph-chip svg { width: 15px; height: 15px; fill: var(--gold-400); }
.bph-footer .bph-chip:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--wine-900); }
.bph-footer .bph-chip:hover svg { fill: var(--wine-900); }
.bph-footer__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); gap: 2rem; }
.bph-footer__brand .bph-logo { gap: .7rem; }
.bph-footer__icon { width: 48px; height: 48px; flex: none; }
.bph-footer__about { margin-top: 1rem; max-width: 24rem; font-size: .93rem; line-height: 1.65; }
.bph-footer__trust { margin-top: 1.1rem !important; }
.bph-footer__trust li { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .4rem; font-size: .88rem; color: rgba(255, 255, 255, .8); }
.bph-footer__trust svg { width: 16px; height: 16px; flex: none; margin-top: .2rem; fill: var(--gold-400); }
.bph-footer h4 { margin: .35rem 0 1rem; color: var(--gold-400); font-family: var(--font-body); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.bph-footer ul { list-style: none; margin: 0; padding: 0; }
.bph-footer li { margin-bottom: .55rem; }
.bph-footer__col a { font-size: .93rem; }
.bph-footer a { color: rgba(255, 255, 255, .85); transition: color .15s; }
.bph-footer a:hover { color: var(--gold-400); }
.bph-social { display: flex; gap: .5rem; margin-top: 1rem; }
.bph-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.bph-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .65); }
.bph-footer__bottom p { margin: 0; }
@media (max-width: 1100px) {
	.bph-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.bph-footer__brand { grid-column: 1 / -1; }
	.bph-footer__about { max-width: 40rem; }
}
@media (max-width: 760px) {
	.bph-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
	.bph-footer__cta { padding: 1.1rem; }
	.bph-footer__cta-title { font-size: 1.15rem; }
	.bph-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Contact form */
.bph-contact-form { margin: 1rem 0 2rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.bph-contact-form label { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .92rem; }
.bph-contact-form input[type="text"], .bph-contact-form input[type="email"], .bph-contact-form textarea {
	width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.bph-contact-form input:focus, .bph-contact-form textarea:focus { outline: none; border-color: var(--wine-600); box-shadow: 0 0 0 3px rgba(138, 28, 63, .12); }
.bph-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.bph-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bph-form-privacy { font-size: .85rem; color: var(--ink-2); }
.bph-btn-send { display: inline-flex; align-items: center; padding: .75rem 1.6rem; border: 0; border-radius: var(--r-pill); background: var(--wine-700); color: #fff; font-weight: 800; cursor: pointer; }
.bph-btn-send:hover { background: var(--wine-600); }
.bph-form-notice { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 10px; font-weight: 600; }
.bph-form-notice--ok { background: #e8f6ec; color: #1d6b35; }
.bph-form-notice--err { background: #fdecee; color: #a1182c; }
@media (max-width: 600px) { .bph-form-row { grid-template-columns: 1fr; } }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: .3rem 1.25rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.25rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: .85rem; color: var(--ink-3); }
.sticky .bph-card__title::before { content: "★ "; color: var(--gold-500); }
