/* Brand: yellow #ffbe05, black, white. All text in Plus Jakarta Sans (SIL Open Font Licence; served by the app from
   trust-site/resources/fonts): 800 for h1, 700 for titles and bold, 400 for body text. Arial is the fallback. */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/plus-jakarta-sans-latin-400.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/plus-jakarta-sans-latin-ext-400.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/fonts/plus-jakarta-sans-latin-700.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/fonts/plus-jakarta-sans-latin-ext-700.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("/fonts/plus-jakarta-sans-latin-800.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("/fonts/plus-jakarta-sans-latin-ext-800.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* {
	box-sizing: border-box;
}

html {
	font-size: 16px;
}

body {
	margin: 0;
	background: #f7f7f5;
	color: #222;
	font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
	line-height: 1.65;
}

h1,
h2,
h3,
.footer-name {
	font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
	font-weight: 700;
}

h1 {
	font-weight: 800;
}

.container {
	width: min(1050px, calc(100% - 40px));
	margin: 0 auto;
}


/* HEADER */

header {
	background: #fff;
	border-bottom: 4px solid #ffbe05;
}

.header-inner {
	min-height: 110px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 18px;
	text-decoration: none;
	color: #111;
}

/* Wordmark from logo/main_logo.png, saved at twice its shown height */
.logo-img {
	display: block;
	height: 62px;
	width: auto;
}


/* NAVIGATION */

nav {
	background: #222;
}

nav ul {
	width: min(1050px, calc(100% - 40px));
	margin: 0 auto;
	padding: 0;
	list-style: none;
	display: flex;
}

nav a {
	display: block;
	padding: 14px 20px;
	color: #fff;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: bold;
}

nav a:hover,
nav a:focus {
	background: #ffbe05;
	color: #111;
}

nav a[aria-current="page"] {
	box-shadow: inset 0 -4px 0 #ffbe05;
}

/* Small screens: the menu folds behind the Menu button in the header (trust-site/public/site-nav.js, which sets
   html.js). Without the script the menu wraps onto extra rows instead, as it did before. */
.menu-toggle {
	display: none;
}

@media (max-width: 900px) {

	.js .menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 44px;
		padding: 0 16px;
		border: 0;
		border-radius: 6px;
		background: #222;
		color: #fff;
		font: inherit;
		font-size: 0.95rem;
		font-weight: 700;
		cursor: pointer;
	}

	.js .menu-toggle:focus-visible {
		outline: 3px solid #ffbe05;
		outline-offset: 2px;
	}

	.menu-icon,
	.menu-icon::before,
	.menu-icon::after {
		display: block;
		width: 18px;
		height: 2px;
		border-radius: 1px;
		background: #ffbe05;
		transition: transform 0.15s, background 0.15s;
	}

	.menu-icon {
		position: relative;
	}

	.menu-icon::before,
	.menu-icon::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.menu-icon::before {
		top: -6px;
	}

	.menu-icon::after {
		top: 6px;
	}

	.menu-toggle[aria-expanded="true"] .menu-icon {
		background: transparent;
	}

	.menu-toggle[aria-expanded="true"] .menu-icon::before {
		top: 0;
		transform: rotate(45deg);
	}

	.menu-toggle[aria-expanded="true"] .menu-icon::after {
		top: 0;
		transform: rotate(-45deg);
	}

	.js nav ul {
		width: 100%;
		flex-direction: column;
		padding: 6px 0;
	}

	.js nav ul:not(.is-open) {
		display: none;
	}

	.js nav li + li {
		border-top: 1px solid #383838;
	}

	.js nav a,
	.js nav .nav-button {
		width: 100%;
		padding: 13px 20px;
		font-size: 1rem;
		text-align: left;
	}

	.js nav a[aria-current="page"] {
		box-shadow: inset 5px 0 0 #ffbe05;
	}

	.js nav .nav-end {
		margin-left: 0;
	}
}


/* HERO */

.hero {
	position: relative;
	background: #222 url("images/hero_1_cam.jpg") center / cover no-repeat;
	border-bottom: 6px solid #ffbe05;
	padding: 95px 0 100px;
	margin-bottom: 55px;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(17, 17, 17, 0.88) 0%, rgba(17, 17, 17, 0.6) 55%, rgba(17, 17, 17, 0.2) 100%);
}

.hero .container {
	position: relative;
}

