/* Reviews provider output on composed routes.
 *
 * The `sequoia/reviews` block is rendered by the sequoia-blocks plugin
 * (`includes/reviews/class-sequoia-reviews-owner.php`). It used to render from
 * the theme, and every rule that dressed its markup lived in the legacy 206KB
 * `style.css`, which composed routes never load -- so without this sheet the
 * block paints raw user-agent text on Home, City, Location and Service.
 *
 * This sheet is enqueued on composed routes only and re-states those rules in
 * the design's tokens instead of the legacy hex/rem values.
 *
 * Two things this comment used to claim were wrong and are worth not
 * reinstating: there is no `inc/reviews.php` in this theme, and no
 * `assets-public.php` or `sequoia_handover_dequeue_legacy_styles` exists
 * anywhere in the repo. Both were carried over from the legacy theme.
 *
 * The compact-proof band is authored from the design source's reviews band
 * (`Sequoia Home.dc.html`, rendered at `reference-output/pages/home.html:295`):
 * 60px Montserrat 800 score, a 20px gold star row, a 420px measure of Nunito
 * Sans 16/1.55, and an ink CTA pill at 16px/26px.
 */

/* ── Compact proof band ────────────────────────────────────────── */

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof__figure {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 26px;
}

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof__score {
	color: var(--sq-ink, #17160f);
	font-family: Montserrat, sans-serif;
	font-size: 60px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 0.85;
}

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof__body {
	max-width: 420px;
}

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof__stars {
	display: flex;
	gap: 3px;
	margin-bottom: 8px;
	font-size: 20px;
	line-height: 1;
}

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof__text {
	margin: 0;
	color: var(--sq-body, #3f3d34);
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof__cta {
	display: inline-block;
	padding: 16px 26px;
	background: var(--sq-ink, #17160f);
	color: var(--sq-white, #ffffff);
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	text-decoration: none;
	transition: background 0.2s;
}

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof__cta:hover,
:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof__cta:focus {
	background: var(--sq-green, #3f6d3f);
	color: var(--sq-white, #ffffff);
}

/* The proof rail is a ~360px column beside the map, not a full-width band. The
   source has no reviews block in that column at all, so the band is reflowed
   here rather than reproduced at its authored 60px/420px scale. */
:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof--inline-rail {
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--sq-line3, #e6e2d6);
}

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof--inline-rail .sequoia-reviews-proof__figure {
	gap: 16px;
	align-items: center;
}

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof--inline-rail .sequoia-reviews-proof__score {
	font-size: 32px;
	letter-spacing: -0.02em;
	line-height: 1;
}

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof--inline-rail .sequoia-reviews-proof__stars {
	font-size: 15px;
	margin-bottom: 5px;
}

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof--inline-rail .sequoia-reviews-proof__text {
	font-size: 14px;
	line-height: 1.5;
}

:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof--inline-rail .sequoia-reviews-proof__cta {
	padding: 12px 18px;
	font-size: 13px;
}

/* Star gold #cf9a34 is deliberately NOT tokenised onto --sq-gold2 (#e0bc00).
   It is a conventional rating gold, not a foreign brand, and it DOES render:
   .sequoia-reviews-proof__stars paints on location leaf pages (12 elements on
   /atherton-ca/landscape-designer/). Measured on white, #cf9a34 is 2.52:1 and
   #e0bc00 is 1.85:1, so the swap would make review stars harder to see. Whether
   the palette gains a rating gold is an owner decision, not a cleanup. */

/* ── Stars, shared ─────────────────────────────────────────────── */

:where(.entry-content, .editor-styles-wrapper) .star--filled {
	color: #cf9a34;
}

:where(.entry-content, .editor-styles-wrapper) .star--half {
	color: #cf9a34;
	opacity: 0.5;
}

:where(.entry-content, .editor-styles-wrapper) .star--empty {
	color: var(--sq-faint, #cfccc2);
}

/* ── Full reviews body and compact widget ──────────────────────── */

:where(.entry-content, .editor-styles-wrapper) .reviews-aggregate {
	margin-bottom: 32px;
	padding: 24px 0;
	text-align: center;
}

:where(.entry-content, .editor-styles-wrapper) .reviews-aggregate__stars {
	margin-bottom: 8px;
	font-size: 32px;
	line-height: 1;
}

:where(.entry-content, .editor-styles-wrapper) .reviews-aggregate__text {
	color: var(--sq-body, #3f3d34);
	font-family: "Nunito Sans", sans-serif;
	font-size: 17px;
	line-height: 1.5;
}

:where(.entry-content, .editor-styles-wrapper) .reviews-aggregate__text strong {
	color: var(--sq-ink, #17160f);
	font-family: Montserrat, sans-serif;
	font-weight: 700;
}

:where(.entry-content, .editor-styles-wrapper) .reviews-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

:where(.entry-content, .editor-styles-wrapper) .reviews-filter {
	padding: 8px 16px;
	border: 1px solid var(--sq-line, #e3dfd3);
	background: var(--sq-cream, #f6f4ee);
	color: var(--sq-body, #3f3d34);
	font-family: "Nunito Sans", sans-serif;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

:where(.entry-content, .editor-styles-wrapper) .reviews-filter:hover {
	border-color: var(--sq-line2, #dcd8cc);
	background: var(--sq-white, #ffffff);
}

:where(.entry-content, .editor-styles-wrapper) .reviews-filter.active {
	border-color: var(--sq-ink, #17160f);
	background: var(--sq-ink, #17160f);
	color: var(--sq-white, #ffffff);
}

:where(.entry-content, .editor-styles-wrapper) .reviews-list,
:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-widget__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

:where(.entry-content, .editor-styles-wrapper) .reviews-list.loading {
	opacity: 0.5;
	pointer-events: none;
}

:where(.entry-content, .editor-styles-wrapper) .review-card {
	box-sizing: border-box;
	padding: 24px 26px;
	border: 1px solid var(--sq-line3, #e6e2d6);
	background: var(--sq-white, #ffffff);
}

:where(.entry-content, .editor-styles-wrapper) .review-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

:where(.entry-content, .editor-styles-wrapper) .review-card__stars {
	display: flex;
	gap: 2px;
	font-size: 17px;
	line-height: 1;
}

:where(.entry-content, .editor-styles-wrapper) .review-card__source {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--sq-mute, #6b6860);
	font-family: "IBM Plex Mono", monospace;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

:where(.entry-content, .editor-styles-wrapper) .review-card__content {
	color: var(--sq-body, #3f3d34);
	font-family: "Nunito Sans", sans-serif;
	font-size: 15px;
	line-height: 1.6;
}

:where(.entry-content, .editor-styles-wrapper) .review-card__content p {
	margin: 0 0 10px;
}

:where(.entry-content, .editor-styles-wrapper) .review-card__content p:last-child {
	margin-bottom: 0;
}

:where(.entry-content, .editor-styles-wrapper) .review-card__author {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--sq-line3, #e6e2d6);
}

:where(.entry-content, .editor-styles-wrapper) .review-card__name {
	color: var(--sq-ink, #17160f);
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 700;
}

:where(.entry-content, .editor-styles-wrapper) .review-card__date {
	color: var(--sq-mute, #6b6860);
	font-family: "IBM Plex Mono", monospace;
	font-size: 11px;
}

:where(.entry-content, .editor-styles-wrapper) .reviews-load-more-wrap,
:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-load-more-wrap {
	margin-top: 28px;
	text-align: center;
}

:where(.entry-content, .editor-styles-wrapper) .reviews-load-more,
:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-load-more {
	padding: 15px 24px;
	border: 0;
	background: var(--sq-ink, #17160f);
	color: var(--sq-white, #ffffff);
	font-family: Montserrat, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 0.2s;
}

:where(.entry-content, .editor-styles-wrapper) .reviews-load-more:hover,
:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-load-more:hover {
	background: var(--sq-green, #3f6d3f);
}

:where(.entry-content, .editor-styles-wrapper) .reviews-load-more:disabled,
:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-load-more:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

@media (max-width: 600px) {
	:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof {
		flex-direction: column;
		align-items: flex-start;
	}

	:where(.entry-content, .editor-styles-wrapper) .sequoia-reviews-proof__score {
		font-size: 44px;
	}
}
