/* ==================================================================
   Afede Wellness
   Values measured from the old X / Cornerstone site at 1440px wide.
   ================================================================== */

/* ------------------------------------------------------------------ */
/* Fonts — self-hosted, both SIL Open Font Licence                     */
/* ------------------------------------------------------------------ */

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url( "../fonts/lato-400.woff2" ) format( "woff2" );
}

@font-face {
	font-family: "Lato";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url( "../fonts/lato-400-italic.woff2" ) format( "woff2" );
}

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url( "../fonts/lato-700.woff2" ) format( "woff2" );
}

@font-face {
	font-family: "Lato";
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url( "../fonts/lato-700-italic.woff2" ) format( "woff2" );
}

@font-face {
	font-family: "Raleway";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url( "../fonts/raleway-variable.woff2" ) format( "woff2" );
}

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
	/* Brand and the old site's working colours */
	--afede-sage:       #a9c7bb; /* headings: hsl(157, 21%, 72%) */
	--afede-sage-band:  #9bb3a7; /* "Our trusted suppliers" band */
	--afede-teal:       #3d6768; /* footer text and icons */
	--afede-link:       #00a0c6; /* footer links */
	--afede-sky:        #d2e1e6; /* Finished Products panel */
	--afede-aqua:       #9bd5dd; /* hsl(187, 51%, 74%) */
	--afede-orange:     #ffa500;
	--afede-green:      #abd733; /* news archive dates */
	--afede-ink:        #1f1f1f;
	--afede-body:       #262626;
	--afede-slate:      #7c7c7c;
	--afede-grey:       #8f8f8f;
	--afede-grey-light: #b5b5b5;
	--afede-mist:       #ebeced;
	--afede-line:       #dddddd;
	--afede-white:      #ffffff;

	/* Type */
	--font-body:    "Lato", "Helvetica Neue", Arial, sans-serif;
	--font-heading: "Raleway", "Helvetica Neue", Arial, sans-serif;

	--text-base:  1rem;      /* 16px: menus, forms, small UI */
	--text-prose: 1.125rem;  /* 18px: the old sections' body copy */
	--text-small: 0.95625rem; /* 15.3px: the old "text" elements */

	--heading-tracking: -0.035em;

	/* Layout: the old theme's container — 88% wide, at most 1220px */
	--container:      1220px;
	--container-wide: 1340px; /* the ingredient tables */
	--gutter:         6%;
	--header-height:  61px;

	--space-normal: 45px;
	--space-tight:  20px;
	--space-loose:  90px;

	--shadow-button: 0 2.7px 11.7px rgba( 0, 0, 0, 0.25 );
	--shadow-card:   0 0.15em 0.35em 0 rgba( 0, 0, 0, 0.135 );
	--radius-button: 6.3px;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc( var( --header-height ) + 1rem );
}

body {
	margin: 0;
	font-family: var( --font-body );
	font-size: var( --text-base );
	line-height: 1.7;
	color: var( --afede-body );
	background: var( --afede-white );
	-webkit-font-smoothing: antialiased;
}

img,
svg,
iframe,
video {
	max-width: 100%;
}

img {
	height: auto;
	vertical-align: middle;
}

