/* Header, page hero and footer. Breakpoints: mobile up to 767px, tablet up to 1024px. */

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

body {
	background-color: #fff;
	color: #333;
	font-family: "Open Sans", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

.site-header {
	position: relative;
}

.site-brand {
	padding: 4% 25% 0;
	position: relative;
	z-index: 99;
}

.site-brand__inner {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 80px;
	position: relative;
}

.site-logo {
	display: block;
}

.site-logo__img {
	display: block;
	height: 25vh;
	object-fit: contain;
	object-position: center center;
}

.menu-toggle {
	display: none;
}

.primary-nav {
	padding: 10px 10px calc(10px + 2%);
}

.primary-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav__list a {
	align-items: center;
	color: #c22c2d;
	display: flex;
	font-family: "Open Sans", sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2em;
	margin-inline: 15px;
	text-transform: uppercase;
}

.primary-nav__list li:first-child a {
	margin-inline-start: 0;
}

.primary-nav__list li:last-child a {
	margin-inline-end: 0;
}

.primary-nav__list a:hover,
.primary-nav__list a:focus {
	color: #ff4747;
}

.primary-nav__list .current-menu-item > a {
	color: #030303;
}

@media (min-width: 768px) {
	/* Lets the flag item stretch, so the flag centres against the text. */
	.primary-nav__list li {
		display: flex;
	}
}

@media (max-width: 1024px) {
	.primary-nav__list a {
		margin-inline: 7.5px;
	}
}

@media (max-width: 767px) {
	.menu-toggle {
		align-items: center;
		background: transparent;
		border: 0;
		color: #c22c2d;
		cursor: pointer;
		display: flex;
		font-size: 35px;
		justify-content: center;
		padding: 0.25em;
		position: absolute;
		right: -35%;
		top: 10%;
	}

	.menu-toggle svg {
		fill: currentColor;
		height: auto;
		width: 1em;
	}

	.menu-toggle__close,
	.menu-toggle[aria-expanded="true"] .menu-toggle__open {
		display: none;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__close {
		display: block;
	}

	.primary-nav {
		background: #fff;
		display: none;
		left: 0;
		padding: 0;
		position: absolute;
		right: 0;
		/* Below the toggle: top padding + 10% of logo height + toggle height + 10px. */
		top: calc(4vw + 2.5vh + 62.5px);
		z-index: 9997;
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav__list {
		display: block;
	}

	.primary-nav__list a,
	.primary-nav__list li:first-child a,
	.primary-nav__list li:last-child a {
		font-size: 22.5px;
		justify-content: center;
		letter-spacing: 0.6px;
		line-height: 27px;
		margin: 0;
		padding: 10px 20px;
		text-transform: none;
	}

	.primary-nav__list .current-menu-item > a {
		color: #ff4747;
	}

	.primary-nav__list a:hover,
	.primary-nav__list a:focus {
		color: #c22c2d;
	}
}

/* Page hero ------------------------------------------------------------- */

.page-hero {
	background-image: linear-gradient(180deg, #ffffff00 0%, #db8a8a 100%);
	padding-block: 3%;
}

.page-hero__inner {
	display: flex;
	margin-inline: auto;
	max-width: 1040px;
}

.page-hero__media {
	margin-bottom: -12%;
	position: relative;
	text-align: center;
	width: 100%;
	z-index: 10;
}

.page-hero__media img {
	animation: hhh-fade-in 2s;
	display: inline-block;
	max-width: 90%;
	vertical-align: middle;
}

@keyframes hhh-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

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

@media (max-width: 1024px) {
	.page-hero__media img {
		max-width: 85%;
	}
}

@media (max-width: 767px) {
	.page-hero__media {
		margin-bottom: 0;
	}
}

/* Dividers -------------------------------------------------------------- */

.shape {
	direction: ltr;
	left: 0;
	line-height: 0;
	overflow: hidden;
	position: absolute;
	top: -1px;
	width: 100%;
}

.shape svg {
	display: block;
	fill: #db8a8a;
	left: 50%;
	position: relative;
}

.shape--tilt svg {
	height: 85px;
	transform: translateX(-50%) rotateY(180deg);
	width: calc(217% + 1.3px);
}

.shape--fan svg {
	height: 88px;
	transform: translateX(-50%);
	width: calc(226% + 1.3px);
}

@media (max-width: 767px) {
	.shape--tilt svg {
		height: 15px;
	}
}

/* Page body ------------------------------------------------------------- */

.page-body {
	position: relative;
}

.page-body__inner {
	margin-inline: auto;
	max-width: 1040px;
}

.page-body__col {
	padding-top: 5%;
}

.entry-content {
	margin-top: 3em;
	padding: 30px 10px 50px;
}

@media (max-width: 1024px) {
	.entry-content {
		padding: 3% 12% 5%;
	}
}

@media (max-width: 767px) {
	.entry-content {
		margin-top: 0;
		padding: 3% 5% 5%;
	}
}

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

.site-footer {
	padding: 5% 5% 7% 10%;
	position: relative;
}

.site-footer__inner {
	display: flex;
	margin-inline: auto;
	max-width: 1040px;
}

.footer-col--contact,
.footer-col--affiliated {
	width: 45%;
}

.footer-col--member {
	width: 10%;
}

.footer-col--contact .footer-col__inner,
.footer-col--affiliated .footer-col__inner {
	padding-inline: 10px;
}

.footer-col--member .footer-col__inner {
	padding-inline: 5%;
}

.footer-heading,
.footer-name {
	color: #030303;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 1.5em;
	margin: 0;
	padding: 0;
}

.footer-heading {
	font-weight: 700;
	margin-bottom: 5px;
	padding-bottom: 10px;
}

.footer-name {
	font-weight: 400;
}

.footer-name a {
	color: inherit;
}

.footer-text {
	color: #030303;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5em;
}

.footer-logo {
	padding-block: 5%;
}

.footer-col--member .footer-logo {
	margin-bottom: 5px;
}

.footer-logo a {
	display: inline-block;
}

.footer-logo img {
	display: inline-block;
	max-width: 60px;
	vertical-align: middle;
}

.footer-orgs {
	display: flex;
}

.footer-org {
	width: 50%;
}

.footer-org__inner {
	padding-inline: 5%;
}

@media (max-width: 1024px) {
	.site-footer {
		padding: 10% 5%;
	}

	.footer-col--contact {
		width: 35%;
	}

	.footer-col--member {
		width: 15%;
	}
}

@media (max-width: 767px) {
	.site-footer {
		padding: 20% 10% 15%;
	}

	.site-footer__inner,
	.footer-orgs {
		flex-wrap: wrap;
	}

	.footer-col--contact,
	.footer-col--member,
	.footer-col--affiliated,
	.footer-org {
		width: 100%;
	}

	.site-footer {
		text-align: center;
	}

	.footer-col--member,
	.footer-col--affiliated {
		margin-block: 20px;
	}

	.footer-col--member .footer-heading,
	.footer-col--affiliated .footer-heading {
		padding-bottom: 0;
	}
}
