/*
 * RLM Public Relations -- the shapes belonging to this case study only.
 *
 * Shared pieces live in assets/css/global/case-system.css. Each rule here
 * resolves the Tailwind classes on the matching element in the export's
 * src/routes/index.tsx rather than reinterpreting them. Colours come from the
 * token layer. Breakpoints match the export's: sm 640px, lg 1024px.
 */

/* ------------------------------------------------------------------- hero */

/* py-10 lg:py-16. The top padding matches the other case studies' heroes. */
.rlm-hero {
	background: var(--rv-white);
	padding: 3rem 0 2.5rem;
}

@media (min-width: 1024px) {
	.rlm-hero { padding: 5rem 0 4rem; }
}

/* flex items-center gap-4 */
.rlm-kicker { gap: 1rem; }

/* The size, leading and tracking are the shared .cs-title; what is left here
   is this page's own spacing. mt-6 lg:mt-8 lg:-ml-1 */
.rlm-title {
	margin: 1.5rem 0 0;
	font-weight: 800;
	color: var(--rv-black);
}

@media (min-width: 1024px) {
	.rlm-title {
		margin-top: 2rem;
		margin-left: -0.25rem;
	}
}

.rlm-title-mark {
	background: var(--rv-green);
	padding-inline: 0.75rem;
	color: var(--rv-black);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* mt-6 lg:mt-7, w-16 green + w-8 at 20% */
.rlm-progress {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

@media (min-width: 1024px) {
	.rlm-progress { margin-top: 1.75rem; }
}

.rlm-progress-on,
.rlm-progress-off { height: 0.375rem; }

.rlm-progress-on { width: 4rem; background: var(--rv-green); }
.rlm-progress-off { width: 2rem; background: rgb(var(--rv-black-rgb) / 0.2); }

/* mt-8; the rest of the export's lede classes are exactly Prose's. */
.rlm-lede { margin-top: 2rem; }

/* font-medium on the shared .cs-link */
.rlm-link-strong { font-weight: 500; }

/* mt-10 grid gap-x-10 gap-y-8 border-t pt-8 sm:grid-cols-2 lg:mt-12, three
   columns at lg since the Category entry was removed */
.rlm-meta {
	display: grid;
	gap: 2rem 2.5rem;
	margin-top: 2.5rem;
	border-top: 1px solid var(--rv-case-border);
	padding-top: 2rem;
}

@media (min-width: 640px) {
	.rlm-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.rlm-meta {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-top: 3rem;
	}
}

.rlm-meta-item { min-width: 0; }

.rlm-meta-value {
	margin: 0.75rem 0 0;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 700;
	color: var(--rv-black);
}

/* ----------------------------------------------------------- figure rows */

/* grid gap-10 lg:gap-16, a 15rem label column beside the screenshot */
.rlm-fig {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.rlm-fig { gap: 4rem; }

	.rlm-fig--label-first { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
	.rlm-fig--shot-first { grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); }
}

.rlm-fig-label { min-width: 0; }

/* mt-4 text-2xl font-bold lg:text-[2rem] lg:leading-tight */
.rlm-h {
	margin: 1rem 0 0;
	font-size: 1.5rem;
	line-height: 1.33333;
	font-weight: 700;
	color: var(--rv-black);
}

@media (min-width: 1024px) {
	.rlm-h {
		font-size: 2rem;
		line-height: 1.25;
	}
}

/* mt-6 h-1.5 w-16 */
.rlm-bar {
	margin-top: 1.5rem;
	height: 0.375rem;
	width: 4rem;
	background: var(--rv-green);
}

/* --------------------------------------------------------------- overview */

/* grid gap-8 lg:grid-cols-[17rem_1fr] lg:gap-16 */
.rlm-overview {
	display: grid;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.rlm-overview {
		grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
		gap: 4rem;
	}
}

/* ------------------------------------------------------------------ quote */

/* relative overflow-hidden bg-background py-16 sm:py-20 lg:py-32 */
.rlm-quote {
	position: relative;
	overflow: hidden;
	background: var(--rv-white);
	padding-block: 4rem;
}

@media (min-width: 640px) {
	.rlm-quote { padding-block: 5rem; }
}

@media (min-width: 1024px) {
	.rlm-quote { padding-block: 8rem; }
}

.rlm-quote-inner { position: relative; }

/* An RLM watermark bled off the top right, desktop only. */
.rlm-watermark { display: none; }

@media (min-width: 1024px) {
	.rlm-watermark {
		display: block;
		position: absolute;
		top: -4rem;
		right: -1rem;
		font-size: 20rem;
		line-height: 1;
		color: rgb(var(--rv-black-rgb) / 0.045);
		pointer-events: none;
		user-select: none;
	}
}

/* border-t-2 border-brand-green pt-10 */
.rlm-quote-fig {
	margin: 0;
	border-top: 2px solid var(--rv-green);
	padding-top: 2.5rem;
}

/* grid gap-8 lg:grid-cols-[1fr_16rem] lg:gap-16 */
.rlm-quote-grid {
	display: grid;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.rlm-quote-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 16rem);
		gap: 4rem;
	}
}

