/* MPH Testimonials — [mph_testimonials] */
.mph-testimonials {
	--mph-t-accent: #02979d;
	--mph-t-bar: #f5b754;
	--mph-t-bg: transparent;
	--mph-t-gap: clamp(18px, 3.4vw, 42px);
	--mph-t-text: #1d1f23;
	--mph-t-muted: #3c4048;
	box-sizing: border-box;
	clear: both;
	width: 100%;
	margin: 0 0 1.5em;
	padding: 8px 0;
	background: var(--mph-t-bg);
	color: var(--mph-t-text);
	line-height: 1.5;
	text-align: left;
}
.mph-testimonials.mph-t--bg { padding: clamp(36px, 6vw, 64px) clamp(16px, 3vw, 32px); }
.mph-testimonials *,
.mph-testimonials *::before,
.mph-testimonials *::after { box-sizing: border-box; }
/* Columns follow the room the section has (a page with a sidebar is narrower than the screen). */
.mph-testimonials .mph-t__inner { max-width: 1120px; margin: 0 auto; container: mph-t / inline-size; }
.mph-testimonials p { margin: 0; padding: 0; }

/* Heading */
.mph-testimonials .mph-t__head { margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.mph-testimonials .mph-t__eyebrow {
	margin: 0 0 14px;
	font-size: clamp(15px, 1.9vw, 22px);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: #111;
}
.mph-testimonials .mph-t__bar {
	display: block;
	width: 118px;
	height: 5px;
	margin: 0 auto 22px;
	border-radius: 1px;
	background: var(--mph-t-bar);
}
.mph-testimonials .mph-t__title {
	margin: 0 0 10px;
	padding: 0;
	font-size: clamp(28px, 4.2vw, 46px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: #0b0c0e;
}
.mph-testimonials .mph-t__subtitle { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; color: #2b2e33; }
.mph-testimonials .mph-t__hl { color: var(--mph-t-accent); font-weight: 700; }

/* Cards */
.mph-testimonials .mph-t__track { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--mph-t-gap); }
.mph-testimonials .mph-t__card {
	--mph-t-cols: 3;
	display: flex;
	flex-direction: column;
	flex: 0 1 calc((100% - (var(--mph-t-cols) - 1) * var(--mph-t-gap)) / var(--mph-t-cols));
	min-width: 0;
	margin: 0;
	padding: 26px 24px 24px;
	background: #fff;
	border: 1px solid rgba(16, 24, 40, .05);
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(16, 24, 40, .08);
	container-type: inline-size;
}
.mph-testimonials.mph-t--cols-1 .mph-t__card { --mph-t-cols: 1; max-width: 720px; }
.mph-testimonials.mph-t--cols-2 .mph-t__card { --mph-t-cols: 2; }
.mph-testimonials.mph-t--cols-4 .mph-t__card { --mph-t-cols: 4; padding: 22px 20px 20px; }

.mph-testimonials .mph-t__logo { margin: 0 0 14px; line-height: 0; }
.mph-testimonials .mph-t__logo img {
	display: block;
	width: auto;
	max-width: 70%;
	height: auto;
	max-height: 52px;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.mph-testimonials .mph-t__quote,
.mph-testimonials blockquote.mph-t__quote {
	position: static;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
	font-size: 15.5px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	color: var(--mph-t-text);
}
.mph-testimonials .mph-t__quote::before,
.mph-testimonials .mph-t__quote::after { content: none; display: none; }
.mph-testimonials .mph-t__quote p { margin: 0; font-size: inherit; font-style: normal; line-height: inherit; color: inherit; }
.mph-testimonials .mph-t__mark {
	display: inline-block;
	width: .95em;
	height: .72em;
	fill: var(--mph-t-accent);
	vertical-align: -.02em;
}
.mph-testimonials .mph-t__end { white-space: nowrap; }
.mph-testimonials .mph-t__mark--open { margin-right: .4em; }
.mph-testimonials .mph-t__mark--close { margin-left: .4em; vertical-align: -.22em; }

.mph-testimonials .mph-t__person {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #dcdfe4;
}
.mph-testimonials .mph-t__photo {
	flex: 0 0 auto;
	width: 92px;
	height: 92px;
	overflow: hidden;
	border-radius: 50%;
	background: #eef0f3;
	border: 4px solid #fff;
	box-shadow: 0 0 0 1px #e4e7eb, 0 2px 8px rgba(16, 24, 40, .06);
}
.mph-testimonials .mph-t__photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	border-radius: 50%;
}
.mph-testimonials .mph-t__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--mph-t-accent);
	color: #fff;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: .02em;
}
.mph-testimonials .mph-t__who { min-width: 0; font-size: 14px; line-height: 1.45; }
.mph-testimonials .mph-t__name { margin-bottom: 4px; font-size: 16px; font-weight: 700; color: #0b0c0e; }
.mph-testimonials .mph-t__role { color: var(--mph-t-muted); }
.mph-testimonials .mph-t__company { color: var(--mph-t-accent); }
.mph-testimonials .mph-t__company a { color: inherit; text-decoration: none; box-shadow: none; }
.mph-testimonials .mph-t__company a:hover,
.mph-testimonials .mph-t__company a:focus { text-decoration: underline; }
.mph-testimonials .mph-t__industry { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--mph-t-muted); }
.mph-testimonials .mph-t__icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--mph-t-accent); }

