/**
 * Testimonials page — truncated reviews with a "Read more" toggle.
 * Enqueued only on the Testimonials page template.
 * The clamp is applied by testimonials.js, so without JS every review shows in full.
 */

.testimonials-grid .card .review-text {
	position: relative;
}

.testimonials-grid .card .review-text.is-clamped {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	line-clamp: 6;
	overflow: hidden;
}

.testimonials-grid .card .review-text.is-clamped p:last-child {
	margin-bottom: 0;
}

.testimonials-grid .card .review-toggle {
	display: inline-block;
	margin: 0.25rem 0 1rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--darkgreen, #003c3b);
	font: inherit;
	font-size: 0.95rem;
	font-weight: var(--fw-600, 600);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* The display rule above would otherwise beat the browser's [hidden] default. */
.testimonials-grid .card .review-toggle[hidden] {
	display: none;
}

.testimonials-grid .card .review-toggle:hover,
.testimonials-grid .card .review-toggle:focus-visible {
	color: var(--darkpurple, #5f61b1);
	outline: none;
}

.testimonials-grid .card .review-toggle:focus-visible {
	outline: 2px solid var(--darkpurple, #5f61b1);
	outline-offset: 3px;
	border-radius: 2px;
}
