/*
 * The app in the site's own chrome, in the landing page's design (/mobile-app): the navbar's
 * lime button, the phone and tablet menu, the search, the promo bar above the navbar, the
 * footer's forest colours and its app card. Every
 * page loads this (base_generic.html, versioned). The landing's colour tokens live under
 * .app-landing, which none of these sit in, so the few colours are spelled out here:
 * canvas #1A2116, ink #F8FFF6, sage #C4D7C1, lime #BEE378, dark #1A2518; on light
 * backgrounds ink #1A2518, muted #5F6B5B, the apps' green #507137.
 */

/* ---------- The scrollbar's room, always ----------
 * Where scrollbars take room (a mouse, or "always show scrollbars"), locking the page behind the
 * search, the menu or the photo viewer (overflow: hidden) took the scrollbar away: the page grew
 * 15px wider and the navbar and content moved. Keeping its room only while locked moved the
 * content all the same, as 100vw then lost the gutter, and the site sizes gutters and type in vw.
 * Kept always, nothing moves, and 100vw is the page's width (it was 15px more, off-centring
 * what used it). Overlay scrollbars (phones, most Macs) take no room: no change there. */
html {
	scrollbar-gutter: stable;
}

/* ---------- The Primis video player's holder (ad-primis.html) ----------
 * Its frames as blocks: inline, the 1px frame Primis puts in the holder sat on a line of text and
 * made it 26px tall, pushing the page down a minute after it opened. A player keeps its size. */
.ad-primis iframe {
	display: block;
}

/* ---------- Navbar: its edge ----------
 * The navbar is 70% white over the page, so over the paper pages (#EEEFEB: the index pages, the
 * recipe page) it barely stood apart. A hairline with a soft shadow under it gives it an edge.
 * Drawn by ::after, as nav_scroll.js adds Bootstrap's .shadow (box-shadow !important) once the
 * navbar comes back on scrolling up. */
.navbar.main-nav::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: rgba(26, 37, 24, 0.12);
	box-shadow: 0 6px 14px -6px rgba(26, 37, 24, 0.22);
	pointer-events: none;
}

/* ---------- Navbar: the logo in the middle of the screen ----------
 * From 1,200px the links sit either side of the logo and the search button only on the left, so
 * the logo sat 25px right of the middle. The bar is three columns from there: two equal sides
 * and the logo between them, so it's in the middle. The search button and the left links share
 * the left side (the links start after the button: its 2.75rem and its .35rem margin); the right
 * links keep to the right. The logo stays in the row, so it still sets the bar's height (taken out
 * of it, the bar lost 28px). Below 1,200px the logo is already in the middle. */
@media (min-width: 1200px) {
	.navbar.main-nav > .container {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
	}

	.navbar.main-nav > .container > .ps-btn {
		grid-area: 1 / 1;
		justify-self: start;
		position: relative;
		z-index: 1;
	}

	.navbar.main-nav > .container > .navbar-collapse:first-of-type {
		grid-area: 1 / 1;
		padding-left: 3.1rem;
	}

	.navbar.main-nav > .container > .navbar-brand {
		grid-area: 1 / 2;
	}

	.navbar.main-nav > .container > .navbar-collapse:last-of-type {
		grid-area: 1 / 3;
	}
}

/* ---------- Navbar: the app's lime button ---------- */

.nav-app-cta-item {
	display: flex;
	align-items: center;
	margin: 0 15px;
}

.navbar .nav-app-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.6rem;
	padding: .55rem 1.35rem;
	border-radius: 999px;
	background: #BEE378;
	color: #1A2518;
	font-family: 'Hind Vadodara', sans-serif;
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	transition: box-shadow .3s cubic-bezier(.2, .8, .2, 1), transform .3s cubic-bezier(.2, .8, .2, 1);
}

