/*
 * T-Shirt Designer Platform With WooCommerce -- 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. */
.tsd-hero {
	background: var(--rv-white);
	padding: 3rem 0 2.5rem;
}

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

/* gap-4 */
.tsd-kicker { gap: 1rem; }

/* mt-6 lg:mt-8 lg:-ml-1, max-w-5xl. Size, leading and tracking are the
   shared .cs-title. */
.tsd-title {
	margin: 1.5rem 0 0;
	max-width: 64rem;
	font-weight: 800;
	color: var(--rv-black);
}

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

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

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

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

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

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

.tsd-share {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	transition: color 0.2s;
}

.tsd-share:hover,
.tsd-share:focus-visible { color: var(--rv-black); }

/* mt-12 grid border border-border lg:mt-16 lg:[1fr_1.15fr] */
.tsd-cards {
	display: grid;
	margin-top: 3rem;
	border: 1px solid var(--rv-case-border);
}

@media (min-width: 1024px) {
	.tsd-cards {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
		margin-top: 4rem;
	}
}

.tsd-card { padding: 1.25rem; }

@media (min-width: 1024px) {
	.tsd-card { padding: 2rem; }
}

.tsd-card--nda {
	border-bottom: 1px solid var(--rv-case-border);
	border-left: 2px solid var(--rv-blue);
}

@media (min-width: 1024px) {
	.tsd-card--nda {
		border-right: 1px solid var(--rv-case-border);
		border-bottom: 0;
	}
}

.tsd-card--brief {
	border-left: 2px solid var(--rv-green);
	background: color-mix(in srgb, var(--rv-green) 10%, transparent);
}

/* mt-4 text-[0.9375rem] leading-relaxed */
.tsd-card-body {
	margin: 1rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.625;
}

.tsd-card-body--nda {
	font-style: italic;
	color: var(--rv-case-muted);
}

.tsd-card-body--brief {
	font-weight: 500;
	color: var(--rv-black);
}

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

/* Prose className="mt-8" */
.tsd-prose { margin-top: 2rem; }

/* mt-14 grid gap-10 sm:2 cols lg:3 cols lg:gap-12 */
.tsd-components {
	display: grid;
	gap: 2.5rem;
	margin: 3.5rem 0 0;
	padding: 0;
	list-style: none;
}

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

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

.tsd-components > li { min-width: 0; }

/* The export's body sits mt-5 under the figure, with no measure cap. */
.tsd-components .cs-item-body {
	margin-top: 1.25rem;
	max-width: none;
}

/* --------------------------------------------------- technical solution */

/* mt-12 grid gap-12 lg:mt-16 lg:[4fr_7fr] lg:items-center lg:gap-16 */
.tsd-split {
	display: grid;
	gap: 3rem;
	margin-top: 3rem;
}

@media (min-width: 1024px) {
	.tsd-split {
		grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
		align-items: center;
		gap: 4rem;
		margin-top: 4rem;
	}
}

.tsd-split-text { min-width: 0; }

/* lg:-mr-8 */
@media (min-width: 1024px) {
	.tsd-shot { margin-right: -2rem; }
}

/* ------------------------------------------------------------ integration */

/* mt-14 space-y-10 lg:mt-16 lg:space-y-14 */
.tsd-integration { margin-top: 3.5rem; }
.tsd-integration > * + * { margin-top: 2.5rem; }

@media (min-width: 1024px) {
	.tsd-integration { margin-top: 4rem; }
	.tsd-integration > * + * { margin-top: 3.5rem; }
}

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

.tsd-results {
	position: relative;
	overflow: hidden;
}

.tsd-results-inner { position: relative; }

/* A 05 watermark bled off the top right, desktop only. */
.tsd-watermark { display: none; }

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

/* mt-14 grid gap-12 lg:mt-16 lg:grid-cols-2 lg:gap-20 */
.tsd-results-grid {
	display: grid;
	gap: 3rem;
	margin-top: 3.5rem;
}

@media (min-width: 1024px) {
	.tsd-results-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 5rem;
		margin-top: 4rem;
	}
}

/* mt-16 grid gap-y-8 border-t pt-10 sm:3 cols sm:gap-x-10 lg:mt-20 */
.tsd-stack {
	display: grid;
	row-gap: 2rem;
	margin: 4rem 0 0;
	border-top: 1px solid var(--rv-case-border);
	padding-top: 2.5rem;
}

@media (min-width: 640px) {
	.tsd-stack {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 2.5rem;
	}
}

@media (min-width: 1024px) {
	.tsd-stack { margin-top: 5rem; }
}

.tsd-stack-item {
	border-top: 1px solid rgb(var(--rv-green-rgb) / 0.4);
	padding-top: 1rem;
}

.tsd-stack-k {
	font-family: var(--rv-font-mono);
	font-size: 0.65rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--rv-case-muted);
}

/* mt-2 text-xl font-bold green lg:text-2xl */
.tsd-stack-v {
	margin: 0.5rem 0 0;
	font-size: 1.25rem;
	line-height: 1.4;
	font-weight: 700;
	color: var(--rv-green);
}

@media (min-width: 1024px) {
	.tsd-stack-v {
		font-size: 1.5rem;
		line-height: 1.33333;
	}
}

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

/* relative overflow-hidden bg-[#111111] py-24 lg:py-32 */
.tsd-cta {
	position: relative;
	overflow: hidden;
	background: var(--rv-ink);
	color: var(--rv-white);
	padding-block: 6rem;
}

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

/* Vertical hairlines every 12.5%, at 6%. */
.tsd-cta-grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.06;
	background-image: linear-gradient(to right, var(--rv-white) 1px, transparent 1px);
	background-size: 12.5% 100%;
}

.tsd-cta-curve {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 45%;
	width: 100%;
	pointer-events: none;
}

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

/* gap-4; the rule is white/50 here, not green. */
.tsd-cta-row { gap: 1rem; }

.tsd-cta-tick {
	width: 2.5rem;
	background: rgb(var(--rv-white-rgb) / 0.5);
}

/* mt-8 max-w-4xl font-extrabold white; size is the shared .cs-cta-h. */
.tsd-cta-h {
	margin: 2rem 0 0;
	max-width: 56rem;
	font-weight: 800;
	color: var(--rv-white);
}

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

/* mt-8 max-w-md text-base leading-relaxed white/55 */
.tsd-cta-lede {
	margin: 2rem 0 0;
	max-width: 28rem;
	font-size: 1rem;
	line-height: 1.625;
	color: rgb(var(--rv-white-rgb) / 0.55);
}

/* mt-12 flex-wrap gap-8 */
.tsd-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
	margin-top: 3rem;
}

/* gap-6 px-8 py-4 font-bold */
.tsd-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1rem 2rem;
	font-weight: 700;
}

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

@media (prefers-reduced-motion: reduce) {
	.tsd-share { transition: none; }
}
