/* ==========================================================================
   Terra Response Network — base styles
   Colors: orange #ed722d, dark green #04352f, black #010000,
           light gray #f3f2f3, white #ffffff
   Font: Montserrat (400/500/600/700/800)
   ========================================================================== */

:root {
	--c-orange: #ed722d;
	--c-dark-green: #04352f;
	--c-black: #010000;
	--c-light-gray: #f3f2f3;
	--c-white: #ffffff;

	--font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

	--fs-body: 16px;
	--lh-body: 1.222;      /* 22px line box on 18px text */
	--fs-h1: 36px;
	--fs-h2: 32px;
	--fs-h3: 20px;
	--fs-banner-title: 52px;
	--fs-banner-sub: 36px;
	--fs-nav: 16px;
	--fs-btn: 16px;

	--container: 1170px;
	--gap: 24px;
	--radius: 4px;
	--radius-btn: 8px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-main);
	font-weight: 500;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--c-black);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 24px;
}

.section { padding-block: 80px; }
.section--tight { padding-block: 84px; }
.bg-light { background: var(--c-light-gray); }
.bg-dark { background: var(--c-dark-green); color: var(--c-white); }
.bg-dark a { color: var(--c-white); }

h1, h2, h3, h4 { font-weight: 600; margin: 0 0 38px; line-height: 1.22; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: .01em; line-height: 1.238; margin-bottom: 16px; }
p { margin: 0 0 21px; }
p:last-child { margin-bottom: 0; }

.eyebrow {
	font-size: var(--fs-h2);
	font-weight: 500;
	line-height: 1.22;
	color: var(--c-orange);
	margin: 0 0 5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    transition: background-color .45s ease, color .45s ease, border-color .45s ease, opacity .45s ease;
    white-space: nowrap;
}

.btn--primary { background: var(--c-dark-green); color: var(--c-white); }
.btn--primary:hover { background: var(--c-orange); color: var(--c-black); }

.btn--orange { background: var(--c-orange); color: var(--c-black); }
.btn--orange:hover { background: var(--c-dark-green); color: var(--c-white); }

.btn--outline { background: transparent; color: var(--c-dark-green); border-color: var(--c-dark-green); }
.btn--outline:hover { background: var(--c-dark-green); color: var(--c-white); }

.btn--outline-orange { background: transparent; color: var(--c-orange); border-color: var(--c-orange); cursor: default; }
.btn--disabled { pointer-events: none; opacity: .85; }

.btn--lg {
    width: 318px;
    height: 59px;
    padding: 0 16px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    border-radius: var(--radius-btn);
    border-width: 0;
}

.btn--support {
    font-size: var(--fs-btn);
    font-weight: 500;
    line-height: 1.25;
    padding: 20px;
    border-radius: var(--radius-btn);
    border-width: 0;
}

/* Header */
.site-header {
	position: relative;
	background: var(--c-light-gray);
	z-index: 60;
}
.has-transparent-header .site-header {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 40;
	background: transparent;
}

.site-header__top,
.site-header__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-header__top { padding-block: 40px 0; }
.site-header__bottom { padding-block: 26px 40px; }

.site-header__logo svg { height: 92px; width: auto; display: block; }
.site-header__logo svg path,
.site-header__logo svg .cls-1 { fill: var(--c-dark-green); }

.site-header__top-actions { display: flex; align-items: center; gap: 16px; width: 140px; justify-content: center; }

.site-header__nav { flex: 1; }
.site-header__menu {
	display: flex;
	gap: 36.5px;
	font-size: var(--fs-nav);
	font-weight: 500;
	line-height: 1.571;
	color: var(--c-black);
}
.site-header__menu .current-menu-item > a,
.site-header__menu .current_page_item > a { font-weight: 700; }

.site-header__menu a { position: relative; transition: color 0.25s ease; }

.site-header__menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--c-orange);
    
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s ease;
}

.site-header__menu a:hover { color: var(--c-orange); }
.site-header__menu a:hover::after { transform: scaleX(1); transform-origin: left center; }

