@font-face {
  font-family: "Noto Sans";
  src: url("fonts/noto-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  /* Brand colors come from the imfahe.org theme. */
  --brand: #e6122c;
  --brand-strong: #c20e24; /* text links and hover: readable on white and on the tint */
  --accent: #f39220;
  --ink: #1d1d1f;
  --text: #3a3a3a;
  --muted: #5e6066;
  --line: #e2e2e2;
  --line-strong: #d9d9de; /* dividers on the grey tint */
  --tint: #f5f5f7;
  --rose: #fdecee;
  --white: #fff;
  --container: 76rem;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  --gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  --panel: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  --radius: .75rem;
  --radius-lg: 1.25rem;
  --title-xl: clamp(1.875rem, 1.2rem + 3.4vw, 3.75rem);
  --title-lg: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem);
  --title-md: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
  --title-sm: 1.0625rem;
  --body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --intro: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --small: .875rem;
  --shadow: 0 .5rem 1.5rem -.5rem rgba(29, 29, 31, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #b9b9be var(--tint); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 var(--body)/1.6 "Noto Sans", "Helvetica Neue", Arial, sans-serif; accent-color: var(--brand); -webkit-text-size-adjust: 100%; }
::selection { background: var(--brand); color: var(--white); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; text-wrap: balance; }
h1 { font-size: var(--title-xl); font-weight: 800; letter-spacing: -.028em; line-height: 1.04; max-width: 20ch; overflow-wrap: break-word; hyphens: auto; } /* long words hyphenate instead of breaking mid-word */
h2 { font-size: var(--title-lg); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; max-width: 26ch; }
.section-layout > h2, .section-intro > h2:only-child { max-width: 36ch; } /* a heading alone on its row may run wider */
h3 { font-size: var(--title-md); font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: var(--title-sm); font-weight: 700; }
h2 > strong, h3 > strong { font-weight: inherit; }
p, ul, ol, dl, blockquote { margin: 0; max-width: var(--measure); }
p, li, blockquote, h1, h2, h3, h4, a { overflow-wrap: anywhere; }
p + p { margin-block-start: .875em; }
ul, ol { padding-inline-start: 1.25em; }
li + li { margin-block-start: .4em; }
li::marker { color: var(--brand); }
figure { margin: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-strong); text-underline-offset: .2em; text-decoration-thickness: .0625em; transition: color .2s; }
a:hover { color: var(--ink); }
:focus-visible { outline: .1875rem solid var(--brand); outline-offset: .1875rem; border-radius: .25rem; }
section[id], [id] { scroll-margin-top: 6rem; }
button, summary { font: inherit; color: inherit; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
address { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { flex: 0 0 auto; width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -.25em; }

/* Layout */
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--slim { padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
.section--hero { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) var(--section); }
.stack, .section-layout, .section-intro { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 1rem; min-width: 0; }
.stack > *, .section-layout > * { min-width: 0; }
.section-layout, .stack--loose { gap: var(--gap); }
.section-layout > h2 + *, .section-intro + * { margin-block-start: calc(var(--gap) * -.25); }
.section-layout--narrow > * { max-width: 48rem; }
.section-intro { width: 100%; gap: .875rem; }
.section-summary, .lead { color: var(--muted); font-size: var(--intro); line-height: 1.45; max-width: 58ch; }
.lead { color: var(--ink); font-weight: 600; }
.prose { width: 100%; }
.prose > * + * { margin-block-start: .8em; }
.prose > :is(h2, h3, h4):not(:first-child) { margin-block-start: 1.6em; }
.prose > :is(h2, h3, h4) + * { margin-block-start: .5em; }
.prose h2 { font-size: var(--title-md); letter-spacing: -.01em; line-height: 1.25; }
.meta { color: var(--muted); font-size: var(--small); font-weight: 600; }
.split { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap) clamp(2rem, 6vw, 5rem); align-items: start; }
.split--media { align-items: center; }
.split > * { min-width: 0; }
/* Sections alternate sides down a page: split--flip shows the picture first without changing the reading order. */
.split--flip > :first-child { order: 2; }
.split--big-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } /* a picture that needs room, such as a screenshot */
.split--flip.split--big-media { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.split--aside { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } /* a section without a picture: its title in the narrow column, its cards, videos or steps in the wide one */
.split--aside.split--flip { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.split--aside .press { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media { width: 100%; }
.media img { width: 100%; border-radius: var(--radius-lg); }
.media--contain img { width: auto; max-height: 34rem; margin-inline: auto; border-radius: var(--radius); }
.media--thumbnail img { aspect-ratio: 3 / 2; object-fit: cover; }
.section--hero .split .media img { aspect-ratio: 4 / 3; object-fit: cover; } /* a page top with a photo beside its title */
/* Beside a text column the picture is as tall as the text; on its own row it is 4:3. */
.split--media:has(> .media--mission) { align-items: stretch; }
.media--mission { display: grid; }
.media--mission img { height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Buttons and links */
.button { min-height: 2.875rem; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.4rem; border: .125rem solid var(--brand); border-radius: 62rem; background: var(--brand); color: var(--white); font-size: .9375rem; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.button:hover { color: var(--white); background: var(--brand-strong); border-color: var(--brand-strong); }
.button:active { transform: scale(.98); }
.button--outline { background: transparent; color: var(--brand-strong); }
.button--outline:hover { color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; max-width: none; }
.actions:has(.button) > .link-arrow { flex-basis: 100%; } /* at most two button styles share a row; a text link takes its own line */
.link-arrow { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.75rem; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .25s var(--ease); }
/* Text links that open a new tab carry a small arrow. */
:is(.prose, .section-summary, .card, .benefits) a[target="_blank"]:not(.button, .link-arrow)::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-inline-start: .2em; background: currentColor; -webkit-mask: url("icons/arrow-up-right.svg") center / contain no-repeat; mask: url("icons/arrow-up-right.svg") center / contain no-repeat; }
.link-arrow:hover .icon { transform: translateX(.25rem); }
.skip-link { position: absolute; left: 1rem; z-index: 10; transform: translateY(-130%); background: var(--white); padding: .75rem 1rem; }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(.75rem); }
.header-inner { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); min-height: 4.25rem; padding-block: .5rem; }
.logo { display: inline-flex; align-items: center; min-height: 2.75rem; flex-shrink: 0; margin-inline-end: auto; }
.logo img { width: auto; height: 2.75rem; }
.main-nav { display: flex; align-items: center; gap: clamp(0rem, .7vw, .75rem); }
.main-nav > a:not(.button), .nav-group > summary, .mobile-nav > summary { display: flex; align-items: center; gap: .25rem; min-height: 2.75rem; white-space: nowrap; padding-inline: .5rem; border-radius: .5rem; color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.main-nav > a:not(.button):hover, .nav-group > summary:hover { color: var(--brand-strong); }
.main-nav > a:not(.button)[aria-current="page"], .nav-group[data-active] > summary { color: var(--brand-strong); }
.main-nav .button { white-space: nowrap; min-height: 2.5rem; padding: .5rem 1.15rem; margin-inline: .25rem; }
/* On its own page the Contact button turns into an outline: "you are here". */
.main-nav .button[aria-current="page"], .mobile-nav .button[aria-current="page"] { background: transparent; color: var(--brand-strong); }
.nav-group { position: relative; min-width: 0; }
.nav-group > summary .icon { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.nav-group[open] > summary .icon { transform: rotate(180deg); }
.nav-group ul { list-style: none; padding: .5rem; margin: 0; max-width: none; }
.main-nav .nav-group ul { position: absolute; top: calc(100% + .5rem); left: 0; width: max-content; min-width: 12rem; max-width: 22rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); animation: menu-in .25s var(--ease); }
.main-nav .lang-menu ul { left: auto; right: 0; min-width: 9rem; }
.lang-menu > summary .icon:first-child { width: 1.125em; height: 1.125em; color: var(--muted); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-.375rem); } }
.nav-group li { margin: 0; }
.nav-group li a { display: flex; align-items: center; min-height: 2.75rem; padding: .375rem .75rem; border-radius: .5rem; color: var(--ink); font-size: .9375rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.nav-group li a:hover { background: var(--tint); }
.nav-group li a[aria-current] { color: var(--brand-strong); background: var(--tint); }
.nav-label { color: var(--ink); font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.nav-tagline { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.lang-switch { display: flex; list-style: none; padding: .1875rem; margin: 0; border: 1px solid var(--line); border-radius: 62rem; max-width: none; }
.lang-switch li { margin: 0; }
.lang-switch a { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding-inline: .5rem; border-radius: 62rem; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--white); }
.mobile-nav { display: none; }
.mobile-nav:not([open]) > nav, .nav-group:not([open]) > ul { display: none; }

/* Heroes */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero > * { min-width: 0; }
.hero-copy { display: grid; gap: 1.25rem; justify-items: start; }
.hero-title--home { font-size: clamp(1.75rem, 1.1rem + 3.2vw, 3.5rem); max-width: none; }
.hero-title--home .title-brand, .hero-title--home .title-line { display: block; }
.hero-title--home .title-brand { color: var(--brand); }
.hero-title--home .title-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* the pipes stay in the text, the lines replace them on screen */
/* Home: text and a larger video, then the three ways in and the numbers, all on the first screen. */
.hero-home { padding-block: clamp(1.25rem, .75rem + 1.5vw, 2rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.hero-home .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.hero-home .hero-title--home { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.5rem); }
.hero-home .hero-copy { gap: 1rem; }
.hero-extras { display: grid; gap: clamp(1rem, .75rem + 1vw, 1.5rem); margin-block-start: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.stats-block .stats strong { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); }
.stats-block .stats .icon { margin-block-end: .125rem; }
.hero-home .entry-links { max-width: none; margin: 0; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1rem, 2.5vw, 2rem); }
.hero-home .entry-links li { border-top: 1px solid var(--line); }
.hero--single { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; justify-items: start; }
.hero--single > .prose { max-width: var(--measure); }
/* "IMFAHE" is the page title and the first word of its opening sentence. */
.hero--banner { grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); justify-items: start; }
.hero--banner h1 { max-width: 28ch; font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.25rem); }
.hero--banner .hero-photo img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--radius-lg); }
.hero--banner .hero-photo { margin-block: .5rem; }
.media figcaption { margin-block-start: .375rem; color: var(--muted); font-size: .75rem; text-align: end; } /* photo credit, where the license asks for one */
.media figcaption a { color: inherit; }
.prose--cols { columns: 2 24rem; column-gap: clamp(2rem, 6vw, 5rem); max-width: none; }
.prose--cols > * { break-inside: avoid; }
.entry-links { list-style: none; padding: 0; margin: .5rem 0 0; width: 100%; max-width: 30rem; border-top: 1px solid var(--line); }
.entry-links li { margin: 0; border-bottom: 1px solid var(--line); }
.entry-links a { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding-block: .5rem; color: var(--ink); font-weight: 650; text-decoration: none; }
.entry-links a > .icon:first-child { color: var(--brand); }
.entry-links a > .icon:last-child { margin-inline-start: auto; color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.entry-links a:hover > .icon:last-child { transform: translateX(.25rem); color: var(--brand); }

/* Video */
.video { width: 100%; }
.video-trigger { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); cursor: pointer; text-align: left; box-shadow: var(--shadow); }
.video-trigger > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.video-trigger:hover > img { transform: scale(1.03); opacity: .9; }
.play-button { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: clamp(3.25rem, 2.5rem + 3vw, 4.75rem); aspect-ratio: 1; border-radius: 50%; background: var(--brand); color: var(--white); box-shadow: 0 .5rem 1.5rem -.25rem rgba(0, 0, 0, .45); transition: transform .3s var(--ease), background-color .2s; }
.play-button .icon { width: 42%; height: 42%; fill: currentColor; translate: 6% 0; }
.video-trigger:hover .play-button { transform: scale(1.08); background: var(--brand-strong); }
.video-grid .play-button { z-index: 1; inset: auto auto .625rem .75rem; margin: 0; width: 2.25rem; } /* several videos side by side: small, in the corner, so faces stay visible */
.video-grid .play-label { padding-inline-start: 3.625rem; }
.play-label { position: absolute; inset: auto 0 0; padding: 2.5rem 1rem .875rem; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: var(--white); font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.player { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); background: var(--ink); display: block; }
.video-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr)); gap: var(--gap) clamp(1rem, 2vw, 1.75rem); }
.video-card { display: grid; gap: .625rem; align-content: start; }
.video-card > p, .video-card .prose { color: var(--muted); font-size: .9375rem; }

