/* ─── Comparison (X vs Y) pages ──────────────────────────────────────────────
 * Model-vs-model spec tables and the composite-vs-wood attribute table. Reuses
 * the collection FAQ / link-grid / prose / CTA rules; only the versus header,
 * tables, and verdict are defined here. */

/* Versus header */
.liv-cmp__versus {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	gap: clamp(1rem, 3vw, 2rem);
	margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.liv-cmp__side {
	display: grid;
	gap: 0.5rem;
	justify-items: center;
	text-align: center;
}
.liv-cmp__side-media {
	display: block;
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--ink-700, #1a1a1a);
	border-radius: 0.5rem;
}
.liv-cmp__side-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 8 / 5;
	object-fit: cover;
}
.liv-cmp__side-name { margin: 0.25rem 0 0; font-size: 1.5rem; }
.liv-cmp__side-price { margin: 0; }
.liv-cmp__vs {
	align-self: center;
	font-family: var(--wp--preset--font-family--display, "Roboto Slab", serif);
	font-style: italic;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	color: var(--wp--preset--color--leaf-500, #5BA02E);
}

/* Spec + attribute tables */
.liv-cmp__table-wrap { overflow-x: auto; margin-top: clamp(1rem, 3vw, 2rem); }
.liv-cmp__table {
	width: 100%;
	min-width: 32rem;
	border-collapse: collapse;
	color: var(--wp--preset--color--paper, #ffffff);
}
.liv-cmp__table th,
.liv-cmp__table td {
	padding: 0.85rem 1rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--wp--preset--color--ink-700, #1a1a1a);
}
.liv-cmp__table thead th {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--ink-200, #cccccc);
	border-bottom: 2px solid var(--wp--preset--color--ink-500, #3a3a3a);
}
.liv-cmp__table tbody th {
	font-weight: 600;
	white-space: nowrap;
	color: var(--wp--preset--color--ink-200, #cccccc);
}
.liv-cmp__table td { font-variant-numeric: tabular-nums; }
.liv-cmp__table .is-better {
	background: rgba(139, 197, 63, 0.15);
	font-weight: 600;
	color: var(--wp--preset--color--paper, #ffffff);
}
.liv-cmp__table thead .is-liv { color: var(--wp--preset--color--leaf-300, #97C459); }
.liv-cmp__table--attr td {
	white-space: normal;
	line-height: 1.5;
	font-variant-numeric: normal;
}
.liv-cmp__table-note {
	margin-top: 0.75rem;
	font-size: 0.85rem;
	color: var(--wp--preset--color--ink-300, #9a9a9a);
}

/* Verdict */
.liv-cmp__verdict-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	margin-bottom: clamp(1.5rem, 4vw, 2rem);
}
.liv-cmp__verdict-card {
	padding: 1.5rem;
	border: 1px solid var(--wp--preset--color--ink-700, #1a1a1a);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--ink-800, #141414);
}
.liv-cmp__verdict-card h3 { margin: 0 0 0.5rem; color: var(--wp--preset--color--leaf-300, #97C459); }
.liv-cmp__verdict-card p { margin: 0; line-height: 1.6; color: var(--wp--preset--color--ink-200, #cccccc); }
.liv-cmp__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

@media (max-width: 640px) {
	.liv-cmp__versus { grid-template-columns: 1fr; }
	.liv-cmp__vs { margin: 0.25rem 0; }
}
