/**
 * Content blocks: prose, feature grid, call-to-action band.
 *
 * These style the editorial pages — About, Privacy, Terms — and back the
 * matching Elementor widgets, so a page built in the editor gets the theme's
 * typography rather than Elementor's defaults.
 */

/* ---- Elementor band ----
   Mirrors .pl-container so a band built in Elementor shares its left edge with
   theme-rendered sections — the brand story panel builds its own .pl-container,
   and any mismatch shows as a step in the left edge.

   The selector needs all three classes. Elementor caps top-level containers with

       :is(.elementor-section-wrap,[data-elementor-id]) > .e-con

   which scores (0,2,0), and frontend.min.css is enqueued after the theme's
   stylesheets — so a two-class selector ties and loses on source order. Adding
   .e-con takes this to (0,3,0) and wins outright.

   Vertical padding stays with Elementor so it remains editable per band. */

.elementor .e-con.pl-band {
	max-width: var(--pl-container);
	margin-inline: auto;
	padding-inline: var(--pl-gutter);
}

@media (min-width: 40rem) {
	.elementor .e-con.pl-band { padding-inline: var(--pl-gutter-lg); }
}

/* ---- prose ----
   page.php has always wrapped page content in .pl-prose but nothing styled it,
   so editorial pages fell back to bare browser defaults. Styling descendants
   rather than the container means the class also works when Elementor puts it
   on a widget wrapper. */

.pl-prose {
	max-width: 46rem;
	font-size: var(--pl-fs-body);
	line-height: var(--pl-lh-body);
	color: var(--pl-text-secondary);
}

.pl-prose--wide { max-width: none; }

/* Centres the column under a centred heading. Text stays left-aligned. */
.pl-prose--center { margin-inline: auto; }

/* The reset and the flow rule must have equal specificity, with the flow rule
   second. A `p { margin: 0 }` reset would score higher than `> * + *` — the
   universal selector counts for nothing — and silently kill every gap. */
.pl-prose > * { margin-top: 0; margin-bottom: 0; }
.pl-prose > * + * { margin-top: var(--pl-space-5); }

/* Nested paragraphs keep their own rhythm inside quotes and list items. */
.pl-prose blockquote > p + p,
.pl-prose li > p + p { margin-top: var(--pl-space-3); }

.pl-prose h2,
.pl-prose h3 {
	color: var(--pl-text-primary);
	line-height: var(--pl-lh-snug);
	letter-spacing: var(--pl-track-tight);
}

.pl-prose h2 { font-size: var(--pl-fs-h2); font-weight: 800; }
.pl-prose h3 { font-size: var(--pl-fs-h3); font-weight: 700; }

/* A heading needs more air above it than below. */
.pl-prose > h2 + *,
.pl-prose > h3 + * { margin-top: var(--pl-space-3); }
.pl-prose > * + h2 { margin-top: var(--pl-space-10); }
.pl-prose > * + h3 { margin-top: var(--pl-space-8); }

.pl-prose strong { color: var(--pl-text-primary); font-weight: 700; }

.pl-prose a {
	color: var(--pl-primary-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pl-prose a:hover { color: var(--pl-primary-deep); }

/* Block, not flex: a flex container stops its children being list items, which
   silently removes every bullet and number. Spacing comes from the items. */
.pl-prose ul,
.pl-prose ol {
	margin: 0;
	padding-left: var(--pl-space-6);
}

.pl-prose ul { list-style: disc; }
.pl-prose ol { list-style: decimal; }

.pl-prose li { padding-left: 0.25rem; }
.pl-prose li + li { margin-top: var(--pl-space-2); }
.pl-prose li::marker { color: var(--pl-primary); }

.pl-prose blockquote {
	margin: 0;
	padding-left: var(--pl-space-5);
	border-left: 3px solid var(--pl-primary);
	color: var(--pl-text-primary);
	font-size: var(--pl-fs-card);
	font-weight: 500;
}

.pl-prose img { border-radius: var(--pl-radius-lg); }

.pl-prose hr {
	border: 0;
	border-top: 1px solid var(--pl-border-light);
	margin-block: var(--pl-space-10);
}

/* ---- feature grid ---- */

.pl-features__head {
	max-width: 46rem;
	margin-bottom: var(--pl-space-8);
}

.pl-features__title {
	font-size: var(--pl-fs-h2);
	font-weight: 800;
	letter-spacing: var(--pl-track-tight);
	margin-bottom: 0.5rem;
}

.pl-features__lede {
	font-size: var(--pl-fs-body);
	line-height: var(--pl-lh-body);
	color: var(--pl-text-secondary);
}

.pl-features__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--pl-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 40rem) {
	.pl-features__grid { grid-template-columns: repeat(2, 1fr); gap: var(--pl-space-6); }
}

@media (min-width: 64rem) {
	.pl-features__grid--3 { grid-template-columns: repeat(3, 1fr); }
	.pl-features__grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.pl-features__item {
	display: flex;
	flex-direction: column;
	gap: var(--pl-space-3);
	padding: var(--pl-space-6);
	background: var(--pl-bg-white);
	border: 1px solid var(--pl-border-light);
	border-radius: var(--pl-radius-lg);
	box-shadow: var(--pl-shadow-sm);
	transition: box-shadow var(--pl-dur) var(--pl-ease), transform var(--pl-dur) var(--pl-ease);
}

.pl-features__item:hover {
	box-shadow: var(--pl-shadow-md);
	transform: translateY(-2px);
}

.pl-features__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--pl-radius);
	/* Gold at low alpha keeps the tile light enough for the dark icon. */
	background: rgb(216 27 96 / 0.14);
	color: var(--pl-primary-deep);
}