.lang-switch {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 140px;
	flex: none;
	font-size: var(--fs-nav);
	font-weight: 500;
	line-height: 1.571;
}
.lang-switch__list { display: flex; align-items: center; gap: 12px; }
.lang-switch a {
	display: inline-block;
	line-height: 1.25;
	padding: 5px;
	text-transform: uppercase;
	color: var(--c-black);
	border-radius: 4px;
}
.lang-switch .is-current a {
	background: var(--c-dark-green);
	color: var(--c-white);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: 0;
	padding: 6px;
	color: var(--c-dark-green);
}
.menu-toggle span { width: 22px; height: 2px; background: currentColor; display: block; }

.mobile-menu {
	display: none;
	position: fixed;
	inset: 0;
	top: 60px;
	background: var(--c-dark-green);
	color: var(--c-white);
	padding: 32px 24px 32px;
	z-index: 50;
}
.mobile-menu.is-open { display: flex; flex-direction: column; gap: 24px; }
.mobile-menu__list { display: flex; flex-direction: column; gap: 20px; font-size: 22px; }
.mobile-menu .btn { align-self: flex-start; margin-top: 8px; }
.mobile-menu .lang-switch { font-size: 16px; width: auto; justify-content: flex-start; }
.mobile-menu .lang-switch a { color: var(--c-white); border-radius: 2px; padding: 3px; }
.mobile-menu .lang-switch .is-current a { background: var(--c-white); color: var(--c-dark-green); }

.menu-toggle span { transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

body.menu-open {
	overflow: hidden;
}

/* Hero */
.hero {
	position: relative;
	min-height: 640px;
	display: flex;
	align-items: flex-end;
	color: var(--c-white);
	background-size: cover;
	background-position: center;
}

.has-transparent-header .hero { min-height: 925px; padding-top: 220px; }
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(1,10,8,.10) 0%, rgba(1,10,8,.33) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-block-end: 84px; width: 100%; }
.hero__title {
	font-size: var(--fs-banner-title);
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1.2;
	max-width: none;
	margin-bottom: 61px;
}

.hero__badges { display: flex; justify-content: space-between; gap: 24px; }
.hero__badge { display: flex; gap: 16px; align-items: center; max-width: 322px; }
.hero__badge svg { width: 44px; height: 44px; flex-shrink: 0; stroke: var(--c-white); }
.hero__badge p { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); }

/* "Про нас" */
.hero--center { min-height: 705px; align-items: flex-start; text-align: center; }
.hero--center .hero__inner { display: flex; flex-direction: column; align-items: center; padding-block: 140px 0; }

.hero__mark svg { height: 200px; width: auto; margin-bottom: 28px; }
.hero__mark svg path, .hero__mark svg .cls-1 { fill: var(--c-white); }
.hero__org-name {
	font-size: 36px;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 68px;
}
.hero__tagline {
	font-size: 22px;
	line-height: 1.2;
	/* text-transform: uppercase; */
	max-width: 650px;
	margin: 0 auto;
}

.hero--simple { min-height: 420px; align-items: center; }
.has-transparent-header .hero--simple { padding-top: 96px; }


/* Grid / cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 39px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

.callout {
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--c-dark-green);
	line-height: 1.21;
	margin: 0;
}

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 321px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    color: var(--c-white);
}

.news-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,53,47,0) 30%, rgba(2,20,17,.9) 100%);
    transition: background 0.3s ease;
}

.news-card:hover::before { background: linear-gradient(180deg, rgba(4,53,47,0) 20%, rgba(2,20,17,0.95) 100%); }

.news-card__body { position: relative; z-index: 1; padding: 24px; }

.news-card__title { 
    font-size: 18px; 
    font-weight: 600; 
    margin-bottom: 16px; 
    transition: color 0.3s ease;
}

.news-card:hover .news-card__title { color: var(--c-orange); }

.news-card__meta { display: flex; gap: 12px; font-size: 13px; font-weight: 600; }
.news-card__meta .date { color: var(--c-orange); }

.news-listing { padding-block: 47px 80px; }
.news-listing h2 { margin-bottom: 36px; }

.news-card--list {
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--c-light-gray);
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--c-black);
	align-items: stretch;
}
.news-card--list::before { content: none; }
.news-card--list .news-card__photo { display: block; aspect-ratio: 361 / 323; }
.news-card--list .news-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.news-card--list .news-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 37px 19px 14px;
	position: static;
}
.news-card--list .news-card__title {
	font-size: var(--fs-body);
	font-weight: 500;
	line-height: var(--lh-body);
	margin-bottom: 0;
}
.news-card--list .news-card__meta {
	margin-top: auto;
	padding-top: 40px;
	justify-content: space-between;
	font-size: var(--fs-body);
	font-weight: 500;
	color: var(--c-dark-green);
}
.news-card--list .news-card__meta .date { color: var(--c-dark-green); }

.pagination { margin-top: 40px; text-align: center; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 38px; }

.team-card { background: var(--c-white); }
.team-card__photo { aspect-ratio: 253 / 212; overflow: hidden; margin-bottom: 13px; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 0 18px 18px; }
.team-card__name {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.238;
	text-transform: uppercase;
	margin: 0;
	width: 80%;
}
.team-card__role { font-size: 14px; font-weight: 700; line-height: var(--lh-body); margin: 0 0 24px; }
.team-card__bio li { font-size: var(--fs-body); line-height: var(--lh-body); margin: 15px 0; }

/* Partners / donors logo */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.logo-strip img, .logo-strip svg { max-height: 58px; width: auto; }