.mph-testimonials .mph-t__case {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
	padding: 14px 16px;
	border-radius: 8px;
	background: #f1f2f4;
	color: var(--mph-t-text);
	text-decoration: none;
	box-shadow: none;
	transition: background-color .15s ease;
}
.mph-testimonials .mph-t__case:hover,
.mph-testimonials .mph-t__case:focus { background: #e7e9ec; color: var(--mph-t-text); text-decoration: none; }
.mph-testimonials .mph-t__case-icon { flex: 0 0 auto; width: 40px; height: 40px; color: var(--mph-t-accent); }
.mph-testimonials .mph-t__case-body { display: block; min-width: 0; }
.mph-testimonials .mph-t__case-title {
	display: block;
	margin-bottom: 3px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--mph-t-accent);
}
.mph-testimonials .mph-t__case-text { display: block; font-size: 12.5px; line-height: 1.4; color: #2b2e33; }

/* Slider: one row that scrolls sideways */
.mph-testimonials.mph-t--slider { overflow: hidden; }
.mph-testimonials.mph-t--slider .mph-t__track {
	flex-wrap: nowrap;
	justify-content: flex-start;
	margin: -12px -12px 0;
	padding: 12px 12px 22px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 12px;
	scrollbar-width: none;
}
.mph-testimonials.mph-t--slider .mph-t__track::-webkit-scrollbar { display: none; }
.mph-testimonials.mph-t--slider .mph-t__track:focus-visible { outline: 2px solid var(--mph-t-accent); outline-offset: -2px; }
.mph-testimonials.mph-t--slider .mph-t__card { flex-shrink: 0; scroll-snap-align: start; }
.mph-testimonials .mph-t__nav { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.mph-testimonials .mph-t__nav[hidden] { display: none; }
.mph-testimonials .mph-t__nav button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid #d6dae0;
	border-radius: 50%;
	background: #fff;
	color: var(--mph-t-accent);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(16, 24, 40, .06);
	transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.mph-testimonials .mph-t__nav button:hover:not(:disabled),
.mph-testimonials .mph-t__nav button:focus-visible { background: var(--mph-t-accent); color: #fff; border-color: var(--mph-t-accent); }
.mph-testimonials .mph-t__nav button:disabled { opacity: .35; cursor: default; }

@container mph-t (max-width: 960px) {
	.mph-testimonials.mph-t--cols-3 .mph-t__card,
	.mph-testimonials.mph-t--cols-4 .mph-t__card { --mph-t-cols: 2; }
}
@container mph-t (max-width: 600px) {
	.mph-testimonials .mph-t__card { --mph-t-cols: 1 !important; padding: 22px 20px 20px; }
	.mph-testimonials.mph-t--slider .mph-t__card { flex-basis: 86%; }
}
/* A narrow card puts the photo above the name. */
@container (max-width: 235px) {
	.mph-testimonials .mph-t__person { flex-direction: column; align-items: flex-start; gap: 12px; }
}
/* Browsers without container queries go by the screen width. */
@supports not (container-type: inline-size) {
	@media (max-width: 1024px) {
		.mph-testimonials.mph-t--cols-3 .mph-t__card,
		.mph-testimonials.mph-t--cols-4 .mph-t__card { --mph-t-cols: 2; }
	}
	@media (max-width: 680px) {
		.mph-testimonials .mph-t__card { --mph-t-cols: 1 !important; padding: 22px 20px 20px; }
		.mph-testimonials.mph-t--slider .mph-t__card { flex-basis: 86%; }
	}
}
@media (max-width: 680px) {
	.mph-testimonials .mph-t__photo { width: 78px; height: 78px; }
	.mph-testimonials .mph-t__person { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.mph-testimonials .mph-t__case,
	.mph-testimonials .mph-t__nav button { transition: none; }
}
