/**
 * Relevant Specialists component
 *
 * Split layout — intro block (with H3 + body + black button CTA) on the
 * left, specialist cards stacked on the right. Collapses to a single
 * stacked column on mobile.
 *
 * All styles scoped under .tps-rs to avoid global conflicts.
 */
.tps-rs {
	box-sizing: border-box;
	width: 100%;
	background: #efeeec;
	border-radius: 6px;
	padding: clamp(2rem, 4vw, 3.5rem);
	color: #111;
}
.tps-rs *,
.tps-rs *::before,
.tps-rs *::after {
	box-sizing: border-box;
}
.tps-rs__inner {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 80px;
	align-items: center;
}
@media (max-width: 900px) {
	.tps-rs__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}
/* ---------- Header (left column) ---------- */
.tps-rs__header {
	margin-bottom: 0;
	padding: 0.5rem 0;
}
.tps-rs__eyebrow {
	margin: 0 0 0.85rem;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #555;
}
.tps-rs__heading {
	margin: 0 0 0.85rem;
	font-size: 42px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #111;
}
.tps-rs__intro {
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	color: #555;
}
/* ---------- Cards (right column) ---------- */
.tps-rs__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 540px) {
	.tps-rs__grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}
}
/* ---------- Card ---------- */
.tps-rs-card {
	list-style: none;
}
.tps-rs-card__link {
	display: flex;
	gap: 1rem;
	align-items: center;
	padding: 0.875rem 1rem 0.875rem 0.875rem;
	background: #ffffff;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.tps-rs-card__link:hover,
.tps-rs-card__link:focus-visible {
	background: #fafafa;
	transform: translateY(-1px);
}
.tps-rs-card__link:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}
/* ---------- Card media ---------- */
.tps-rs-card__media {
	position: relative;
	flex: 0 0 88px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 2px;
	background: #2a2a2a;
}
.tps-rs-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tps-rs-card__placeholder {
	width: 100%;
	height: 100%;
	background: #2a2a2a;
}
/* ---------- Card body ---------- */
.tps-rs-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.2rem;
}
.tps-rs-card__name {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: #111;
}
.tps-rs-card__title {
	margin: 0;
	font-size: 0.6875rem;
	line-height: 1.4;
	color: #777;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* View bio — hidden because each card is a single link with aria-label.
   The whole card click target communicates intent. */
.tps-rs-card__view {
	display: none;
}
/* ---------- Footer CTA (black button under the intro) ---------- */
.tps-rs__footer {
	margin-top: 1.5rem;
}
.tps-rs__cta {
	display: inline-block;
	padding: 14px 28px;
	background: #111;
	color: #fff;
	font-size: 0.71875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border: 0;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.tps-rs__cta:hover,
.tps-rs__cta:focus-visible {
	background: #2a2a2a;
	color: #fff;
	transform: translateY(-1px);
}
.tps-rs__cta:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

/* ============================================================
   Featured variant — used when 1 or 2 specialists are shown.
   ============================================================ */

/* 50/50 split (vs 1fr 1.5fr default) for visual balance */
.tps-rs--featured .tps-rs__inner {
	grid-template-columns: 1fr 1fr;
}

/* Cards container — flex so 1 card centers-right and 2 sit side-by-side */
.tps-rs--featured .tps-rs__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: flex-end;
}

@media (max-width: 900px) {
	.tps-rs--featured .tps-rs__inner {
		grid-template-columns: 1fr;
	}

	.tps-rs--featured .tps-rs__grid {
		justify-content: center;
	}
}

/* Each featured card — sized for 1-up or 2-up. flex-basis lets the
   browser fit two cards side-by-side when room allows, single-stack
   when the column is too narrow. */
.tps-rs-card--featured {
	flex: 1 1 240px;
	max-width: 320px;
}

/* Featured card — vertical orientation, photo on top */
.tps-rs-card--featured .tps-rs-card__link {
	display: block;
	padding: 0;
	overflow: hidden;
}

.tps-rs-card--featured .tps-rs-card__media {
	flex: none;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 0;
}

.tps-rs-card--featured .tps-rs-card__body {
	display: block;
	padding: 0.9rem 1rem 1rem;
	gap: 0;
}

.tps-rs-card--featured .tps-rs-card__name {
	font-size: 0.9375rem;
	margin-bottom: 0.3rem;
	line-height: 1.2;
}

.tps-rs-card--featured .tps-rs-card__title {
	font-size: 0.6875rem;
	-webkit-line-clamp: 3;
	margin-bottom: 0.8rem;
}

/* "View bio" link is visible in the featured variant */
.tps-rs-card--featured .tps-rs-card__view {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #111;
	text-transform: uppercase;
	padding-bottom: 3px;
	border-bottom: 1.5px solid #111;
}