/* TINSE Reviews for Google: front-end styles */
.tgr {
	--tgr-bg: #fff;
	--tgr-fg: #1f2328;
	--tgr-muted: #6b7280;
	--tgr-border: #e5e7eb;
	--tgr-accent: #1a73e8;
	--tgr-gap: 1rem;
	--tgr-radius: 10px;
	--tgr-star: #fbbc04;
	color: inherit;
	font: inherit;
	box-sizing: border-box;
}
.tgr *, .tgr *::before, .tgr *::after { box-sizing: inherit; }

.tgr--theme-dark {
	--tgr-bg: #1e1e1e;
	--tgr-fg: #fff;
	--tgr-muted: #9a9a9a;
	--tgr-border: #1e1e1e;
	--tgr-accent: #8ab4f8;
}

/* Header */
.tgr__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-bottom: var(--tgr-gap);
}
.tgr__score { font-size: 2.75rem; font-weight: 700; line-height: 1; }
.tgr__count { color: var(--tgr-muted); font-size: .875rem; margin-top: .15rem; }
.tgr__cta {
	margin-left: auto;
	padding: .55rem 1rem;
	border-radius: 999px;
	background: var(--tgr-accent);
	color: #fff !important;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
}
.tgr__cta:hover, .tgr__cta:focus { opacity: .9; }

/* Centered header: large stars, source name, score line */
.tgr__header--centered {
	flex-direction: column;
	gap: .5rem;
	text-align: center;
	margin-bottom: 1.25rem;
}
.tgr__header--centered .tgr-stars { font-size: 2rem; letter-spacing: 3px; }
.tgr__header--centered .tgr-stars::before { letter-spacing: 3px; }
.tgr__brand { font-size: 1.9rem; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.tgr__header--centered .tgr__count { margin: 0; }
.tgr__sample { margin: 0 0 .75rem; font-size: .8125rem; opacity: .7; text-align: center; }

/* Stars */
.tgr-stars {
	position: relative;
	display: inline-block;
	color: #d1d5db;
	letter-spacing: 2px;
	line-height: 1;
	white-space: nowrap;
}
.tgr-stars::before {
	content: "★★★★★";
	position: absolute;
	left: 0;
	top: 0;
	width: var(--tgr-pct, 100%);
	overflow: hidden;
	color: var(--tgr-star);
	letter-spacing: 2px;
	white-space: nowrap;
}

/* Layouts */
.tgr--grid .tgr__track {
	display: grid;
	grid-template-columns: repeat(var(--tgr-cols, 3), minmax(0, 1fr));
	gap: var(--tgr-gap);
}
.tgr--list .tgr__track {
	display: flex;
	flex-direction: column;
	gap: var(--tgr-gap);
}
@media (max-width: 1100px) {
	.tgr--grid .tgr__track { grid-template-columns: repeat(min(var(--tgr-cols, 3), 3), minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.tgr--grid .tgr__track { grid-template-columns: repeat(min(var(--tgr-cols, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.tgr--grid .tgr__track { grid-template-columns: minmax(0, 1fr); }
}

/* Card */
.tgr__card {
	background: var(--tgr-bg);
	color: var(--tgr-fg);
	border: 1px solid var(--tgr-border);
	border-radius: var(--tgr-radius);
	padding: 1.1rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: .65rem;
	min-width: 0;
}
.tgr__author { display: flex; align-items: center; gap: .7rem; }
.tgr__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 40px;
}
.tgr__avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--tgr-accent);
	color: #fff;
	font-weight: 600;
}
.tgr__meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.tgr__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgr__date { color: var(--tgr-muted); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgr__src {
	align-self: flex-start;
	flex: 0 0 auto;
	color: var(--tgr-muted);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .01em;
}
.tgr__rating { display: flex; align-items: center; gap: .45rem; }
.tgr__rating .tgr-stars { font-size: 1.15rem; }
.tgr__verified { display: inline-flex; color: #4285f4; line-height: 0; }
.tgr__text { margin: 0; font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }

/* Read more (native <details>) */
.tgr__more summary {
	display: block;
	cursor: pointer;
	list-style: none;
	color: var(--tgr-muted);
	font-size: .8125rem;
	margin-top: .45rem;
}
.tgr__more summary:hover, .tgr__more summary:focus-visible { color: var(--tgr-fg); }
.tgr__text:has(.tgr__more[open]) .tgr__ellipsis { display: none; }
.tgr__more summary::-webkit-details-marker { display: none; }
.tgr__more[open] summary { margin: .45rem 0 0; }
.tgr__more[open] .tgr__more-open,
.tgr__more:not([open]) .tgr__more-close { display: none; }

/* Owner reply */
.tgr__reply {
	margin-top: auto;
	padding: .65rem .8rem;
	border-left: 3px solid var(--tgr-border);
	font-size: .875rem;
	color: var(--tgr-muted);
}
.tgr__reply p { margin: .25rem 0 0; }

.tgr__footer { margin: var(--tgr-gap) 0 0; text-align: center; font-size: .875rem; }
.tgr__footer a { color: inherit; opacity: .75; }
.tgr__footer a:hover, .tgr__footer a:focus-visible { opacity: 1; }
.tgr-notice { opacity: .8; }

.tgr__branch { display: inline-block; align-self: flex-start; font-size: .78em; line-height: 1; padding: 5px 10px; border-radius: 99px; color: var(--tgr-star); background: color-mix(in srgb, var(--tgr-star) 14%, transparent); }

.tgr__foot { margin-top: auto; padding-top: .2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.tgr__branch { margin-top: 0; }
.tgr__view { font-size: .82em; color: var(--tgr-muted, inherit); opacity: .8; text-decoration: none; border-bottom: 1px solid currentColor; }
.tgr__view:hover, .tgr__view:focus-visible { opacity: 1; color: var(--tgr-fg); }
.tgr__foot .tgr__view:only-child { margin-left: auto; }
.tgr__view .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tgr__place { font-size: .95rem; font-weight: 600; opacity: .85; margin: 0 0 .15rem; }
.tgr__header--centered .tgr__place { font-size: 1.05rem; margin-bottom: .35rem; }