.navbar .nav-app-cta:hover,
.navbar .nav-app-cta:focus-visible {
	color: #1A2518;
	text-decoration: none;
	box-shadow: 0 0 0 5px rgba(190, 227, 120, .25), 0 0 22px 4px rgba(190, 227, 120, .3);
	transform: translateY(-1px);
}

.navbar .nav-app-cta:focus-visible {
	outline: 3px solid #4E7048;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.navbar .nav-app-cta {
		transition: none;
	}

	.navbar .nav-app-cta:hover {
		transform: none;
	}
}

/* In the phone menu (below 1200px) the button sits under the links */
/* ---------- The phone and tablet menu (navbar-menu.html, nav_menu.js) ----------
 * Below 1,200px the navbar shows a menu button instead of its links. It opens a forest sheet in a
 * native <dialog>: full width on phones, a drawer from the right with the page dimmed behind it
 * from 600px. The browser's own dialog styles are reset; the sheet scrolls on its own and the
 * page behind it doesn't. Text: cream 16:1, sage 10.9:1, lime 11.3:1 on the green. */

/* The navbar's round buttons: search at every width, the menu below 1,200px (from there Bootstrap
   hides .navbar-toggler, so the menu button's display is set only below it) */
.navbar .ps-btn,
.navbar .pm-btn {
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1A2518;
	cursor: pointer;
	transition: background-color .2s;
}

.navbar .ps-btn {
	display: grid;
	flex: none;   /* the desktop bar's link groups would squeeze it */
	order: -2;   /* before the logo (order-first), and on desktop before the links */
}

@media (min-width: 1200px) {
	.navbar .ps-btn {
		margin-right: .35rem;
	}
}

.navbar .ps-btn--here {
	visibility: hidden;   /* on the search page itself; still holds its place */
}

@media (max-width: 1199.98px) {
	.navbar .pm-btn {
		display: grid;
	}
}

@media (hover: hover) {
	.navbar .ps-btn:hover,
	.navbar .pm-btn:hover {
		background: rgba(80, 113, 55, .1);
	}
}

.navbar .ps-btn:focus,
.navbar .pm-btn:focus {
	outline: none;   /* Bootstrap rings every focused button, taps too */
}

.navbar .ps-btn:focus-visible,
.navbar .pm-btn:focus-visible {
	outline: 3px solid #4E7048;
	outline-offset: 2px;
}

.navbar .ps-btn svg {
	width: 1.6rem;
	height: 1.6rem;
}

.navbar .pm-btn svg {
	width: 1.7rem;
	height: 1.7rem;
}

/* The page behind the sheet stays put (and behind the recipe's photo viewer: recipe_page.css).
   On body, not html: pul_website_styles.css gives body overflow-x: hidden and height: 100%, so
   with html locked, body became a scroll box of its own, with its own scrollbar (the content
   moved 15px). body's overflow passes to the window while html's is visible. */
html:has(.pm[open]) body,
html:has(.ps[open]) body {
	overflow: hidden;
}

.pm {
	position: fixed;
	inset: 0 0 0 auto;
	width: 100%;
	max-width: none;
	height: 100vh;
	height: 100dvh;   /* the visible height, with the phone's toolbars */
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #F8FFF6;
	overflow: visible;
}

.pm::backdrop,
.ps::backdrop {
	background: rgba(10, 14, 9, 0);
	transition: background-color .35s ease;
}

.pm.is-open::backdrop,
.ps.is-open::backdrop {
	background: rgba(10, 14, 9, .55);
}

.pm__sheet,
.ps__sheet {
	display: flex;
	flex-direction: column;
	background-color: #1A2116;
	background-image:
		radial-gradient(80% 45% at 15% 0, rgba(114, 160, 106, .22), transparent 65%),
		radial-gradient(70% 40% at 100% 100%, rgba(190, 227, 120, .08), transparent 70%);
	background-repeat: no-repeat;
	font-family: 'Hind Vadodara', sans-serif;
	text-align: left;
}