/* Numbers */
.stats-block { display: grid; gap: 1.5rem; align-items: center; }
.stats-block h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); letter-spacing: -.015em; line-height: 1.15; max-width: 16ch; }
.stats { list-style: none; padding: 0; width: auto; max-width: none; display: flex; flex-wrap: wrap; row-gap: 1.5rem; overflow: hidden; --pad: clamp(1rem, 2.5vw, 1.75rem); margin: 0 0 0 calc(var(--pad) * -1); align-self: stretch; justify-self: stretch; }
/* Each item draws its own left rule; the one that starts a row is clipped by the list edge. */
.stats li { flex: 1 1 9.5rem; margin: 0 0 0 -1px; padding: .5rem var(--pad); border-inline-start: 1px solid var(--line); display: grid; gap: .25rem; align-content: start; }
.section--tint .stats li { border-color: var(--line-strong); }
.stats strong { color: var(--brand); font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: normal; }
.stats span { color: var(--muted); font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.stats .icon { color: var(--brand); width: 1.5rem; height: 1.5rem; margin-block-end: .375rem; }

/* Call band */
.band { background: var(--brand); color: var(--white); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.band h2 { color: inherit; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.75rem); max-width: 34ch; }
.band h2 a { color: inherit; text-decoration: none; }
.band .button { background: var(--white); border-color: var(--white); color: var(--brand-strong); }
.band .button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.band .button--outline { background: transparent; color: var(--white); }
/* Quiet band: the same one-row layout on grey, thinner, for a statement that is not the page's main call. */
.band--quiet { background: var(--tint); color: var(--ink); }
.band--quiet .wrap { padding-block: 1.25rem; }
.band--quiet .wrap > div { flex: 1 1 20rem; } /* the text wraps before the button drops to its own row */
.band--quiet h2 { font-size: 1.0625rem; max-width: none; }
.band--quiet p { color: var(--muted); font-size: .9375rem; max-width: none; margin-block-start: .25rem; }
.band--quiet .button { background: transparent; border-color: var(--brand); color: var(--brand-strong); }
.band--quiet .button:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--white); }

