@font-face {
  font-family: 'Libre Franklin';
  src: url('assets/fonts/libre-franklin.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('assets/fonts/source-sans-3.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #284d43;
  --paper: #fffdf6;
  --green: #3f755f;
  --gold: #edd66b;
  --red: #ad4b3e;
  --muted: #56675f;
  --line: #d5ded4;
  --gutter: max(4vw, calc((100vw - 1320px) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 'Source Sans 3', Arial, sans-serif; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
button, a { touch-action: manipulation; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .brand { font-family: 'Libre Franklin', Arial, sans-serif; letter-spacing: -.035em; }
h1, h2 { font-weight: 560; line-height: 1.12; }
h1 { font-size: clamp(40px, 4.4vw, 62px); max-width: 650px; }
h2 { font-size: clamp(30px, 2.7vw, 38px); }
h3 { font-size: 23px; font-weight: 550; line-height: 1.25; }
p { margin-bottom: 18px; }
img { display: block; max-width: 100%; }
svg { display: block; }
button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; }
.skip-link:focus { top: 0; background: var(--paper); z-index: 100; padding: 12px; }

.site-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 36px; padding: 25px var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 620; text-decoration: none; white-space: nowrap; }
.brand img { width: 42px; height: 42px; }
.site-header > .brand:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-donate { padding: 8px 20px; background: var(--gold); border-radius: 24px; }
.language-switch { display: flex; align-items: center; justify-self: end; gap: 7px; white-space: nowrap; font-size: 14px; }
.language-switch button, .language-switch a { border: 0; background: none; min-height: 44px; padding: 10px 0; font-size: inherit; color: var(--muted); }
.language-switch button[aria-pressed=true], .language-switch a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.language-switch > span { color: #77847b; }

.hero { padding-top: 32px; }
.intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; padding: 12px var(--gutter) 45px; }
.intro p { font-size: 21px; line-height: 1.5; max-width: 420px; margin: 0; }
.hero-photo { height: clamp(320px, 43vw, 610px); }
.hero-photo figure { height: 100%; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }

.project-section { display: grid; grid-template-columns: .95fr 1fr; gap: 55px; align-items: center; padding: 55px var(--gutter); background: var(--gold); }
.map-panel { min-width: 0; }
.map-drawing { position: relative; width: min(100%, 420px); margin: auto; }
.togo-map { width: 100%; height: auto; }
.country { fill: var(--green); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.map-marker { position: absolute; display: flex; align-items: center; gap: 10px; transform: translate(-17px, -50%); padding: 10px 6px; background: transparent; border: 0; border-radius: 24px; font-size: 18px; font-weight: 600; }
.marker-dot { width: 22px; height: 22px; flex: none; background: var(--red); border: 3px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 6px #ad4b3e22; transition: box-shadow .2s; }
.map-marker:hover .marker-dot { box-shadow: 0 0 0 10px #ad4b3e33; }
.project-copy { max-width: 540px; padding: 20px 0; }
.project-copy h2 { margin-bottom: 22px; }
.project-copy p { line-height: 1.55; }
.giving { margin-top: 32px; }
.giving h3 { margin-bottom: 12px; }
.giving .button, .support-strip .button { margin-top: 6px; }
.button { background: var(--ink); color: var(--paper); border: 0; border-radius: 26px; padding: 13px 25px; font-size: 16px; }
.button:hover { background: #1b382f; }
.text-button { background: none; border: 0; padding: 12px 0; font-size: 16px; text-decoration: underline; text-underline-offset: 5px; }

.gallery-section { padding: 64px 0 56px; }
.gallery-heading { display: grid; grid-template-columns: .6fr 1.4fr; gap: 80px; align-items: start; padding: 0 var(--gutter); margin-bottom: 35px; }
.gallery-heading p { max-width: 720px; margin: 0; }
/* Both rows belong to one native scroll surface, so touch, wheel and drag stay in sync. */
.photo-grid { --photo-height: 230px; --photo-gap: 18px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.photo-grid::-webkit-scrollbar { display: none; }
.photo-grid:focus-visible { outline-offset: -4px; }
.photo-track { width: max-content; padding: 6px var(--gutter) 10px; }
.photo-row { display: flex; gap: var(--photo-gap); width: max-content; }
.photo-row + .photo-row { margin-top: var(--photo-gap); margin-left: 85px; }
.photo-row figure { width: calc(var(--photo-height) * var(--photo-ratio)); height: var(--photo-height); flex: none; }
.photo-button { display: block; background: none; border: 0; padding: 0; width: 100%; height: 100%; border-radius: 13px; overflow: hidden; cursor: inherit; }
.photo-button img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.photo-button:hover { opacity: .92; }
.photo-grid.is-dragging, .photo-grid.is-dragging .photo-button { cursor: grabbing; }
.photo-grid.is-dragging .photo-button { opacity: 1; }

.about-section { display: grid; grid-template-columns: .6fr 1.4fr; gap: 80px; padding: 35px var(--gutter) 70px; }
.about-section p { max-width: 710px; }
.about-section a { font-size: 17px; }
footer { background: #edf1e8; padding: 40px var(--gutter); display: flex; justify-content: space-between; align-items: start; gap: 30px; }
footer h2 { font-size: 20px; margin-bottom: 12px; }
footer a:not(.brand) { font-size: 16px; }
footer p { font-size: 14px; margin: 14px 0 0; }
.review-links { display: flex; gap: 20px; margin-top: 20px; }
.review-links a, .review-links button { font: 13px 'Source Sans 3', sans-serif; color: var(--muted); }
.review-links button { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 5px; }

body.dialog-open { overflow: hidden; }
dialog { border: 0; padding: 0; max-height: 90dvh; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(20 36 29 / 72%); backdrop-filter: blur(7px); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; padding: 10px; min-width: 44px; min-height: 44px; }
.lightbox { display: none; width: calc(100vw - 40px); max-width: 1600px; height: calc(100dvh - 28px); max-height: none; margin: auto; padding: 0; overflow: hidden; background: transparent; color: white; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox:focus { outline: none; }
.lightbox-top { display: flex; justify-content: flex-end; flex: none; height: 44px; margin-bottom: 8px; pointer-events: none; }
.lightbox-top button { pointer-events: auto; border-radius: 50%; }
.lightbox-top button:hover { background: #ffffff1c; }
.lightbox-image { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; cursor: grab; touch-action: pan-y pinch-zoom; }
.lightbox-image:active { cursor: grabbing; }
.lightbox-image > img { width: 100%; height: 100%; object-fit: contain; user-select: none; }
.thumbnail-strip { position: relative; display: flex; flex: none; align-items: center; gap: 9px; max-width: 100%; width: max-content; margin: 10px auto 0; padding: 7px 5px; overflow-x: auto; scrollbar-width: none; }
.thumbnail-strip::-webkit-scrollbar { display: none; }
.thumbnail-strip button { flex: 0 0 80px; height: 60px; background: transparent; border: 2px solid transparent; border-radius: 6px; padding: 0; overflow: hidden; opacity: .6; }
.thumbnail-strip button img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-strip button[aria-pressed=true] { border-color: var(--gold); opacity: 1; }
.thumbnail-strip button:hover { opacity: 1; }
.lightbox :focus-visible { outline-color: var(--gold); outline-offset: 3px; }

.modal { width: min(560px, calc(100vw - 32px)); padding: 50px; }
.modal-close { position: absolute; right: 15px; top: 15px; }
.eyebrow { font-size: 13px; }
.modal > .eyebrow { padding-right: 35px; margin-bottom: 26px; }
.modal h2 { font-size: 34px; margin-bottom: 22px; }
.modal > p { font-size: 17px; }
.modal h3 { font-size: 20px; margin: 30px 0 12px; }
.notes-dialog { width: min(720px, calc(100vw - 32px)); }
.logo-comparison { display: flex; gap: 30px; margin: 24px 0; justify-content: center; border: 1px solid var(--line); padding: 25px; }
.logo-comparison figure { flex: 1; text-align: center; }
.logo-comparison img { margin: 0 auto 18px; object-fit: contain; }
.logo-comparison figcaption { font-size: 13px; }
.source-links { display: flex; flex-wrap: wrap; gap: 12px 25px; font-size: 14px; margin-top: 30px; }
.implementation-note { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 25px; color: var(--muted); }
.modal .demo-note { font-size: 14px; color: var(--muted); margin: 20px 0 0; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; }
  .site-header > .brand { grid-column: 1; grid-row: 1; }
  .language-switch { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; gap: 25px; }
  .intro { gap: 40px; }
  .project-section { gap: 28px; }
  .gallery-heading, .about-section { gap: 45px; }
}
@media (max-width: 700px) {
  :root { --gutter: 6vw; }
  .site-header { gap: 10px 18px; padding-top: 16px; padding-bottom: 14px; }
  .brand { gap: 9px; font-size: 18px; }
  .brand img { width: 36px; height: 36px; }
  .language-switch { gap: 5px; font-size: 13px; }
  .hero { padding-top: 12px; }
  .intro { display: block; padding-top: 8px; padding-bottom: 30px; }
  .intro h1 { font-size: clamp(36px, 8.5vw, 48px); margin-bottom: 20px; max-width: 440px; }
  .intro p { font-size: 19px; max-width: 470px; }
  .hero-photo { height: clamp(280px, 72vw, 430px); }
  .hero-photo img { object-position: 50% 46%; }
  .project-section { display: flex; flex-direction: column; gap: 10px; padding-top: 25px; padding-bottom: 42px; }
  .map-panel { width: 100%; }
  .map-drawing { width: 265px; max-width: 85%; }
  .project-copy { max-width: none; padding: 12px 0 0; }
  .project-copy h2 { margin-bottom: 20px; }
  .giving { margin-top: 28px; }
  .gallery-section { padding-top: 42px; padding-bottom: 38px; }
  .gallery-heading { display: block; margin-bottom: 26px; }
  .gallery-heading h2 { margin-bottom: 18px; }
  .photo-grid { --photo-height: 165px; --photo-gap: 12px; }
  .photo-row + .photo-row { margin-left: 50px; }
  .photo-button { border-radius: 11px; }
  .about-section { display: block; padding-top: 15px; padding-bottom: 45px; }
  .about-section h2 { margin-bottom: 24px; }
  footer { display: block; padding-top: 32px; padding-bottom: 32px; }
  footer > .brand { margin-bottom: 28px; }
  .lightbox { width: calc(100vw - 20px); height: calc(100dvh - 20px); }
  .thumbnail-strip { gap: 7px; padding-top: 8px; }
  .thumbnail-strip button { flex-basis: 63px; height: 49px; }
  .modal { padding: 45px 24px 30px; }
  .modal h2 { font-size: 29px; }
  .logo-comparison { gap: 16px; padding: 18px; }
}
@media (max-width: 480px) {
  .site-header { gap: 7px 12px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .language-switch { font-size: 12px; margin: 0; justify-self: end; }
  .site-nav { justify-content: space-between; gap: 7px; }
  .site-nav a { font-size: 14px; }
  .site-nav .nav-donate { padding: 7px 10px; }
}
@media (max-width: 350px) {
  .brand { font-size: 15px; }
  .language-switch { font-size: 11px; gap: 4px; }
  .site-header { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marker-dot { transition: none; }
}

/* Shared layouts for the connected page study. */
textarea, select { font: inherit; color: inherit; }
.button { display: inline-block; text-align: center; text-decoration: none; }
.site-nav a[aria-current=page] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
#main:focus { outline: none; }
.section-link { display: inline-block; margin-top: 16px; font-size: 17px; }
.footer-nav { display: flex; flex-direction: column; gap: 7px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover, .footer-nav a[aria-current=page] { text-decoration: underline; }
.footer-contact { min-width: 0; }
.footer-contact > a { overflow-wrap: anywhere; }
.page-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 60px var(--gutter) 65px; }
.page-intro h1 { max-width: 650px; }
.page-intro > p { font-size: 22px; max-width: 530px; margin: 0; }
.work-project { padding-top: 45px; padding-bottom: 45px; }
.work-project .project-copy { max-width: 570px; }
.work-project .text-link { font-size: 18px; }
.archive-section { padding: 65px 0; }
.archive-section .gallery-heading > div > p + p { margin-top: 18px; }
.archive-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; padding: 0 var(--gutter); }
.archive-grid figure { grid-column: span 4; height: clamp(220px, 25vw, 340px); min-width: 0; }
.archive-grid figure:nth-child(1), .archive-grid figure:nth-child(9) { grid-column: span 8; }
.archive-grid figure:nth-child(6), .archive-grid figure:nth-child(7), .archive-grid figure:nth-child(13), .archive-grid figure:nth-child(14) { grid-column: span 6; }
.archive-grid .photo-button { cursor: pointer; }
.support-strip, .text-section { display: grid; grid-template-columns: .6fr 1.4fr; gap: 80px; padding: 55px var(--gutter); }
.support-strip { background: #edf1e8; }
.support-strip p, .text-section p { max-width: 720px; }
.text-section { padding-top: 25px; padding-bottom: 65px; }
.text-section p:last-child { margin-bottom: 0; }
.people-section { padding: 0 var(--gutter) 65px; }
.people-section > h2 { margin-bottom: 30px; }
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.people-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; }
.people-grid figcaption { padding-top: 18px; }
.people-grid h3 { font-size: 21px; line-height: 1.35; margin: 0 0 6px; }
.people-grid p { font-size: 18px; line-height: 1.4; margin: 0; }
.community-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; background: var(--green); color: var(--paper); padding: 65px var(--gutter); }
.community-section h2 { margin-bottom: 26px; max-width: 460px; }
.community-section p { max-width: 580px; }
.community-section a:focus-visible { outline-color: var(--gold); }
.membership-copy { padding-left: 45px; border-left: 1px solid #fff6; }
.plain-links { display: flex; flex-direction: column; align-items: start; gap: 14px; margin-top: 25px; }
.governance-section { padding-top: 65px; padding-bottom: 75px; }

.contact-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; padding: 5px var(--gutter) 80px; }
.contact-layout h2 { font-size: 25px; margin-bottom: 14px; }
.contact-email { overflow-wrap: anywhere; }
address { font-style: normal; }

.donate-layout { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 90px; padding: 65px var(--gutter) 80px; }
.donate-copy h1 { margin-bottom: 30px; }
.donate-copy > p { max-width: 570px; }
.donate-copy .lead { font-size: 23px; }
.donation-panel { padding: 38px; background: var(--gold); border-radius: 12px; }
.donation-panel > p { margin-bottom: 20px; }

@media (max-width: 1050px) {
  .page-intro, .support-strip, .text-section { gap: 45px; }
  .community-section { gap: 45px; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .membership-copy { padding-left: 30px; }
  .donate-layout { gap: 40px; grid-template-columns: 1fr 1fr; }
  .donation-panel { padding: 28px; }
  footer { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .section-link { display: inline-block; margin-top: 15px; transform: none; }
  body[data-page=home] .gallery-heading { margin-bottom: 28px; }
  .page-intro { display: block; padding-top: 30px; padding-bottom: 40px; }
  .page-intro h1 { margin-bottom: 24px; font-size: clamp(36px, 8.5vw, 48px); }
  .page-intro > p { font-size: 20px; }
  .archive-section { padding: 40px 0; }
  .archive-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .archive-grid figure:nth-child(n) { grid-column: span 1; height: 170px; }
  .archive-grid figure:nth-child(5n+1) { grid-column: span 2; height: 260px; }
  .archive-grid figure:last-child { grid-column: span 2; }
  .support-strip, .text-section { display: block; padding-top: 38px; padding-bottom: 40px; }
  .support-strip h2, .text-section h2 { margin-bottom: 24px; }
  .text-section:first-of-type { padding-top: 0; }
  .people-section { padding-bottom: 40px; }
  .people-section > h2 { margin-bottom: 24px; }
  .people-grid { gap: 26px 16px; }
  .people-grid h3 { font-size: 18px; }
  .people-grid p { font-size: 16px; }
  .people-grid figcaption { padding-top: 12px; }
  .community-section { display: block; padding-top: 40px; padding-bottom: 40px; }
  .membership-copy { border: 0; padding: 28px 0 0; }
  .community-section h2 { font-size: 29px; }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 0; padding-bottom: 45px; }
  .contact-email { font-size: 20px; }
  .donate-layout { display: flex; flex-direction: column; gap: 35px; padding-top: 30px; padding-bottom: 45px; }
  .donate-copy h1 { font-size: clamp(36px, 8.5vw, 48px); margin-bottom: 25px; }
  .donate-copy .lead { font-size: 21px; }
  .donation-panel { width: 100%; padding: 28px 24px; }
  .footer-nav { margin: 28px 0; }
  .footer-contact { margin-top: 30px; }
}
@media (max-width: 480px) {
  .site-header > .brand { grid-column: 1; grid-row: 1; }
  .language-switch { grid-column: 2; grid-row: 1; }
  .donation-panel { padding: 25px 20px; }
}

#email-review-title:focus { outline: none; }

.language-switch a { display: inline-flex; align-items: center; text-decoration: none; }
.checkout-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.checkout-actions .button { flex: 1; white-space: nowrap; }
.button:disabled { opacity: .55; cursor: default; }
html:not(.js) .contact-compose { display: none; }

.map-marker { text-decoration: none; }
footer .map-credit a { font-size: 12px; color: var(--muted); }