.pm__sheet {
	height: 100%;
	padding: 0 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(100%);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.pm.is-open .pm__sheet {
	transform: none;
}

.pm.is-closing .pm__sheet {
	transition-duration: .3s;
}

.pm a,
.pm a:hover,
.ps a,
.ps a:hover {
	text-decoration: none;
}

.pm :focus,
.ps :focus {
	outline: none;
}

.pm :focus-visible,
.ps :focus-visible {
	outline: 2px solid #BEE378;
	outline-offset: 3px;
}

/* The top: the logo and the close button where the menu button was */
.pm__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.75rem;
}

.pm__logo img {
	display: block;
	width: 9.5rem;
	height: auto;
}

.pm .pm__close,
.ps .ps__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(248, 255, 246, .08);
	color: #F8FFF6;
	cursor: pointer;
	transition: background-color .2s, transform .3s cubic-bezier(.2, .8, .2, 1);
}


.pm__close svg,
.ps__close svg {
	width: 1.4rem;
	height: 1.4rem;
}

/* The search pill, the index pages' cream pill: opens the search in the menu's place */
.pm .pm__search {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	height: 3rem;
	margin: .25rem 0 1rem;
	padding: .3rem 1.1rem 0 1.2rem;
	border: 0;
	border-radius: 999px;
	background: #F8FFF6;
	color: #6E786B;
	font-family: 'Cotoris Bold', 'Hind Vadodara', sans-serif;
	font-size: 1.2rem;
	text-align: left;
	cursor: pointer;
}

.pm__search svg {
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: -.3rem;
	color: #4E7048;
}

/* The main sections, large, with a line about each */
.pm__main {
	display: flex;
	flex-direction: column;
}

.pm .pm__link {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(248, 255, 246, .1);
	color: #F8FFF6;
}

.pm__label {
	font-family: 'Cotoris Bold', 'Hind Vadodara', sans-serif;
	font-size: 2.1rem;
	line-height: 1.02;
	letter-spacing: -.01em;
	transition: color .2s;
}

.pm__desc {
	color: #C4D7C1;
	font-size: .9375rem;
	line-height: 1.35;
}

.pm .pm__link[aria-current="page"] .pm__label {
	color: #BEE378;
}

/* The books and the app, as pills */
.pm__more {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 1.25rem 0 1.75rem;
}

.pm .pm__more a {
	padding: .55rem 1.1rem .45rem;
	border: 1px solid rgba(248, 255, 246, .2);
	border-radius: 999px;
	color: #F8FFF6;
	font-weight: 600;
	transition: border-color .2s, background-color .2s;
}

.pm .pm__more a[aria-current="page"] {
	border-color: #BEE378;
	background: rgba(190, 227, 120, .1);
}

/* The app card at the foot, with the lime button */
.pm__app {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: .85rem;
	margin-top: auto;
	padding: 1rem;
	border: 1px solid rgba(248, 255, 246, .12);
	border-radius: 20px;
	background: rgba(248, 255, 246, .05);
}

.pm__app img {
	width: 48px;
	height: 48px;
	border-radius: 12px;
}

.pm .pm__app-name {
	color: #F8FFF6;
	font-family: 'Cotoris Bold', 'Hind Vadodara', sans-serif;
	font-size: 1.25rem;
	line-height: 1.15;
}

.pm__app-name span {
	color: #BEE378;
}

.pm .pm__cta {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	padding: .8rem 1rem .7rem;
	border-radius: 999px;
	background: #BEE378;
	color: #1A2518;
	font-weight: 700;
	transition: box-shadow .3s cubic-bezier(.2, .8, .2, 1);
}

.pm .pm__cta:hover {
	color: #1A2518;
}

