/*
 * The reviews band (partials/review-partials.php): our Google rating line, then a row of same-height
 * review cards that slides along (js/reviews.js). Cards keep the site's look: white, a thin charcoal
 * outline, rounded corners, yellow stars.
 */

/* "G ★★★★★ 5.0 · 405 Google reviews", linking to our reviews on Google. */
.google-rating {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	margin-top: var(--sc-heading, 1rem);
	color: var(--dark);
	font-size: 1.05rem;
	text-decoration: none;
}

.google-rating:hover span:last-child {
	text-decoration: underline;
}

.google-rating .google-mark {
	width: 1.25rem;
	height: 1.25rem;
}

.google-rating-stars,
.review-card-stars {
	display: inline-flex;
	gap: .15rem;
	color: #FBBC05;
}

.review-slider {
	margin-top: var(--sc-block, 3rem);
	text-align: left;
}

.reviewCardsSwiper {
	/* Room for the cards' outlines at the edges. */
	padding: 2px;
}

/* All cards in view stand as tall as the tallest. */
.reviewCardsSwiper .swiper-wrapper {
	align-items: stretch;
}

.review-card.swiper-slide {
	height: auto;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: 1.5rem;
	background: var(--white);
	border: 1px solid var(--dark);
	border-radius: .75rem;
	color: var(--dark);
}

.review-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.review-card .google-mark {
	width: 1.1rem;
	height: 1.1rem;
	flex: none;
}

.review-card-text {
	flex: 1;
	font-size: .95rem;
	line-height: 1.55;
}

.review-card-text p {
	font-size: inherit;
	margin-bottom: .5rem;
}

.review-card-text p:last-child {
	margin-bottom: 0;
}

/* Long reviews show their first lines, with "Read more". */
.review-card.is-clamped .review-card-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 7;
	overflow: hidden;
	flex: none;
}

.review-card.is-clamped .review-card-more {
	margin-bottom: auto;
}

.review-card-more {
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: none;
	color: var(--red);
	font-size: .85rem;
	font-weight: 600;
	text-decoration: underline;
}

.review-card-name {
	margin: 0;
	font-size: .85rem;
	font-weight: 700;
}

.review-card-name span {
	display: block;
	font-weight: 400;
	color: #6b6466;
}

.review-slider-nav {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

.review-slider-nav button {
	padding: 0 .25rem;
	border: 0;
	background: none;
	color: inherit;
	line-height: 1;
}

.review-slider-nav button.swiper-button-disabled {
	opacity: .35;
}

/* Fewer cards than fit: no arrows. */
.review-slider-nav.swiper-button-lock,
.review-slider-nav:has(.swiper-button-lock) {
	display: none;
}

/* Class pages: "★★★★★ 5.0 · 405 Google reviews" under the class name (sc_class_rating_line in reviews.php).
   Links in the class details are pink and underlined; here only the count is underlined. */
.class_details .class-rating a.class-rating-link {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	text-decoration: none;
}

.class_details .class-rating .class-rating-count {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.class-rating-stars {
	display: inline-flex;
	gap: .1rem;
}
