/* Editorial additions: generous photography, alternating voices, open story cards. */
/* Ported unchanged from the approved static reference (website/dist/style.css). Keep file order: later files override earlier ones. */

.content-photo {
	margin: 0 0 28px;
}

.content-photo img {
	display: block;
	width: 100%;
	height: 320px;
	object-fit: cover;
}

.content-photo img[src*="david_shelton"] {
	height: 420px;
	object-position: center 20%;
}

.content-photo figcaption,
.founder-photo figcaption {
	font-size: .8rem;
	margin-top: 9px;
	line-height: 1.5;
	opacity: .8;
}

.safety .content-photo img {
	height: 280px;
}

.founder {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: 8%;
	align-items: center;
	background: #f0f2f8;
}

.founder-photo {
	margin: 0;
}

.founder-photo img {
	width: 100%;
	height: 560px;
	display: block;
	object-fit: cover;
	object-position: center 25%;
}

.founder h3 {
	margin-top: 30px;
	font-size: 1.65rem;
}

.founder .lead {
	font-size: 1.1rem;
}

.editorial-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.editorial-card {
	display: block;
	border-bottom: 1px solid var(--line);
	padding-bottom: 28px;
}

.editorial-cover {
	position: relative;
	overflow: hidden;
}

.editorial-cover img {
	width: 100%;
	aspect-ratio: 16/10;
	height: auto;
	display: block;
	object-fit: cover;
	transition: transform .4s;
}

.editorial-card:hover img {
	transform: scale(1.025);
}

.editorial-cover>span {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 8px 12px;
	background: #111f44e6;
	color: white;
	font-size: .75rem;
}

.editorial-copy {
	padding-top: 25px;
}

.editorial-copy h3 {
	font: 400 clamp(1.8rem,2.5vw,2.8rem)/1.12 var(--serif);
	letter-spacing: -.025em;
}

.editorial-copy .eyebrow {
	margin-bottom: 12px;
}

.latest-blog {
	background: #f0f2f8;
}

.stories-heading {
	max-width: 820px;
	margin: 0 auto 65px;
	text-align: center;
}

.stories-heading p {
	max-width: 650px;
	margin-inline: auto;
}

.voices {
	background: var(--paper);
}

.voice-row {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	align-items: center;
	gap: 7%;
	padding: 55px 0;
	border-top: 1px solid var(--line);
}

.voice-row:nth-of-type(even) {
	grid-template-columns: 1.1fr 1fr;
}

.voice-row:nth-of-type(even) .voice-copy {
	order: 2;
}

.voice-copy h3 {
	font: 400 clamp(1.9rem,3vw,3rem)/1.08 var(--serif);
}

.voice-copy blockquote {
	font: italic 1.45rem/1.5 var(--serif);
	margin: 24px 0 12px;
	padding-left: 22px;
	border-left: 3px solid var(--gold);
}

.sample-film>.small {
	margin-top: 14px;
}

.youtube-shell {
	aspect-ratio: 16/9;
	background: radial-gradient(ellipse at 90% 0%,#3155e5,transparent 65%),var(--navy);
	color: white;
	display: grid;
	place-items: center;
	border-bottom: 6px solid var(--gold);
}

.youtube-shell iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.load-video {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px;
	background: none;
	border: 0;
	color: inherit;
}

.load-video strong {
	font-size: 1rem;
	max-width: 330px;
}

.load-video>span:last-child {
	font-size: .8rem;
}

.play-circle {
	display: grid;
	place-items: center;
	width: 65px;
	height: 65px;
	border: 2px solid white;
	border-radius: 50%;
	font-size: 22px;
	padding-left: 4px;
	transition: transform .2s;
}

.load-video:hover .play-circle {
	transform: scale(1.08);
	background: var(--gold);
	color: var(--ink);
}

.impact-stories {
	background: #f0f2f8;
}

.impact-grid {
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	gap: 40px;
	align-items: start;
}

.impact-card {
	background: var(--paper);
}

.impact-card summary {
	display: block;
	position: relative;
	cursor: pointer;
	overflow: hidden;
	height: 520px;
	color: white;
	list-style: none;
}

.impact-card summary::-webkit-details-marker {
	display: none;
}

.impact-card summary::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg,#071435e8,transparent 70%);
}

.impact-card summary img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform .5s;
}

.impact-card summary:hover img {
	transform: scale(1.035);
}

.impact-title {
	position: absolute;
	z-index: 1;
	bottom: 40px;
	left: 28px;
	right: 60px;
	font-size: 1.2rem;
	line-height: 1.25;
}

.impact-title strong {
	display: block;
	font: 400 clamp(2rem,3.4vw,3.3rem)/1.08 var(--serif);
	margin-top: 8px;
}

.story-sample {
	position: absolute;
	top: 22px;
	left: 22px;
	z-index: 1;
	background: var(--gold);
	color: var(--ink);
	padding: 5px 10px;
	font-size: .7rem;
	letter-spacing: .1em;
	font-weight: 700;
}

.story-arrow {
	position: absolute;
	right: 20px;
	bottom: 38px;
	border: 2px solid white;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	z-index: 1;
}

.impact-card[open] .story-arrow {
	transform: rotate(90deg);
}

.impact-story-body {
	padding: 28px;
}

.network-choices .choice {
	flex: 1;
}

.donation-panel .notice p {
	margin-bottom: 0;
}

