/*
 * The cookbook page (cookbook-landing.html) and the eBook pages (ebook-detail.html), scoped .sp:
 * a few changes that bring them in line with the rest of the site, loaded after their own styles
 * (cookbook_landing_styles.css, ebook_detail_styles_v2.css), which keep each product's colours.
 *  - The top ends in the site's bowl curve (as ix_base.css .ix-forest), in place of the next
 *    section rising into it as an arch.
 *  - The FAQs are the site's (pages/_faq_section.html, pages.css), centred under a heading the
 *    size of the page's others.
 *  - The reviews are the app landing page's (reviews/_marquee.html, reviews.css), on each page's
 *    own colour: the cookbook's cream, the eBook's red or green.
 * A file of its own rather than edits to those two stylesheets, so each keeps only its product's
 * own rules (all three are linked with versioned_static).
 */

/* ---------- The top: the bowl ---------- */

.sp .match-sect-curved-top {
	padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
	border-radius: 0 0 50% 50% / 0 0 36px 36px;
}

.sp .curved-top {
	padding-top: clamp(2.5rem, 6vw, 3.5rem);   /* was 6rem, half of it hidden under the arch */
	clip-path: none;
	transform: none;
}

/* ---------- The FAQs ---------- */

.sp .pg-faq-section {
	padding-top: clamp(3rem, 7vw, 4.5rem);
}

.sp .pg-faq-section .pg-h2 {
	font-size: clamp(2rem, 5vw, 2.7rem);
	text-align: center;
}

/* ---------- The reviews: each page's colour ---------- */

/* #cookbook-reviews and #review-container keep their ids: these win over the old rules for them */
.sp .rv.sp-reviews {
	margin: 0;
	padding: clamp(4rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5rem);
	background: var(--rv-bg);
}

.sp .rv--light.sp-reviews {
	--rv-bg: #f2efea;   /* the cookbook page's cream (--cb-cream-light) */
}

/* The cookbook's readers on the app landing page's forest, with its glows (app_landing.css
   --al-canvas and --al-glows), as the app's testimonials are */
.sp .rv.sp-reviews--forest {
	--rv-bg:
		radial-gradient(85% 60% at 12% 0, rgba(114, 160, 106, .17), transparent 60%),
		radial-gradient(70% 55% at 92% 0, rgba(142, 181, 71, .11), transparent 62%),
		#1A2116;
}

/* The press that covered the book, under the readers' reviews (cookbook-landing-press.html): one
   quiet row of logos on the forest, all in the same sage, cream on hover. Each logo is a mask the
   colour shows through, so any file works whatever its own colours (--logo, sized by --ar and --h) */
.sp .sp-press {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1.25rem 2.5rem;
	margin: 2.25rem auto 0;
	padding: 0 1rem;
	max-width: 56rem;
	color: #C4D7C1;
	text-align: center;
}

.sp .sp-press__label {
	width: 100%;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #9AA39A;
}

.sp .sp-press__link {
	display: block;
	color: #C4D7C1;
	transition: color .2s;
}

.sp .sp-press__link:hover,
.sp .sp-press__link:focus-visible {
	color: #F8FFF6;
}

.sp .sp-press__link:focus-visible {
	outline: 2px solid #BEE378;
	outline-offset: 6px;
	border-radius: 2px;
}

.sp .sp-press__logo {
	display: block;
	height: var(--h);
	aspect-ratio: var(--ar);
	background: currentColor;
	-webkit-mask: var(--logo) center / contain no-repeat;
	mask: var(--logo) center / contain no-repeat;
}

@media (max-width: 575.98px) {
	.sp .sp-press {
		gap: 1rem 1.75rem;
	}

	.sp .sp-press__logo {
		height: calc(var(--h) * .85);
	}
}

/* High contrast modes replace backgrounds, which would leave the masks empty */
@media (forced-colors: active) {
	.sp .sp-press__logo {
		forced-color-adjust: none;
		background: LinkText;
	}
}

.sp .rv.theme-red {
	--rv-bg: linear-gradient(180deg, #BA654D, #3A231B);   /* the eBook's own, as its reviews had */
}

.sp .rv.theme-green {
	--rv-bg: #1b2017;
}


/* The closing quote, centred between the author card and what follows (Robin): above it is the
   author section's bottom padding (.abt-banner, --p-2pos), so the quote takes the same below it,
   in place of its 2rem margin (with the FAQs after it, its section had no padding at all) */
.sp .cb-quote-section .cb-quote {
	margin-bottom: 0;
}

.sp .cb-quote-section,
.sp .cb-quote-section--no-padding {
	padding-bottom: var(--p-2pos);
}
