/*
 * "Lessons from Reddit" pages (page-reddit-lessons.php, inc/reddit-lessons.php), 2026-11-10. On top of
 * css/explainer-pages.css (tokens, hero, FAQ, close) and css/results.css + css/reviews.css (the quote cards). Phone first.
 */

.template-reddit .rl-hero {
	align-items: start;
}

.rl-short {
	margin-top: 22px;
	max-width: 600px;
	padding: 16px 18px;
	border-left: 4px solid var(--xp-accent);
	border-radius: 0 12px 12px 0;
	background: var(--xp-tint);
}

.template-reddit .rl-short p {
	margin: 0;
	font-size: 18px;
	line-height: 1.45;
	color: var(--xp-ink);
}

.template-reddit .rl-short .rl-short__label {
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--xp-accent);
}

.rl-hero__img {
	margin: 0;
}

.rl-hero__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 630;
	object-fit: cover;
	border-radius: 18px;
}

.rl-says,
.rl-section,
.rl-more {
	max-width: var(--xp-wide);
	margin: 0 auto;
	padding: 40px 24px;
}

.rl-section h2,
.rl-more h2 {
	font-size: 34px;
	line-height: 1.12;
	font-weight: 600;
}

.template-reddit .rl-section > p {
	margin-top: 14px;
	max-width: var(--xp-measure);
	font-size: 19px;
	line-height: 1.5;
	color: var(--xp-body);
}

.template-reddit .rl-section .rs-says__grid,
.template-reddit .rl-says .rs-says__grid {
	margin-top: 22px;
}

.template-reddit .rl-section .rl-next {
	margin-top: 18px;
	font-size: 18px;
	font-weight: 600;
}

.rl-next a::after {
	content: " \2192";
}

.rl-more ul {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.rl-more a {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--xp-rule);
	border-radius: 14px;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	color: var(--xp-ink);
}

.rl-more a:hover,
.rl-more a:focus-visible {
	border-color: var(--xp-accent);
	color: var(--xp-accent);
}

@media (min-width: 768px) {
	.rl-more ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rl-short {
		margin-top: 16px;
	}

	.template-reddit .rl-short p {
		font-size: 17px;
	}

	.rl-hero__img {
		margin-top: 20px;
	}

	.rl-says,
	.rl-section,
	.rl-more {
		padding: 28px 16px;
	}

	.rl-section h2,
	.rl-more h2 {
		font-size: 27px;
	}

	.template-reddit .rl-section > p {
		font-size: 17px;
	}
}
