/* Success Stories (/results/), page-results.php + inc/proof.php. Rebuilt 2026-10-25
 * (docs/design/2026-10-25-results-page-redesign/03-plan.md). Mobile first. Tokens copy the home_minimal values
 * (css/home_minimal.css :root of .home-min); nothing new is introduced. */

.rs {
	--rs-ink: #000000;
	--rs-body: #292929;
	--rs-meta: #5f5f5f;
	--rs-rule: #d9d6d2;
	--rs-accent: #0042ff;
	--rs-accent-dark: #002ba5;
	--rs-yellow: #ffd600;
	--rs-ground: #f7f6f6;
	--rs-white: #ffffff;
	--rs-focus: 0 0 0 3px var(--rs-yellow);
	--rs-radius: 8px;
	--rs-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--rs-gutter: 16px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 var(--rs-gutter);
	color: var(--rs-body);
}

.rs *,
.rs *::before,
.rs *::after {
	box-sizing: border-box;
}

.rs a:focus-visible,
.rs button:focus-visible {
	outline: none;
	box-shadow: var(--rs-focus);
	border-radius: 3px;
}

/* ---- Hero ---- */

.rs-hero {
	padding: 28px 0 20px;
	text-align: left;
}

.rs-eyebrow {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: var(--rs-accent);
}

.rs-title {
	margin: 0 0 10px;
	font-size: clamp(32px, 2.8vw + 22px, 52px);
	line-height: 1.04;
	letter-spacing: -0.03em;
	font-weight: 600;
	color: var(--rs-ink);
	max-width: 16em;
	text-wrap: balance;
}

.rs-sub {
	margin: 0;
	font-size: clamp(17px, 0.5vw + 15px, 20px);
	line-height: 1.4;
	color: var(--rs-body);
	max-width: 38ch;
}

/* ---- Cards (featured and grid) ---- */

.rs-card {
	display: flex;
	flex-direction: column;
	background: var(--rs-white);
	border: 1px solid var(--rs-rule);
	border-radius: var(--rs-radius);
	overflow: hidden;
}

.rs-card[hidden] {
	display: none;
}

.rs-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--rs-ground);
	overflow: hidden;
}

.rs-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s var(--rs-ease);
}

.rs-media:hover img {
	transform: scale(1.02);
}

.rs-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 52px;
	height: 52px;
	margin: -26px 0 0 -26px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.62);
	color: var(--rs-white);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.9;
	transition: opacity 0.2s var(--rs-ease);
}

.rs-play svg {
	width: 24px;
	height: 24px;
	margin-left: 3px;
}

.rs-media:hover .rs-play {
	opacity: 1;
}

/* No video: a small initial instead of an empty 16:9 panel */
.rs-media--logo {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--rs-white);
	border: 1px solid var(--rs-rule);
}

.rs-media--logo img,
.rs-media--logo:hover img {
	width: auto;
	height: auto;
	max-width: 46%;
	max-height: 62%;
	object-fit: contain;
	transform: none;
}

.rs-media--none {
	aspect-ratio: auto;
	background: none;
	padding: 18px 18px 0;
}

.rs-media--none span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--rs-ground);
	color: var(--rs-accent);
	font-size: 22px;
	font-weight: 700;
}

.rs-body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.rs-tag {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: var(--rs-accent);
}

.rs-num {
	margin: 2px 0 0;
	line-height: 1;
	color: var(--rs-ink);
}

.rs-num__n {
	display: block;
	font-size: clamp(36px, 2vw + 28px, 44px);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.rs-num__l {
	display: block;
	margin-top: 4px;
	font-size: 15px;
	font-weight: 500;
	color: var(--rs-body);
}

.rs-win {
	margin: 4px 0 0;
	font-size: 17px;
	line-height: 1.35;
	color: var(--rs-body);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rs-win--lead {
	font-size: 22px;
	font-weight: 600;
	color: var(--rs-ink);
	-webkit-line-clamp: 3;
}

.rs-vary {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--rs-meta);
}

.rs-channel {
	margin: 8px 0 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rs-ink);
}

.rs-channel a {
	color: inherit;
	text-decoration: none;
}

.rs-channel a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rs-video {
	margin: 0;
	font-size: 14px;
	color: var(--rs-meta);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rs-quote {
	margin: 6px 0 0;
	padding: 0 0 0 12px;
	border-left: 3px solid var(--rs-yellow);
}

.rs-quote p {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--rs-body);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rs-report {
	align-self: flex-start;
	margin-top: auto;
	padding: 10px 0 0;
	border: 0;
	background: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--rs-accent);
	cursor: pointer;
}

.rs-report svg {
	width: 18px;
	height: 18px;
}

.rs-report:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---- Featured ---- */

.rs-featured {
	padding: 4px 0 8px;
}

.rs-card--featured {
	background: var(--rs-ground);
	border-color: var(--rs-ground);
}

.rs-card--featured .rs-num__n {
	font-size: clamp(52px, 3.2vw + 40px, 72px);
}

.rs-card--featured .rs-body {
	padding: 18px 18px 22px;
}

/* ---- Sections ---- */

.rs-section {
	padding: 40px 0 8px;
}

.rs-head {
	margin-bottom: 16px;
}

.rs-head h2 {
	margin: 0;
	font-size: clamp(28px, 1.6vw + 22px, 38px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 600;
	color: var(--rs-ink);
}

.rs-head__note {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--rs-meta);
}

