:root {
	--bsg-ink: #17251e;
	--bsg-green: #22604a;
	--bsg-mint: #dcebdd;
	--bsg-cream: #f7f3e8;
	--bsg-gold: #d89a35;
	--bsg-border: #cfd9d1;
}

.bsg-hero {
	background: linear-gradient(135deg, var(--bsg-cream), #fff 60%, var(--bsg-mint));
	border: 1px solid var(--bsg-border);
	border-radius: 24px;
	color: var(--bsg-ink);
	margin: 2rem auto 3rem;
	max-width: 1120px;
	padding: clamp(2rem, 6vw, 5rem);
}

.bsg-hero h2 {
	font-size: clamp(2.5rem, 7vw, 5.7rem);
	letter-spacing: -.05em;
	line-height: .94;
	margin: .2em 0;
}

.bsg-eyebrow,
.bsg-product-role {
	color: var(--bsg-green);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.bsg-search {
	margin-top: 2rem;
	max-width: 760px;
}

.bsg-search label {
	display: block;
	font-size: 1.15rem;
	font-weight: 750;
	margin-bottom: .5rem;
}

.bsg-search div {
	display: flex;
	gap: .5rem;
}

.bsg-search input {
	background: #fff;
	border: 2px solid var(--bsg-ink);
	border-radius: 10px;
	flex: 1;
	font-size: 1.1rem;
	min-width: 0;
	padding: .85rem 1rem;
}

#bsg-home-search {
	background-color: #eef2f0;
	border-color: #5f7168;
	transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#bsg-home-search::placeholder {
	color: #5b6962;
	opacity: 1;
}

#bsg-home-search:focus {
	background-color: #eef2f0;
	border-color: var(--bsg-green);
	box-shadow: 0 0 0 3px rgba(34, 96, 74, .22);
	outline: none;
}

.bsg-search button,
.bsg-amazon-button {
	background: var(--bsg-green);
	border: 0;
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-weight: 750;
	padding: .9rem 1.2rem;
	text-decoration: none;
}

.bsg-home-section,
.bsg-recommendations {
	margin: 3rem auto;
	max-width: 1120px;
}

.bsg-category-grid,
.bsg-guide-grid,
.bsg-product-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bsg-category-grid a,
.bsg-guide-grid article,
.bsg-product-card {
	background: #fff;
	border: 1px solid var(--bsg-border);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(23, 37, 30, .06);
	overflow: hidden;
}

.bsg-category-grid a {
	color: var(--bsg-ink);
	display: flex;
	flex-direction: column;
	gap: .25rem;
	padding: 1.25rem;
	text-decoration: none;
}

.bsg-category-grid span {
	color: #526159;
	font-size: .9rem;
}

.bsg-guide-grid a {
	color: inherit;
	display: block;
	text-decoration: none;
}

.bsg-guide-grid img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.bsg-guide-grid h3,
.bsg-guide-grid p,
.bsg-product-card > :not(img) {
	margin-left: 1.15rem;
	margin-right: 1.15rem;
}

.bsg-guide-grid p,
.bsg-product-card p {
	color: #46564d;
}

.bsg-breadcrumbs {
	align-items: center;
	color: #5c6b63;
	display: flex;
	flex-wrap: wrap;
	font-size: .86rem;
	gap: .55rem;
	margin-bottom: 1.5rem;
}

.bsg-breadcrumbs a {
	color: var(--bsg-green);
}

.bsg-managed-guide #right-sidebar,
.bsg-managed-page #right-sidebar,
.bsg-managed-guide .widget-area,
.bsg-managed-page .widget-area,
.bsg-managed-guide .entry-meta,
.bsg-managed-page .entry-meta {
	display: none;
}

.bsg-managed-guide #primary,
.bsg-managed-page #primary,
.bsg-managed-guide .content-area,
.bsg-managed-page .content-area {
	float: none;
	width: 100%;
}

.bsg-managed-guide .inside-article {
	margin-inline: auto;
	max-width: 920px;
}

.bsg-managed-guide .entry-content {
	font-size: 1.08rem;
	line-height: 1.72;
}

.bsg-managed-guide .entry-content h2 {
	color: var(--bsg-ink);
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	letter-spacing: -.025em;
	line-height: 1.15;
	margin-top: 2.4em;
}

.bsg-managed-guide .entry-content h3 {
	color: var(--bsg-green);
	font-size: 1.25rem;
	margin-top: 1.8em;
}

.bsg-managed-guide .post-image img {
	border-radius: 16px;
}

.bsg-related-guides {
	background: var(--bsg-mint);
	border-radius: 16px;
	margin-top: 3rem;
	padding: clamp(1.25rem, 4vw, 2rem);
}

.bsg-related-guides h2 {
	margin-top: 0 !important;
}

.bsg-related-guides li + li {
	margin-top: .55rem;
}

.bsg-recommendations {
	background: var(--bsg-cream);
	border-radius: 18px;
	padding: clamp(1.25rem, 4vw, 2.5rem);
}

.bsg-disclosure {
	font-size: .82rem;
}

.bsg-product-card {
	padding-bottom: 1.2rem;
}

.bsg-product-card img {
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: contain;
	width: 100%;
}

.bsg-amazon-button {
	margin-top: .5rem;
}

@media (max-width: 600px) {
	.bsg-search div {
		align-items: stretch;
		flex-direction: column;
	}

	.bsg-hero {
		border-radius: 16px;
	}

	.bsg-managed-guide .inside-article,
	.bsg-managed-page .inside-article {
		padding: 24px;
	}
}


/* Keep public search focused on the guide matches, not theme metadata/sidebar clutter. */
.search #right-sidebar,
.search .widget-area,
.search .entry-meta {
	display: none;
}

.search #primary,
.search .content-area {
	float: none;
	width: 100%;
}

.search .site-main {
	max-width: 920px;
	margin-inline: auto;
}

.bsg-amazon-search-links {
	background: var(--bsg-cream);
	border-radius: 18px;
	margin-top: 2.5rem;
	padding: clamp(1.25rem, 4vw, 2rem);
}

.bsg-amazon-search-links h2 {
	margin-top: 0 !important;
}

.bsg-ad-label {
	font-size: .82rem;
	font-weight: 700;
	margin-bottom: .25rem;
}

.bsg-amazon-search-grid {
	display: grid;
	gap: .75rem;
	margin-top: 1rem;
}

.bsg-amazon-search-button {
	display: inline-block;
}
