/* ─────────────────────────────────────────────────────────────
   Testimonials page — loaded only on /testimonials/.
   Structure comes from inc/classes/blocks/class-testimonials-page.php.
   ───────────────────────────────────────────────────────────── */

/* Hero: dark band with two soft glows, breadcrumb, copy beside the featured story. */
.t-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.t-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(closest-side, rgba(176, 172, 5, 0.2), transparent 65%) -10% -10% / 60% 130% no-repeat,
		radial-gradient(closest-side, rgba(176, 172, 5, 0.12), transparent 70%) 115% 115% / 55% 120% no-repeat;
}

.t-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	letter-spacing: 0.22em;
}

.is-style-on-dark .t-crumbs {
	color: rgba(217, 212, 168, 0.92);
}

.is-style-on-dark .t-crumbs a {
	color: rgba(217, 212, 168, 0.85);
	text-decoration: none;
}

.is-style-on-dark .t-crumbs a:hover {
	color: var(--accent);
}

.t-crumb-sep {
	color: rgba(217, 212, 168, 0.35);
}

.is-style-on-dark .t-crumbs [aria-current] {
	color: var(--fg-on-dark);
}

.t-hero-grid {
	display: grid;
	gap: var(--wp--preset--spacing--7);
}

@media (min-width: 880px) {
	.t-hero-grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		gap: var(--wp--preset--spacing--8);
		align-items: end;
	}
}

.t-hero-copy .is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
}

.t-hero-copy .is-style-eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

.t-hero-copy :where(h1) {
	max-width: 16ch;
	line-height: 0.95;
	letter-spacing: -0.028em;
	text-wrap: balance;
}

.t-hero-copy .has-body-lg-font-size {
	max-width: 52ch;
	font-size: clamp(16px, 1.6vw, 19px);
	line-height: 1.55;
}

/* Buttons and the "or call" line: stacked on small screens, a row from 560px. */
.t-hero .t-hero-actions {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.t-hero .t-hero-actions .wp-block-buttons {
	flex-direction: column;
	align-items: stretch;
	width: 100%;
}

.t-hero .t-hero-actions .wp-block-button,
.t-hero .t-hero-actions .wp-block-button__link {
	display: flex;
	width: 100%;
}

@media (min-width: 560px) {
	.t-hero .t-hero-actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--wp--preset--spacing--4);
	}

	.t-hero .t-hero-actions .wp-block-buttons {
		flex-direction: row;
		width: auto;
	}

	.t-hero .t-hero-actions .wp-block-button,
	.t-hero .t-hero-actions .wp-block-button__link {
		display: inline-flex;
		width: auto;
	}
}

.t-meta-call {
	letter-spacing: 0.2em;
}

.is-style-on-dark .t-meta-call {
	color: var(--border);
}

.is-style-on-dark .t-meta-call a {
	color: var(--accent);
	border-bottom: 1px solid rgba(176, 172, 5, 0.45);
	text-decoration: none;
}

.is-style-on-dark .t-meta-call a:hover {
	border-bottom-color: var(--accent);
}

/* Featured story: a glowing dark panel with the big mark, quote and source. */
.t-featured {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 40px 28px;
	border-radius: 24px;
}

.t-featured::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(closest-side, rgba(176, 172, 5, 0.24), transparent 70%) 100% 0 / 60% 120% no-repeat;
}

@media (min-width: 720px) {
	.t-featured {
		padding: 56px 48px;
	}
}

.t-featured-mark {
	margin: 0 0 -24px -4px;
	color: var(--accent);
	font-family: var(--font-display);
	font-size: clamp(64px, 10vw, 120px);
	font-style: italic;
	line-height: 0.7;
}

.t-featured-quote {
	max-width: 26ch;
	font-family: var(--font-display);
	font-size: clamp(24px, 3.2vw, 36px);
	font-style: italic;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-transform: lowercase;
}

.t-featured .t-featured-meta {
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid rgba(217, 212, 168, 0.18);
}

.t-featured-name {
	margin: 0;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	text-transform: lowercase;
}

