/* P3 Google Reviews - matches the site's card/section language. */

.gr-summary {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin: 0 0 1.75rem;
}

.gr-score {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	color: var(--foreground, #111820);
}

.gr-stars {
	color: #F5A623;
	font-size: 1.15rem;
	letter-spacing: 0.05em;
}

.gr-count {
	color: var(--muted-foreground, #5a6472);
	font-size: 0.9rem;
}

.gr-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	/* Capped tracks with a centred row, so a listing with two reviews does not
	   stretch them into two oversized cards. */
	grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
	justify-content: center;
	gap: 1.25rem;
}

.gr-card {
	display: flex;
	flex-direction: column;
	background: var(--background, #fff);
	border: 1px solid var(--border, #e3e6ea);
	border-radius: 14px;
	padding: 1.25rem;
}

.gr-card-head {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 0.6rem;
}

.gr-avatar {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	object-fit: cover;
	flex: 0 0 auto;
}

.gr-author {
	display: block;
	font-size: 0.95rem;
	color: var(--foreground, #111820);
}

.gr-when {
	display: block;
	font-size: 0.78rem;
	color: var(--muted-foreground, #5a6472);
}

.gr-rating {
	margin: 0 0 0.5rem;
	color: #F5A623;
	letter-spacing: 0.05em;
}

.gr-text {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--muted-foreground, #5a6472);
	/* Google reviews run to wildly different lengths; clamping keeps the row of
	   cards even without truncating so hard that the point is lost. */
	display: -webkit-box;
	-webkit-line-clamp: 8;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gr-attribution {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 1.5rem 0 0;
	font-size: 0.85rem;
}

.gr-attribution a {
	font-weight: 700;
	color: var(--accent-lime-text, oklch(0.55 0.15 118));
	text-decoration: none;
}

.gr-attribution a:hover { text-decoration: underline; }

.gr-powered { color: var(--muted-foreground, #5a6472); }

@media (max-width: 640px) {
	.gr-list { grid-template-columns: 1fr; }
}