/* Tiles (Прозорість / завдання проєкту) */
.stage-card {
	background: var(--c-white);
	border-left: 3px solid var(--c-orange);
	padding: 20px 24px;
}

.flow-card { background: transparent; border: 0; padding: 0; }

/* Підхід */
.hero--approach { min-height: 480px; align-items: flex-end; }
.hero--approach .hero__title { margin-bottom: 0; max-width: none; text-align: center; }
.hero--approach .hero__inner { padding-block-end: 194px; }

.phase-section h2 { margin-bottom: 28px; }

.phase-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 46px; row-gap: 48px; }
.phase-card { background: transparent; border: 0; padding: 0; }
.phase-card__icon { display: block; margin-bottom: 22px; }
.phase-card__icon svg { width: 44px; height: 44px; }

.phase-card__icon svg .cls-1 { stroke: currentColor; }
.phase-card h3 { margin-bottom: 13px; }

.phase-card p { margin: 0; line-height: 1; }

.approach-contact h2 { margin-bottom: 12px; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.stat { border-top: 3px solid var(--c-orange); padding-top: 16px; }
.stat__value { font-size: 32px; font-weight: 700; color: var(--c-dark-green); }
.stat__label { font-size: 14px; margin-top: 4px; }

.donate-stat img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }

/* Проєкт */
.hero--project { min-height: 818px; align-items: flex-start; text-align: left; }
.hero--project::before {
	background: linear-gradient(180deg, rgba(4,53,47,0) 0%, rgba(4,53,47,.10) 30%, rgba(4,53,47,.98) 100%);
}
.hero--project .hero__inner { padding-block: 300px 0; }
.hero__eyebrow {
	font-size: 20px;
	line-height: 1.2;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.hero--project .hero__title { margin-bottom: 57px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 39px; }
.facts__col { display: flex; flex-direction: column; gap: 22px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact svg { width: 32px; height: 32px; flex-shrink: 0; stroke: var(--c-white); }
.fact p { margin: 0; }
.facts__legal li { position: relative; padding-left: 14px; margin-bottom: 15px; }
.facts__legal li::before { content: '•'; position: absolute; left: 0; }

.logo-strip--donors { justify-content: flex-start; gap: 120px; margin-bottom: 20px; }
.logo-strip--donors img { height: 58px; max-height: none; width: auto; }

/* Contamination model: narrow text column, three stats to its right. */
.model { display: grid; grid-template-columns: 358px 1fr; gap: 96px; }
.model__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; align-content: end; }

.stat { border: 0; padding: 0; }
.stat__value {
	font-size: 52px;
	font-weight: 700;
	line-height: 1.1;
	color: inherit;
	margin: 0 0 8px;
}
.stat__unit { font-size: 22px; font-weight: 500; margin-left: 6px; }
.stat__label { font-size: var(--fs-body); line-height: var(--lh-body); margin: 0; }

/* The map is a full-bleed band, legend baked into the artwork. */
.project-map { margin: 0; }
.project-map img { width: 100%; display: block; }

.start-text { columns: 2; column-gap: 39px; margin-bottom: 59px; }
.start-text p { break-inside: avoid; }

/* Task tiles */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.tile {
	display: block;
	align-items: initial;
	min-height: 145px;
	padding: 20px 19px;
	background: var(--c-light-gray);
	border: 0;
	border-radius: var(--radius);
	font-size: var(--fs-body);
	font-weight: 500;
	line-height: var(--lh-body);
}
.tile--done { background: var(--c-dark-green); color: var(--c-white); }
a.tile:hover { opacity: .9; }

.stages {
	position: relative;
	overflow: hidden;
	background: var(--c-dark-green);
	color: var(--c-white);
}
.stages::before,
.stages::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	aspect-ratio: 1920 / 737;
	pointer-events: none;
}
.stages::before {
	background-image: var(--stages-photo);
	background-size: 100% auto;
	background-position: top center;
	background-repeat: no-repeat;
}
.stages::after {
	background: linear-gradient(180deg,
		rgba(4,53,47,0) 0%,
		rgba(4,53,47,.55) 48%,
		rgba(4,53,47,.85) 74%,
		rgba(4,53,47,1) 92%);
}
.stages > .container { position: relative; z-index: 1; }
.stages h2 { margin-bottom: 171px; }

