.ced-tests { background: var(--wp--preset--color--ink); position: relative; overflow: clip; }
.ced-tests::before {
	content: ""; position: absolute;
	inset: 0;
	background: radial-gradient(60% 60% at 50% 50%, rgba(203, 108, 230, 0.05) 0%, transparent 60%);
	pointer-events: none;
}
.ced-tests__head {
	max-width: var(--page-max);
	margin: 0 auto var(--wp--preset--spacing--lg);
	display: grid;
	gap: var(--wp--preset--spacing--sm);
}
.ced-tests__title {
	font-size: clamp(2rem, 4.5vw, 4rem);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1.04;
	margin: 0;
	max-width: 22ch;
	color: var(--wp--preset--color--paper);
}

.ced-tests__stage {
	max-width: var(--page-max);
	margin-inline: auto;
	display: grid;
	gap: var(--wp--preset--spacing--md);
	position: relative;
}

/* --- Quote area --------------------------------------------------- */
.ced-tests__quotes {
	/* CSS-grid stacking trick: every quote shares the same grid cell.
	   The cell auto-sizes to the TALLEST quote so the container never
	   gets smaller than the longest entry needs — no more overflow into
	   the nav below. The active quote fades in over the inactives. */
	display: grid;
	grid-template-columns: 1fr;
	min-height: 320px;
}
.ced-tests__quote {
	grid-column: 1;
	grid-row: 1;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 480ms var(--ease-emph), transform 480ms var(--ease-emph);
	pointer-events: none;
	display: grid;
	align-content: start;
	gap: var(--wp--preset--spacing--sm);
	max-width: 80ch;
}
.ced-tests__quote.is-active {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
/* ─── Header row: avatar disc + quote mark ─── */
.ced-tests__head-row {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}
.ced-tests__avatar {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	position: relative;
	background: var(--accent, var(--wp--preset--color--lime));
	border: 2px solid var(--accent, var(--wp--preset--color--lime));
	box-shadow: 0 0 0 4px rgba(0,0,0,0.0), 0 0 24px -4px var(--accent, transparent);
	display: grid;
	place-items: center;
}
.ced-tests__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ced-tests__avatar-initials {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--ink);
}
.ced-tests__mark {
	color: var(--accent, var(--wp--preset--color--lime));
	opacity: 0.55;
}
.ced-tests__quote blockquote {
	font-size: clamp(1.5rem, 3vw, 2.5rem);
	font-weight: 300;
	letter-spacing: -0.025em;
	line-height: 1.25;
	color: var(--wp--preset--color--paper);
	margin: 0;
	max-width: 28ch * 1.5;
}
.ced-tests__quote footer {
	display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
	padding-top: var(--wp--preset--spacing--sm);
	border-top: var(--wp--custom--grid--hairline);
}
.ced-tests__quote cite { font-style: normal; display: flex; flex-direction: column; gap: 4px; }
.ced-tests__name {
	font-size: var(--wp--preset--font-size--base);
	font-weight: 500;
	color: var(--wp--preset--color--paper);
	letter-spacing: -0.01em;
}
.ced-tests__role {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--fog);
}
.ced-tests__platform {
	margin-left: auto;
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--mist);
}
.ced-tests__platform span {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--accent, var(--wp--preset--color--lime));
	box-shadow: 0 0 0 4px rgba(0,0,0,0.0), 0 0 12px -2px var(--accent, transparent);
}

