/* The five Weddings category pages share the landing palette and square editorial components. */
.hdp-homepage--weddings-category {
	--weddings-paper: #f6f2eb;
	--weddings-ink: #20231f;
	--weddings-muted: #65635c;
	--weddings-line: #d8d2ca;
	--weddings-accent: #8f4f62;
	background: var(--weddings-paper);
	color: var(--weddings-ink);
	box-shadow: none;
}

.hdp-homepage--weddings-category .hdp-homepage-page-heading {
	padding: clamp(38px, 5vw, 70px) clamp(24px, 5vw, 64px) 18px;
}

.hdp-homepage--weddings-category .hdp-homepage-page-heading .hdp-homepage-section-heading {
	display: block;
}

.hdp-homepage--weddings-category .hdp-homepage-page-heading h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(44px, 5vw, 64px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.035em;
}

.hdp-homepage--weddings-category .hdp-homepage-eyebrow {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .16em;
	color: var(--weddings-accent);
}

.hdp-homepage--weddings-category .hdp-homepage-page-heading__summary {
	max-width: 720px;
	margin: 18px 0 0;
	font-size: 17px;
	line-height: 1.7;
	color: var(--weddings-muted);
}

.hdp-homepage--weddings-category .hdp-homepage-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	min-height: 0;
	padding: 32px clamp(24px, 4vw, 40px) 64px;
	background: var(--weddings-paper);
	color: var(--weddings-ink);
}

.hdp-homepage--weddings-category .hdp-homepage-hero__media {
	position: relative;
	inset: auto;
	grid-column: 2;
	grid-row: 1;
	width: auto;
	height: clamp(360px, 40vw, 540px);
	min-height: 0;
}

.hdp-homepage--weddings-category .hdp-homepage-hero__media > img,
.hdp-homepage--weddings-category .hdp-homepage-hero__media > .hdp-homepage-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hdp-homepage--weddings-category .hdp-homepage-hero__overlay {
	display: none;
}

.hdp-homepage--weddings-category .hdp-homepage-hero__content {
	grid-column: 1;
	grid-row: 1;
	align-self: center;
	width: 100%;
	padding: 24px clamp(8px, 2vw, 28px);
}

.hdp-homepage--weddings-category .hdp-homepage-hero h2 {
	max-width: 620px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(38px, 4.5vw, 62px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.035em;
}

.hdp-homepage--weddings-category .hdp-homepage-hero__summary {
	max-width: 560px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--weddings-muted);
}

.hdp-homepage--weddings-category .hdp-homepage-button {
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid var(--weddings-ink);
	border-radius: 0;
	background: var(--weddings-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.hdp-homepage--weddings-category .hdp-homepage-button:hover,
.hdp-homepage--weddings-category .hdp-homepage-button:focus-visible {
	background: transparent;
	color: var(--weddings-ink);
}

.hdp-homepage--weddings-category .hdp-homepage-category-scroll,
.hdp-homepage--weddings-category .hdp-homepage-categories {
	padding: clamp(48px, 5vw, 76px) clamp(24px, 5vw, 64px);
	border-top: 1px solid var(--weddings-line);
	background: #fff;
}

.hdp-homepage--weddings-category .hdp-homepage-categories {
	background: var(--weddings-paper);
}

.hdp-homepage--weddings-category .hdp-homepage-section-heading {
	grid-template-columns: minmax(0, 1fr) minmax(240px, 370px);
	gap: 24px;
	margin-bottom: 32px;
}

.hdp-homepage--weddings-category .hdp-homepage-section-heading h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -.035em;
}

.hdp-homepage--weddings-category .hdp-homepage-section-heading > p {
	font-size: 15px;
	line-height: 1.65;
	color: var(--weddings-muted);
}

.hdp-homepage--weddings-category .hdp-homepage-hero .hdp-homepage-eyebrow::before { content: "01 · "; }
.hdp-homepage--weddings-category .hdp-homepage-category-scroll[data-block-order="2"] .hdp-homepage-eyebrow::before { content: "02 · "; }
.hdp-homepage--weddings-category .hdp-homepage-categories[data-block-order="3"] .hdp-homepage-eyebrow::before { content: "03 · "; }
.hdp-homepage--weddings-category .hdp-homepage-category-scroll[data-block-order="4"] .hdp-homepage-eyebrow::before { content: "04 · "; }

.hdp-homepage--weddings-category .hdp-homepage-scroll-track {
	grid-auto-columns: minmax(260px, 28%);
	gap: 18px;
	padding: 8px 2px 18px;
	counter-reset: weddings-article;
}

.hdp-homepage--weddings-category .hdp-homepage-scroll-card {
	border: 1px solid var(--weddings-line);
	border-radius: 0;
	background: var(--weddings-paper);
	box-shadow: none;
	counter-increment: weddings-article;
}

.hdp-homepage--weddings-category .hdp-homepage-scroll-card:hover,
.hdp-homepage--weddings-category .hdp-homepage-scroll-card:focus-within {
	border-color: var(--weddings-ink);
}

.hdp-homepage--weddings-category .hdp-homepage-scroll-card__media {
	aspect-ratio: 16 / 10;
	background: #e8e3dc;
}

.hdp-homepage--weddings-category .hdp-homepage-scroll-card h3 {
	padding: 18px 20px 22px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 400;
	line-height: 1.25;
}

.hdp-homepage--weddings-category .hdp-homepage-scroll-card h3::before {
	display: block;
	margin-bottom: 12px;
	content: counter(weddings-article, decimal-leading-zero);
	font: 600 11px/1.3 Arial, sans-serif;
	letter-spacing: .12em;
	color: var(--weddings-accent);
}

.hdp-homepage--weddings-category .hdp-homepage-scroll-controls button {
	border: 1px solid var(--weddings-line);
	border-radius: 0;
	background: var(--weddings-paper);
	color: var(--weddings-ink);
	box-shadow: none;
}

.hdp-homepage--weddings-category .hdp-homepage-category-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	counter-reset: weddings-category;
}

