/**
 * cmp-guides — CMP Guides cards section.
 *
 * Reproduces frontend-v1/src/app/guides/filament/page.tsx (and the sibling
 * printer page) as a static, responsive card list. One card layout serves both
 * guide types: a 3/6/3 lead-body-aside split on desktop, stacked on mobile.
 * Tokens come from tokens.css; do not redefine. Breakpoints at 768px / 1024px.
 */

.cmp-guides {
	padding-block: clamp(3.5rem, 2rem + 6vw, 6rem);
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.cmp-guides__head {
	max-width: 60ch;
	margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
}

.cmp-guides__h2 {
	margin-top: 0.75rem;
	max-width: 18ch;
}

.cmp-guides__h2 + .cmp-guides__intro {
	margin-top: 1rem;
}

.cmp-guides__intro {
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--body);
	max-width: 60ch;
}

/* ── Card list ─────────────────────────────────────────────────────────────── */
.cmp-guides__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
.cmp-guides__card {
	border-radius: var(--r-md);
	border: 1px solid var(--border-hair);
	background: var(--card);
	box-shadow: var(--shadow-rest);
	padding: 1.5rem;
	transform-style: preserve-3d;
	will-change: transform;
	transition: border-color var(--dur-base) var(--ease-standard),
		box-shadow var(--dur-base) var(--ease-standard),
		transform var(--dur-fast) var(--ease-standard);
}

.cmp-guides__card:hover {
	border-color: var(--amber-tint-border);
	box-shadow: var(--shadow-hover);
}

@media (min-width: 640px) {
	.cmp-guides__card {
		padding: 1.75rem;
	}
}

/* lead / body split */
.cmp-guides__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 1024px) {
	.cmp-guides__grid {
		grid-template-columns: 3fr 6fr 3fr;
		align-items: center;
		column-gap: 2rem;
	}
}

/* ── CTA column ("Quote in <material>") ──────────────────────────────────── */
.cmp-guides__cta { display: flex; }
@media (min-width: 1024px) { .cmp-guides__cta { justify-content: flex-end; } }


/* ── Lead column (title / subtitle / price) ────────────────────────────────── */
.cmp-guides__title-row {
	display: flex;
	align-items: baseline;
	gap: 0.65rem;
}

.cmp-guides__index {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
	color: var(--amber-text);
}

.cmp-guides__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin: 0;
}

.cmp-guides__subtitle {
	margin-top: 0.35rem;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
}

.cmp-guides__price {
	margin-top: 0.65rem;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

/* ── Body column (best-for / strengths / avoid) ────────────────────────────── */
.cmp-guides__bestfor {
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--body);
	margin: 0;
}

.cmp-guides__strengths {
	list-style: none;
	margin: 0.85rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cmp-guides__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border-radius: var(--r-pill);
	background: var(--amber-tint);
	color: var(--amber-text);
	padding: 0.3rem 0.65rem;
	font-family: var(--font-mono);
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1;
}

.cmp-guides__chip-tick {
	font-weight: 700;
	font-size: 0.8rem;
	line-height: 1;
}

.cmp-guides__avoid {
	margin-top: 0.85rem;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.5;
	color: var(--muted);
}

/* ── Reduced motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.cmp-guides__card {
		transition: none;
	}
}
