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

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

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

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

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

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

/* Card */
.tinsegr__card {
	background: var(--tinsegr-bg);
	color: var(--tinsegr-fg);
	border: 1px solid var(--tinsegr-border);
	border-radius: var(--tinsegr-radius);
	padding: 1.1rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: .65rem;
	min-width: 0;
}
.tinsegr__author { display: flex; align-items: center; gap: .7rem; }
.tinsegr__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 40px;
}
.tinsegr__avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--tinsegr-accent);
	color: #fff;
	font-weight: 600;
}
.tinsegr__meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.tinsegr__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tinsegr__date { color: var(--tinsegr-muted); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tinsegr__src {
	align-self: flex-start;
	flex: 0 0 auto;
	color: var(--tinsegr-muted);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .01em;
}
.tinsegr__rating { display: flex; align-items: center; gap: .45rem; }
.tinsegr__rating .tinsegr-stars { font-size: 1.15rem; }
.tinsegr__verified { display: inline-flex; color: #4285f4; line-height: 0; }
.tinsegr__text { margin: 0; font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }

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

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

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

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

.tinsegr__foot { margin-top: auto; padding-top: .2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.tinsegr__branch { margin-top: 0; }
.tinsegr__view { font-size: .82em; color: var(--tinsegr-muted, inherit); opacity: .8; text-decoration: none; border-bottom: 1px solid currentColor; }
.tinsegr__view:hover, .tinsegr__view:focus-visible { opacity: 1; color: var(--tinsegr-fg); }
.tinsegr__foot .tinsegr__view:only-child { margin-left: auto; }
.tinsegr__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; }

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