.stages__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.stage__name { font-size: 22px; font-weight: 600; text-transform: uppercase; margin: 0; }
.stage__period { margin: 0 0 62px; }
.stage__need { font-size: var(--fs-h3); text-transform: uppercase; font-weight: 600; margin: 0 0 4px; }
.stage__sum { font-size: var(--fs-h3); text-transform: uppercase; font-weight: 600; margin: 0 0 42px; min-height: 26px; }
.stage__sum--open { color: var(--c-orange); }
.stage__sites { margin-top: 52px; }
.stage__sites li { margin-bottom: 12px; }
.stage__sites li span { display: block; }
.stage__desc { margin-top: 52px; }
.btn--outline-light { background: transparent; color: var(--c-white); border: 1px solid var(--c-white); }

/* Results */
.results { background: var(--c-dark-green); color: var(--c-white); }
.results__title { color: var(--c-orange); margin-bottom: 55px; }
.results__grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 141px; row-gap: 49px; }
.results__note { grid-column: 2 / -1; align-self: start; margin: 0; }

/* Прозорість */
.docs-listing { padding-block: 45px 88px; }
.tile-grid--docs .tile { display: flex; align-items: center; }
.tile--row-start { grid-column-start: 1; }

/* Благодійний внесок */
.donate-intro { padding-block: 80px 85px; }
.donate-intro h1 { margin-bottom: 35px; }
.donate-intro .btn--lg { margin-bottom: 38px; }
.donate-intro .callout--sm { margin-bottom: 20px; }
.donate-lead { max-width: 950px; margin-inline: auto; }
.callout--sm { font-size: 22px; line-height: 1.2; }

.donate-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.section.bg-dark:has(.donate-stats) { padding-block: 92px 74px; }
.donate-stat img {
	width: 100%;
	aspect-ratio: 359 / 323;
	object-fit: cover;
	border-radius: var(--radius);
	margin-bottom: 39px;
}
.donate-stat__label {
	font-size: var(--fs-h3);
	line-height: 1.26;
	text-transform: uppercase;
	font-weight: 600;
	margin: 0 0 9px;
	min-height: 106px;
}
.donate-stat__value {
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}
.donate-stat__unit { font-size: 22px; font-weight: 500; text-transform: lowercase; margin-left: 6px; }

/* Footer */
.site-footer { background: var(--c-light-gray); padding-block: 89px 85px; }
.bg-light + .site-footer { background: var(--c-white); }

.site-footer__inner { max-width: 1041px; margin-inline: auto; padding-inline: 24px; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	justify-items: center;
	row-gap: 0;
	font-size: 11px;
	line-height: 1.571;
}
.site-footer__logo, .site-footer__social { align-self: end; }
.site-footer__contact, .site-footer__legal { align-self: start; margin-top: 15px; }

.site-footer__logo svg { height: 43px; width: auto; }
.site-footer__logo svg path, .site-footer__logo svg .cls-1 { fill: var(--c-dark-green); }

.site-footer__social { display: flex; gap: 14px; }
.site-footer__social svg { width: 16px; height: 16px; color: var(--c-dark-green); }

.site-footer__legal-list { display: flex; flex-direction: column; gap: 0; text-align: center; line-height: 1.82; }

.site-footer__copy { grid-column: 1 / -1; align-self: start; margin: 0; }

.site-header__social { align-self: end; }
.site-header__contact { align-self: start; }

.site-header__social { display: flex; gap: 14px; align-self: flex-start; margin-top: 15px; }
.site-header__social svg { width: 32px; height: 32px; stroke-width: 1;}

