/*
 * Training CRM Platform: 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 */

/* The export's py-10 lg:py-14 sat under a breadcrumb that is gone here, so
   the padding matches the other case studies' heroes instead. */
.trc-hero {
	background: var(--rv-white);
	padding: 3rem 0 3.5rem;
}

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

/* gap-4 */
.trc-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). */
.trc-title {
	margin: 1.5rem 0 0;
	font-weight: 800;
	color: var(--rv-black);
}

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

.trc-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% */
.trc-progress {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

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

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

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

/* mt-6 max-w-[42rem] 0.9375rem / lg base, leading-relaxed */
.trc-lede {
	margin: 1.5rem 0 0;
	max-width: 42rem;
	font-size: 0.9375rem;
	line-height: 1.625;
	color: var(--rv-case-muted);
}

@media (min-width: 1024px) {
	.trc-lede { font-size: 1rem; }
}

/* mt-8 grid border lg:mt-10 lg:grid-cols-2 */
.trc-herocards {
	display: grid;
	margin-top: 2rem;
	border: 1px solid var(--rv-case-border);
}

@media (min-width: 1024px) {
	.trc-herocards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 2.5rem;
	}
}

.trc-herocard { padding: 1.25rem; }

@media (min-width: 1024px) {
	.trc-herocard { padding: 1.5rem; }
}

/* border-b, border-l-2 blue; lg border-b-0 border-r */
.trc-herocard--note {
	border-bottom: 1px solid var(--rv-case-border);
	border-left: 2px solid var(--rv-blue);
}

@media (min-width: 1024px) {
	.trc-herocard--note {
		border-bottom: 0;
		border-right: 1px solid var(--rv-case-border);
	}
}

.trc-herocard--client {
	border-left: 2px solid var(--rv-green);
	background: rgb(var(--rv-green-rgb) / 0.1);
}

/* mt-3 0.9375rem leading-snug */
.trc-herocard-body {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.375;
}

.trc-herocard-body--note {
	font-style: italic;
	color: var(--rv-case-muted);
}

.trc-herocard-body--client {
	font-weight: 500;
	color: var(--rv-black);
}

/* ------------------------------------------------------------------ about */

/* grid gap-12 lg:[1fr 1.1fr] lg:gap-20 */
.trc-about {
	display: grid;
	gap: 3rem;
}

@media (min-width: 1024px) {
	.trc-about {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		gap: 5rem;
	}
}

.trc-about-col { min-width: 0; }

/* text-3xl lg:text-[2.5rem], extrabold */
.trc-about-h {
	margin: 0;
	font-size: 1.875rem;
	line-height: 1.2;
	font-weight: 800;
	color: var(--rv-black);
}

@media (min-width: 1024px) {
	.trc-about-h { font-size: 2.5rem; }
}

/* mt-6, then mt-5; max-w-[34rem] 1.0625rem leading-relaxed */
.trc-about-p {
	margin: 1.25rem 0 0;
	max-width: 34rem;
	font-size: 1.0625rem;
	line-height: 1.625;
	color: var(--rv-case-muted);
}

.trc-about-h + .trc-about-p { margin-top: 1.5rem; }

/* space-y-8; each row border-t ink/15 pt-5 */
.trc-meta { margin: 0; }

.trc-meta-row {
	min-width: 0;
	border-top: 1px solid rgb(var(--rv-black-rgb) / 0.15);
	padding-top: 1.25rem;
}

.trc-meta-row + .trc-meta-row { margin-top: 2rem; }

.trc-meta dt {
	font-size: 0.875rem;
	line-height: 1.42857;
	font-weight: 700;
	color: var(--rv-black);
}

.trc-meta dd {
	margin: 0.5rem 0 0;
	max-width: 32rem;
	font-size: 0.9375rem;
	line-height: 1.375;
	color: var(--rv-case-muted);
}

/* -------------------------------------------------------- business process */

/* grid gap-8 lg:[17rem 1fr] lg:gap-16 */
.trc-process {
	display: grid;
	gap: 2rem;
}

.trc-process > * { min-width: 0; }

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

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

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

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

.trc-bar--wide { width: 6rem; }

/* mt-12 grid border-t-2 border-l green/40 sm:grid-cols-2 lg:mt-16 */
.trc-points {
	display: grid;
	margin: 3rem 0 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid rgb(var(--rv-green-rgb) / 0.4);
	border-left: 1px solid rgb(var(--rv-green-rgb) / 0.4);
}

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

@media (min-width: 1024px) {
	.trc-points { margin-top: 4rem; }
}

/* border-r border-b ink/15 p-7 hover:bg-fog lg:p-10 */
.trc-point {
	display: flex;
	min-width: 0;
	flex-direction: column;
	border-right: 1px solid rgb(var(--rv-black-rgb) / 0.15);
	border-bottom: 1px solid rgb(var(--rv-black-rgb) / 0.15);
	padding: 1.75rem;
	transition: background-color 0.2s;
}

