/* Sugar Sense /reviews page (template-reviews.php). Uses the theme's semantic
   tokens (--white = card surface, --black = ink, --border, --surface), so
   light and dark themes both work with no overrides. The review cards reuse
   the homepage .testimonial-card styles; only the grid around them is new. */

.reviews-intro {
	font-size: 18px;
	color: var(--text-mute-strong);
}

.reviews-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 20px 0 16px;
}

/* 1.58.7: the same gold as the /download rating pills (owner call: a gold
   star reads as a rating, brand green reads as a button). Ink #B7860B is
   4.6:1 on white; the tint is the same hue at 10 percent. */
.reviews-rating-chip {
	display: inline-block;
	margin: 0;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(183, 134, 11, 0.10);
	color: #B7860B;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

[data-theme="dark"] .reviews-rating-chip {
	background: rgba(224, 175, 58, 0.14);
	color: #E0AF3A;
}

.reviews-rating-note {
	margin: 0;
	font-size: 14px;
	color: var(--text-soft);
}

.reviews-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 18px;
}

.reviews-btns .header-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px 28px;
	font-size: 16px;
}

/* .content-box a paints every link brand green (WCAG body-link rule); the
   pill buttons need their own ink back. Scoped so nothing else moves. */
.content-box .reviews-btns .header-btn {
	color: #FFF;
}

.content-box .reviews-btns .header-btn-outline {
	background: transparent;
	border: 2px solid var(--brand);
	color: var(--brand);
	padding-top: 14px;
	padding-bottom: 14px;
}

[data-theme="dark"] .content-box .reviews-btns .header-btn-outline {
	color: var(--brand);
}

.reviews-updated {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--text-soft);
}

.reviews-note {
	font-size: 15px;
	color: var(--text-soft);
	margin-top: -8px;
}

/* Both grids are plain lists inside .content-box, whose ul/li rules add
   disc bullets, 20px padding and 24px item spacing; reset them here with
   the same specificity. */
.content-box .reviews-grid,
.content-box .reviews-stores {
	list-style: none;
	padding-left: 0;
	margin-top: 0;
	margin-bottom: 12px;
	display: grid;
}

.content-box .reviews-grid > li,
.content-box .reviews-stores > li {
	list-style: none;
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

.reviews-grid {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.reviews-grid > li {
	padding: 0;
}

.reviews-grid .testimonial-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 20px;
	box-shadow: 0 8px 24px rgba(16, 40, 28, 0.06);
}

[data-theme="dark"] .reviews-grid .testimonial-card {
	box-shadow: none;
}

.reviews-grid .testimonial-name {
	font-size: 20px;
	margin-bottom: 4px;
}

.reviews-grid .testimonial-position {
	font-size: 14px;
}

.reviews-grid .testimonial-desc {
	font-size: 16px;
	line-height: 150%;
}

.reviews-grid .testimonial-img-box {
	min-width: 56px;
	width: 56px;
	border-radius: 12px;
}

.reviews-grid .testimonial-top {
	margin-bottom: 14px;
}

.reviews-stores {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}

.reviews-stores > li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 14px;
}

.reviews-stores strong {
	color: var(--black);
	font-size: 17px;
}

.reviews-stores span {
	font-size: 14px;
	color: var(--text-soft);
}

.reviews-stores a {
	font-size: 15px;
	font-weight: 600;
	margin-top: 4px;
}

.reviews-limits li {
	margin-bottom: 12px;
}

.reviews-limits strong {
	color: var(--black);
}

.reviews-cta {
	margin-top: 40px;
	padding: 28px;
	border-radius: 20px;
	background: var(--surface);
	border: 1px solid var(--border);
}

.reviews-cta h2 {
	margin-top: 0;
	margin-bottom: 8px;
}

.reviews-cta .reviews-btns {
	margin-top: 18px;
	margin-bottom: 12px;
}

.reviews-cta-note {
	margin: 0;
	font-size: 15px;
	color: var(--text-mute-strong);
}

@media (max-width: 768px) {
	.reviews-intro {
		font-size: 16px;
	}

	.reviews-rating-chip {
		font-size: 16px;
		padding: 8px 14px;
	}

	.reviews-btns .header-btn {
		width: 100%;
	}

	.reviews-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.reviews-cta {
		padding: 20px;
	}
}

/* 1.58.3: the live figure on the App Store and Google Play cards. */
.reviews-stores .reviews-store-rating {
	font-style: normal;
	font-size: 14px;
	font-weight: 600;
	color: #B7860B;
}

[data-theme="dark"] .reviews-stores .reviews-store-rating {
	color: #E0AF3A;
}