/* Новина */
.news-article { padding-block: 47px 0; }
.news-article__meta {
	display: flex;
	gap: 40px;
	font-size: var(--fs-nav);
	font-weight: 500;
	margin-bottom: 20px;
}
.news-article h1 { margin-bottom: 33px; }
/* .news-article__body :first-child { margin-bottom: 34px; } */
/* .news-article__body h3 { margin: 42px 0 21px; } */
.news-article__body p { margin-bottom: 34px; }
.news-article__body figure.wp-block-image:not(.wp-block-gallery figure.wp-block-image) img {
    cursor: zoom-in;
}

.wp-block-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 0;
}

.wp-block-list li {
    margin-bottom: 2px;
    padding-bottom: 0;
    line-height: 1.4;
}

.wp-block-list li:last-child {
    margin-bottom: 0;
}

.wp-block-paragraph, .wp-block-image, .wp-block-group, .news-gallery__dots { margin-bottom: 30px; }
.wp-block-columns { margin-bottom: 0; }

/* Native Gallery block */
.news-article__body .wp-block-gallery {
	display: flex;
	flex-wrap: nowrap;
	gap: 14px;
	/* margin: 0 0 34px; */
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	cursor: grab;
}
.news-article__body .wp-block-gallery.is-dragging {
	cursor: grabbing;
	user-select: none;
	scroll-snap-type: none;
}
.news-article__body .wp-block-gallery.is-snap-paused {
	scroll-snap-type: none;
}
.news-article__body .wp-block-gallery::-webkit-scrollbar { display: none; }
.news-article__body .wp-block-gallery figure.wp-block-image {
	flex: 0 0 calc(50% - 7px);
	scroll-snap-align: start;
	margin: 0;
}
.news-article__body .wp-block-gallery img {
	width: 100%;
	aspect-ratio: 554 / 294;
	object-fit: cover;
	border-radius: var(--radius);
}
.news-gallery__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	/* margin: 20px 0 34px; */
}
.news-gallery__dots button {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--c-dark-green);
	opacity: .35;
}
.news-gallery__dots button.is-active { opacity: 1; background: var(--c-orange); }

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(1, 10, 8, .92);
	padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); cursor: grab; transition: opacity 0.2s ease, transform 0.2s ease; opacity: 1; }
.lightbox img:active {
    cursor: grabbing;
}
.lightbox img.is-animating {
    opacity: 0;
    transform: scale(0.98);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
	position: absolute;
	background: none;
	border: 0;
	color: var(--c-white);
	cursor: pointer;
	padding: 12px;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__close svg { width: 28px; height: 28px; }
.lightbox__prev, .lightbox__next {
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
}
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
.lightbox__prev svg, .lightbox__next svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 2; }

.lightbox.is-single .lightbox__prev,
.lightbox.is-single .lightbox__next {
    display: none;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-w-prose { max-width: 68ch; }
.mx-auto { margin-inline: auto; }


/* Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) { /* iPad Pro */
	.section { padding-block: 48px; }
	.hero { min-height: 580px; }
	.hero--project { min-height: 700px; }
	.hero--project .hero__inner { padding-block: 140px 0; }
	.has-transparent-header .hero { padding-top: 120px; }
	.hero--simple { min-height: 340px; }
	.stats-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
	.model { gap: 30px; align-items: center; }
	.stages h2 { margin-bottom: 38px; }
}