.trc-point:hover { background: var(--rv-fog); }

@media (min-width: 1024px) {
	.trc-point { padding: 2.5rem; }
}

.trc-point-top {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* text-2xl lg:text-3xl */
.trc-point-n {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.33333;
	color: var(--rv-green);
}

@media (min-width: 1024px) {
	.trc-point-n {
		font-size: 1.875rem;
		line-height: 1.2;
	}
}

.trc-point-line {
	height: 1px;
	flex: 1;
	background: rgb(var(--rv-green-rgb) / 0.35);
}

/* mt-5 text-lg leading-snug font-bold lg:text-xl */
.trc-point-text {
	margin: 1.25rem 0 0;
	font-size: 1.125rem;
	line-height: 1.375;
	font-weight: 700;
	color: var(--rv-black);
}

@media (min-width: 1024px) {
	.trc-point-text { font-size: 1.25rem; }
}

/* ------------------------------------------------------------ punctuation */

/* shell py-16 lg:py-24 on ink */
.trc-punct { padding-block: 4rem; }

@media (min-width: 1024px) {
	.trc-punct { padding-block: 6rem; }
}

.trc-punct-kicker {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.trc-punct-label {
	font-family: var(--rv-font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--rv-green);
}

.trc-punct-line {
	height: 1px;
	flex: 1;
	background: rgb(var(--rv-white-rgb) / 0.15);
}

/* mt-10 grid gap-10 lg:[1fr 22rem] lg:gap-16 */
.trc-punct-grid {
	display: grid;
	gap: 2.5rem;
	margin-top: 2.5rem;
}

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

/* 2rem / 5xl / 4.25rem, leading-[1.02] extrabold, on fog */
.trc-punct-h {
	margin: 0;
	font-size: 2rem;
	line-height: 1.02;
	font-weight: 800;
	color: var(--rv-fog);
}

@media (min-width: 640px) {
	.trc-punct-h { font-size: 3rem; }
}

@media (min-width: 1024px) {
	.trc-punct-h { font-size: 4.25rem; }
}

.trc-punct-dim { color: rgb(var(--rv-white-rgb) / 0.45); }

/* self-end border-t green/40 pt-5 */
.trc-punct-note {
	align-self: end;
	border-top: 1px solid rgb(var(--rv-green-rgb) / 0.4);
	padding-top: 1.25rem;
}

.trc-punct-note p {
	margin: 0;
	line-height: 1.625;
	color: rgb(var(--rv-white-rgb) / 0.7);
}

/* ---------------------------------------------------------------- filters */

/* mt-12 grid gap-x-10 gap-y-8 sm:2 lg:4 lg:gap-12 */
.trc-filters {
	display: grid;
	gap: 2rem 2.5rem;
	margin-top: 3rem;
}

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

@media (min-width: 1024px) {
	.trc-filters {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 3rem;
	}
}

/* mt-16 overflow-hidden lg:mt-24 */
.trc-roles {
	margin-top: 4rem;
	overflow: hidden;
}

@media (min-width: 1024px) {
	.trc-roles { margin-top: 6rem; }
}

.trc-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	vertical-align: top;
}

.trc-table thead tr { border-bottom: 2px solid var(--rv-black); }

.trc-table tbody tr {
	border-bottom: 1px solid var(--rv-case-border);
	vertical-align: top;
}

/* py-4 pr-6; the Dimension column only from sm up */
.trc-table th.cs-eyebrow {
	padding: 1rem 1.5rem 1rem 0;
	text-align: left;
}

.trc-th-dim { display: none; }
.trc-th-one { color: var(--rv-black); }

.trc-table th.trc-th-two {
	padding-right: 0;
	color: var(--rv-green);
}

/* py-8 pr-6 text-base font-bold sm:w-[22%] */
.trc-td-dim {
	display: none;
	padding: 2rem 1.5rem 2rem 0;
	text-align: left;
	font-size: 1rem;
	font-weight: 700;
	color: var(--rv-black);
}

.trc-td-one,
.trc-td-two {
	padding: 2rem 1.5rem 2rem 0;
	line-height: 1.625;
}

.trc-td-one { color: var(--rv-case-muted); }

.trc-td-two {
	padding-right: 0;
	color: var(--rv-black);
}

/* The row label repeated inside the cell, phones only. */
.trc-td-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--rv-black);
}

@media (min-width: 640px) {
	.trc-th-dim,
	.trc-td-dim { display: table-cell; }

	.trc-td-dim { width: 22%; }

	.trc-td-label { display: none; }
}

/* -------------------------------------------------------------- reporting */

.trc-reports-prose { margin-top: 2rem; }

/* mt-14 border-t white/12 */
.trc-reports {
	margin: 3.5rem 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgb(var(--rv-white-rgb) / 0.12);
}

/* grid [3.5rem 1fr] items-start gap-x-5 border-b white/12 py-8;
   lg [7rem 1fr] gap-x-10 py-10 */