.rlm-quote-block {
	margin: 0;
	min-width: 0;
}

/* text-xl leading-snug font-normal tracking-tight sm:text-2xl lg:text-[2rem] */
.rlm-quote-text {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.375;
	font-weight: 400;
	letter-spacing: -0.025em;
	color: var(--rv-black);
}

@media (min-width: 640px) {
	.rlm-quote-text { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
	.rlm-quote-text { font-size: 2rem; }
}

.rlm-quote-mark {
	font-weight: 600;
	color: var(--rv-green);
}

/* self-end lg:border-l lg:pl-10 */
.rlm-quote-cite {
	min-width: 0;
	align-self: end;
}

@media (min-width: 1024px) {
	.rlm-quote-cite {
		border-left: 1px solid var(--rv-case-border);
		padding-left: 2.5rem;
	}
}

.rlm-quote-name {
	display: block;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 700;
	font-style: normal;
	color: var(--rv-black);
}

/* mt-3 text-sm leading-relaxed */
.rlm-quote-role {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	line-height: 1.625;
	color: var(--rv-case-muted);
}

.rlm-quote-place { margin-top: 1rem; }

/* -------------------------------------------------------------------- cta */

/* relative overflow-hidden bg-ink py-20 lg:py-32 */
.rlm-cta {
	position: relative;
	overflow: hidden;
	padding-block: 5rem;
}

@media (min-width: 1024px) {
	.rlm-cta { padding-block: 8rem; }
}

/* h-56 */
.rlm-cta-curve {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 14rem;
	width: 100%;
	pointer-events: none;
}

.rlm-cta-inner { position: relative; }

.rlm-cta-row { gap: 1rem; }

/* The size, leading and tracking are the shared .cs-cta-h. 70rem rather than
   the design's 42rem, as on Density: at the shared size a narrower box broke
   each of the two sentences in the middle. */
.rlm-cta-h {
	margin: 2rem 0 0;
	max-width: 70rem;
	font-weight: 800;
	color: var(--rv-white);
}

.rlm-cta-accent { color: var(--rv-green); }

/* mt-8 max-w-[32rem] text-[1.0625rem] leading-relaxed text-white/60 */
.rlm-cta-lede {
	margin: 2rem 0 0;
	max-width: 32rem;
	font-size: 1.0625rem;
	line-height: 1.625;
	color: rgb(var(--rv-white-rgb) / 0.6);
}

/* mt-10 flex-wrap items-center gap-x-8 gap-y-4 */
.rlm-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
	margin-top: 2.5rem;
}

/* inline-flex gap-6 px-7 py-4 text-base font-bold */
.rlm-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1rem 1.75rem;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 700;
}

/* ------------------------------------------------------------------- a11y */

@media (prefers-reduced-motion: reduce) {
	.rlm-cta-btn { transition: none; }
}