/* Hover only where there's a pointer to hover with: on touch screens a tapped link would keep it */
@media (hover: hover) {
	.pm .pm__close:hover,
	.ps .ps__close:hover {
		background: rgba(248, 255, 246, .16);
		transform: rotate(90deg);
	}

	.pm .pm__link:hover .pm__label {
		color: #BEE378;
	}

	.pm .pm__more a:hover {
		border-color: #BEE378;
		background: rgba(190, 227, 120, .1);
	}

	.pm .pm__cta:hover {
		box-shadow: 0 0 0 5px rgba(190, 227, 120, .25), 0 0 22px 4px rgba(190, 227, 120, .3);
	}
}

/* The contents follow the sheet in, one after another */
.pm__in {
	opacity: 0;
	transform: translateX(18px);
	transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
	transition-delay: calc(var(--i, 0) * 45ms + 120ms);
}

.pm.is-open .pm__in {
	opacity: 1;
	transform: none;
}

.pm.is-closing .pm__in {
	transition-delay: 0ms;
}

/* Tablets: a drawer from the right, the page dimmed beside it */
@media (min-width: 600px) {
	.pm {
		width: min(26rem, 100%);
	}

	.pm__sheet {
		padding-inline: 1.75rem;
		border-radius: 24px 0 0 24px;
		box-shadow: -24px 0 60px rgba(0, 0, 0, .35);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pm__sheet,
	.pm__in,
	.pm::backdrop,
	.pm .pm__close,
	.ps__sheet,
	.ps::backdrop,
	.ps .ps__close {
		transition: none;
	}

	.pm .pm__close:hover,
	.ps .ps__close:hover {
		transform: none;
	}
}

/* ---------- The search (navbar-search-panel.html, nav_menu.js, nav_search.js) ----------
 * From the navbar's search button at every width, and from the menu's search pill. The menu's
 * forest in a native <dialog>: the whole screen on phones, where the keyboard covers the lower
 * half, so the matches start right under the field; from 600px a panel at the top with the page
 * dimmed below. It fades in rather than slides, so the field is in place as it takes focus. */

.ps {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #F8FFF6;
	overflow: visible;
}

.ps__sheet {
	height: 100%;
	overflow: hidden;   /* the matches scroll, the field stays */
	opacity: 0;
	transform: translateY(-.75rem);
	transition: opacity .22s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.ps.is-open .ps__sheet {
	opacity: 1;
	transform: none;
}

.ps.is-closing .ps__sheet {
	transition-duration: .18s;
}

/* The field, the menu's cream pill, with the close button beside it */
.ps__form {
	position: relative;
	display: flex;
	align-items: center;
	gap: .6rem;
	flex: none;
	margin: 0;
	padding: calc(.9rem + env(safe-area-inset-top)) 1rem .9rem;
	border-bottom: 1px solid rgba(248, 255, 246, .1);
}

.ps__icon {
	position: absolute;
	left: 2rem;
	top: calc(50% + env(safe-area-inset-top) / 2);
	z-index: 1;
	width: 1.1rem;
	height: 1.1rem;
	color: #4E7048;
	transform: translateY(-50%);
	pointer-events: none;
}

.ps .ps__input {
	flex: 1;
	min-width: 0;
	height: 3rem;
	padding: .3rem 1rem 0 2.8rem;
	border: 2px solid transparent;
	border-radius: 999px;
	background: #F8FFF6;
	color: #1A2518;
	font-family: 'Cotoris Bold', 'Hind Vadodara', sans-serif;
	font-size: 1.2rem;   /* over 16px: iPhones don't zoom in on it */
	-webkit-appearance: none;
	appearance: none;
}

.ps .ps__input::placeholder {
	color: #6E786B;
	opacity: 1;
}

.ps .ps__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.ps .ps__input:focus {
	border-color: #BEE378;
	outline: none;
	box-shadow: 0 0 0 4px rgba(190, 227, 120, .3);
}

/* The keyboard shortcut (⌘K / Ctrl K; nav_menu.js fills it in) at the field's right end, on
   computers only, until something is typed */
.ps__kbd {
	position: absolute;
	right: calc(1rem + 2.75rem + .6rem + .85rem);   /* the form's padding, the close button, the gap */
	top: calc(50% + env(safe-area-inset-top) / 2);
	z-index: 1;
	padding: .2rem .45rem .05rem;
	border: 1px solid rgba(26, 37, 24, .18);
	border-radius: 6px;
	background: rgba(26, 37, 24, .04);
	color: #5F6B5B;
	font: 600 .75rem/1.2 'Hind Vadodara', sans-serif;
	letter-spacing: .02em;
	transform: translateY(-50%);
	pointer-events: none;
}

.ps__kbd[hidden],
.ps .ps__input:not(:placeholder-shown) ~ .ps__kbd {
	display: none;
}

.ps__form:has(.ps__kbd:not([hidden])) .ps__input {
	padding-right: 4.25rem;
}

@media (hover: none), (pointer: coarse) {
	.ps__kbd {
		display: none;
	}

	.ps__form:has(.ps__kbd:not([hidden])) .ps__input {
		padding-right: 1rem;
	}
}

/* Under it: the popular pills, then the matches in their place */
.ps__body {
	flex: 1;
	min-height: 0;
	padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ps__eyebrow,
.ps-group__title {
	margin: 0 0 .7rem;
	color: #C4D7C1;
	font-family: 'Hind Vadodara', sans-serif;
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ps__pills {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.ps .ps__pill {
	padding: .55rem 1.05rem .45rem;
	border: 1px solid rgba(248, 255, 246, .2);
	border-radius: 999px;
	color: #F8FFF6;
	font-weight: 600;
	transition: border-color .2s, background-color .2s;
}

.ps.has-results .ps__start {
	display: none;
}

.ps-group + .ps-group {
	margin-top: 1.25rem;
}

.ps-group__title {
	margin-bottom: .35rem;
}

.ps-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ps .ps-item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	align-items: center;
	gap: .85rem;
	margin: 0 -.5rem;
	padding: .45rem .5rem;
	border-radius: 14px;
	color: #F8FFF6;
	transition: background-color .15s;
}

.ps .ps-item:focus-visible {
	outline-offset: 0;
	background: rgba(248, 255, 246, .07);
}

.ps-item__media {
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 12px;
	background: rgba(248, 255, 246, .08);
}

.ps-item__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ps-item__text {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	min-width: 0;
}

.ps-item__name {
	display: -webkit-box;
	overflow: hidden;
	font-family: 'Cotoris Bold', 'Hind Vadodara', sans-serif;
	font-size: 1.15rem;
	line-height: 1.15;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ps-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .2rem .6rem;
	color: #C4D7C1;
	font-size: .875rem;
	line-height: 1.3;
}

.ps-item__premium {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	color: #BEE378;
	font-weight: 600;
}

.ps-item__premium svg {
	width: .85em;
	height: .85em;
	fill: currentColor;
}

.ps-empty {
	margin: 0 0 .25rem;
	color: #C4D7C1;
	overflow-wrap: anywhere;
}

.ps .ps-all {
	display: block;
	margin-top: 1.25rem;
	padding: .8rem 1.25rem .7rem;
	border-radius: 999px;
	background: #BEE378;
	color: #1A2518;
	font-weight: 700;
	text-align: center;
	overflow-wrap: anywhere;
	transition: box-shadow .3s cubic-bezier(.2, .8, .2, 1);
}

.ps .ps-all:hover {
	color: #1A2518;
}

@media (hover: hover) {
	.ps .ps__pill:hover {
		border-color: #BEE378;
		background: rgba(190, 227, 120, .1);
	}

	.ps .ps-item:hover {
		background: rgba(248, 255, 246, .07);
	}

	.ps .ps-all:hover {
		box-shadow: 0 0 0 5px rgba(190, 227, 120, .25), 0 0 22px 4px rgba(190, 227, 120, .3);
	}
}

/* From 600px: a panel at the top, the page dimmed below; a click there closes it */
@media (min-width: 600px) {
	.ps__sheet {
		width: min(44rem, calc(100% - 2rem));
		height: auto;
		max-height: min(44rem, calc(100% - 2rem));
		margin: 1rem auto 0;
		border-radius: 24px;
		box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
	}

	.ps__form {
		padding: 1.1rem 1.25rem;
	}

	.ps__icon {
		left: 2.25rem;
		top: 50%;
	}

	.ps__body {
		padding: 1.25rem 1.25rem 1.5rem;
	}
}

/* ---------- The promo bar above the navbar (navbar-promo.html) ----------
 * navbar_promo_styles.css (linked further down the page) keeps the layout; these win on
 * specificity. The countdown uses the site's font instead of a separate monospace one. */

.navbar #navbar-promo-cont {
	background-color: #1A2116;
	background-image:
		radial-gradient(55% 160% at 8% 0%, rgba(114, 160, 106, .3), transparent 70%),
		radial-gradient(45% 160% at 92% 100%, rgba(190, 227, 120, .16), transparent 70%);
	text-decoration: none;
}

.navbar #navbar-promo-cont #promo-text {
	color: #F8FFF6;
	font-weight: 500;
}

.navbar #navbar-promo-cont:hover #promo-text,
.navbar #navbar-promo-cont:focus-visible #promo-text {
	text-decoration: underline;
	text-decoration-color: rgba(190, 227, 120, .7);
	text-underline-offset: .2em;
}

.navbar #navbar-promo-cont .number {
	font-family: 'Hind Vadodara', sans-serif;
	font-weight: 600;
	font-size: 18px;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
	color: #BEE378;
}

