/* Timberbrook Google Reviews — lightweight auto-scrolling card widget */
.tbgr {
	--tbgr-gold: #fbbc04;
	--tbgr-ink: #1f3b57;
	--tbgr-muted: #70808f;
	--tbgr-link: #1a73e8;
	--tbgr-card: #ffffff;
	--tbgr-radius: 14px;
	--tbgr-gap: 18px;
	display: flex;
	gap: 22px;
	align-items: center;
	font-family: inherit;
	color: var(--tbgr-ink);
}

/* Summary panel */
.tbgr__summary {
	flex: 0 0 auto;
	min-width: 160px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 6px;
	padding: 8px 16px;
}
.tbgr__headline {
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.tbgr__based {
	font-size: 0.95rem;
}
.tbgr__based strong {
	font-weight: 700;
}
.tbgr__brand {
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: 0;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1;
}

/* Auto-scrolling track */
.tbgr__track {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	padding: 6px 0 16px;
	-webkit-mask-image: linear-gradient( 90deg, transparent, #000 4%, #000 96%, transparent );
	        mask-image: linear-gradient( 90deg, transparent, #000 4%, #000 96%, transparent );
}
.tbgr__marquee {
	display: flex;
	gap: var(--tbgr-gap);
	width: max-content;
	will-change: transform;
	animation: tbgr-scroll var(--tbgr-duration, 60s) linear infinite;
}
.tbgr__track:hover .tbgr__marquee,
.tbgr__marquee.is-paused {
	animation-play-state: paused;
}
@keyframes tbgr-scroll {
	from { transform: translateX( 0 ); }
	to   { transform: translateX( calc( -1 * var( --tbgr-shift, 50% ) ) ); }
}

/* Card */
.tbgr__card {
	flex: 0 0 270px;
	width: 270px;
	background: var(--tbgr-card);
	border-radius: var(--tbgr-radius);
	box-shadow: 0 6px 22px rgba(31, 59, 87, 0.12);
	padding: 18px 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tbgr__head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.tbgr__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}
.tbgr__avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #2aa98a;
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
}
.tbgr__meta {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	flex: 1 1 auto;
	min-width: 0;
}
.tbgr__name {
	font-weight: 700;
	font-size: 0.98rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tbgr__when {
	font-size: 0.8rem;
	color: var(--tbgr-muted);
}
.tbgr__g {
	flex: 0 0 auto;
}

.tbgr__rating {
	display: flex;
	align-items: center;
	gap: 6px;
}
.tbgr__stars {
	display: inline-flex;
	gap: 1px;
}
.tbgr__star {
	fill: #dfe3e8;
}
.tbgr__star.is-on {
	fill: var(--tbgr-gold);
}

.tbgr__text {
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--tbgr-ink);
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}
.tbgr__text.is-open {
	-webkit-line-clamp: unset;
	display: block;
}

/* "Read more" as a plain blue text link */
.tbgr__more,
.tbgr__more:link,
.tbgr__more:visited {
	align-self: flex-start;
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--tbgr-link);
	text-decoration: none;
	cursor: pointer;
}
.tbgr__more:hover,
.tbgr__more:focus-visible {
	color: var(--tbgr-link);
	text-decoration: underline;
}

/* Mobile */
@media (max-width: 680px) {
	.tbgr {
		flex-direction: column;
		gap: 12px;
	}
	.tbgr__summary {
		min-width: 0;
		width: 100%;
		padding: 4px 2px;
	}
	.tbgr__track {
		width: 100%;
	}
	.tbgr__card {
		flex-basis: 84vw;
		width: 84vw;
		max-width: 320px;
	}
}

/* Respect reduced-motion: stop the auto-scroll, allow manual swipe */
@media (prefers-reduced-motion: reduce) {
	.tbgr__track {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.tbgr__marquee {
		animation: none;
		width: max-content;
	}
}