a {
	color: var( --afede-grey );
	text-decoration: none;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

:focus-visible {
	outline: 2px solid var( --afede-teal );
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.35em;
	font-family: var( --font-heading );
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: var( --heading-tracking );
	color: var( --afede-ink );
}

p {
	margin: 0 0 1.3em;
}

hr {
	border: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset( 50% );
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.5rem 1rem;
	clip-path: none;
	background: var( --afede-white );
	color: var( --afede-ink );
}

.section-anchor {
	display: block;
	height: 0;
}

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.container {
	width: 88%;
	max-width: var( --container );
	margin-inline: auto;
}

.container--wide {
	width: calc( 100% - 100px );
	max-width: var( --container-wide );
}

@media ( max-width: 979px ) {
	.container--wide {
		width: 88%;
	}
}

.section {
	position: relative;
}

.space--normal { padding-block: var( --space-normal ); }
.space--tight  { padding-block: var( --space-tight ); }
.space--loose  { padding-block: var( --space-loose ); }
.space--none   { padding-block: 0; }
.space--below  { padding-block: 30px 100px; }

.align--center { text-align: center; }
.align--left   { text-align: left; }

/* Backgrounds, from the Background select every layout carries */
.bg--white { background: var( --afede-white ); }
.bg--mist  { background: var( --afede-mist ); }
.bg--sage  { background: var( --afede-sage-band ); color: var( --afede-white ); }
.bg--stone { background: var( --afede-grey-light ); color: var( --afede-white ); }
.bg--sky   { background: var( --afede-sky ); color: var( --afede-white ); }

/* Colours, from the colour selects */
.c--sage   { color: var( --afede-sage ); }
.c--grey   { color: var( --afede-grey ); }
.c--slate  { color: var( --afede-slate ); }
.c--ink    { color: var( --afede-ink ); }
.c--white  { color: var( --afede-white ); }
.c--orange { color: var( --afede-orange ); }
.c--sky    { color: var( --afede-sky ); }
.c--aqua   { color: var( --afede-aqua ); }

/* ------------------------------------------------------------------ */
/* Type                                                                */
/* Sizes come from classes, never the tag, so an h1 and an h2 can look */
/* alike.                                                              */
/* ------------------------------------------------------------------ */

.heading {
	margin: 0 0 0.3em;
	font-family: var( --font-heading );
	font-weight: 700;
	letter-spacing: var( --heading-tracking );
	line-height: 1.1;
}

.heading--display {
	font-size: clamp( 2.25rem, 1.6rem + 2.2vw, 3.214rem ); /* 51.4px */
}

.heading--xl {
	font-size: clamp( 1.875rem, 1.4rem + 1.6vw, 2.571rem ); /* 41.1px */
}

/* The old "headline" elements: Lato bold, not Raleway */
.heading--lg {
	font-family: var( --font-body );
	font-size: clamp( 1.6rem, 1.2rem + 1.2vw, 2.1375rem ); /* 34.2px */
	letter-spacing: normal;
	line-height: 1.4;
}

.heading--md {
	font-family: var( --font-body );
	font-size: clamp( 1.4rem, 1.1rem + 0.9vw, 1.744rem ); /* 27.9px */
	letter-spacing: normal;
	line-height: 1.4;
}

/* The typed small-capitals lines ("We are a leading UK ingredients…") */
.heading--sm {
	font-size: 1.125rem; /* 18px */
	text-transform: uppercase;
	line-height: 1.4;
}

.typed {
	white-space: nowrap;
}

.typed__cursor {
	margin-left: 0.05em;
	font-weight: 400;
	animation: afede-blink 1s steps( 1 ) infinite;
}

@keyframes afede-blink {
	50% { opacity: 0; }
}

@media ( prefers-reduced-motion: reduce ) {
	.typed__cursor {
		animation: none;
	}
}

.prose {
	font-size: var( --text-prose );
	line-height: 1.7;
}

.prose > :last-child {
	margin-bottom: 0;
}

.prose a {
	color: var( --afede-grey );
	text-decoration: none;
}

.prose a:hover,
.prose a:focus-visible {
	text-decoration: underline;
}

.prose h5 {
	font-size: 1.6875rem; /* 27px */
}

.prose img.alignleft {
	float: left;
	margin: 0 1em 0.5em 0;
}

.prose img.aligncenter {
	display: block;
	margin-inline: auto;
}

.prose .wp-caption {
	max-width: 100%;
}

/* Rules */
.rule {
	height: 0;
	margin: 0;
	border-top: 8px solid rgba( 0, 0, 0, 0.5 );
}

.rule--short {
	width: 11%;
	min-width: 6rem;
	margin: 0.6em 0 1.2em;
	border-top-width: 4px;
}

.rule--third {
	width: 33%;
	border-top-width: 8px;
	border-color: rgba( 128, 127, 127, 0.5 );
}

.rule--hairline {
	margin-bottom: 25px;
	border-top: 1px solid rgba( 0, 0, 0, 0.1 );
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 1.5rem;
}

.align--center .buttons,
.buttons--center {
	justify-content: center;
}

.button {
	display: inline-block;
	padding: 9px 20px;
	border: 0;
	border-radius: var( --radius-button );
	font-family: var( --font-body );
	font-size: 1.125rem;
	line-height: 1.7;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var( --shadow-button );
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button:focus-visible {
	text-decoration: none;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.3 );
}

.button--light {
	background: var( --afede-white );
	color: var( --afede-grey );
}

.button--tint {
	background: var( --afede-sky );
	color: var( --afede-white );
}

.button--dark {
	padding: 6px 16px 9px;
	border-radius: 100px;
	background: #282b2d;
	color: var( --afede-white );
	font-size: 0.875rem;
	box-shadow: 0 3.5px 0 #141516, 0 4px 9px rgba( 0, 0, 0, 0.75 );
}

.buttons--small .button {
	padding: 7px 15px;
	border-radius: 4.16px;
	font-size: 0.7425rem; /* 11.88px */
	font-weight: 400;
	box-shadow: 0 1.8px 7.7px rgba( 0, 0, 0, 0.25 );
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var( --afede-white );
	border-bottom: 1px solid #cccccc;
	box-shadow: 0 2.1px 4.9px rgba( 0, 0, 0, 0.133 );
}

.admin-bar .site-header {
	top: var( --wp-admin--admin-bar--height, 32px );
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
}

.site-header__logo {
	display: block;
	margin-top: 4px;
}

.site-header__logo img {
	display: block;
	width: 100px;
	height: auto;
}

.site-header__toggle {
	display: none;
}

.site-nav {
	display: flex;
	align-items: stretch;
}

.site-nav__menu {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__menu > li {
	position: relative;
}

.site-nav__menu > li > a {
	display: block;
	height: 60px;
	padding: 21px 10px 0;
	font-family: var( --font-heading );
	font-size: 0.75rem;
	line-height: 1;
	letter-spacing: 0.15em;
	color: #898989;
	text-decoration: none;
}

.site-nav__menu > li > a:hover,
.site-nav__menu > li.current-menu-item > a,
.site-nav__menu > li.current-menu-ancestor > a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-nav__menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 5px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translateY( -3px ) rotate( 45deg );
}

.site-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 250px;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	background: var( --afede-white );
	box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.25 );
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s ease, visibility 0.2s;
}

