/* 2.9.293: homepage "What customers say", Shopify-style.
 * Compact centred score (no box), slim breakdown on wider screens, one row of
 * equal-height cards that scrolls sideways with a peek of the next card. */
.gh-home-reviews--293 {
	--ghr-ink: #111;
	--ghr-muted: #6b6b6b;
	--ghr-line: #e8e8e8;
	padding: 8px 0 56px;
}

.gh-home-reviews--293 .gh-home-section-heading {
	justify-content: center;
	margin-bottom: 10px;
	text-align: center;
}

/* Summary */
.gh-home-reviews--293 .gh-home-reviews-summary {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 28px;
	margin: 0 auto 22px;
	padding: 0;
	background: none;
	text-align: center;
}

.gh-home-reviews--293 .gh-home-reviews-score {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
}

.gh-home-reviews--293 .gh-home-reviews-average {
	color: var(--ghr-ink);
	font-family: "DM Sans", sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.gh-studio .gh-home-reviews--293 .gh-review-rating-stars.gh-card-rating {
	margin: 0;
	font-size: 18px;
}

.gh-home-reviews--293 .gh-home-reviews-based {
	margin: 6px 0 0;
	color: var(--ghr-muted);
	font-family: "DM Sans", sans-serif;
	font-size: 13px;
	line-height: 1.3;
}

.gh-home-reviews--293 .gh-home-reviews-bars {
	display: none;
	width: 190px;
	margin: 0;
	padding: 0 0 0 28px;
	border-left: 1px solid var(--ghr-line);
	list-style: none;
	color: var(--ghr-muted);
	font-family: "DM Sans", sans-serif;
	font-size: 11px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.gh-home-reviews--293 .gh-home-reviews-bars li {
	display: grid;
	grid-template-columns: 8px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 1.5px 0;
}

.gh-home-reviews--293 .gh-home-reviews-track,
.gh-home-reviews--293 .gh-home-reviews-track > span {
	display: block;
	height: 4px;
	border-radius: 999px;
}

.gh-home-reviews--293 .gh-home-reviews-track { overflow: hidden; background: #efefef; }
.gh-home-reviews--293 .gh-home-reviews-track > span { max-width: 100%; background: var(--ghr-ink); }

/* Cards row */
.gh-home-reviews--293 .gh-home-reviews-grid {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: none;
	grid-auto-columns: min(82%, 320px);
	align-items: stretch;
	gap: 12px;
	/* full-bleed scroller so the next card peeks in from the screen edge */
	margin-inline: calc(50% - 50vw);
	padding: 2px calc(50vw - 50%) 8px;
	scroll-padding-inline: 16px; /* the mobile page inset (--gh-shell: 100% - 32px) */
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.gh-home-reviews--293 .gh-home-reviews-grid::-webkit-scrollbar { display: none; }

.gh-home-reviews--293 .gh-home-reviews-grid:not(.gh-home-reviews-grid--swipe) {
	justify-content: center;
}

.gh-home-reviews--293 .gh-home-reviews-grid:focus-visible {
	outline: 2px solid var(--ghr-ink);
	outline-offset: -2px;
}

.gh-home-reviews--293 .gh-home-review-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--ghr-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: none;
	overflow-wrap: anywhere;
	scroll-snap-align: start;
}

.gh-home-reviews--293 .gh-home-review-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.gh-home-reviews--293 .gh-home-review-stars { margin: 0; font-size: 14px; }

.gh-home-reviews--293 .gh-home-review-top time {
	margin: 0;
	color: #8a8a8a;
	font-family: "DM Sans", sans-serif;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
}

.gh-home-reviews--293 .gh-home-review-body {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: calc(4 * 1.5em);
	font-size: 14px;
}

.gh-home-reviews--293 .gh-home-review-text {
	display: -webkit-box;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	color: #222;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

/* Small square photo: first photo only, beside the text. */
.gh-home-reviews--293 .gh-home-review-card .gh-review-images {
	display: block;
	flex: 0 0 64px;
	order: 2;
	width: 64px;
	margin: 0;
	padding: 0;
}

.gh-home-reviews--293 .gh-review-images .gh-review-image-link { width: 64px; height: 64px; border-radius: 8px; }
.gh-home-reviews--293 .gh-review-images .gh-review-image-link ~ .gh-review-image-link { display: none; }

.gh-home-reviews--293 .gh-review-images img {
	display: block;
	width: 64px;
	height: 64px;
	max-width: none;
	margin: 0;
	border-radius: 8px;
	object-fit: cover;
}

.gh-home-reviews--293 .gh-home-review-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	margin-top: auto;
	padding-top: 2px;
	font-family: "DM Sans", sans-serif;
	font-size: 12px;
	line-height: 1.35;
}

.gh-home-reviews--293 .gh-home-review-author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

.gh-home-reviews--293 .gh-home-review-meta cite {
	color: var(--ghr-ink);
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
}

.gh-home-reviews--293 .gh-home-review-verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--ghr-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
}

.gh-home-reviews--293 .gh-home-review-verified svg { flex: none; color: var(--ghr-ink); }

.gh-home-reviews--293 .gh-home-review-meta .gh-home-review-product {
	display: block;
	max-width: 100%;
	overflow: hidden;
	color: var(--ghr-muted);
	text-decoration: underline;
	text-decoration-color: #c9c9c9;
	text-underline-offset: 3px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gh-home-reviews--293 .gh-home-review-meta .gh-home-review-product:hover { color: var(--ghr-ink); text-decoration-color: currentColor; }

@media (min-width: 701px) {
	.gh-home-reviews--293 { padding-bottom: 72px; }
	.gh-home-reviews--293 .gh-home-section-heading { margin-bottom: 14px; }
	.gh-home-reviews--293 .gh-home-reviews-summary { margin-bottom: 30px; }
	.gh-home-reviews--293 .gh-home-reviews-overview { text-align: center; }
	.gh-home-reviews--293 .gh-home-reviews-bars { display: block; }
	/* Desktop: fixed-width cards, centred while they fit, scrolling when they don't. */
	.gh-home-reviews--293 .gh-home-reviews-grid {
		grid-auto-columns: 340px;
		gap: 16px;
		width: max-content;
		max-width: 100%;
		margin-inline: auto;
		padding-inline: 0;
		scroll-padding-inline: 0;
	}
}
