/**
 * Homebuyer's Guide page — welcoming layout, TOC, PDF CTAs.
 */

.wheatland-hbg-hero {
	padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 2.75rem);
	background: linear-gradient(
		165deg,
		var(--wm-navy-deep, #2a2112) 0%,
		#3d311b 42%,
		#4a3d28 100%
	);
	color: var(--wm-white, #fff);
	border-bottom: 1px solid rgba(217, 165, 102, 0.22);
}

.wheatland-hbg-hero__inner {
	max-width: 40rem;
}

.wheatland-hbg-hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wm-gold-soft, #dcc585);
}

.wheatland-hbg-admin-note {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--wm-navy-deep, #2a2112);
	background: rgba(255, 230, 160, 0.95);
	border-radius: 8px;
	border: 1px solid rgba(197, 163, 89, 0.6);
}

.wheatland-hbg-admin-note a {
	font-weight: 700;
	color: var(--wm-navy-deep, #2a2112);
}

.wheatland-hbg-hero__title {
	margin: 0 0 1rem;
	font-family: var(--wm-serif, "Source Serif 4", Georgia, serif);
	font-size: clamp(2rem, 4.5vw, 2.65rem);
	font-weight: 600;
	line-height: 1.15;
	color: var(--wm-white, #fff);
}

.wheatland-hbg-hero__lead {
	margin: 0 0 1.5rem;
	font-size: 1.125rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
	max-width: 48ch;
}

.wheatland-hbg-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
	margin-bottom: 1rem;
}

.wheatland-hbg-hero__note {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
	max-width: 52ch;
}

/* Buttons — primary + outline on dark hero */
.wheatland-hbg .wheatland-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 1.35rem;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.wheatland-hbg .wheatland-btn:focus-visible {
	outline: 3px solid var(--wm-gold-soft, #dcc585);
	outline-offset: 3px;
}

.wheatland-hbg .wheatland-btn--primary {
	background: var(--wm-gold, #c5a359);
	color: var(--wm-navy-deep, #2a2112);
	border-color: var(--wm-gold, #c5a359);
}

.wheatland-hbg .wheatland-btn--primary:hover,
.wheatland-hbg .wheatland-btn--primary:focus-visible {
	background: var(--wm-gold-soft, #dcc585);
	border-color: var(--wm-gold-soft, #dcc585);
	transform: translateY(-1px);
}

.wheatland-hbg .wheatland-btn--ghost {
	background: transparent;
	color: var(--wm-white, #fff);
	border-color: rgba(255, 255, 255, 0.55);
}

.wheatland-hbg .wheatland-btn--ghost:hover,
.wheatland-hbg .wheatland-btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--wm-white, #fff);
	transform: translateY(-1px);
}

/* Layout: TOC + article */
.wheatland-hbg__body {
	padding: clamp(2rem, 4vw, 3rem) 0 3.5rem;
}

.wheatland-hbg__grid {
	display: grid;
	gap: 2rem 2.5rem;
	align-items: start;
}

@media (min-width: 960px) {
	.wheatland-hbg__grid {
		grid-template-columns: min(16rem, 32vw) minmax(0, 1fr);
	}
}

/* Table of contents */
.wheatland-hbg__toc {
	position: sticky;
	top: calc(1rem + env(safe-area-inset-top, 0));
	padding: 1.25rem 1.35rem;
	background: var(--wm-white, #fff);
	border: 1px solid var(--wm-line, rgba(61, 49, 27, 0.14));
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(47, 33, 18, 0.06);
}

.wheatland-hbg__toc-title {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wm-muted, #736555);
}

.wheatland-hbg__toc-list {
	margin: 0;
	padding-left: 1.15rem;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--wm-navy-deep, #2a2112);
}

.wheatland-hbg__toc-list li {
	margin-bottom: 0.45rem;
}

.wheatland-hbg__toc-list a {
	text-decoration: none;
	color: var(--wm-navy-deep, #2a2112);
	font-weight: 500;
}

.wheatland-hbg__toc-list a:hover,
.wheatland-hbg__toc-list a:focus-visible {
	color: var(--wm-gold, #c5a359);
	text-decoration: underline;
}

.wheatland-hbg__toc-card {
	margin-top: 1.25rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--wm-line, rgba(61, 49, 27, 0.14));
}

.wheatland-hbg__toc-card-title {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wm-navy, #3d311b);
}

.wheatland-hbg__toc-links {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.875rem;
}

.wheatland-hbg__toc-links li {
	margin-bottom: 0.35rem;
}

.wheatland-hbg__toc-links a {
	color: var(--wm-navy-deep, #2a2112);
}

/* Article */
.wheatland-hbg__article {
	min-width: 0;
}

.wheatland-hbg__content {
	font-size: 1.0625rem;
	line-height: 1.65;
	max-width: 46rem;
}

.wheatland-hbg__content > *:first-child {
	margin-top: 0;
}

.wheatland-hbg__content .wheatland-hbg-anchor {
	display: block;
	scroll-margin-top: 6rem;
	height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	line-height: 0;
	border: 0;
}

.wheatland-hbg__content h2,
.wheatland-hbg__content h3,
.wheatland-hbg__content h4 {
	scroll-margin-top: 5.5rem;
	font-family: var(--wm-serif, "Source Serif 4", Georgia, serif);
	color: var(--wm-navy-deep, #2a2112);
}

.wheatland-hbg__content h4 {
	margin-top: 1.75rem;
	margin-bottom: 0.5rem;
	font-size: 1.125rem;
}

.wheatland-hbg__content ul {
	padding-left: 1.25rem;
}

.wheatland-hbg__content .wheatland-hbg-piti {
	list-style: none;
	padding-left: 0;
	margin: 0.75rem 0 1.25rem;
}

.wheatland-hbg__content .wheatland-hbg-piti li {
	position: relative;
	padding-left: 0.5rem;
	margin-bottom: 0.5rem;
	border-left: 3px solid var(--wm-gold-soft, #dcc585);
	padding-left: 0.85rem;
}

/* Bottom CTA */
.wheatland-hbg-bottom {
	margin-top: 2.75rem;
	padding: 1.75rem 1.5rem;
	background: linear-gradient(180deg, var(--wm-cream, #f2f2f2) 0%, #ebe6dc 100%);
	border: 1px solid var(--wm-line, rgba(61, 49, 27, 0.14));
	border-radius: 12px;
	max-width: 46rem;
}

.wheatland-hbg-bottom__title {
	margin: 0 0 0.5rem;
	font-family: var(--wm-serif, "Source Serif 4", Georgia, serif);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--wm-navy-deep, #2a2112);
}

.wheatland-hbg-bottom__text {
	margin: 0 0 1.25rem;
	color: var(--wm-muted, #736555);
	font-size: 1rem;
	line-height: 1.55;
	max-width: 42ch;
}

.wheatland-hbg-bottom__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.wheatland-hbg-bottom .wheatland-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: inherit;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.wheatland-hbg-bottom .wheatland-btn:focus-visible {
	outline: 3px solid var(--wm-gold-soft, #dcc585);
	outline-offset: 3px;
}

.wheatland-hbg-bottom .wheatland-btn--primary {
	background: var(--wm-gold, #c5a359);
	color: var(--wm-navy-deep, #2a2112);
	border-color: var(--wm-gold, #c5a359);
}

.wheatland-hbg-bottom .wheatland-btn--primary:hover,
.wheatland-hbg-bottom .wheatland-btn--primary:focus-visible {
	background: var(--wm-gold-soft, #dcc585);
	transform: translateY(-1px);
}

.wheatland-hbg-bottom .wheatland-btn--outline {
	background: var(--wm-white, #fff);
	color: var(--wm-navy-deep, #2a2112);
	border-color: var(--wm-line, rgba(61, 49, 27, 0.25));
}

.wheatland-hbg-bottom .wheatland-btn--outline:hover,
.wheatland-hbg-bottom .wheatland-btn--outline:focus-visible {
	border-color: var(--wm-gold, #c5a359);
	transform: translateY(-1px);
}

@media (max-width: 959px) {
	.wheatland-hbg__toc {
		position: static;
	}
}