/* Chips: hidden without JS (the template sets [hidden]; the script reveals them) */
.rs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

.rs-chips[hidden] {
	display: none;
}

.rs-chip {
	padding: 8px 14px;
	border: 1px solid var(--rs-rule);
	border-radius: 999px;
	background: var(--rs-white);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--rs-ink);
	cursor: pointer;
	transition: background 0.15s var(--rs-ease), color 0.15s var(--rs-ease);
}

.rs-chip span {
	font-weight: 500;
	color: var(--rs-meta);
	margin-left: 2px;
}

.rs-chip:hover {
	border-color: var(--rs-ink);
}

.rs-chip[aria-pressed="true"] {
	background: var(--rs-ink);
	border-color: var(--rs-ink);
	color: var(--rs-white);
}

.rs-chip[aria-pressed="true"] span {
	color: var(--rs-white);
}

.rs-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.rs-grid--more:not(.rs-grid--filtered) .rs-card:nth-child(n+13) {
	display: none;
}

.rs-more {
	margin: 20px 0 0;
	text-align: center;
}

.rs-more__btn {
	padding: 12px 22px;
	border: 1px solid var(--rs-ink);
	border-radius: var(--rs-radius);
	background: var(--rs-white);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--rs-ink);
	cursor: pointer;
}

/* ---- In their words ---- */

.rs-says__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.rs-say {
	margin: 0;
	padding: 20px 20px 18px;
	background: var(--rs-ground);
	border-radius: var(--rs-radius);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rs-say blockquote {
	margin: 0;
}

.rs-say blockquote p {
	margin: 0;
	font-size: 19px;
	line-height: 1.4;
	color: var(--rs-ink);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rs-say blockquote p::before {
	content: "\201C";
}

.rs-say blockquote p::after {
	content: "\201D";
}

.rs-say figcaption {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
}

.rs-say__who {
	font-size: 16px;
	font-weight: 700;
	color: var(--rs-ink);
}

.rs-say__meta {
	font-size: 14px;
	color: var(--rs-meta);
}

.rs-say__meta a {
	color: var(--rs-body);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---- Channel wall ---- */

.rs-wall__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.rs-tile {
	margin: 0;
}

.rs-tile .rs-media {
	border-radius: var(--rs-radius);
}

.rs-tile .rs-play {
	width: 38px;
	height: 38px;
	margin: -19px 0 0 -19px;
}

.rs-tile .rs-play svg {
	width: 18px;
	height: 18px;
}

.rs-tile__name {
	margin: 8px 0 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rs-ink);
}

.rs-tile__video {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--rs-meta);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---- Sign-up band ---- */

.rs-cta {
	margin: 48px 0 56px;
	padding: 32px 20px;
	background: var(--rs-accent);
	border-radius: var(--rs-radius);
	text-align: center;
	color: var(--rs-white);
}

.rs-cta h2 {
	margin: 0 0 18px;
	font-size: clamp(28px, 1.8vw + 22px, 40px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 600;
	color: var(--rs-white);
}

.rs-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 54px;
	padding: 0 26px 0 14px;
	border: 0;
	border-radius: var(--rs-radius);
	background: var(--rs-white);
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	color: var(--rs-ink);
	cursor: pointer;
	transition: transform 0.15s var(--rs-ease);
}

.rs-cta__btn:hover {
	transform: translateY(-1px);
}

.rs-cta__btn img {
	width: 22px;
	height: 22px;
}

.rs-cta__note {
	margin: 12px 0 0;
	font-size: 15px;
	color: var(--rs-white);
	opacity: 0.92;
}

/* ---- Report dialog ---- */

.rs-dialog {
	padding: 0;
	border: 0;
	border-radius: var(--rs-radius);
	max-width: min(960px, 94vw);
	max-height: 90vh;
	background: var(--rs-white);
}

.rs-dialog::backdrop {
	background: rgba(0, 0, 0, 0.7);
}

.rs-dialog img {
	display: block;
	max-width: 100%;
	max-height: 86vh;
	height: auto;
}

.rs-dialog form {
	position: absolute;
	top: 6px;
	right: 6px;
	margin: 0;
}

.rs-dialog__close {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--rs-ink);
	color: var(--rs-white);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

/* ---- Larger screens ---- */

@media screen and (min-width: 640px) {
	.rs {
		--rs-gutter: 24px;
	}

	.rs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (min-width: 768px) {
	.rs-says__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rs-wall__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 18px;
	}

	.rs-card--featured {
		flex-direction: row;
		align-items: stretch;
	}

	.rs-card--featured .rs-media {
		flex: 0 0 56%;
		align-self: center;
	}

	.rs-card--featured .rs-report {
		margin-top: 8px;
	}

	.rs-card--featured .rs-body {
		padding: 28px 32px;
		justify-content: center;
	}

	.rs-cta {
		padding: 44px 32px;
	}
}

@media screen and (min-width: 1024px) {
	.rs {
		--rs-gutter: 32px;
	}

	.rs-hero {
		padding: 48px 0 28px;
	}

	.rs-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}

	.rs-section {
		padding-top: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rs-media img,
	.rs-play,
	.rs-chip,
	.rs-cta__btn {
		transition: none;
	}

	.rs-media:hover img,
	.rs-cta__btn:hover {
		transform: none;
	}
}