/* Partner logos */
.logos { list-style: none; padding: 0; margin: 0; width: 100%; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logos li { margin: 0; background: var(--white); }
.logos a { display: grid; place-items: center; height: 6.5rem; padding: 1rem 1.25rem; transition: background-color .2s; }
.logos a:hover { background: var(--tint); }
.logos img { width: auto; height: auto; max-width: 100%; max-height: 3.25rem; object-fit: contain; }
.logos img[data-shape="square"] { max-height: 4.25rem; }
/* Each logo on its own card. With motion allowed, the cards appear one after another the first time the wall is seen. */
.logos--cards { gap: .75rem; border: 0; background: none; border-radius: 0; overflow: visible; }
.logos--cards li { border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .3s var(--ease), translate .3s var(--ease); }
.logos--cards li:hover { border-color: var(--ink); box-shadow: var(--shadow); translate: 0 -.125rem; }
.logos--cards a { border-radius: var(--radius); }
.logos--cards a:hover { background: none; }
.logos--cards img { transition: transform .3s var(--ease); }
.logos--cards a:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
  .logos--cards.is-waiting li { opacity: 0; }
  .logos--cards.is-in li { animation: logo-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
  @keyframes logo-in { from { opacity: 0; transform: translateY(.75rem) scale(.96); } }
}
.section-intro .entry-links { max-width: none; margin: 0; }

/* Pillars and cards */
.pillars { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pillar { display: grid; grid-template-rows: auto 1fr; gap: 1.25rem; min-width: 0; }
.pillar-body { display: grid; grid-template-rows: auto 1fr; gap: .875rem; justify-items: start; } /* the text row stretches, so the links line up at the foot */
.pillar-body .prose h4 { margin-block-start: 1em; }
.pillar-body h2 { font-size: var(--title-md); letter-spacing: -.01em; line-height: 1.2; }
.pillar-body > .icon { width: 2rem; height: 2rem; color: var(--brand); }
/* Tabs: one block shown at a time. Every block uses the same cells, so the picture, title, text and
   links sit in exactly the same place whichever tab is open. Without :has() support all blocks show, stacked. */
.tabs { width: 100%; display: grid; gap: var(--gap); }
.tab-list { display: none; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: 1rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-block-end: var(--gap); }
.tab-panel > .media { grid-column: 2; grid-row: 1 / span 3; }
.tab-panel > :not(.media) { grid-column: 1; }
.tab-panel .media img { aspect-ratio: 4 / 3; object-fit: cover; }
.tab-panel > .button { justify-self: start; margin-block-start: .25rem; }
@supports selector(:has(*)) {
  /* The tabs span the full width in equal parts, with a line under the open one. */
  .tab-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  .tab-list input { position: absolute; opacity: 0; pointer-events: none; }
  .tab-list label { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: .5rem 1rem; margin-block-end: -1px; border-bottom: .1875rem solid transparent; color: var(--muted); font-size: 1rem; font-weight: 700; line-height: 1.25; text-align: center; cursor: pointer; transition: color .2s, border-color .2s; }
  .tab-list label:hover { color: var(--ink); }
  .tab-list label .icon { width: 1.25rem; height: 1.25rem; }
  .tab-list input:checked + label { color: var(--ink); border-bottom-color: var(--brand); }
  .tab-list input:checked + label .icon { color: var(--brand); }
  .tab-list input:focus-visible + label { outline: .1875rem solid var(--brand); outline-offset: -.1875rem; border-radius: .25rem; }
  .tab-panels { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); grid-template-rows: auto auto 1fr; gap: 1rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
  .tab-panel { display: contents; }
  .tab-panel > .media { grid-column: 2; grid-row: 1 / span 3; }
  .tab-panel > h3 { grid-row: 1; }
  .tab-panel > .prose { grid-row: 2; }
  .tab-panel > :last-child { grid-row: 3; }
  .tab-panel > * { visibility: hidden; }
  .tabs:has(input:nth-of-type(1):checked) .tab-panel:nth-child(1) > *,
  .tabs:has(input:nth-of-type(2):checked) .tab-panel:nth-child(2) > *,
  .tabs:has(input:nth-of-type(3):checked) .tab-panel:nth-child(3) > *,
  .tabs:has(input:nth-of-type(4):checked) .tab-panel:nth-child(4) > * { visibility: visible; }
}
.cards { list-style: none; padding: 0; margin: 0; width: 100%; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: 1rem; }
.card { margin: 0; padding: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); display: grid; gap: .625rem; align-content: start; }
.card > .icon { width: 1.75rem; height: 1.75rem; color: var(--brand); }
.card ul { font-size: .9375rem; }

/* Benefits: what used to be "why join" infographics */
.benefits { list-style: none; padding: 0; margin: 0; width: 100%; max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 5rem); }
.benefits--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.benefits--1 { grid-template-columns: minmax(0, 1fr); }
.benefits li { margin: 0; padding-block: 1.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem 1.125rem; align-content: start; }
.section--tint .benefits li, .section--tint .steps li::before { border-color: var(--line-strong); }
.benefits li > .icon { grid-row: 1 / span 3; width: 3rem; height: 3rem; padding: .7rem; border-radius: 50%; background: var(--rose); color: var(--brand); stroke-width: 1.75; }
.benefits li > :not(.icon) { grid-column: 2; margin: 0; }
.benefit-tag { color: var(--brand-strong); font-weight: 700; font-size: .9375rem; }
.benefits li > p:not(.benefit-tag) { color: var(--muted); font-size: .9375rem; }

