/* Landing pages (origins + buying guides) and footer guide links. */

.z-seo-wrap {
	max-width: var(--z-max);
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--z-pad);
}

.z-seo-head {
	margin-bottom: 1.5rem;
}

.z-seo-head h2 {
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

.z-seo-head p:not(.z-kicker) {
	margin-top: 0.5rem;
	color: var(--z-muted);
	max-width: 42rem;
}

/* Quick answer box */
.z-seo-answer {
	max-width: 52rem;
	margin: 0 auto clamp(2rem, 5vw, 3.5rem);
	padding: 1.5rem 1.6rem;
	background: var(--z-paper);
	border-left: 4px solid var(--z-forest);
	margin-left: max(var(--z-pad), calc((100% - 52rem) / 2));
	margin-right: max(var(--z-pad), calc((100% - 52rem) / 2));
}

.z-seo-answer h2 {
	font-size: 1.15rem;
	margin-bottom: 0.5rem;
	color: var(--z-forest);
}

/* Tables */
.z-seo-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--z-line);
	background: var(--z-white);
}

.z-seo-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.97rem;
	min-width: 32rem;
}

.z-seo-table th,
.z-seo-table td {
	padding: 0.8rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--z-line);
	vertical-align: top;
}

.z-seo-table thead th {
	background: var(--z-forest);
	color: var(--z-sand);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
}

.z-seo-table tbody tr:last-child th,
.z-seo-table tbody tr:last-child td {
	border-bottom: 0;
}

.z-seo-table tbody th {
	font-weight: 700;
	color: var(--z-forest);
	white-space: nowrap;
}

.z-seo-table a {
	color: var(--z-forest);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.z-seo-table tr.is-trade td {
	color: var(--z-muted);
	background: var(--z-cream);
}

.z-seo-note {
	margin-top: 0.9rem;
	font-size: 0.92rem;
	color: var(--z-muted);
}

.z-seo-note a {
	color: var(--z-forest);
	font-weight: 600;
}

/* FAQ */
.z-seo-faq details {
	border-top: 1px solid var(--z-line);
	padding: 1rem 0;
	max-width: 52rem;
}

.z-seo-faq details:last-of-type {
	border-bottom: 1px solid var(--z-line);
}

.z-seo-faq summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 1.05rem;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.z-seo-faq summary::-webkit-details-marker {
	display: none;
}

.z-seo-faq summary::after {
	content: "+";
	color: var(--z-forest);
	font-weight: 700;
}

.z-seo-faq details[open] summary::after {
	content: "−";
}

.z-seo-faq details p {
	margin-top: 0.6rem;
	max-width: 46rem;
	color: var(--z-ink);
}

/* Related links */
.z-seo-related {
	padding-top: clamp(2rem, 4vw, 3rem);
}

.z-seo-related ul {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.z-seo-related a {
	display: inline-block;
	padding: 0.55rem 1rem;
	border: 1px solid var(--z-forest);
	color: var(--z-forest);
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
}

.z-seo-related a:hover,
.z-seo-related a:focus-visible {
	background: var(--z-forest);
	color: var(--z-white);
}

/* Footer: room for the guides column */
@media (min-width: 861px) {
	.z-footer-grid {
		grid-template-columns: 1.3fr 1fr 1.1fr 1.2fr 1fr;
	}
}

/* Origin page links on Other Origins */
.z-essay-copy .z-text-link,
.z-essay-band .z-text-link {
	display: inline-block;
	margin-top: 1rem;
}

@media (max-width: 640px) {
	.z-seo-table {
		font-size: 0.9rem;
	}
	.z-seo-table th,
	.z-seo-table td {
		padding: 0.65rem 0.75rem;
	}
}

/* Guides hub */
.z-seo-hub-group .z-recipe-grid {
	margin-top: 0;
}

.z-seo-hub-group + .z-seo-hub-group {
	padding-top: 0;
}

/* "From our guides" on product pages */
.z-seo-reading--pdp {
	padding-left: 0;
	padding-right: 0;
}

/* Delivery & returns */
.z-seo-info {
	margin: 0;
	max-width: 52rem;
	border-top: 1px solid var(--z-line);
}

.z-seo-info > div {
	display: grid;
	grid-template-columns: minmax(8rem, 12rem) 1fr;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--z-line);
}

.z-seo-info dt {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--z-forest);
	padding-top: 0.2rem;
}

.z-seo-info dd {
	margin: 0;
}

.z-seo-info a {
	color: var(--z-forest);
	font-weight: 600;
}

@media (max-width: 560px) {
	.z-seo-info > div {
		grid-template-columns: 1fr;
		gap: 0.3rem;
	}
}

/* Product specs and delivery note */
.z-pdp-spec {
	margin: 0.35rem 0 0.6rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--z-sage);
}

.z-pdp-delivery {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	color: var(--z-muted);
}

.z-pdp-delivery a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Certifications */
.z-certs {
	text-align: center;
	padding: 1.25rem var(--z-pad);
}

.z-certs-text {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--z-forest);
}