.hero h1 {
	margin: 0 0 15px;
	max-width: 800px;
	font-size: clamp(2.3rem, 5vw, 3.8rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: #fff;
}

.hero h1 .trust-name {
	color: #ffbe05;
}

.hero p {
	margin: 0;
	max-width: 680px;
	font-size: 1.15rem;
	line-height: 1.55;
	color: #eee;
}

/* Shorter banner for inner pages */
.hero--page {
	background-image: url("images/crowd_1_cam.jpg");
	background-position: center 35%;
	padding: 60px 0 65px;
}


/* PHOTOS — every *_cam image must carry a credit to Cameron Hayes */

.photo-credit {
	font-size: 0.75rem;
	color: #666;
}

.hero .photo-credit {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 3px 10px;
	background: rgba(0, 0, 0, 0.5);
	color: rgba(255, 255, 255, 0.85);
}

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.split p {
	margin-bottom: 0;
}

figure {
	margin: 0;
}

figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

figcaption {
	margin-top: 8px;
}


/* MAIN CONTENT */

main {
	padding-bottom: 70px;
}

section {
	margin-bottom: 55px;
}

h2 {
	margin: 0 0 12px;
	font-size: 1.45rem;
	line-height: 1.3;
	color: #1b1b1b;
}

h2::after {
	content: "";
	display: block;
	width: 45px;
	height: 4px;
	margin-top: 9px;
	background: #ffbe05;
}

p {
	margin: 0 0 30px;
	max-width: 780px;
}

a {
	color: #725500;
}

.intro {
	font-size: 1.1rem;
}


/* TIMELINE */

.timeline {
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
	max-width: 780px;
}

.timeline li {
	display: grid;
	grid-template-columns: 70px 1fr;
	gap: 20px;
	padding: 14px 0;
	border-top: 1px solid #d7d7d2;
}

.timeline li:last-child {
	border-bottom: 1px solid #d7d7d2;
}

.timeline-year {
	font-weight: bold;
	font-size: 1.1rem;
	color: #725500;
}

.timeline p {
	margin: 0;
}


/* STEERING GROUP */

.board {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.board-member {
	background: #fff;
	border-top: 4px solid #ffbe05;
	border-radius: 4px;
	padding: 24px;
}

.initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: #222;
	color: #ffbe05;
	font-weight: bold;
	font-size: 1.15rem;
}

.board-member h3 {
	margin: 0 0 4px;
	font-size: 1.15rem;
	line-height: 1.3;
}

.board-role {
	font-size: 0.8rem;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #725500;
}


/* FAQ */

.faq h2 {
	margin-bottom: 20px;
}

.faq-item {
	max-width: 780px;
	padding: 25px 0;
	border-top: 1px solid #d7d7d2;
}

.faq-item:last-child {
	border-bottom: 1px solid #d7d7d2;
}

.faq-item h3 {
	margin: 0 0 10px;
	font-size: 1.2rem;
	line-height: 1.35;
	color: #1b1b1b;
}

.faq-item p,
.faq-item ul {
	margin: 0 0 15px;
}

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


/* FOOTER */

footer {
	background: #1d1d1d;
	color: #ccc;
	padding: 50px 0;
	border-top: 6px solid #ffbe05;
	font-size: 0.85rem;
	line-height: 1.6;
}

.footer-name {
	display: block;
	margin-bottom: 12px;
	color: #fff;
	font-size: 1.15rem;
	font-weight: bold;
}

footer p {
	margin: 0;
	max-width: 850px;
}


/* RESPONSIVE */

@media (max-width: 700px) {

	.container {
		width: calc(100% - 30px);
	}

	.header-inner {
		min-height: 90px;
	}

	.logo-img {
		height: 46px;
	}

	/* Phones without the menu script: the menu wraps onto more rows instead of scrolling sideways. */
	nav ul {
		width: 100%;
		flex-wrap: wrap;
	}

	nav a {
		padding: 11px 13px;
		white-space: nowrap;
	}

	.hero {
		padding: 55px 0 65px;
		margin-bottom: 40px;
	}

	.hero::before {
		background: rgba(17, 17, 17, 0.72);
	}

	.hero--page {
		padding: 40px 0 45px;
	}

	.timeline li {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.split {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.hero h1 {
		font-size: 2.5rem;
	}

	.hero p {
		font-size: 1.05rem;
	}

	section {
		margin-bottom: 40px;
	}

	footer {
		padding: 40px 0;
	}
}