/* --- Nav strip --------------------------------------------------- */
.ced-tests__nav {
	/* All testimonials in one row at desktop — each pill auto-sizes to
	   1fr of the container width. 9 pills × ~110px = ~990px fits the
	   default page-max comfortably. minmax(0, 1fr) lets pills shrink
	   below their content's intrinsic min-width (fixes long names
	   forcing the row wider than the container). */
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 1px;
	background: var(--ced-line-08);
	border: 1px solid var(--ced-line-08);
	border-radius: var(--wp--custom--radius--md);
	overflow: clip;
}
.ced-tests__dot {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--wp--preset--color--graphite);
	color: var(--wp--preset--color--mist);
	border: none;
	padding: 0.7rem 0.85rem;
	text-align: left;
	cursor: pointer;
	min-width: 0;  /* allow shrinking inside grid cell */
	position: relative;
	transition:
		background var(--wp--custom--transition--smooth),
		color var(--wp--custom--transition--smooth),
		box-shadow var(--wp--custom--transition--smooth);
}
.ced-tests__dot::before {
	/* Top edge accent — colored bar that fades in when the pill is active. */
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: var(--accent, var(--wp--preset--color--lime));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 400ms var(--ease-emph);
}
.ced-tests__dot.is-active::before { transform: scaleX(1); }
.ced-tests__dot:hover { background: var(--wp--preset--color--stone); color: var(--wp--preset--color--paper); }
.ced-tests__dot.is-active {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

/* Mini avatar inside each nav pill — same image as the big avatar in
   the active quote, but at 28px for the row. Initials fallback uses the
   accent color so even text-only pills are colorful. */
.ced-tests__dot-avatar {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--accent, var(--wp--preset--color--lime));
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--wp--preset--color--ink);
}
.ced-tests__dot-avatar img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}

.ced-tests__dot-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;  /* allow text-overflow to kick in */
}
/* Truncate long company names in the dot so no pill widens its column. */
.ced-tests__dot-name,
.ced-tests__dot-co {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ced-tests__dot-name { font-size: var(--wp--preset--font-size--sm); font-weight: 500; letter-spacing: -0.01em; }
.ced-tests__dot-co {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: inherit;
	opacity: 0.7;
}

@media (max-width: 1024px) {
	.ced-tests__title { font-size: clamp(1.85rem, 4.5vw, 3rem); }
	.ced-tests__quote blockquote { font-size: clamp(1.25rem, 3vw, 2rem); }
	/* 9 pills × ~110px = ~990px doesn't fit at tablet widths — fall
	   back to horizontal scroll, same pattern as mobile but with wider
	   pills since there's more touch area. */
	.ced-tests__nav {
		display: flex;
		flex-wrap: nowrap;
		grid-template-columns: none;
		grid-auto-flow: initial;
		grid-auto-columns: initial;
		gap: 0.5rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		background: transparent;
		border: 0;
	}
	.ced-tests__nav::-webkit-scrollbar { display: none; }
	.ced-tests__dot {
		flex: 0 0 auto;
		width: 180px;
		scroll-snap-align: start;
		border-radius: var(--wp--custom--radius--md);
		border: 1px solid var(--ced-line-08);
	}
}
@media (max-width: 640px) {
	.ced-tests__title { font-size: clamp(1.6rem, 8vw, 2.25rem); }
	.ced-tests__head  { margin-bottom: 2rem; }
	.ced-tests__quotes { min-height: 280px; }
	.ced-tests__quote blockquote { font-size: clamp(1.1rem, 5vw, 1.5rem); }
	.ced-tests__quote footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
	.ced-tests__platform { margin-left: 0; font-size: 0.55rem; }
	/* Swipe row — all 6 testimonials accessible without crowding */
	.ced-tests__nav {
		display: flex;
		flex-wrap: nowrap;
		grid-template-columns: none;
		gap: 0.5rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		background: transparent;
		border: 0;
		--ced-swipe-fade: var(--wp--preset--color--ink);
	}
	.ced-tests__nav::-webkit-scrollbar { display: none; }
	.ced-tests__dot {
		flex: 0 0 auto;
		width: min(48vw, 200px);
		padding: 0.85rem;
		min-height: 56px;
		scroll-snap-align: start;
		border-radius: var(--wp--custom--radius--md);
		border: 1px solid var(--ced-line-08);
	}
	.ced-tests__dot-name { font-size: 0.85rem; }
	.ced-tests__dot-co   { font-size: 0.55rem; }
}


/* ====================================================================
   Testimonials — wall + scroll variants (cookie-pinned per visitor).
   The block emits one of `big` (everything above), `wall`, or `scroll`
   per visit. These two layouts live side-by-side so the existing
   .ced-tests__* big-variant rules above keep working unchanged.
   ==================================================================== */

/* Shared avatar shape, reused by wall + scroll variants. */
.ced-tests__wall-avatar {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: linear-gradient(135deg, #2a1f15, #1a1410);
	display: grid;
	place-items: center;
	color: var(--accent, var(--wp--preset--color--lime));
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	flex-shrink: 0;
	overflow: hidden;
}
.ced-tests__wall-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Shared author meta — name + role/company line. */
.ced-tests__wall-meta { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.ced-tests__wall-name { font-size: 0.9rem; font-weight: 600; color: var(--wp--preset--color--paper); }
.ced-tests__wall-role { font-size: 0.78rem; color: var(--wp--preset--color--mist); }


/* ────────────── Variant: WALL — 3-col card grid, all visible ────────────── */
.ced-tests--wall .ced-tests__wall {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	max-width: var(--page-max);
	margin-inline: auto;
}
.ced-tests__wall-card {
	background: var(--wp--preset--color--graphite);
	border: 1px solid var(--ced-line-08, rgba(255, 255, 255, 0.08));
	border-radius: 16px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	transition:
		border-color var(--wp--custom--transition--smooth),
		transform var(--wp--custom--transition--smooth);
}
.ced-tests__wall-card:hover {
	border-color: color-mix(in oklab, var(--accent) 32%, transparent);
	transform: translateY(-3px);
}
.ced-tests__wall-platform {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
}
.ced-tests__wall-quote {
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--wp--preset--color--paper);
	margin: 0;
	flex: 1;
}
.ced-tests__wall-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ced-line-08, rgba(255, 255, 255, 0.08));
}
.ced-tests__wall-author .ced-tests__wall-avatar { width: 40px; height: 40px; font-size: 0.78rem; }