.hdp-homepage--weddings-category .hdp-homepage-category-card {
	border: 1px solid var(--weddings-line);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	counter-increment: weddings-category;
}

.hdp-homepage--weddings-category .hdp-homepage-category-card:hover,
.hdp-homepage--weddings-category .hdp-homepage-category-card:focus-within {
	border-color: var(--weddings-ink);
}

.hdp-homepage--weddings-category .hdp-homepage-category-card h3 {
	padding: 18px 20px 6px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-weight: 400;
}

.hdp-homepage--weddings-category .hdp-homepage-category-card h3::before {
	display: block;
	margin-bottom: 10px;
	content: counter(weddings-category, decimal-leading-zero);
	font: 600 11px/1.3 Arial, sans-serif;
	letter-spacing: .12em;
	color: var(--weddings-accent);
}

.hdp-homepage--weddings-category .hdp-homepage-category-card p {
	padding: 0 20px 20px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--weddings-muted);
}

.hdp-homepage--weddings-category a:focus-visible,
.hdp-homepage--weddings-category button:focus-visible {
	outline: 2px solid var(--weddings-ink);
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.hdp-homepage--weddings-category .hdp-homepage-section-heading {
		grid-template-columns: 1fr;
	}
	.hdp-homepage--weddings-category .hdp-homepage-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.hdp-homepage--weddings-category .hdp-homepage-page-heading {
		padding: 38px 22px 18px;
	}
	.hdp-homepage--weddings-category .hdp-homepage-page-heading h1 {
		font-size: 44px;
	}
	.hdp-homepage--weddings-category .hdp-homepage-page-heading__summary {
		font-size: 16px;
	}
	.hdp-homepage--weddings-category .hdp-homepage-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding: 16px 22px 42px;
	}
	.hdp-homepage--weddings-category .hdp-homepage-hero__content {
		grid-column: 1;
		grid-row: 1;
		padding: 0;
	}
	.hdp-homepage--weddings-category .hdp-homepage-hero__media {
		grid-column: 1;
		grid-row: 2;
		height: 280px;
	}
	.hdp-homepage--weddings-category .hdp-homepage-hero h2 {
		font-size: 40px;
	}
	.hdp-homepage--weddings-category .hdp-homepage-hero__summary {
		font-size: 16px;
	}
	.hdp-homepage--weddings-category .hdp-homepage-category-scroll,
	.hdp-homepage--weddings-category .hdp-homepage-categories {
		padding: 42px 22px 50px;
	}
	.hdp-homepage--weddings-category .hdp-homepage-scroll-track {
		grid-auto-columns: minmax(76vw, 76vw);
	}
	.hdp-homepage--weddings-category .hdp-homepage-category-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Keep the Planner canvas proportional when browser zoom expands CSS viewport width. */