@media(min-width:1281px) and (max-width:1480px) {
	header {
		padding-inline: 3%;
		gap: 20px;
	}
	header .wordmark .brand-logo {
		width: 220px;
	}
	header nav {
		gap: 15px;
		font-size: .85rem;
	}
	header nav .button {
		padding: 12px 16px;
	}
}

@media(max-width:760px) {
	.founder,
	.editorial-grid,
	.impact-grid,
	.voice-row,
	.voice-row:nth-of-type(even) {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.founder-photo img {
		height: 420px;
	}
	.voice-row:nth-of-type(even) .voice-copy {
		order: 0;
	}
	.voice-row {
		padding: 35px 0;
	}
	.stories-heading {
		margin-bottom: 35px;
	}
	.impact-card summary {
		height: 420px;
	}
	.content-photo img {
		height: 240px;
	}
	.content-photo img[src*="david_shelton"] {
		height: 360px;
	}
	.impact-title {
		left: 22px;
	}
	.editorial-grid {
		gap: 45px;
	}
	.founder {
		gap: 38px;
	}
	.network-choices {
		flex-wrap: wrap;
	}
}

/* Founder statement (29 Sep 2026): the full statement is long, so the photo stays in view beside it on desktop. */
@media (min-width: 761px) {
	.founder {
		align-items: start;
	}
	.founder-photo {
		position: sticky;
		top: 40px;
	}
}

/* Child safeguarding policy page: compact contents list and sub-headings. */
.text-section .policy-contents {
	list-style: none;
	padding: 0;
	columns: 2;
	column-gap: 40px;
	margin: 0 0 1.2rem;
}
.text-section .policy-contents li {
	padding: 4px 0;
	break-inside: avoid;
}
.policy-contents a {
	border-bottom: 1px solid;
	font-weight: 600;
}
.policy-contents a:hover {
	color: var(--blue);
}
.text-section[id^=section-] h3 + p,
.text-section[id^=section-] h3 + ul {
	margin-top: -.4rem;
}
.text-section[id^=section-] div > h3:not(:first-child) {
	margin-top: 2rem;
}
.text-section[id^=section-] li {
	padding: 3px 7px;
}
@media (max-width: 760px) {
	.text-section .policy-contents {
		columns: 1;
	}
}

/* Client portraits (29 Sep 2026): portrait-shaped crops in text sections, and the governance people grid. */
.content-photo img[src*="-portrait"] {
	height: 460px;
	object-position: center 22%;
}
.people-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.people-grid figure {
	margin: 0;
}
.people-grid img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4/5;
	object-fit: cover;
	object-position: center 20%;
}
.people-grid figcaption {
	margin-top: 12px;
	line-height: 1.4;
}
.people-grid figcaption strong {
	display: block;
	font: 400 1.35rem var(--serif);
}
.people-grid figcaption span {
	font-size: .85rem;
}
@media (max-width: 760px) {
	.content-photo img[src*="-portrait"] {
		height: 400px;
	}
	.people-grid {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
}

/* Optional inner-page hero button (e.g. About → Team & governance). */
.inner-hero .actions {
	justify-content: center;
}

/* Client feedback: hide decorative ↗ arrows on links and CTAs on phones. */
@media (max-width: 760px) {
	.cta-arrow,
	.row-arrow,
	.portrait-band > b {
		display: none;
	}
}

/* David's statement and gallery on About (30 Sep 2026): the founder layout mirrored, then a five-photo gallery. */
.david-statement {
	background: var(--paper);
	grid-template-columns: 1.15fr .85fr;
}
.david-statement .founder-photo {
	order: 2;
}
.david-statement .signoff {
	margin-top: 30px;
	font-style: italic;
}
.david-statement .signoff strong {
	display: block;
	font: 400 1.35rem var(--serif);
	font-style: normal;
	margin-top: 6px;
}
.david-gallery {
	background: #f0f2f8;
}
.david-gallery .stories-heading {
	margin-bottom: 45px;
}
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}
.gallery-grid figure {
	margin: 0;
}
.gallery-grid img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}
.gallery-grid figcaption {
	margin-top: 10px;
	font-size: .85rem;
	line-height: 1.4;
}
.david-gallery > .small {
	text-align: center;
	margin-top: 30px;
}
@media (max-width: 1000px) {
	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 760px) {
	.david-statement {
		grid-template-columns: 1fr;
	}
	.david-statement .founder-photo {
		order: 0;
	}
	.gallery-grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 14px;
		margin-inline: -5%;
		padding: 0 5% 10px;
	}
	.gallery-grid figure {
		flex: 0 0 68%;
		scroll-snap-align: center;
	}
}

/* Privacy-notice agreement checkbox on forms (GDPR, 30 Sep 2026). */
.consent-field {
	margin: 22px 0 18px;
}
.consent-check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-weight: 400;
	line-height: 1.5;
	cursor: pointer;
}
.consent-check input {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	padding: 0;
	accent-color: var(--blue);
}
.recaptcha-note {
	margin-bottom: 18px;
}
/* Google permits hiding the badge when the reCAPTCHA notice is shown beside the form. */
.grecaptcha-badge {
	visibility: hidden;
}

/* Footer small print: underline links (e.g. the LiviCode credit) so they read as links. */
.fine a {
	text-decoration: underline;
	text-underline-offset: 2px;
}