.navbar #navbar-promo-cont .separator {
	font-family: 'Hind Vadodara', sans-serif;
	font-size: 18px;
	line-height: 1.1;
	color: rgba(248, 255, 246, .4);
}

.navbar #navbar-promo-cont .label {
	color: #C4D7C1;
}

/* ---------- Footer: forest green (footer_v2.html) ----------
 * The promo bar's dark green, so every page opens and ends dark: cream headings, sage links
 * that turn cream with a lime underline, the lime Subscribe pill, lime focus rings. Every text
 * colour is AA on #1A2116 (cream 16:1, sage 10.9:1, muted 6.3:1). pul_website_styles.css keeps
 * the layout; these come after it. */

/* The curved top, as the home page's hero does its curved bottom: one painted shape, a 36px
   dome with a square bottom, and nothing behind it. The outer <footer> stays transparent and
   .footer overlaps the page above by exactly the dome's height (a negative margin, not the old
   30px translateY, which left the wrapper's green showing as a flat step under each corner), so
   the corners show the page itself, right down to the edge. Pages leave at least that much room
   above the footer (#footer-top-spacer is 75px). A faint cream rim follows the curve, so the
   footer still reads as its own band on the pages that end in the same dark green (the subscribe
   and gift pages). */
footer {
	background-color: transparent;
	color: #C4D7C1;
}