/* Steps: what used to be "how it works" infographics */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; width: 100%; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: 2rem clamp(1.25rem, 3vw, 2.5rem); }
.steps li { counter-increment: step; margin: 0; position: relative; padding-block-start: 4rem; display: grid; gap: .5rem; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--brand); color: var(--white); font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.steps li::after { content: ""; position: absolute; top: 1.5rem; left: 3.5rem; right: calc(clamp(1.25rem, 3vw, 2.5rem) * -1 + .5rem); border-top: 1px dashed #c9c9ce; }
.steps li:last-child::after { display: none; }
/* Five or six steps read better as two rows of three than as an uneven row. */
.steps:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps:has(> :nth-child(5)) li:nth-child(3n)::after { display: none; }
.steps li > p { color: var(--muted); font-size: .9375rem; margin: 0; }
.steps-note { display: flex; align-items: center; gap: .625rem; color: var(--ink); font-weight: 700; }
.steps-note .icon { color: var(--brand); }

/* Expandable rows */
.accordion { width: 100%; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding-block: .75rem; color: var(--ink); font-weight: 700; line-height: 1.35; }
.accordion summary:hover { color: var(--brand-strong); }
.accordion summary::after { content: ""; flex: 0 0 auto; width: .625rem; height: .625rem; margin-inline-end: .375rem; border: solid currentColor; border-width: 0 .125rem .125rem 0; rotate: 45deg; translate: 0 -.1875rem; transition: rotate .25s var(--ease), translate .25s var(--ease); }
.accordion details[open] summary::after { rotate: 225deg; translate: 0 .125rem; }
.accordion details > :not(summary) { padding-block-end: 1.125rem; color: var(--muted); max-width: 62ch; }
.section--tint .accordion, .section--tint .accordion details { border-color: var(--line-strong); }

/* Quotes */
.quotes { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: var(--gap); }
.quote { display: grid; grid-template-rows: auto 1fr; gap: 1.25rem; padding: var(--panel); border-radius: var(--radius-lg); background: var(--tint); }
.section--tint .quote { background: var(--white); }
.quote blockquote { margin: 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.55; }
.quote blockquote::before { content: "“"; display: block; height: 2.25rem; color: var(--brand); font-size: 4rem; font-weight: 800; line-height: 1; }
.quote figcaption { order: -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .125rem 1.125rem; align-items: center; } /* shown above the words; read after them */
.quote figcaption img { grid-row: 1 / span 2; width: 6.5rem; height: 6.5rem; border-radius: 50%; object-fit: cover; }
.quote figcaption h3 { font-size: 1rem; align-self: end; }
.quote figcaption p { color: var(--muted); font-size: .8125rem; line-height: 1.4; align-self: start; margin: 0; }

/* Closing call to action */
.cta { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.cta > * { min-width: 0; }
.cta--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.cta--flip > .media { order: 2; } /* picture on the right when the section before it has its visual on the left */
.cta .media img { aspect-ratio: 4 / 5; object-fit: cover; max-height: 32rem; }
.cta--plain { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 1.125rem; }
/* A short closing call with no body text sits centered. */
.cta--plain:not(:has(.prose)) { justify-items: center; text-align: center; }
.cta--plain:not(:has(.prose)) > * { margin-inline: auto; }
.cta--plain > .stack { width: 100%; }
.email-plain { color: var(--ink); font-size: var(--title-md); font-weight: 700; user-select: all; }

/* Team */
/* Team: one grid of portrait cards, the photo filling the top of each */
.team { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.photo-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; align-content: start; padding-block-end: .75rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.photo-card .media { margin-block-end: .625rem; }
.photo-card .media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
.photo-card > :not(.media) { padding-inline: 1rem; }
.photo-card :is(h3, h4) { font-size: 1rem; line-height: 1.3; }
.card-role { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.photo-card .socials { padding-inline: .5rem; }
.socials { display: flex; flex-wrap: wrap; gap: .25rem; }
.socials a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--muted); transition: color .2s, background-color .2s; }
.socials a:hover { color: var(--brand-strong); background: var(--rose); }
/* A quiet closing line with the social icons to its right, set apart from the button above by a line */
.follow { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-block-start: .75rem; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: .9375rem; }
.follow p { margin: 0; flex: 1 1 16rem; }
.follow .socials { margin-inline-end: -.5rem; }
.follow > div:first-child { flex: 1 1 16rem; display: grid; gap: .25rem; } /* two short lines on the left, the action and its note on the right */
.follow > .stack { gap: .375rem; justify-items: end; text-align: end; }
.photo-card .socials a { width: 2.75rem; height: 2.75rem; }
.photo-card .socials .icon { width: 1.125rem; height: 1.125rem; }

/* Events */
.timeline { list-style: none; padding: 0; margin: 0; width: 100%; max-width: none; }
.event { margin: 0; display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 18rem); gap: 1rem clamp(1.25rem, 3vw, 2.5rem); padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-top: 1px solid var(--line-strong); align-items: start; }
.event-date { color: var(--brand-strong); font-weight: 800; font-size: 1.0625rem; line-height: 1.3; margin: 0; }
.event-date::first-letter { text-transform: uppercase; } /* Spanish and Portuguese months are written lowercase */
.event-body { display: grid; gap: .625rem; }
.event .media img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

/* Tables */
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table caption { text-align: start; padding-block-end: .75rem; color: var(--ink); font-weight: 700; }
.table :is(td, th) { padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.table th { color: var(--ink); font-weight: 700; }
.table thead th { font-size: .8125rem; color: var(--muted); border-bottom-color: var(--ink); }
.table td.num, .table th.num { text-align: end; padding-inline-end: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; }
.table :is(td, th) { padding: .75rem 1rem; }
.table td.num, .table th.num { padding-inline-end: 1rem; }
.table thead th { background: var(--tint); border-bottom-color: var(--line-strong); }
.table thead th:first-child { border-start-start-radius: var(--radius); }
.table thead th:last-child { border-start-end-radius: var(--radius); }
.table tbody th { width: 26%; }
.table tbody tr:last-child :is(td, th) { border-bottom: 0; }
.to-end { justify-self: end; text-align: end; max-width: none; } /* a closing note that sits on the right */
.to-center { justify-self: center; text-align: center; }

/* Related programs */
.related { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.related .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; } /* same columns as How to join */
.related h2 { font-size: var(--title-md); letter-spacing: -.01em; }
.related-list { list-style: none; padding: 0; margin: 0; width: 100%; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block-start: 0; }
.related-list li { margin: 0; display: grid; }
.related-card { position: relative; display: grid; gap: .25rem; align-content: start; padding: 1.25rem 3.25rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.related-card .nav-label { font-size: 1.0625rem; }
.related-card .icon { position: absolute; top: 1.25rem; right: 1.25rem; color: var(--brand); transition: transform .25s var(--ease); }
.related-card:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-.125rem); }
.related-card:hover .icon { transform: translateX(.25rem); }

/* Network map: a dotted world, connection lines and one logo per organization. The build draws it from content/network.json. */
.netmap { width: 100%; margin: 0; }
.netmap svg { display: block; width: 100%; height: auto; overflow: visible; }
.netmap-title { margin-block-end: .75rem; color: var(--ink); font-size: var(--title-md); font-weight: 750; letter-spacing: -.01em; }
.netmap-note { max-width: none; margin: 1rem 0 0; text-wrap: pretty; color: var(--muted); font-size: .75rem; line-height: 1.5; } /* the affiliations disclaimer the organization asked for */
.netmap-lines path { fill: none; stroke: var(--brand); stroke-width: .55; opacity: .5; }
.netmap-dots circle { fill: var(--brand); }
.netmap-plate { fill: var(--white); fill-opacity: .62; } /* see-through, so the map's dots show under each logo */
.netmap-org image { filter: grayscale(1) brightness(.72) contrast(1.6); mix-blend-mode: multiply; } /* one dark ink for every logo, pale colors included */
.netmap-flat :is(image, img) { filter: grayscale(1) contrast(1.15); } /* a white background must stay white to blend away */
.netmap-org text { fill: var(--ink); font-weight: 750; }
/* Collage: the same map and animated lines, joining a few photos to the IMFAHE logo */
.netmap--collage .netmap-org { display: inline; }
.netmap--collage .netmap-org image { filter: none; mix-blend-mode: normal; }
.netmap--collage .netmap-lines path { stroke-width: 1.5; opacity: .85; }
.collage-logo rect { fill: var(--white); stroke: var(--line-strong); }
.section--hero .split:has(> .netmap) h1 { font-size: clamp(1.875rem, 1.2rem + 2.2vw, 2.75rem); }
.netmap-list { display: none; list-style: none; padding: 0; margin: 1rem 0 0; max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; }
.netmap-list li { margin: 0; display: grid; place-items: center; min-height: 3rem; padding: .375rem .5rem; border: 1px solid var(--line); border-radius: .375rem; font-size: .6875rem; font-weight: 700; line-height: 1.15; text-align: center; }
.netmap-list img { width: auto; height: auto; max-width: 100%; max-height: 2rem; object-fit: contain; filter: grayscale(1) brightness(.72) contrast(1.6); }
.netmap-list .netmap-flat img { filter: grayscale(1) contrast(1.15); }
@media (prefers-reduced-motion: no-preference) {
  /* site.js marks the map as waiting, then in view: the world fades in, the lines draw themselves, the logos follow */
  .netmap.is-waiting :is(.netmap-world, .netmap-dots circle, .netmap-org) { opacity: 0; }
  .netmap.is-waiting .netmap-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .netmap.is-in .netmap-world { animation: netmap-fade .8s ease-out both; }
  .netmap.is-in .netmap-lines path { stroke-dasharray: 1; animation: netmap-draw 1.2s ease-out both; animation-delay: calc(.4s + var(--i, 0) * 14ms); }
  .netmap.is-in .netmap-dots circle { animation: netmap-fade .4s ease-out both; animation-delay: calc(1.2s + var(--i, 0) * 14ms); }
  .netmap.is-in .netmap-org { animation: netmap-fade .45s ease-out both; animation-delay: calc(1.6s + var(--i, 0) * 22ms); }
  @keyframes netmap-fade { from { opacity: 0; } }
  @keyframes netmap-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}

/* Press: one card per piece of coverage, the source above the headline; the whole card is the link */
.press { list-style: none; padding: 0; margin: 0; width: 100%; max-width: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.press li { margin: 0; display: grid; }
.press a { display: grid; grid-template-rows: auto auto 1fr auto; gap: .5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.press a:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-.125rem); }
.press a > .icon:first-child { width: 1.75rem; height: 1.75rem; color: var(--brand); }
.press a > .icon:last-child { justify-self: end; color: var(--muted); transition: color .2s; }
.press a:hover > .icon:last-child { color: var(--brand); }
.press-source { color: var(--brand-strong); font-size: .8125rem; font-weight: 700; }
.press-title { font-size: 1.0625rem; font-weight: 650; line-height: 1.35; }

/* Public calls: one row per organization with its logo, deadline and links. site.js adds is-closed after the deadline day. */
.calls { list-style: none; padding: 0; margin: 0; width: 100%; max-width: none; display: grid; gap: .75rem; }
.calls li { margin: 0; display: grid; grid-template-columns: 8rem minmax(11rem, 1fr) auto; gap: .75rem 1.5rem; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); }
.call-logo { display: grid; place-items: center; height: 3.5rem; }
.call-logo img { width: auto; height: auto; max-width: 100%; max-height: 3.5rem; object-fit: contain; }
.calls h3 { font-size: var(--title-md); letter-spacing: -.01em; }
.call-deadline { color: var(--muted); font-size: .9375rem; margin-block-start: .25rem; max-width: none; }
.call-status { margin-inline-start: .375rem; color: var(--ink); font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.calls .actions { justify-content: flex-end; }
.calls .is-closed .call-logo { filter: grayscale(1); opacity: .55; }
.calls .is-closed h3 { color: var(--muted); }

/* How to join: the shared closing call for pages that have none of their own */
.join { background: var(--rose); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.join-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
/* The three ways share their rows, so icons, titles, texts and links line up even when one title wraps. */
.join-list { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem clamp(1.5rem, 4vw, 3.5rem); }
.join-list li { margin: 0; display: grid; grid-template-rows: subgrid; grid-row: span 4; justify-items: start; }
.join-list .icon:first-child { width: 1.75rem; height: 1.75rem; color: var(--brand); margin-block-end: .25rem; }
.join-list h3 { align-self: end; }
.join-list p { color: var(--text); font-size: .9375rem; }
/* A page's own version: its title and button on one row, four ways below */
.join-head { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.join-list--4 { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(1.25rem, 2.5vw, 2rem); }

/* Footer: site map, then one thin legal line. Compact: small type, links close together. */
.site-footer { border-top: 1px solid var(--line); background: var(--tint); padding-block: clamp(1.5rem, 1.25rem + 1.5vw, 2.25rem) .375rem; color: var(--muted); font-size: .78125rem; line-height: 1.4; }
.site-footer h3 { font-size: .78125rem; letter-spacing: 0; line-height: 1.4; }
.footer-main { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.5rem clamp(2.5rem, 7vw, 6rem); padding-block-end: clamp(1rem, .75rem + 1vw, 1.5rem); }
.footer-brand { display: grid; gap: .5rem; justify-items: start; align-content: start; }
.footer-brand .logo { min-height: 0; }
.footer-brand .logo img { height: 2.25rem; }
/* Columns take the width of their text and spread to both edges, so the last one ends where the legal line ends. */
.footer-nav { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 1.5rem 2rem; }
.footer-nav div { display: grid; gap: .125rem; align-content: start; max-width: 14.5rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.footer-nav li { margin: 0; }
.footer-nav a { display: block; padding-block: .1875rem; color: var(--text); text-decoration: none; } /* rows stay 24px tall, the minimum comfortable click target */
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--brand-strong); }
.site-footer .socials { margin-inline-start: -.125rem; }
.site-footer .socials a { width: 2rem; height: 2rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.site-footer .socials a:hover { color: var(--white); background: var(--brand); border-color: var(--brand); }
.site-footer .socials .icon { width: 1rem; height: 1rem; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 2rem; padding-block-start: .5rem; border-top: 1px solid var(--line-strong); font-size: .71875rem; }
.footer-legal p { max-width: none; }
.footer-legal p a { color: inherit; }
.footer-legal .link-button { min-height: 1.5rem; color: var(--muted); font-size: inherit; font-weight: 400; text-decoration: underline; text-underline-offset: .2em; }

/* Cookie question: a small card in the corner, never over the whole page */
.consent { position: fixed; inset: auto 1rem 1rem auto; z-index: 6; width: min(26rem, calc(100% - 2rem)); display: grid; gap: .875rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); font-size: .9375rem; }
.consent[hidden] { display: none; }
.consent .button { min-height: 2.75rem; padding: .5rem 1.15rem; }
.link-button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 600; cursor: pointer; }
.link-button:hover { color: var(--brand-strong); }

/* Scroll reveal: content is visible by default; site.js eases a section in once, the first time it scrolls into view.
   The fade runs on a timer, not on the scroll position, so a section can never rest half faded. */
@media (prefers-reduced-motion: no-preference) {
  .wrap.is-waiting { opacity: 0; transform: translateY(1.5rem); }
  .wrap.is-in { transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .section--hero .hero > * { animation: hero-in .9s var(--ease) both; }
  .section--hero .hero > :nth-child(2) { animation-delay: .08s; }
  .section--hero .hero > :nth-child(3) { animation-delay: .16s; }
  .section--hero .hero > :nth-child(4) { animation-delay: .24s; }
  @keyframes hero-in { from { opacity: 0; transform: translateY(1rem); } }
}
/* On paper nothing waits to scroll into view. */
@media print {
  .is-waiting, .is-waiting * { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Wide screens: fill the row instead of stacking everything in the left half. */
@media (min-width: 64.0625rem) {
  /* Section header: heading on the left, its intro on the right. */
  .section-layout > .section-intro:has(> h2 + *) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 5rem); row-gap: 0; align-items: start; }
  .section-layout > .section-intro:has(> h2 + *) > :not(h2) ~ :not(h2) { margin-block-start: .875rem; }
  .section-layout > .section-intro:has(> h2 + *) > h2 { grid-column: 1; grid-row: 1 / span 4; }
  .section-layout > .section-intro:has(> h2 + *) > :not(h2) { grid-column: 2; }
  /* Title on the right for a section whose content needs the full width: the heading takes the right half, any summary the left. */
  .section-layout > .section-intro.section-intro--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 5rem); row-gap: 0; align-items: start; }
  .section-layout > .section-intro.section-intro--flip > h2 { grid-column: 2; grid-row: 1 / span 4; }
  .section-layout > .section-intro.section-intro--flip > :not(h2) { grid-column: 1; }
  /* A heading followed only by text: heading in a narrow column, text beside it. */
  .section-layout:has(> h2:first-child + .prose:last-child), .cta--plain > .stack:has(> .prose) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: clamp(2rem, 6vw, 5rem); align-items: start; }
  .cta--plain > .stack:has(> .prose) { row-gap: 0; }
  .cta--plain > .stack:has(> .prose) > :not(h2) ~ :not(h2) { margin-block-start: 1rem; }
  .cta--plain > .stack:has(> .prose) > h2 { grid-column: 1; grid-row: 1 / span 4; }
  .cta--plain > .stack:has(> .prose) > :not(h2) { grid-column: 2; }
  .cta--plain.cta--flip > .stack:has(> .prose) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } /* title on the right */
  .cta--plain.cta--flip > .stack:has(> .prose) > h2 { grid-column: 2; }
  .cta--plain.cta--flip > .stack:has(> .prose) > :not(h2) { grid-column: 1; }
  /* Page tops without a picture: title on the left, the rest on the right. */
  .hero--single:has(> h1) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 5rem); row-gap: 0; align-items: start; }
  .hero--single:has(> h1) > :not(h1) ~ :not(h1) { margin-block-start: 1.25rem; }
  .hero--single:has(> h1) > h1 { grid-column: 1; grid-row: 1 / span 6; }
  .hero--single:has(> h1) > :not(h1) { grid-column: 2; }
  .stats-block { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); column-gap: clamp(2rem, 5vw, 4rem); }
  /* Team: group name in a narrow column, people beside it. */
  /* Page tops with a banner: title on the left, tagline and button on the right, picture below both. */
  .hero--banner:has(> .lead) { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: clamp(2rem, 6vw, 5rem); align-items: end; }
  .hero--banner:has(> .lead) > h1 { grid-column: 1; grid-row: 1 / span 2; }
  .hero--banner:has(> .lead) > :is(.lead, .button, .actions) { grid-column: 2; }
  .hero--banner:has(> .lead) > :is(figure, .prose) { grid-column: 1 / -1; }
}

