/*
 * Block: sn/comparison-table
 * Builds on the shared .x7148539f / .xfc07e7c2 base (base.css). Adds a
 * highlighted "best" column, badges, centred yes/no markers and a sticky
 * feature column so labels stay visible while scrolling on mobile.
 *
 * NOT NOTCHED, and this is the block that proves the rule: the wrapper is a
 * scroll container and the first column is position:sticky inside it. A
 * clip-path on a scroll container clips its sticky children as they travel,
 * so the labels would vanish at the edge. The wrapper takes the plain frame
 * and the bloom instead (base.css).
 */

.x3f3c3ba7 {
	margin: var(--sn-sp-12) 0;
	container-type: inline-size; /* compact rules react to the column width, not the viewport */
}

.x6511c259 {
	margin: 0 0 var(--sn-sp-4);
}

.xa4cf3353 {
	margin: 0 0 var(--sn-sp-6);
	color: var(--sn-text-muted);
}

.xa4cf3353 > :last-child { margin-bottom: 0; }

.x69862e1d {
	min-width: 560px;
}

/* ---------- Header row ---------- */

/*
 * The sticky corner. It must be OPAQUE and it must paint the SAME thing the
 * header band paints, or it reads as a mismatched patch while the row scrolls
 * under it.
 *
 * THIS HAS NOW BEEN KEYED TO THE WRONG SURFACE ON FOUR CONSECUTIVE MARKET
 * PASSES. Every skin changes the thead background and every skin forgets this
 * cell. Use the GRADIENT ITSELF, not its end colour: every other th paints the
 * full ramp, so a flat fill leaves the corner visibly darker than the cell
 * beside it. Re-check it whenever `.x7148539f thead th` changes.
 */
.x69862e1d thead .xf6dcce4d {
	position: sticky;
	left: 0;
	z-index: 2;
	background: var(--sn-band-grad);
	box-shadow: inset -2px 0 0 var(--sn-acc-1);
}

.xb9a10872 {
	text-align: center;
	vertical-align: bottom;
	white-space: normal;
}

.x68c14a7a {
	display: block;
	color: var(--sn-on-chrome);
	font-family: var(--sn-font-display);
	font-size: var(--sn-fs-md);
	font-weight: 600;
}

/* The "best" tab. A sticker ring in two clashing neons rather than an offset
   — the brief's badge treatment, and the one place in the table that gets it. */
.xf20d60e1 {
	display: inline-block;
	margin-bottom: var(--sn-sp-2);
	padding: 2px var(--sn-sp-3);
	border-radius: 4px;
	background: var(--sn-acc-3);
	color: var(--sn-bg);
	font-family: var(--sn-font-display);
	font-size: var(--sn-fs-xs);
	font-weight: 700;
	letter-spacing: 0;
	white-space: nowrap;
	box-shadow: 0 0 0 2px var(--sn-bg), 0 0 0 4px var(--sn-acc-5);
}

/* ---------- Feature (first) column: sticky + accent ---------- */

/* Opaque, for the same reason as the corner: the data rows scroll underneath
   it. --sn-surface is a solid token precisely so this works (tokens.css), and
   it carries the SAME scanline layer the wrapper does — without it the label
   column is the one unscanned strip on the page and reads as a paste-up. */
.x83728c49 {
	position: sticky;
	left: 0;
	z-index: 1;
	min-width: 120px;
	max-width: 200px; /* long labels wrap instead of eating the viewport */
	background: var(--sn-pat-scanlines), var(--sn-surface);
	color: var(--sn-heading);
	font-family: var(--sn-font-display);
	font-weight: 600;
	box-shadow: inset -2px 0 0 var(--sn-acc-4);
}

/* ---------- Cells + markers ---------- */

.xb5944470 {
	text-align: center;
	vertical-align: middle;
}

.x614a4a8c {
	width: 22px;
	height: 22px;
	vertical-align: middle;
}

/* Slime / coral, NOT a rotated accent: the markers must mean the same thing
   in every row. The circle is the Thai "yes" (see render.php) — ○ means yes
   here, not ✓. Coral takes its LIFTED foreground value: this is a 22px glyph
   carrying data, and at full strength it measures 4.22 on the tile under the
   scanline overlay (tokens.css rule 2). */
.x8deaa887 { color: var(--sn-tip); }
.x9a6fd687  { color: var(--sn-acc-2-fg); }

.x614a4a8c + .xbefc7365 {
	margin-left: var(--sn-sp-1);
}

.xbefc7365 {
	color: var(--sn-text);
}

.xd5056f7f {
	color: var(--sn-text-muted);
}

/* ---------- Highlighted "best" column ---------- */

.xb9a10872.is-highlighted {
	box-shadow: inset 0 var(--sn-rule) 0 var(--sn-acc-3);
}

.xb9a10872.is-highlighted .x68c14a7a {
	color: var(--sn-acc-3);
}

/* Tint layer over the row background (semi-transparent by design). Uses the
   brand tint, not a semantic colour — the "best" column is a brand highlight,
   and a green band inside the table read as a stray status. */
.x69862e1d td.is-highlighted {
	background: var(--sn-primary-tint);
}

/* ---------- Footnote ---------- */

.xc75fa871 {
	margin: var(--sn-sp-4) 0 0;
}

/* ---------- Compact mode (narrow column/viewport) ----------
   Container query is the primary mechanism; the media query below is a
   fallback for browsers without container-query support. KEEP BOTH IN SYNC. */

@container (max-width: 640px) {
	/* The sticky label may take at most ~40% of the visible table. */
	.x83728c49 {
		min-width: 104px;
		max-width: 38cqw;
		font-size: var(--sn-fs-xs);
	}

	.x69862e1d th,
	.x69862e1d td {
		padding: var(--sn-sp-2) var(--sn-sp-3);
	}

	.x68c14a7a,
	.xbefc7365 {
		font-size: var(--sn-fs-sm);
	}

	.x614a4a8c {
		width: 18px;
		height: 18px;
	}
}

@media (max-width: 640px) {
	.x83728c49 {
		min-width: 104px;
		max-width: 40vw;
		font-size: var(--sn-fs-xs);
	}

	.x69862e1d th,
	.x69862e1d td {
		padding: var(--sn-sp-2) var(--sn-sp-3);
	}

	.x68c14a7a,
	.xbefc7365 {
		font-size: var(--sn-fs-sm);
	}

	.x614a4a8c {
		width: 18px;
		height: 18px;
	}
}