footer .footer {
	margin-top: -36px;
	border-top: 1px solid rgba(248, 255, 246, .14);
	border-radius: 50% 50% 0 0 / 36px 36px 0 0;
	background-color: #1A2116;
	color: #C4D7C1;
	clip-path: none;
	transform: none;
}

footer .footer h3 {
	color: #F8FFF6;
}

/* Room between the link columns (on phones "Cookbook" ran into "About us") */
footer .footer-links {
	gap: 1.25rem;
}

footer .footer-text,
footer .footer-links .footer-text {
	color: #C4D7C1;
	transition: color .2s;
}

footer a.footer-text:hover,
footer a.footer-text:focus-visible {
	color: #F8FFF6;
	text-decoration: underline;
	text-decoration-color: #BEE378;
	text-underline-offset: .2em;
}

footer a:focus-visible,
footer button:focus-visible,
footer input:focus-visible {
	outline: 2px solid #BEE378;
	outline-offset: 3px;
}

footer .footer-social-icon svg {
	fill: #C4D7C1;
	transition: fill .2s, transform .2s;
}

footer .footer-social-icon:hover svg,
footer .footer-social-icon:focus-visible svg {
	fill: #BEE378;
	transform: translateY(-1px);
}

/* The newsletter form: a cream pill and the lime Subscribe pill */
footer .newsletter-form input[type="email"] {
	min-height: 2.75rem;
	padding: .55rem 1.1rem .45rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #F8FFF6;
	color: #1A2518;
	font-family: 'Hind Vadodara', sans-serif;
}