@media (max-width: 900px) {
	.ced-tests--wall .ced-tests__wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.ced-tests--wall .ced-tests__wall { grid-template-columns: 1fr; }
}


/* ────────────── Variant: SCROLL — horizontal snap row ────────────── */
.ced-tests--scroll .ced-tests__scroll {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline-start: var(--gutter-x);
	padding-inline: var(--gutter-x);
	margin-inline: calc(var(--gutter-x) * -1);
	padding-bottom: 1.25rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #CB6CE6 transparent;
	--ced-swipe-fade: var(--wp--preset--color--ink);
}
.ced-tests--scroll .ced-tests__scroll::-webkit-scrollbar { height: 6px; }
.ced-tests--scroll .ced-tests__scroll::-webkit-scrollbar-thumb {
	background: color-mix(in oklab, #CB6CE6 65%, transparent);
	border-radius: 999px;
}
.ced-tests--scroll .ced-tests__scroll::-webkit-scrollbar-track { background: transparent; }

.ced-tests__scroll-card {
	flex: 0 0 380px;
	background: var(--wp--preset--color--graphite);
	border: 1px solid var(--ced-line-08, rgba(255, 255, 255, 0.08));
	border-radius: 18px;
	padding: 1.75rem;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	transition: border-color var(--wp--custom--transition--smooth);
}
.ced-tests__scroll-card:hover {
	border-color: color-mix(in oklab, var(--accent) 32%, transparent);
}
.ced-tests__scroll-quote {
	font-size: 1rem;
	line-height: 1.55;
	margin: 0;
	color: var(--wp--preset--color--paper);
	flex: 1;
}
.ced-tests__scroll-quote::before {
	content: "\201C";
	color: var(--accent);
	font-size: 2.5rem;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 0;
	vertical-align: -0.35em;
	margin-right: 0.2rem;
	opacity: 0.55;
}
.ced-tests__scroll-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ced-line-08, rgba(255, 255, 255, 0.08));
}
.ced-tests__scrollhint {
	max-width: var(--page-max);
	margin: 0.5rem auto 0;
	padding-inline: var(--gutter-x);
	color: var(--wp--preset--color--fog);
	font-size: 0.78rem;
}

@media (hover: none) and (pointer: coarse) {
	.ced-tests--scroll .ced-tests__scroll { scrollbar-width: none; }
	.ced-tests--scroll .ced-tests__scroll::-webkit-scrollbar { display: none; }
}
@media (max-width: 600px) {
	.ced-tests__scroll-card { flex: 0 0 86vw; }
	.ced-tests__scroll-quote { font-size: 0.95rem; }
}