.site-nav__menu li:hover > .sub-menu,
.site-nav__menu li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
}

.site-nav__menu .sub-menu a {
	display: block;
	padding: 0.6em 1.4em;
	font-family: var( --font-heading );
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	line-height: 1.4;
	color: #898989;
}

.site-nav__search {
	display: flex;
	align-items: center;
	padding: 0 0 0 12px;
	border: 0;
	background: none;
	color: #898989;
	cursor: pointer;
}

/* Phone and small tablet: the menu folds behind a button */
@media ( max-width: 979px ) {
	.site-header__inner {
		flex-wrap: wrap;
		min-height: 69px;
	}

	.site-header__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 60px;
		height: 42px;
		border: 0;
		border-radius: 4px;
		background: var( --afede-white );
		color: var( --afede-teal );
		box-shadow: 0 1px 5px rgba( 0, 0, 0, 0.25 );
		cursor: pointer;
	}

	.site-nav {
		display: none;
		flex-basis: 100%;
		flex-direction: column;
		padding-bottom: 1rem;
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav__menu {
		flex-direction: column;
	}

	.site-nav__menu > li > a {
		height: auto;
		padding: 0.9em 0;
		border-bottom: 1px solid #f2f2f2;
		font-size: 0.875rem;
	}

	.site-nav__menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 1em;
		box-shadow: none;
		visibility: visible;
		opacity: 1;
	}

	.site-nav__menu .sub-menu a {
		padding: 0.8em 0;
		border-bottom: 1px solid #f2f2f2;
	}

	.site-nav__search {
		padding: 0.9em 0;
	}
}

/* Search overlay */
.site-search {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba( 255, 255, 255, 0.97 );
}

.site-search[hidden] {
	display: none;
}

.site-search__form {
	width: min( 100%, 900px );
	text-align: center;
}

.site-search__label {
	display: block;
	margin-bottom: 1rem;
	font-family: var( --font-heading );
	font-size: 0.875rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var( --afede-grey );
}