footer .newsletter-form input[type="email"]::placeholder {
	color: #5F6B5B;
	font-family: 'Hind Vadodara', sans-serif;   /* the site sets placeholders in its display font */
	opacity: 1;
}

footer .newsletter-form input[type="email"]:focus {
	border-color: #BEE378;
	outline: none;
	box-shadow: 0 0 0 4px rgba(190, 227, 120, .3);
}

footer .newsletter-form .btn.btn-d-green {
	min-height: 2.75rem;
	padding: .55rem 1.35rem .45rem;
	border: 0;
	border-radius: 999px;
	background: #BEE378;
	color: #1A2518;
	font-weight: 600;
	transition: box-shadow .3s cubic-bezier(.2, .8, .2, 1), transform .3s cubic-bezier(.2, .8, .2, 1);
}

footer .newsletter-form .btn.btn-d-green:hover,
footer .newsletter-form .btn.btn-d-green:focus-visible {
	background: #BEE378;
	color: #1A2518;
	box-shadow: 0 0 0 5px rgba(190, 227, 120, .25), 0 0 22px 4px rgba(190, 227, 120, .3);
	transform: translateY(-1px);
}

footer .feedback-footer {
	color: #BEE378;
}

footer .feedback-footer.is-error {
	color: #F2A58E;
}

footer #newsletter-policy-txt,
footer #newsletter-policy-txt a,
footer .footer-copy {
	color: #9AA39A;
}

footer #newsletter-policy-txt a {
	text-decoration: underline;
	text-decoration-color: rgba(154, 163, 154, .6);
	text-underline-offset: .18em;
}

footer #newsletter-policy-txt a:hover {
	color: #F8FFF6;
}

footer .footer-copy {
	margin: 0 0 1rem;   /* as the paragraph had */
	font-size: .8rem;
}

@media (prefers-reduced-motion: reduce) {
	footer .newsletter-form .btn.btn-d-green,
	footer .footer-social-icon svg {
		transition: none;
	}

	footer .newsletter-form .btn.btn-d-green:hover,
	footer .footer-social-icon:hover svg {
		transform: none;
	}
}

/* ---------- Footer: the app card (footer_v2.html) ---------- */

/* A lighter glass card on the forest footer, so it doesn't vanish into it */
.footer-app {
	max-width: 26rem;
	margin-top: 1.75rem;
	padding: 1rem 1rem 1.1rem;
	border: 1px solid rgba(248, 255, 246, .12);
	border-radius: 20px;
	background-color: rgba(248, 255, 246, .05);
	background-image:
		radial-gradient(85% 90% at 0% 0%, rgba(114, 160, 106, .16), transparent 65%),
		radial-gradient(60% 80% at 100% 100%, rgba(190, 227, 120, .08), transparent 70%);
	color: #F8FFF6;
}

.footer-app__head {
	display: flex;
	align-items: center;
	gap: .85rem;
	color: inherit;
	text-decoration: none;
}

.footer-app__head:hover,
.footer-app__head:focus-visible {
	color: inherit;
	text-decoration: none;
}