@media (max-width: 900px) { /* iPad */
	:root {
		--fs-body: 14px;
		--lh-body: 1.222;      /* 22px line box on 14px text */
		--fs-h1: 36px;
		--fs-h2: 24px;
		--fs-h3: 16px;
		--fs-banner-sub: 36px;
		--fs-nav: 14px;
		--fs-btn: 16px;

		--container: 1170px;
		--gap: 16px;
		--radius: 4px;
		--radius-btn: 8px;
	}

	.grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
	.hero__title { font-size: var(--fs-h1);	}
	.hero--center .hero__mark svg { height: 94px; }
	.site-header__logo svg { height: 52px; }
	.has-transparent-header .hero { min-height: 725px; }
	.has-transparent-header .hero .hero__inner { padding-block-end: 44px; }
	.hero--project .hero__inner { padding-block: 200px 0; }

	.hero--approach { min-height: 200px; }
	.hero--approach .hero__inner { padding-block-end: 74px; }

	.news-grid, .team-grid { grid-template-columns: repeat(3, 1fr); }
	.news-card__title { font-size: 14px; }

	.donate-stat__value { font-size: 32px; }

	.model { grid-template-columns: repeat(2, 1fr);	gap: 26px; }
	.model__stats { grid-template-columns: repeat(1, 1fr); gap: 18px; }
	.stat__value { font-size: 32px; }
	.logo-strip--donors { gap: 20px; }
	.results__grid { column-gap: 20px; row-gap: 40px; }


	.hero__badge svg { width: 34px; height: 34px; }
	.phase-card__icon svg { width: 34px; height: 34px; }

	.facts { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.facts > *:nth-child(3) { grid-column: 1 / -1; }
	.facts__legal li { margin-bottom: 10px; }
}

@media (max-width: 680px) { /* Mobile */
	:root {
		--fs-h3: 18px;
	}

	.about-us-page.grid-3 { grid-template-columns: repeat(1, 1fr);}

	.container { padding-inline: 22px; }
	.section { padding-block: 36px; }
	.section--tight { padding-block: 28px; }

	.site-header__top { padding-block: 14px 10px; gap: 16px; }
	.site-header__logo svg { height: 30px; }
	.site-header__top-actions { gap: 10px; width: unset; }
	.btn--support { padding: 10px 16px; font-size: 13px; }

	.callout { font-size: 18px; }

	.site-header__bottom { display: none; }
	.menu-toggle { display: flex; }

	.mobile-menu { padding-top: 88px; }
	.mobile-menu__list { font-size: 20px; gap: 16px; }

	.hero { min-height: 420px; align-items: flex-end; }
	.has-transparent-header .hero { padding-top: 96px; min-height: 525px; }
	.hero__inner { padding-block-end: 32px; }
	.hero__title { max-width: none; margin-bottom: 20px; }
	.hero__badges { flex-direction: column; gap: 20px; }
	.hero__badge { max-width: none; }
	.hero--center .hero__mark svg { height: 64px; }
	.hero__org-name { font-size: 26px; }
	.hero__badge svg { width: 34px; height: 34px; }

	.hero--center .hero__inner { padding-block: 100px 40px;	}

	.hero__title { font-size: 24px;	}
	.hero__tagline { font-size: 20px; }

	.hero--approach { min-height: 200px; }
	.hero--approach .hero__inner { padding-block-end: 74px; }

	.grid-3, .grid-2 { gap: 20px; }

	.news-grid, .team-grid { grid-template-columns: 1fr; }
	.tile-grid { grid-template-columns: repeat(2, 1fr); }

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

	.logo-strip { gap: 24px; justify-content: center; }
	.logo-strip img, .logo-strip svg { max-height: 40px; }

	.site-footer__row { flex-direction: column; align-items: flex-start; text-align: left; }
	.site-footer__legal-list { text-align: left; }
	.site-footer__bottom { text-align: left; }

	.stat__value { font-size: 32px; }

	.phase-card__icon svg { width: 34px; height: 34px; }
	.phase-grid { grid-template-columns: repeat(1, 1fr); }
	.facts { grid-template-columns: repeat(1, 1fr);	margin-bottom: 20px; }
	.model { grid-template-columns: repeat(1, 1fr);	gap: 26px; }
	.model__stats { grid-template-columns: repeat(1, 1fr); gap: 18px; }
	.donate-stats { grid-template-columns: repeat(1, 1fr); }
	.results__note { grid-column: 1; }
	.results__grid { grid-template-columns: repeat(1, 1fr);	row-gap: 29px; }
	.stages__grid {	grid-template-columns: repeat(1, 1fr); }
	.stages h2 { margin-bottom: 38px; margin-top: 171px; }
	.stage__period { margin: 0 0 32px; }

	.start-text { columns: 1; }

	.section.bg-dark:has(.donate-stats) { padding-block: 36px; }
	.donate-stat__label { min-height: 0; }
	.donate-stat__value { font-size: 32px; }

	.news-article__body .wp-block-gallery figure.wp-block-image { flex-basis: 84%; }
}

@media (max-width: 400px) { /* old Mobile */
	.grid-3, .grid-2 { grid-template-columns: repeat(1, 1fr); }
	.stats-grid { grid-template-columns: 1fr; }
}