.site-search__input {
	width: 100%;
	padding: 0.2em 0;
	border: 0;
	border-bottom: 2px solid var( --afede-line );
	background: none;
	font-family: var( --font-heading );
	font-size: clamp( 2rem, 1.2rem + 3vw, 4rem );
	font-weight: 700;
	letter-spacing: var( --heading-tracking );
	text-align: center;
	color: var( --afede-ink );
}

.site-search__input:focus {
	outline: none;
	border-bottom-color: var( --afede-sage );
}

.site-search__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	border: 0;
	background: none;
	color: var( --afede-grey );
	cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
	color: var( --afede-teal );
	background: var( --afede-mist );
}

.site-footer a {
	color: var( --afede-link );
}

.site-footer__top {
	padding: 0 0 2px;
	box-shadow: 0 -1.75px 3.5px rgba( 0, 0, 0, 0.075 );
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 2rem;
}

.site-footer__contact {
	font-size: 0.875rem;
}

.site-footer__contact p {
	margin: 0 0 1.3em;
}

.site-footer__contact a[href^="tel:"] {
	color: inherit;
}

.site-footer__map {
	position: relative;
	margin-bottom: 1.4rem;
	aspect-ratio: 4 / 3;
}

.site-footer__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.site-footer__bottom {
	padding: 20px 0 10px;
	text-align: center;
	box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.8 );
	border-top: 1px solid rgba( 0, 0, 0, 0.05 );
}