.footer-app__head:hover .footer-app__name {
	text-decoration: underline;
	text-decoration-color: rgba(190, 227, 120, .7);
	text-underline-offset: .2em;
}

.footer-app__icon {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 12px;
}

.footer-app__name {
	display: block;
	font-family: 'Cotoris Bold', 'Hind Vadodara', sans-serif;
	font-size: 1.25rem;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: #F8FFF6;
}

.footer-app__dot {
	color: #BEE378;
}

.footer-app__rating {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: .2rem;
	font-size: .875rem;
	font-weight: 500;
	color: #C4D7C1;
}

.footer-app .al-stars {
	display: inline-flex;
	gap: .1rem;
}

.footer-app .al-stars svg {
	width: .9em;
	height: .9em;
	fill: #ff912c;   /* the apps' rating stars */
}

.footer-app .footer-app__stores {
	margin-top: .9rem;
}


/* ---------- Back to top (back-to-top.html, back_to_top.js), on every page ----------
 * Bottom right and quiet: forest glass with a lime arrow, there only when you're well down a
 * long page. 75px up, as the old button was, clear of the phones' ad at the bottom of the
 * screen; higher over the landing page's sticky bar (app_landing.css) and the "open in the app"
 * bar in social apps' browsers (open-in-app-bar.html). It replaced the red round button and the
 * green feedback bubble (bottom left); Feedback is in the footer now. */
.pul-top {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: calc(75px + env(safe-area-inset-bottom));
	z-index: 1000;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(248, 255, 246, .16);
	border-radius: 50%;
	background: rgba(26, 33, 22, .84);
	color: #BEE378;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(.5rem);
	transition: opacity .25s, visibility .25s, transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.pul-top.is-shown {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.pul-top svg {
	width: 1.15rem;
	height: 1.15rem;
}

@media (hover: hover) {
	.pul-top:hover {
		box-shadow: 0 0 0 4px rgba(190, 227, 120, .22), 0 8px 22px rgba(0, 0, 0, .25);
	}
}

.pul-top:focus {
	outline: none;
}

.pul-top:focus-visible {
	outline: 2px solid #BEE378;
	outline-offset: 3px;
}

body:has(#open-in-app-bar:not([hidden])) .pul-top {
	bottom: calc(75px + 60px + env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) {
	.pul-top {
		transform: none;
		transition: opacity .2s, visibility .2s;
	}
}

/* ---------- "Free": the starter guide's gold badge ----------
 * On the guide wherever it's offered: the home page's Welcome card, the newsletter page and the
 * popup. Gold foil like the New York Times Bestseller seal (nyt_seal.css): its gradient, inner
 * ring and Jost capitals (base_generic.html loads Jost for these letters). Each place sets its
 * position, and its size with width, height and font-size; the light sweeps over it as its card
 * or picture (.pul-free-host) is hovered. */
.pul-free {
	position: absolute;
	display: grid;
	place-items: center;
	overflow: hidden;
	width: 3.75rem;
	height: 3.75rem;
	padding-top: .1em;   /* Jost's capitals sit a touch high */
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #fbefc6 0%, #e9cd7e 45%, #c79a3e 100%);
	box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
	color: #3f2d0c;
	font-family: 'URW Geometric', 'Jost', 'Hind Vadodara', sans-serif;
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1;
	text-transform: uppercase;
	transform: rotate(12deg);
}

.pul-free::before {
	content: '';
	position: absolute;
	inset: .25rem;
	border: 1px solid rgba(63, 45, 12, .35);
	border-radius: 50%;
}

.pul-free::after {
	content: '';
	position: absolute;
	top: -20%;
	bottom: -20%;
	left: -70%;
	width: 45%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
	transform: skewX(-20deg);
}

.pul-free-host:hover .pul-free::after {
	left: 130%;
	transition: left .8s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
	.pul-free-host:hover .pul-free::after {
		left: -70%;
		transition: none;
	}
}

