/* Reviews page: reviews from several sites mixed with customers' photos (selfie → headshot), in columns.
   ========================================================================== */

.rv-hero {
	padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
	text-align: center;
}

.rv-hero__chip {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
	margin-bottom: 22px;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--soft);
	font-size: 14px;
	text-decoration: none;
}

.rv-hero__chip strong {
	color: var(--ink);
}

.rv-hero__title {
	max-width: 16em;
	margin: 0 auto;
	font-family: var(--font-display);
	font-size: clamp(32px, 5vw, 54px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.rv-hero__lead {
	max-width: 36em;
	margin: 18px auto 0;
	color: var(--soft);
	font-size: clamp(17px, 1.6vw, 19px);
	line-height: 1.55;
}

.rv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
}

.rv-hero__second {
	display: inline-flex;
	align-items: center;
	min-height: 54px;
	padding: 0 24px;
	border: 1.5px solid var(--line-strong);
	border-radius: 12px;
	background: var(--white);
	color: var(--ink);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
}

.rv-hero__second:hover {
	border-color: var(--ink);
	color: var(--ink);
}

/* The wall: columns filled by script; without script one plain list in CSS columns. */
.rv-wall {
	padding-bottom: var(--section-pad);
}

.rv-grid {
	columns: 300px auto;
	column-gap: 20px;
}

.rv-grid > .rv-card {
	break-inside: avoid;
	margin-bottom: 20px;
}

.rv-grid.is-laid {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	columns: auto;
}

.rv-col {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.rv-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--white);
}

.rv-card[hidden] {
	display: none;
}

.rv-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.rv-card__avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--tint);
	color: var(--soft);
	font-size: 13px;
	font-weight: 700;
	object-fit: cover;
	object-position: center 20%;
}

.rv-card__who {
	flex: 1 1 auto;
	min-width: 0;
}

.rv-card__name {
	overflow: hidden;
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rv-card__meta {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.3;
}

/* The stars, and the logo of the site the review comes from at the other end of the line. */
.rv-card__rating {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
}

.rv-card__source {
	display: block;
	flex: 0 1 auto;
	width: auto;
	min-width: 0;
	max-width: 48%;
	height: 18px;
	object-fit: contain;
	object-position: right center;
}

/* Stars: amber for every site, the squares of Trustpilot for Trustpilot. */
.rv-stars {
	display: inline-flex;
	gap: 2px;
	color: var(--accent);
}

.rv-stars svg {
	width: 18px;
	height: 18px;
}

.rv-stars .is-off {
	color: var(--line-strong);
}

.rv-stars--tp {
	gap: 2px;
}

.rv-stars--tp span {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	background: var(--tp, #00B67A);
	color: #FFFFFF;
}

.rv-stars--tp span.is-off {
	background: #DCDCE6;
}

.rv-stars--tp svg {
	width: 14px;
	height: 14px;
}

.rv-stars--tp[data-rating="1"] { --tp: #FF3722; }
.rv-stars--tp[data-rating="2"] { --tp: #FF8622; }
.rv-stars--tp[data-rating="3"] { --tp: #FFCE00; }
.rv-stars--tp[data-rating="4"] { --tp: #73CF11; }
.rv-stars--tp[data-rating="5"] { --tp: #00B67A; }

.rv-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.rv-card__text {
	margin: 0;
	color: var(--soft);
	font-size: 15px;
	line-height: 1.55;
	white-space: pre-line;
}

.rv-card__text.is-clamped {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 7;
}

.rv-card__more {
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.rv-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 12px;
	color: var(--muted);
	font-size: 13px;
}

.rv-card__foot a {
	color: var(--muted);
	text-underline-offset: 3px;
}

.rv-card__lang {
	display: inline-block;
	margin-left: 6px;
	padding: 0 6px;
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* A customer's photo: the headshot, with the selfie it was made from in the corner. */
.rv-card--photo {
	padding: 16px;
}

.rv-shot {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	background: var(--tint);
	aspect-ratio: 4 / 5;
}

.rv-shot__main {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The selfie the headshot was made from, small in the corner. */
.rv-shot__selfie {
	position: absolute;
	bottom: 10px;
	left: 10px;
	display: block;
	width: 60px;
	height: 60px;
	border: 3px solid #FFFFFF;
	border-radius: 10px;
	box-shadow: 0 4px 14px -6px rgba(15, 27, 51, 0.5);
	object-fit: cover;
}

.rv-more {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.rv-more button {
	min-height: 48px;
	padding: 0 22px;
	border: 1.5px solid var(--line-strong);
	border-radius: 12px;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.rv-more button:hover {
	border-color: var(--ink);
}

/* How reviews are checked: the note the law asks for. */
.rv-note {
	display: flex;
	gap: 12px;
	max-width: 760px;
	margin: 36px auto 0;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--white);
	color: var(--soft);
	font-size: 14px;
	line-height: 1.55;
}

.rv-note svg {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: var(--ink);
}

.rv-note strong {
	color: var(--ink);
}

.rv-card__more:focus-visible,
.rv-more button:focus-visible,
.rv-hero__second:focus-visible,
.rv-hero__chip:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.rv-hero__chip {
		font-size: 13px;
	}

	.rv-hero__chip .rv-stars--tp span {
		width: 17px;
		height: 17px;
	}
}

/* A site without a logo: its name. */
.rv-logo-text {
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rv-hero__chip .rv-hero__logo {
	display: block;
	width: auto;
	max-width: 120px;
	height: 18px;
	object-fit: contain;
}

.rv-empty {
	padding: 40px 0;
	color: var(--muted);
	text-align: center;
}