.pl-features__itemtitle {
	font-size: var(--pl-fs-card);
	font-weight: 700;
	color: var(--pl-text-primary);
}

.pl-features__text {
	font-size: var(--pl-fs-sm);
	line-height: var(--pl-lh-body);
	color: var(--pl-text-secondary);
	margin: 0;
}

/* ---- legal documents ---- */

.pl-legal {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--pl-space-8);
}

@media (min-width: 64rem) {
	/* Contents beside the text, so a long policy is not a narrow ribbon adrift
	   in the middle of a wide screen. */
	.pl-legal {
		grid-template-columns: 16rem minmax(0, 1fr);
		gap: var(--pl-space-16);
		align-items: start;
	}

	.pl-legal__nav {
		position: sticky;
		/* Clear of the sticky header. */
		top: calc(var(--pl-header-h) + var(--pl-space-4));
		max-height: calc(100vh - var(--pl-header-h) - var(--pl-space-8));
		overflow-y: auto;
	}
}

.pl-legal__navtitle {
	margin: 0 0 var(--pl-space-3);
	font-size: var(--pl-fs-xs);
	font-weight: 800;
	letter-spacing: var(--pl-track-eyebrow);
	text-transform: uppercase;
	color: var(--pl-text-muted);
}

.pl-legal__list {
	margin: 0;
	padding: 0 0 0 var(--pl-space-4);
	list-style: decimal;
	font-size: var(--pl-fs-sm);
	line-height: var(--pl-lh-snug);
	border-left: 1px solid var(--pl-border-light);
}

.pl-legal__list li { padding-left: var(--pl-space-2); }
.pl-legal__list li + li { margin-top: var(--pl-space-3); }
.pl-legal__list li::marker { color: var(--pl-text-muted); font-weight: 700; }

.pl-legal__link {
	color: var(--pl-text-secondary);
	text-decoration: none;
}

.pl-legal__link:hover {
	color: var(--pl-primary-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* The reading column can run a little wider here than in body copy, because the
   text is dense and heavily subdivided. */
.pl-prose--legal { max-width: 48rem; }

.pl-legal__updated {
	margin-top: var(--pl-space-10);
	padding-top: var(--pl-space-5);
	border-top: 1px solid var(--pl-border-light);
	font-size: var(--pl-fs-sm);
	color: var(--pl-text-muted);
}

/* ---- wishlist ---- */

.pl-wishlist__status {
	padding-block: var(--pl-space-8);
	text-align: center;
	font-size: var(--pl-fs-body);
	color: var(--pl-text-muted);
}

.pl-wishlist__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--pl-space-3);
	max-width: 30rem;
	margin-inline: auto;
	padding: var(--pl-space-12) var(--pl-space-6);
	text-align: center;
	background: var(--pl-bg-alt);
	border: 1px solid var(--pl-border-light);
	border-radius: var(--pl-radius-lg);
}

.pl-wishlist__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: var(--pl-radius-full);
	background: rgb(216 27 96 / 0.14);
	color: var(--pl-primary-deep);
}

.pl-wishlist__title {
	font-size: var(--pl-fs-h3);
	font-weight: 800;
	color: var(--pl-text-primary);
}

.pl-wishlist__copy {
	margin: 0 0 var(--pl-space-2);
	font-size: var(--pl-fs-body);
	line-height: var(--pl-lh-body);
	color: var(--pl-text-secondary);
}

/* ---- call to action ---- */

.pl-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--pl-space-5);
	padding: var(--pl-space-8);
	border-radius: var(--pl-radius-2xl);
	background: var(--pl-bg-dark);
	color: var(--pl-text-invert);
}

@media (min-width: 48rem) {
	.pl-cta {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: var(--pl-space-10);
		padding: var(--pl-space-10) var(--pl-space-12);
	}
}

.pl-cta__title {
	font-size: var(--pl-fs-h2);
	font-weight: 800;
	letter-spacing: var(--pl-track-tight);
	color: var(--pl-text-invert);
	margin-bottom: 0.5rem;
}

.pl-cta__copy {
	font-size: var(--pl-fs-body);
	line-height: var(--pl-lh-body);
	/* Slate-300 against slate-900 — comfortably above AA for body text. */
	color: #cbd5e1;
	margin: 0;
	max-width: 42rem;
}

.pl-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pl-space-3);
	flex-shrink: 0;
}

/* The outline button is built for light surfaces — its dark label would vanish
   against the band, so it is inverted here only. */
.pl-cta__actions .pl-btn--outline {
	border-color: rgb(255 255 255 / 0.35);
	color: var(--pl-text-invert);
}

.pl-cta__actions .pl-btn--outline:hover {
	border-color: var(--pl-primary);
	color: var(--pl-primary);
	background: rgb(255 255 255 / 0.06);
}