.site-footer__social {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__social a {
	color: var( --afede-teal );
}

.site-footer__line {
	margin: 30px 0 10px;
	font-size: 0.625rem;
	letter-spacing: 0.2em;
}

@media ( max-width: 767px ) {
	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ */
/* Section: banner                                                     */
/* ------------------------------------------------------------------ */

.section--banner.space--normal {
	padding-bottom: 0;
}

.banner__img {
	display: block;
	width: 100%;
}

.banner__full .banner__img {
	width: 100%;
}

.banner__band {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 245px;
	overflow: hidden;
}

.banner__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.banner__overlay {
	position: relative;
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Section: intro (heading and text)                                   */
/* ------------------------------------------------------------------ */

.intro__heading + .intro__subline {
	margin-top: 0;
}

.intro__subline {
	margin: 0.75rem 0 0;
}

.intro__text {
	margin-top: 38px;
	font-size: var( --text-small );
	line-height: 1.4;
	color: var( --afede-grey );
}

.intro__text strong {
	color: #6f6f6f;
}

.intro--rule-frame .intro__inner {
	padding: 45px 0 67px;
	border-top: 8px solid rgba( 0, 0, 0, 0.5 );
	border-bottom: 8px solid rgba( 0, 0, 0, 0.5 );
}

.align--center .rule--short {
	margin-inline: auto;
}

/* ------------------------------------------------------------------ */
/* Section: columns                                                    */
/* ------------------------------------------------------------------ */

.columns--indented .columns__inner {
	padding-inline: 5%;
}

.columns__heading {
	margin-bottom: 30px;
	text-align: center;
}

.columns__lead {
	margin-bottom: 1rem;
	font-size: 1.25rem;
	line-height: 1.3;
	font-weight: 700;
}

.columns__grid {
	display: grid;
	gap: 2rem 4%;
}

.columns__grid--2 { grid-template-columns: repeat( 2, 1fr ); }
.columns__grid--3 { grid-template-columns: repeat( 3, 1fr ); }
.columns__grid--4 { grid-template-columns: repeat( 4, 1fr ); }

.columns__grid--wide-narrow { grid-template-columns: 2fr 1fr; }
.columns__grid--narrow-wide { grid-template-columns: 1fr 2fr; }

.columns__col-heading {
	margin: 0 0 1.4em;
	font-family: var( --font-body );
	font-size: 1.125rem;
	letter-spacing: normal;
	text-transform: uppercase;
	color: inherit;
}

@media ( max-width: 767px ) {
	.columns__grid {
		grid-template-columns: 1fr !important;
	}

	.columns--indented .columns__inner {
		padding-inline: 0;
	}
}

/* ------------------------------------------------------------------ */
/* Section: split                                                      */
/* ------------------------------------------------------------------ */

.split__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem 4%;
	align-items: center;
}

.split--third.split--media-left .split__grid { grid-template-columns: 1fr 2fr; }
.split--third.split--media-right .split__grid { grid-template-columns: 2fr 1fr; }

.split--media-left .split__media { order: -1; }

.split__heading {
	margin-bottom: 0.6em;
}

.split__text {
	font-size: 0.9rem; /* 14.4px */
	line-height: 1.4;
}

.split__buttons {
	justify-content: center;
	margin-top: 57px;
}

.split__img {
	display: block;
	width: 100%;
	max-width: 500px; /* the old site showed its diagrams at half their 1000px size */
	margin-inline: auto;
}

@media ( max-width: 767px ) {
	.split__grid,
	.split--third .split__grid {
		grid-template-columns: 1fr !important;
	}

	.split--media-left .split__media {
		order: 0;
	}
}

/* ------------------------------------------------------------------ */
/* Section: button groups                                              */
/* ------------------------------------------------------------------ */

.button-groups {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px 4%;
}

.button-groups__heading {
	margin: 0;
	color: #9a9a9a;
}

.button-groups .buttons {
	margin-top: 25px;
}

@media ( max-width: 767px ) {
	.button-groups {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ */
/* Section: panel                                                      */
/* ------------------------------------------------------------------ */

.panel__box {
	padding: 45px 0 36px;
}

.panel__heading,
.panel__buttons {
	margin-top: 0;
}

.panel__buttons .button {
	background: rgba( 255, 255, 255, 0.61 );
}

.panel__text {
	margin: 2.8rem 3% 0;
	font-size: var( --text-small );
	line-height: 1.4;
	color: var( --afede-white );
}

/* ------------------------------------------------------------------ */
/* Section: tabs                                                       */
/* ------------------------------------------------------------------ */

.tabs__heading {
	margin-bottom: 25px;
}

.tabs__intro {
	margin-bottom: 25px;
	color: #808080;
}

.tabs__list {
	display: flex;
	flex-wrap: wrap;
}

.tabs__list[hidden] {
	display: none;
}

.tabs__tab {
	padding: 12px 24px;
	border: 0;
	border-bottom: 1px solid transparent;
	background: none;
	font-family: var( --font-body );
	font-size: 0.84375rem; /* 13.5px */
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba( 0, 0, 0, 0.5 );
	cursor: pointer;
}

.bg--sage .tabs__tab,
.bg--stone .tabs__tab {
	color: var( --afede-white );
}

.tabs__tab[aria-selected="true"] {
	border-bottom-color: rgba( 101, 101, 101, 0.7 );
	color: var( --afede-ink );
}

.bg--sage .tabs__tab[aria-selected="true"],
.bg--stone .tabs__tab[aria-selected="true"] {
	color: rgba( 132, 132, 132, 0.9 );
}

.tabs__panel {
	padding: 24px;
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	background: var( --afede-white );
	box-shadow: 0 4.5px 36px rgba( 0, 0, 0, 0.15 );
	font-size: var( --text-prose );
	line-height: 1.4;
	color: rgba( 0, 0, 0, 0.85 );
}

.bg--sage .tabs__panel {
	border-color: rgba( 195, 208, 223, 0.7 );
	color: rgba( 143, 143, 143, 0.85 );
}

.tabs__panel + .tabs__panel {
	margin-top: 1rem;
}

.tabs__fallback-label {
	font-size: 1rem;
	text-transform: uppercase;
}

/* Once main.js has taken over */
.tabs.is-ready .tabs__panel + .tabs__panel {
	margin-top: 0;
}

.tabs.is-ready .tabs__panel[hidden] {
	display: none;
}

.tabs.is-ready .tabs__fallback-label {
	display: none;
}

.tabs__panel .prose {
	font-size: inherit;
	line-height: inherit;
}

.tabs__panel h5 {
	margin: 0 0 0.5em;
	font-size: 1.6875rem; /* 27px */
	color: var( --afede-ink );
}

.tabs__panel a {
	color: var( --afede-grey );
}

/* ------------------------------------------------------------------ */
/* Section: logos                                                      */
/* ------------------------------------------------------------------ */

.logos {
	display: grid;
	grid-template-columns: repeat( 5, 1fr );
	gap: 1.5rem 4%;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.logos__img {
	display: block;
	max-height: 90px;
	width: auto;
	margin-inline: auto;
}

@media ( max-width: 767px ) {
	.logos {
		grid-template-columns: repeat( 2, 1fr );
	}
}

/* ------------------------------------------------------------------ */
/* Section: videos                                                     */
/* ------------------------------------------------------------------ */

.videos {
	display: grid;
	gap: 30px;
	max-width: 1076px;
	margin: 30px auto 0;
}

/* The old site framed each video in a white bordered box */
.videos__item {
	padding: 27px;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	background: var( --afede-white );
}

.videos__item iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.videos__text {
	max-width: 1076px;
	margin: 1.5rem auto 0;
}

/* ------------------------------------------------------------------ */
/* Section: ingredient table                                           */
/* ------------------------------------------------------------------ */

.section--ingredient-table.space--normal {
	padding-top: 40px;
}

.ingredients {
	font-size: var( --text-prose );
	line-height: 1.43;
}

.ingredients__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	margin-bottom: 0.6rem;
	font-weight: 700;
	color: #333333;
}

.ingredients__controls label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.ingredients__controls select,
.ingredients__controls input {
	height: 34px;
	padding: 0 8px;
	border: 1px solid var( --afede-line );
	border-radius: 4px;
	background: var( --afede-white );
	box-shadow: inset 0 1px 1px rgba( 0, 0, 0, 0.075 );
	font: 700 0.8125rem var( --font-body );
	color: #555555;
}

.ingredients__table-wrap {
	overflow-x: auto;
}

.ingredients__table {
	width: 100%;
	border-collapse: collapse;
}

.ingredients__table th,
.ingredients__table td {
	border: 1px solid var( --afede-line );
	text-align: left;
	vertical-align: top;
}

.ingredients__table th {
	padding: 10px 18px;
	border-bottom: 1px solid #111111;
	font-weight: 700;
	vertical-align: bottom;
}

.ingredients__table td {
	padding: 8px 10px;
}

.ingredients__table td p {
	margin: 0 0 0.9em;
}

.ingredients__table td p:last-child {
	margin-bottom: 0;
}

.ingredients__table tbody tr:nth-child( odd ) {
	background: #f9f9f9;
}

.ingredients__sort {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	text-align: left;
	color: inherit;
	cursor: pointer;
}

.ingredients__sort::after {
	content: "↕";
	flex: none;
	font-size: 0.75em;
	opacity: 0.25;
}

th[aria-sort="ascending"] .ingredients__sort::after {
	content: "▲";
	color: #7a74c9;
	opacity: 1;
}

th[aria-sort="descending"] .ingredients__sort::after {
	content: "▼";
	color: #7a74c9;
	opacity: 1;
}

.ingredients__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 13px;
	color: #333333;
}

.ingredients__pages {
	display: flex;
	gap: 2px;
}

.ingredients__pages button {
	padding: 9px 18px;
	border: 1px solid transparent;
	border-radius: 2px;
	background: none;
	font: inherit;
	color: #666666;
	cursor: pointer;
}

.ingredients__pages button[aria-current="page"] {
	border-color: #979797;
	background: linear-gradient( to bottom, #ffffff 0%, #dcdcdc 100% );
	color: #333333;
}

.ingredients__pages button:disabled {
	color: #b0b0b0;
	cursor: default;
}

/* ------------------------------------------------------------------ */
/* Section: recent posts and post cards                                */
/* ------------------------------------------------------------------ */

.post-cards {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 4%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-card {
	display: block;
	height: 100%;
	padding: 5px;
	border: 1px solid #dddddd;
	background: var( --afede-white );
	box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.05 );
	text-decoration: none;
	color: var( --afede-ink );
}

.post-card:hover,
.post-card:focus-visible {
	text-decoration: none;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.12 );
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: #f2f2f2;
	overflow: hidden;
}

.post-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	display: block;
	padding: 10px 5px 5px;
}

.post-card__title {
	display: block;
	overflow: hidden;
	font-family: var( --font-heading );
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: var( --heading-tracking );
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.post-card__date {
	display: block;
	font-size: 0.625rem;
	text-transform: uppercase;
	color: #555555;
}

@media ( max-width: 979px ) {
	.post-cards {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 1.5rem 4%;
	}
}

@media ( max-width: 479px ) {
	.post-cards {
		grid-template-columns: minmax( 0, 1fr );
	}
}

/* ------------------------------------------------------------------ */
/* Section: contact                                                    */
/* ------------------------------------------------------------------ */

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 2rem 4%;
	align-items: start;
}

.contact__heading {
	margin-top: 1rem;
	margin-bottom: 0;
}

.rule--contact {
	width: 36%;
	margin: 0.4rem 0 25px;
	border-top-width: 3px;
}

.contact__text {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #9d9d9d;
}

.contact__form-title {
	margin: 0 0 9px;
	font-size: 1.125rem;
}

@media ( max-width: 767px ) {
	.contact__grid {
		grid-template-columns: 1fr;
	}
}

/* Gravity Forms, styled to match the old contact form. GF's own CSS is
   switched off (setup.php sets rg_gforms_disable_css), so this is all of it. */
.gform_wrapper .gform_fields {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gform_wrapper .gfield {
	margin: 0 0 9px;
	padding: 0;
	border: 0;
}

.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label {
	display: block;
	margin: 0 0 2px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.7;
	color: var( --afede-body );
}

.gform_wrapper .gfield_required {
	margin-left: 0.25em;
	font-weight: 700;
	color: inherit;
}

.gform_wrapper .gform_required_legend {
	display: none;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea {
	width: 100%;
	padding: 0 8.45px;
	border: 1px solid var( --afede-line );
	border-radius: 4px;
	background: var( --afede-white );
	box-shadow: inset 0 1px 1px rgba( 0, 0, 0, 0.075 );
	font: 700 0.8125rem var( --font-body );
	color: #555555;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"] {
	height: 34px;
}

.gform_wrapper textarea {
	height: 183px;
	padding-block: 6px;
	line-height: 1.3;
	resize: vertical;
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus {
	outline: none;
	border-color: rgba( 0, 0, 0, 0.3 );
	box-shadow: inset 0 1px 1px rgba( 0, 0, 0, 0.075 ), 0 0 8px rgba( 0, 0, 0, 0.1 );
}

.gform_wrapper .gform_footer {
	margin: 0;
	padding: 0;
}

.gform_wrapper .gform_button {
	padding: 6px 16px 9px;
	border: 1px solid #282b2d;
	border-radius: 100px;
	background: #282b2d;
	font: 400 0.875rem var( --font-body );
	color: var( --afede-white );
	box-shadow: 0 3.5px 0 #141516, 0 4px 9px rgba( 0, 0, 0, 0.75 );
	cursor: pointer;
}

.gform_wrapper .gform_button:active {
	transform: translateY( 2px );
	box-shadow: 0 1.5px 0 #141516, 0 2px 5px rgba( 0, 0, 0, 0.75 );
}

.gform_wrapper .validation_message,
.gform_wrapper .gform_validation_errors {
	margin: 4px 0 0;
	font-size: 0.8125rem;
	color: #b81c23;
}

.gform_wrapper .gform_validation_errors {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid currentColor;
	border-radius: 4px;
}

.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea {
	border-color: #b81c23;
}

.gform_wrapper .gform_validation_container,
.gform_wrapper .gfield--type-honeypot {
	display: none !important;
}

.gform_confirmation_message {
	font-size: var( --text-prose );
	color: var( --afede-teal );
}

/* ------------------------------------------------------------------ */
/* Section: divider                                                    */
/* ------------------------------------------------------------------ */

.section--divider .rule--third {
	width: 33%;
}

/* ------------------------------------------------------------------ */
/* Posts, ingredients, archives and search                             */
/* ------------------------------------------------------------------ */

.layout--sidebar {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) 25.5%;
	gap: 5%;
	padding-block: 40px 60px;
}

@media ( max-width: 979px ) {
	.layout--sidebar {
		grid-template-columns: 1fr;
	}
}

.card {
	margin-bottom: 55px;
	background: var( --afede-white );
	box-shadow: var( --shadow-card );
}

.entry__body {
	padding: 60px 7% 70px;
}

.entry--summary .entry__body {
	padding-bottom: 55px;
}

.entry__media img {
	display: block;
	width: 100%;
}

.entry__title {
	margin-bottom: 0.2em;
}

.entry__title a {
	color: inherit;
	text-decoration: none;
}

.entry-meta {
	margin: 0;
	font-size: 1rem;
	text-transform: uppercase;
	color: var( --afede-ink );
}

.entry-meta__sep {
	margin: 0 0.4em;
}

.entry__content:not( :empty ) {
	margin-top: 2rem;
}

.entry__type {
	margin: 0 0 0.3rem;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var( --afede-grey );
}

.listing-header {
	margin-bottom: 2rem;
}

.ingredient-details {
	margin: 2rem 0 0;
	border-top: 1px solid var( --afede-line );
}

.ingredient-details__row {
	display: grid;
	grid-template-columns: 12rem 1fr;
	gap: 1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var( --afede-line );
}

.ingredient-details dt {
	font-weight: 700;
}

.ingredient-details dd {
	margin: 0;
}

.ingredient-details dd p {
	margin: 0 0 0.5em;
}

@media ( max-width: 479px ) {
	.ingredient-details__row {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}
}

.search-again {
	display: flex;
	gap: 0.5rem;
	max-width: 32rem;
	margin-top: 1rem;
}

.search-again input {
	flex: 1;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var( --afede-line );
	border-radius: 4px;
	font: inherit;
}

.nav-links {
	display: flex;
	gap: 0.5rem;
}

.nav-links .page-numbers {
	padding: 0.4em 0.9em;
	border: 1px solid var( --afede-line );
	color: var( --afede-ink );
}

.nav-links .current {
	background: var( --afede-mist );
}

/* Sidebar */
.sidebar__block {
	margin-bottom: 45px;
}

.sidebar__heading {
	margin-bottom: 0.4em;
	font-size: 1.5625rem;
}

.sidebar__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}

.sidebar__list li {
	padding: 0.5em 0.8em;
	border-top: 1px solid #e5e5e5;
	font-size: 0.875rem;
}

.sidebar__list li:first-child {
	border-top: 0;
}

.sidebar__list a {
	color: var( --afede-ink );
	text-decoration: underline dotted;
}

.sidebar__list--large li {
	padding: 0.8em 1em;
	font-size: 1rem;
	line-height: 1.3;
}

.sidebar__list--large a {
	text-decoration: none;
}

.intro__tagline {
	margin: 0 0 0.6rem;
	font-size: 0.50625rem; /* 8.1px, as the old homepage */
	line-height: 1.4;
	color: #979696;
}

/* Dated headings in long news copy (the 2016/17 news archive). In the editor:
   a Heading 4 with the class "date-heading". */
.prose .date-heading {
	margin: 10px 0 0.3em;
	font-family: var( --font-heading );
	font-size: 1.125rem;
	letter-spacing: var( --heading-tracking );
	text-transform: capitalize;
	color: var( --afede-green );
}

/* The bold 20px opening line on the About pages */
.prose .lead,
.columns__lead {
	font-size: 1.25rem;
	line-height: 1.3;
	font-weight: 600;
}

/* Headings inside post and page copy follow the old theme's scale */
.prose h1 { font-size: clamp( 2.4rem, 1.6rem + 2.6vw, 4rem ); }
.prose h2 { font-size: clamp( 2.1rem, 1.5rem + 2vw, 3.214rem ); }
.prose h3 { font-size: clamp( 1.8rem, 1.4rem + 1.4vw, 2.571rem ); }
.prose h4 { font-size: 2.057rem; }
.prose h6 { font-size: 1.125rem; }

.entry__content h1,
.entry__content h2,
.entry__content h3,
.entry__content h4 {
	margin-top: 1.2em;
	line-height: 1.2;
}

.entry-meta__cat a {
	color: var( --afede-grey );
}