/* Below this width the menu button replaces the row of links, so labels never wrap. */
@media (max-width: 60rem) {
  .split--aside, .split--aside.split--flip { grid-template-columns: minmax(0, 1fr); }
  .split--aside.split--flip > :first-child { order: 0; }
}

/* The bar needs about 1150px in its longest language (Spanish), so below that it becomes the Menu button. */
@media (max-width: 73rem) {
  .main-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav > summary { padding-inline: .875rem; border: 1px solid var(--line); border-radius: 62rem; }
  .mobile-nav > nav { position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - 4.25rem); overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; padding: 1rem var(--gutter) 1.5rem; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .mobile-nav > nav > a:not(.button), .mobile-nav .nav-group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 3rem; color: var(--ink); font-weight: 700; text-decoration: none; }
  .mobile-nav .nav-group > summary { padding-inline: 0; }
  .mobile-nav .nav-group ul { padding: 0 0 .5rem; }
  .mobile-nav .button { margin-block-start: .5rem; justify-self: start; }
  .mobile-nav .lang-switch { justify-self: start; margin-block-start: .75rem; }
}

@media (max-width: 64rem) {
  /* Tablet: a tab name can wrap to two lines, so its icon sits above it instead of drifting left. */
  .tab-list label { flex-direction: column; justify-content: flex-start; gap: .25rem; padding-inline: .5rem; }
  .join-inner, .footer-main, .related .wrap { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .join-list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-list--4 li:nth-child(n+3) { margin-block-start: 1.5rem; }
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .press { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: auto; align-items: start; }
  .benefits--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event { grid-template-columns: minmax(0, 1fr) minmax(0, 14rem); }
  .event-date { grid-column: 1 / -1; }
}

@media (max-width: 45rem) {
  .hero, .split, .cta, .pillar, .benefits, .benefits--3, .event { grid-template-columns: minmax(0, 1fr); }
  .join-list, .related-list, .press { grid-template-columns: minmax(0, 1fr); }
  .netmap-org { display: none; } /* too small to read on a phone: the lines stay, the logos move to the grid below */
  .netmap-list { display: grid; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .calls li { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .calls .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .split--flip > :first-child, .cta--flip > .media { order: 0; }
  .split--flip.split--big-media, .join-list--4 { grid-template-columns: minmax(0, 1fr); }
  .join-list--4 li:nth-child(n+3) { margin-block-start: 0; }
  .tab-panel, .tab-panels { grid-template-columns: minmax(0, 1fr); }
  .tab-panel > .media, .tab-panel > :not(.media) { grid-column: 1; }
  .tab-panel > .media { grid-row: 1; }
  .tab-panel > h3 { grid-row: 2; }
  .tab-panel > .prose { grid-row: 3; }
  .tab-panel > :last-child { grid-row: 4; }
  .tab-panels { grid-template-rows: none; }
  /* On a phone the tab names are too long for one row: they stack, and the open one is marked by its line. */
  .tab-list { grid-auto-flow: row; border-bottom: 0; }
  .tab-list label { flex-direction: row; gap: .5rem; justify-content: flex-start; padding-inline: 0; border-bottom: 1px solid var(--line); margin: 0; }
  .tab-list input:checked + label { border-bottom: .1875rem solid var(--brand); }
  .hero-home .hero, .hero-home .entry-links { grid-template-columns: minmax(0, 1fr); }
  .hero-home .entry-links li + li { border-top: 0; }
  .join-list li + li { margin-block-start: 1.25rem; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .footer-nav a { padding-block: .5625rem; } /* fingers need more room than a mouse */
  .site-footer .socials a { width: 2.75rem; height: 2.75rem; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos a { height: 5.5rem; }
  .steps, .steps:has(> :nth-child(5)) { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .steps li { padding: 0 0 0 4rem; min-height: 3rem; }
  .steps li::after, .steps:has(> :nth-child(5)) li:nth-child(3n):not(:last-child)::after { display: block; top: 3.5rem; bottom: -1.5rem; left: 1.5rem; right: auto; border-top: 0; border-left: 1px dashed #c9c9ce; }
  .cta .media img { aspect-ratio: 3 / 2; }
  .hero--banner .hero-photo img { aspect-ratio: 2 / 1; }
  .logo img { height: 2.5rem; }
}