body.page-id-22.hdp-homepage-template {
	--hdp-home-max: clamp(1240px, 65vw, 3200px);
}

/* Wedding Planner keeps its authored chapters while sharing the same palette,
 * split hero, CTA treatment and section rhythm with the other pages. */
.hdp-homepage--weddings-planner .hdp-option-2e {
	--hdp-2e-night: #20231f;
	--hdp-2e-night-soft: #20231f;
	--hdp-2e-paper: #f1ece5;
	--hdp-2e-cream: #f6f2eb;
	--hdp-2e-ink: #20231f;
	--hdp-2e-neutral: #65635c;
	--hdp-2e-pale: #e8e3dc;
	--hdp-2e-burgundy: #8f4f62;
	--hdp-2e-mauve: #8f4f62;
	background: #f6f2eb;
}
.hdp-homepage--weddings-planner .hdp-option-2e__hero {
	background: #f6f2eb;
	color: #20231f;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 0;
}
.hdp-homepage--weddings-planner .hdp-option-2e__hero-media {
	grid-column: 2;
	grid-row: 1 / span 2;
	min-height: 620px;
}
.hdp-homepage--weddings-planner .hdp-option-2e__hero-media::after { display: none; }
.hdp-homepage--weddings-planner .hdp-option-2e__hero-copy {
	grid-column: 1;
	grid-row: 1;
	padding: clamp(48px, 6vw, 86px) clamp(30px, 5vw, 68px) 24px;
}
.hdp-homepage--weddings-planner .hdp-option-2e__hero-copy h1 {
	color: #20231f;
	font-size: clamp(48px, 5.2vw, 72px);
	line-height: 1.06;
}
.hdp-homepage--weddings-planner .hdp-option-2e__hero-copy > p:not(.hdp-option-2e__eyebrow) { color: #65635c; }
.hdp-homepage--weddings-planner .hdp-option-2e__hero-panel {
	background: transparent;
	border: 0;
	border-top: 1px solid #d8d2ca;
	grid-column: 1;
	grid-row: 2;
	margin: 0 clamp(30px, 5vw, 68px) 42px;
	padding: 24px 0 0;
}
.hdp-homepage--weddings-planner .hdp-option-2e__hero-panel h2 { color: #20231f; }
.hdp-homepage--weddings-planner .hdp-option-2e__hero-panel p { color: #65635c; }
.hdp-homepage--weddings-planner .hdp-option-2e__hero-panel div span { border-color: #d8d2ca; }
.hdp-homepage--weddings-planner .hdp-option-2e__button {
	background: #20231f;
	border-color: #20231f;
	border-radius: 0;
	color: #fff;
}
.hdp-homepage--weddings-planner .hdp-option-2e__button:hover,
.hdp-homepage--weddings-planner .hdp-option-2e__button:focus-visible {
	background: transparent;
	color: #20231f;
}
.hdp-homepage--weddings-planner .hdp-option-2e__manifesto { padding-block: clamp(56px, 7vw, 92px); }
.hdp-homepage--weddings-planner a:focus-visible,
.hdp-homepage--weddings-planner button:focus-visible { outline: 2px solid #20231f; outline-offset: 3px; }
@media (max-width: 980px) {
	.hdp-homepage--weddings-planner .hdp-option-2e__hero { display: flex; flex-direction: column; }
	.hdp-homepage--weddings-planner .hdp-option-2e__hero-copy {
		background: transparent;
		order: 1;
		padding: 46px 24px 26px;
	}
	.hdp-homepage--weddings-planner .hdp-option-2e__hero-media {
		height: 360px;
		min-height: 0;
		order: 2;
	}
	.hdp-homepage--weddings-planner .hdp-option-2e__hero-panel {
		margin: 0 24px 42px;
		order: 3;
	}
}
@media (max-width: 600px) {
	.hdp-homepage--weddings-planner .hdp-option-2e__hero-copy h1 { font-size: 44px; }
	.hdp-homepage--weddings-planner .hdp-option-2e__hero-media { height: 300px; }
}