.z-certs--footer {
	max-width: var(--z-max);
	margin: 0 auto;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.z-certs--footer .z-certs-text {
	color: #c9d6cc;
}

.z-certs-logos {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin: 0 0 0.75rem;
}

.z-certs-logos img {
	height: 44px;
	width: auto;
}

/* Fortnum & Mason is a long wordmark: give it a little more width in the logo strip */
.z-marquee-group img[src*="fortnum-mason"] {
	max-width: 300px;
}

.z-pdp-fairtrade {
	margin: 0.9rem 0 0;
}

.z-pdp-fairtrade img {
	height: 56px;
	width: auto;
}

/* ------------------------------------------------------------------
 * 1.10.0: proof strip, quality documents, kitchens page, authenticity
 * ------------------------------------------------------------------ */

.z-proof {
	max-width: var(--z-max);
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3rem) var(--z-pad) clamp(1.5rem, 4vw, 2.5rem);
	text-align: center;
}

.z-proof-stats {
	list-style: none;
	margin: 0 auto 0.5rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	max-width: 52rem;
}

.z-proof-stats li {
	padding: 1rem 0.75rem;
	border-top: 2px solid var(--z-forest);
}

.z-proof-stats a {
	color: inherit;
	text-decoration: none;
	display: block;
}

.z-proof-stats strong {
	display: block;
	font-family: var(--z-display);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--z-forest);
}

.z-proof-label {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--z-muted);
}

.z-proof-stats a:hover .z-proof-label {
	color: var(--z-forest);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.z-proof .z-certs {
	padding: 0.75rem 0 0.25rem;
}

.z-proof-docs {
	margin: 0.4rem 0 0;
	font-size: 0.95rem;
}

@media (max-width: 640px) {
	.z-proof-stats {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}
	.z-proof-stats li {
		padding: 0.75rem 0;
	}
}

/* Quality documents */
.z-docs-group + .z-docs-group {
	margin-top: 2.25rem;
}

.z-docs-group h2 {
	font-size: clamp(1.2rem, 2.4vw, 1.6rem);
	text-transform: uppercase;
	letter-spacing: -0.01em;
	margin-bottom: 0.75rem;
}

.z-docs-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 52rem;
	border-top: 1px solid var(--z-line);
}

.z-docs-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--z-line);
}

.z-docs-link {
	flex-shrink: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--z-white);
	background: var(--z-forest);
	padding: 0.55rem 0.9rem;
	text-decoration: none;
}

.z-docs-link--ask {
	color: var(--z-forest);
	background: transparent;
	border: 1px solid var(--z-forest);
}

/* Kitchens page */
.z-kitchen-facts .z-section-cta {
	margin-top: 1.75rem;
	text-align: left;
}

.z-supply h2 {
	text-transform: uppercase;
}

.z-stories {
	padding-top: clamp(2.5rem, 6vw, 4rem);
	padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.z-area {
	padding-top: 0;
	text-align: center;
	color: var(--z-muted);
}

.z-area p {
	max-width: 46rem;
	margin: 0 auto;
}

/* Authenticity and best-for */
.z-authentic .z-essay-uses {
	max-width: 46rem;
}

.z-best-for td a {
	color: var(--z-forest);
	font-weight: 600;
}

.z-stories .z-section-head {
	margin-bottom: 1.5rem;
}

/* 1.11.0: homepage H1 (small line above the big Tahitian tagline) */
.z-hero .z-hero-h1 {
	font-family: var(--z-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--z-white);
	margin: 0 0 0.6rem;
}

body.z-home .z-hero .z-hero-h1 {
	color: var(--z-forest-deep);
}

@media (min-width: 861px) {
	.z-hero .z-hero-h1 {
		font-size: 0.85rem;
	}
}

/* Origin cards on the beans guide */
.z-seo-origins .z-recipe-grid {
	padding-top: 0.5rem;
}

/* Testimonials page: quotes as text */
.z-quote-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.z-quote-list figure {
	margin: 0;
	padding: 1.4rem 1.5rem;
	background: var(--z-white);
	border: 1px solid var(--z-line);
}

.z-quote-list blockquote {
	margin: 0 0 0.9rem;
	font-size: 1.02rem;
	line-height: 1.55;
}

.z-quote-list figcaption strong {
	display: block;
	color: var(--z-forest);
}

.z-quote-list figcaption span {
	font-size: 0.85rem;
	color: var(--z-muted);
}

@media (max-width: 720px) {
	.z-quote-list {
		grid-template-columns: 1fr;
	}
}

/* Shop: about-the-range text under the grid */
.z-shop-about {
	max-width: 46rem;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.5rem) var(--z-pad);
	color: var(--z-muted);
}

.z-shop-about h2 {
	font-size: clamp(1.2rem, 2.4vw, 1.6rem);
	text-transform: uppercase;
	color: var(--z-ink);
	margin-bottom: 0.75rem;
}

.z-shop-about a {
	color: var(--z-forest);
	font-weight: 600;
}

/* Size and price tables: fit on a phone without sideways scrolling. */
.z-unit-inline {
	display: none;
}

@media (max-width: 560px) {
	.z-seo-table--sizes {
		min-width: 0;
	}

	.z-seo-table--sizes th,
	.z-seo-table--sizes td {
		padding: 0.7rem 0.6rem;
	}

	.z-seo-table--sizes .z-unit-col {
		display: none;
	}

	.z-seo-table--sizes .z-unit-inline {
		display: block;
		font-size: 0.8rem;
		color: var(--z-muted);
		white-space: nowrap;
	}
}