/* Chips: "clinician · name" and the treatment, on light cards and the dark hero. */
.t-chip {
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(176, 172, 5, 0.08);
	color: var(--accent-soft);
	font-family: var(--font-body);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.t-chip:empty {
	display: none;
}

.t-chip-clinician:not(:empty)::before {
	content: "clinician · ";
}

.is-style-on-dark .t-chip {
	border: 1px solid rgba(176, 172, 5, 0.28);
	background: rgba(176, 172, 5, 0.14);
	color: var(--accent);
	font-size: 11px;
	letter-spacing: 0.2em;
}

/* Stats strip: hairline-separated cells, two across then four from 720px. */
.t-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	border-top: 1px solid rgba(217, 212, 168, 0.18);
	border-bottom: 1px solid rgba(217, 212, 168, 0.18);
	background: rgba(217, 212, 168, 0.18);
}

@media (min-width: 720px) {
	.t-stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.t-stat {
	padding: 20px 24px;
	background: var(--wp--preset--color--ink);
}

.t-stat .is-style-meta-label {
	margin: 0 0 6px;
	font-size: 10px;
	letter-spacing: 0.22em;
	color: var(--accent-soft);
}

.t-stat-v {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 0;
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.02em;
	text-transform: lowercase;
}

.t-stat-v em {
	color: var(--accent);
	font-size: 0.7em;
	font-style: italic;
	font-weight: 400;
}

.t-stars {
	color: var(--accent);
	font-size: 0.6em;
	letter-spacing: 0.05em;
}

/* Filter chips: hidden radios, the checked label inverts to ink. */
.t-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.t-filter-label {
	margin-right: 8px;
	color: var(--accent-soft);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.t-filter-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.t-filter-chip {
	padding: 7px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--fg-soft);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out),
		color var(--dur-base) var(--ease-out);
}

.t-filter-chip:hover {
	border-color: var(--accent-soft);
	color: var(--fg);
}

.t-filter-input:focus-visible + .t-filter-chip {
	box-shadow: 0 0 0 3px var(--ring);
}

.t-filter-input:checked + .t-filter-chip {
	border-color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
	color: var(--fg-on-dark);
}

.t-count {
	margin-left: 6px;
	color: var(--accent-soft);
	opacity: 0.6;
}

.t-filter-input:checked + .t-filter-chip .t-count {
	color: var(--accent);
	opacity: 1;
}

/* Story grid: one column, two from 720px, three from 1024px. */
.t-stories .wp-block-post-template {
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 720px) {
	.t-stories .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (min-width: 1024px) {
	.t-stories .wp-block-post-template {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px;
	}
}

.t-stories .wp-block-post {
	display: flex;
}

/* Story card: white, rounded, big chartreuse mark, quote, then the source rows. */
.t-card {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 18px;
	padding: 40px 28px 24px;
	border-radius: 18px;
	background: var(--wp--preset--color--white);
	box-shadow: var(--shadow-rest);
}

.t-card::before {
	content: "“";
	position: absolute;
	top: 4px;
	left: 20px;
	pointer-events: none;
	color: var(--accent);
	font-family: var(--font-display);
	font-size: 78px;
	font-style: italic;
	font-weight: 500;
	line-height: 1;
}

.t-card-quote {
	flex: 1;
	max-width: 32ch;
	margin: 14px 0 0;
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 18px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-transform: lowercase;
}

.t-card-quote em {
	color: var(--accent-soft);
	font-weight: 400;
}

.t-card-attrib {
	display: grid;
	gap: 6px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.t-card-name {
	margin: 0;
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	text-transform: lowercase;
}

.t-card-role {
	margin: 0;
	color: var(--accent-soft);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.t-card-role:empty,
.t-pill-row:not(:has(.t-chip:not(:empty))) {
	display: none;
}

.t-card .t-pill-row {
	margin-top: 6px;
}

/* "Meet the team" band: eyebrow and line beside the button, stacking when narrow. */
.t-meet :where(h3) {
	max-width: 18ch;
	line-height: 1;
}

.t-meet .t-meet-inner {
	gap: var(--wp--preset--spacing--6) var(--wp--preset--spacing--8);
}
