/* AMP NPS Social Proof — presentation only. All content is server-rendered. */

.ampnps-stat { text-align: center; }
.ampnps-stat__label { margin: 0 0 .15em; font-size: .95rem; color: #5b5b5b; }
.ampnps-stat__value { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; font-weight: 600; color: #875f4b; }
/* display:block so it drops onto its own line even when used inline next to
   the inline-flex counter, which would otherwise share its line box and knock
   neighbouring columns off a common baseline. */
.ampnps-stat__sub { display: block; margin: .25em 0 0; font-size: .95rem; font-weight: 600; color: #875f4b; }
/* Tabular figures so the number does not jitter in width while counting up. */
.ampnps-stat__number { font-variant-numeric: tabular-nums; }
.ampnps-stat__note { margin: .4em 0 0; font-size: .78rem; }
.ampnps-stat__note a { color: #5b5b5b; text-decoration: underline; }

/* ── Featured article ──────────────────────────────────────────────────── */

.ampnps-article {
	display: block;
	max-width: 640px;
	margin: 28px auto 0;
	padding: 20px 24px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 6px 16px rgba(0, 0, 0, .05);
	text-align: left;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .15s ease, transform .15s ease;
}

.ampnps-article:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, .1), 0 10px 24px rgba(0, 0, 0, .08);
	transform: translateY(-1px);
}

.ampnps-article:focus-visible { outline: 2px solid #875e4b; outline-offset: 3px; }

.ampnps-article__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #a8866f;
	margin-bottom: 6px;
}

.ampnps-article__title {
	display: block;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 600;
	color: #5a3a2b;
}

.ampnps-article__text {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.55;
	color: #5b5b5b;
}

.ampnps-article__cta {
	display: inline-block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 700;
	color: #875e4b;
}

.ampnps-article__cta::after { content: " \2192"; }

/* Quiet variant: a single muted line that sits under the stat block. */
.ampnps-article--link {
	display: block;
	max-width: none;
	margin: .5em 0 0;
	padding: 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
	/* Centred to sit under the stat block it follows, which is centred. */
	text-align: center;
	font-size: .78rem;
	color: #5b5b5b;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ampnps-article--link:hover {
	box-shadow: none;
	transform: none;
	color: #875e4b;
}

.ampnps-article--link::after { content: " \2192"; text-decoration: none; }

@media (max-width: 600px) {
	.ampnps-article { padding: 16px 18px; }
	.ampnps-article__title { font-size: 16px; }
}

.ampnps-stars { display: inline-flex; gap: .08em; line-height: 1; }
.ampnps-star { color: #d8d8d8; font-size: 1.05em; }
.ampnps-star.is-filled { color: #e0a93b; }

.ampnps-rating { display: flex; align-items: center; justify-content: center; gap: .6em; flex-wrap: wrap; }
.ampnps-rating__score { font-size: 1.9rem; font-weight: 600; color: #875f4b; }
.ampnps-rating__text { font-size: .95rem; color: #5b5b5b; }

/* ── Counter (server-rendered replacement for the Elementor counter) ───── */

/* Block-level with a normalised line box so that two counters sitting in
   separate columns start at the same vertical position. As inline-flex each
   one inherited its column's line box, so a counter with a trailing title
   ("16+ years") sat a few pixels off one without ("17,779"). */
.ampnps-counter {
	display: flex;
	align-items: baseline;
	justify-content: flex-start;
	font-family: "Lato", sans-serif;
	color: #875f4b;
	line-height: 1;
	min-height: 44px;
}

/* The link wrapper must not reintroduce an inline line box. */
.ampnps-counter__link { display: block; }

.ampnps-counter__number,
.ampnps-counter__prefix,
.ampnps-counter__suffix {
	font-size: 40px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.ampnps-counter__title {
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
	margin-left: .25em;
}

.ampnps-counter__link { text-decoration: none; color: inherit; }
.ampnps-counter__link:hover .ampnps-counter__number { text-decoration: underline; }

@media (max-width: 767px) {
	.ampnps-counter__number,
	.ampnps-counter__prefix,
	.ampnps-counter__suffix { font-size: 32px; }
	.ampnps-counter__title { font-size: 17px; }
}

/* ── Reviews ───────────────────────────────────────────────────────────── */

.ampnps-reviews { position: relative; }

.ampnps-reviews__track {
	list-style: none;
	margin: 0;
	padding: 8px 4px 20px;
	display: grid;
	gap: 16px;
	/* Uniform card height, kept short by clamping the review text below. */
	align-items: stretch;
}

.ampnps-reviews--carousel .ampnps-reviews__track {
	grid-auto-flow: column;
	grid-auto-columns: minmax(270px, 1fr);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	/* The arrows are the affordance here, as in the other review widgets. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.ampnps-reviews--carousel .ampnps-reviews__track::-webkit-scrollbar { display: none; }

.ampnps-reviews--carousel .ampnps-review { scroll-snap-align: start; }

.ampnps-reviews--grid .ampnps-reviews__track {
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.ampnps-review {
	background: #fff;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 6px 16px rgba(0, 0, 0, .05);
	padding: 18px 20px 20px;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	align-self: stretch;
}

.ampnps-review__head { display: flex; align-items: center; gap: .65rem; }

.ampnps-review__avatar {
	flex: 0 0 auto;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: #875e4b;
	color: #fff;
	font-size: 14px; font-weight: 600; letter-spacing: .02em;
	display: flex; align-items: center; justify-content: center;
}

/* Avatars are initials, not photos, so the tone is derived from the name to
   give the row some variety instead of a wall of identical circles. */
.ampnps-review__avatar.is-t0 { background: #7b5ea7; }
.ampnps-review__avatar.is-t1 { background: #4a8f68; }
.ampnps-review__avatar.is-t2 { background: #c08a3e; }
.ampnps-review__avatar.is-t3 { background: #3f7ba6; }
.ampnps-review__avatar.is-t4 { background: #a8557a; }
.ampnps-review__avatar.is-t5 { background: #875e4b; }

.ampnps-review__meta { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.ampnps-review__author { font-weight: 700; color: #2b2b2b; font-size: 15px; line-height: 1.25; }
.ampnps-review__date { font-size: 12px; color: #8d8d8d; }
/* Clamped to keep every card the same modest height, the way the Google and
   Yelp widgets on these pages do. The full text stays in the markup. */
.ampnps-review__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #4a4a4a;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ampnps-review .ampnps-stars { font-size: 15px; margin-top: -2px; }

/* ── Carousel controls (enhancement only) ──────────────────────────────── */

.ampnps-reviews__nav { display: none; }
.ampnps-reviews.is-enhanced .ampnps-reviews__nav { display: block; }

/* Circular arrows centred on the cards, matching the other review widgets.
   The selectors are deliberately specific and the paint properties forced,
   because the theme's global button styles would otherwise colour these. */
.ampnps-reviews .ampnps-reviews__btn {
	position: absolute;
	top: calc(50% - 10px);
	transform: translateY(-50%);
	z-index: 3;
	width: 38px;
	height: 38px;
	min-width: 0;
	padding: 0;
	border-radius: 50% !important;
	border: 1px solid #e4e4e4 !important;
	background: #fff !important;
	background-image: none !important;
	color: #5b5b5b !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
	font-size: 20px;
	line-height: 1;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: box-shadow .15s ease, color .15s ease, opacity .15s ease;
}

.ampnps-reviews .ampnps-reviews__btn[data-ampnps-prev] { left: -6px; }
.ampnps-reviews .ampnps-reviews__btn[data-ampnps-next] { right: -6px; }

.ampnps-reviews .ampnps-reviews__btn:hover:not(:disabled) {
	color: #222 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.ampnps-reviews .ampnps-reviews__btn:disabled { opacity: .3; cursor: default; }
.ampnps-reviews .ampnps-reviews__btn:focus-visible { outline: 2px solid #875e4b; outline-offset: 2px; }

@media (max-width: 600px) {
	.ampnps-reviews .ampnps-reviews__btn { width: 32px; height: 32px; font-size: 17px; }
	.ampnps-reviews .ampnps-reviews__btn[data-ampnps-prev] { left: -4px; }
	.ampnps-reviews .ampnps-reviews__btn[data-ampnps-next] { right: -4px; }
}

@media (prefers-reduced-motion: reduce) {
	.ampnps-reviews__track { scroll-behavior: auto; }
}