.trc-report {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	align-items: start;
	column-gap: 1.25rem;
	border-bottom: 1px solid rgb(var(--rv-white-rgb) / 0.12);
	padding-block: 2rem;
	transition: background-color 0.2s;
}

.trc-report:hover { background: rgb(var(--rv-white-rgb) / 0.04); }

@media (min-width: 1024px) {
	.trc-report {
		grid-template-columns: 7rem minmax(0, 1fr);
		column-gap: 2.5rem;
		padding-block: 2.5rem;
	}
}

/* The first row inverts to green and bleeds to the shell's edges:
   -mx-6 px-6 lg:-mx-20 lg:px-20. */
.trc-report--first,
.trc-report--first:hover {
	margin-inline: -1.5rem;
	padding-inline: 1.5rem;
	background: var(--rv-green);
}

@media (min-width: 1024px) {
	.trc-report--first,
	.trc-report--first:hover {
		margin-inline: -5rem;
		padding-inline: 5rem;
	}
}

/* text-3xl lg:text-5xl */
.trc-report-n {
	font-size: 1.875rem;
	line-height: 1.2;
	color: var(--rv-green);
}

@media (min-width: 1024px) {
	.trc-report-n {
		font-size: 3rem;
		line-height: 1;
	}
}

.trc-report--first .trc-report-n { color: rgb(var(--rv-black-rgb) / 0.4); }

/* text-xl font-bold lg:text-3xl */
.trc-report-h {
	margin: 0;
	min-width: 0;
	font-size: 1.25rem;
	line-height: 1.4;
	font-weight: 700;
	color: var(--rv-white);
}

@media (min-width: 1024px) {
	.trc-report-h {
		font-size: 1.875rem;
		line-height: 1.2;
	}
}

.trc-report--first .trc-report-h { color: var(--rv-black); }

/* mt-12 max-w-[46rem] text-xl leading-snug lg:text-2xl */
.trc-reports-close {
	margin: 3rem 0 0;
	max-width: 46rem;
	font-size: 1.25rem;
	line-height: 1.375;
	color: var(--rv-white);
}

@media (min-width: 1024px) {
	.trc-reports-close { font-size: 1.5rem; }
}

/* -------------------------------------------------------- business results */

.trc-results-prose { margin-top: 2rem; }

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

/* py-20 lg:py-36 */
.trc-cta {
	position: relative;
	overflow: hidden;
	padding-block: 5rem;
}

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

.trc-cta-grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.07;
	background-image: repeating-linear-gradient(to right, var(--rv-white) 0 1px, transparent 1px 8.5rem);
}

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

@media (min-width: 1024px) {
	.trc-cta-curve { height: 14rem; }
}

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

/* An opener with the longer w-10 tick and gap-4. */
.trc-opener { gap: 1rem; }
.trc-opener .cs-tick { width: 2.5rem; }

/* The size, leading and tracking are the shared .cs-cta-h. The export's
   max-w-4xl is widened as on Density: at the shared size each sentence then
   keeps to its own line instead of breaking in the middle. */
.trc-cta-h {
	margin: 2rem 0 0;
	max-width: 70rem;
	font-weight: 800;
	color: var(--rv-white);
}

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

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

/* mt-12 flex-col items-start gap-6 sm:flex-row sm:items-center sm:gap-10 */
.trc-cta-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	margin-top: 3rem;
}

@media (min-width: 640px) {
	.trc-cta-actions {
		flex-direction: row;
		align-items: center;
		gap: 2.5rem;
	}
}

/* min-h-[3.5rem] w-full sm:w-auto, gap-4 px-8, text-base bold */
.trc-cta-btn {
	display: inline-flex;
	width: 100%;
	min-height: 3.5rem;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding-inline: 2rem;
	font-size: 1rem;
	font-weight: 700;
}

@media (min-width: 640px) {
	.trc-cta-btn { width: auto; }
}

.trc-cta-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--rv-black), 0 0 0 4px var(--rv-green);
}

/* eyebrow min-h-[2.75rem] gap-2 border-b white/30 pb-1 white/80 */
.trc-cta-link {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	gap: 0.5rem;
	border-bottom: 1px solid rgb(var(--rv-white-rgb) / 0.3);
	padding-bottom: 0.25rem;
	color: rgb(var(--rv-white-rgb) / 0.8);
	text-decoration: none;
	transition: color 0.15s, border-color 0.15s;
}

.cs-tone-ink .trc-cta-link { color: rgb(var(--rv-white-rgb) / 0.8); }

.cs-tone-ink .trc-cta-link:hover,
.cs-tone-ink .trc-cta-link:focus-visible {
	border-bottom-color: var(--rv-green);
	color: var(--rv-white);
}

.trc-cta-link:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--rv-green);
}

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

@media (prefers-reduced-motion: reduce) {
	.trc-point,
	.trc-report,
	.trc-cta-link,
	.trc-cta-btn { transition: none; }
}
