@font-face { font-family: "Amiri Quran"; src: url("/fonts/amiri-quran-arabic-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("/fonts/readex-pro-arabic-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; src: url("/fonts/readex-pro-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex Pro"; src: url("/fonts/readex-pro-latin-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --green-950: #06371d;
  --green-900: #0a4a27;
  --green-800: #0d5c30;
  --green-700: #11723c;
  --green-500: #2d9a57;
  --green-100: #e4f3e8;
  --gold: #f7bb1e;
  --gold-dark: #e0a30c;
  --gold-soft: #fdf3d7;
  --sand: #f6f1e4;
  --bg: #fbfcf8;
  --white: #fff;
  --ink: #17281e;
  --muted: #54655b;
  --line: #dfe5dc;
  --danger: #a43a17;
  --radius: 16px;
  --shadow: 0 8px 26px rgba(10, 74, 39, .1);
  --gutter: clamp(16px, 3.5vw, 40px);
  --section: clamp(48px, 7vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Readex Pro", "Segoe UI", Tahoma, sans-serif; font-size: 1.0313rem; font-weight: 400; line-height: 1.7; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--green-800); font-weight: 700; line-height: 1.25; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.4; }
h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(32px, 5vw, 60px); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--green-900); color: var(--white); border-radius: 8px; }
.skip:focus { top: 12px; }
.icon { flex: none; width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
[dir="ltr"] .icon-arrow { transform: scaleX(-1); }

.kicker { margin: 0 0 .5rem; color: var(--green-700); font-size: .95rem; font-weight: 500; }
.kicker-mint { color: var(--gold); }
.lead { max-width: 62ch; font-size: clamp(1.08rem, 1.6vw, 1.25rem); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 11px 26px; border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 42px; padding: 7px 20px; font-size: .95rem; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--green-950); box-shadow: 0 6px 18px rgba(224, 163, 12, .35); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-solid { background: var(--green-700); color: var(--white); }
.btn-solid:hover { background: var(--green-800); }
.btn-mint { background: var(--gold); color: var(--green-950); }
.btn-mint:hover { background: var(--gold-dark); }
.btn-line { border-color: var(--green-700); color: var(--green-800); }
.btn-line:hover { background: var(--green-100); }
.btn-line-light { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn-line-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-paper { background: var(--white); color: var(--green-900); }
.btn-paper:hover { background: var(--gold); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.link-arrow, .link-back { display: inline-flex; align-items: center; gap: 6px; color: var(--green-800); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link-arrow::after { content: "→"; }
[dir="rtl"] .link-arrow::after { content: "←"; }
.link-back::before { content: "←"; }
[dir="rtl"] .link-back::before { content: "→"; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; border: 1.5px solid var(--green-700); border-radius: 999px; color: var(--green-800); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pill-link:hover { background: var(--green-700); color: var(--white); }

/* Top bar and header */
.topbar { background: var(--green-900); color: #e6f2ea; font-size: .86rem; }
.topbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; min-height: 40px; }
.topbar-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.topbar-info li { display: flex; align-items: center; gap: 7px; }
.topbar-info li + li { padding-inline-start: 20px; border-inline-start: 1px solid rgba(255, 255, 255, .25); }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .icon { width: 1.05em; height: 1.05em; color: var(--gold); }
.topbar-end { display: flex; align-items: center; gap: 18px; }
.topbar-tag { display: flex; align-items: center; gap: 7px; }
.lang-menu { position: relative; z-index: 60; }
.lang-menu summary { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid rgb(255 255 255 / .28); border-radius: 999px; font-size: .84rem; font-weight: 600; cursor: pointer; list-style: none; user-select: none; transition: background .2s, border-color .2s; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: rgb(255 255 255 / .12); border-color: var(--gold); }
.lang-menu summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-globe { color: var(--gold); }
.lang-chevron { transition: transform .3s ease; }
.lang-menu[open] .lang-chevron { transform: rotate(180deg); }
.lang-list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgb(0 0 0 / .22); color: var(--green-950); transform-origin: top; }
.lang-list::before { content: ""; position: absolute; top: -6px; inset-inline-end: 22px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.lang-list a { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: inherit; font-size: .95rem; font-weight: 500; text-decoration: none; transition: background .15s; }
.lang-list a:hover, .lang-list a:focus-visible { background: #eef6f1; outline: none; }
.lang-list a[aria-current] { font-weight: 700; }
.lang-code { display: grid; place-items: center; width: 30px; height: 26px; border-radius: 7px; background: #eef3f0; font-size: .75rem; font-weight: 700; }
.lang-list a[aria-current] .lang-code { background: var(--gold); color: var(--green-950); }
.lang-check { margin-inline-start: auto; color: var(--green-700); }
@media (prefers-reduced-motion: no-preference) {
  .lang-menu[open] .lang-list { animation: lang-pop .28s cubic-bezier(.34, 1.4, .5, 1); }
  .lang-menu[open] .lang-list li { animation: lang-item .3s ease both; animation-delay: calc(var(--i) * 50ms + 60ms); }
}
@keyframes lang-pop { from { opacity: 0; transform: translateY(-8px) scale(.94); } }
@keyframes lang-item { from { opacity: 0; transform: translateY(-6px); } }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); box-shadow: 0 2px 12px rgba(10, 74, 39, .08); }
.header-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--green-800); text-decoration: none; }
.brand img { width: 58px; height: 58px; }
.brand span { display: grid; line-height: 1.3; }
.brand strong { font-size: 1.22rem; font-weight: 700; white-space: nowrap; }
.brand small { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.site-nav ul { display: flex; align-items: center; gap: clamp(12px, 1.25vw, 26px); }
.site-nav li a { display: block; padding: 26px 0 23px; border-bottom: 3px solid transparent; font-size: .97rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav li a:hover { color: var(--green-700); }
.site-nav li a[aria-current] { border-bottom-color: var(--green-700); color: var(--green-700); font-weight: 700; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--green-800); font: inherit; font-size: .95rem; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before { display: block; width: 18px; height: 2px; background: currentColor; }
.menu-toggle span { position: relative; transform: translateY(-3px); }
.menu-toggle span::before { content: ""; position: absolute; top: 6px; }

/* Wave dividers */
.wave { position: absolute; bottom: -1px; left: 0; z-index: 2; width: 100%; height: clamp(40px, 6vw, 84px); pointer-events: none; }
.wave-fill { fill: var(--bg); }
.wave-gold { fill: none; stroke: var(--gold); stroke-width: 3; vector-effect: non-scaling-stroke; }
.wave-top { top: -1px; bottom: auto; transform: scaleY(-1); }

/* Zellige corner pattern */
.zellige { position: absolute; top: 0; inset-inline-end: 0; z-index: 1; width: clamp(120px, 20vw, 300px); height: 100%; background: url("/img/zellige.svg") 0 0 / 76px; pointer-events: none; opacity: .5; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(520px, 44vw, 640px); background: var(--green-900); color: var(--white); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(6, 55, 29, .92) 0%, rgba(6, 55, 29, .8) 38%, rgba(6, 55, 29, .1) 68%, rgba(6, 55, 29, .22) 100%); }
[dir="rtl"] .hero::before { background: linear-gradient(to left, rgba(6, 55, 29, .92) 0%, rgba(6, 55, 29, .8) 38%, rgba(6, 55, 29, .1) 68%, rgba(6, 55, 29, .22) 100%); }
.hero-grid { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 56px); padding-block: clamp(36px, 5vw, 56px) clamp(70px, 8vw, 110px); }
.hero-text { max-width: 620px; }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 5.6vw, 4.5rem); text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-lead { margin-block: 1rem 1.75rem; font-size: clamp(1.05rem, 1.55vw, 1.28rem); text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.hero .btn-gold { min-height: 58px; padding-inline: 36px; font-size: 1.15rem; }
.hero-story { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; text-decoration: none; }
.hero-story:hover { color: var(--gold); }
.hero-story .icon { width: 1.5em; height: 1.5em; }

.donate-card { flex: none; width: min(312px, 100%); padding: 22px; background: var(--white); border-radius: 20px; box-shadow: 0 18px 44px rgba(6, 55, 29, .32); color: var(--ink); text-align: center; }
.donate-card > .icon { width: 36px; height: 36px; margin-inline: auto; color: var(--green-700); }
.donate-card h2 { margin-top: 2px; font-size: 1.5rem; }
.donate-card > p { margin: 2px 0 12px; color: var(--muted); font-size: .9rem; }
.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.amount-grid label { position: relative; cursor: pointer; }
.amount-grid input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.amount-grid span { display: block; padding: 9px 4px; background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; color: var(--green-900); font-weight: 700; }
.amount-grid input:checked + span { background: var(--green-800); border-color: var(--green-800); color: var(--white); }
.amount-grid input:focus-visible + span { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
.custom-amount { width: 100%; min-height: 46px; margin-block: 9px; padding: 8px 14px; background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); font: inherit; text-align: center; }
.custom-amount:focus { border-color: var(--green-700); outline: 2px solid var(--green-700); outline-offset: 0; }
.donate-card .btn { width: 100%; }
.donate-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.donate-note .icon { color: var(--green-700); }

/* Section titles with side rules */
.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: clamp(22px, 3vw, 34px); }
.fancy-title { flex: 1 1 320px; text-align: center; }
.fancy-title h2 { display: inline-flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.fancy-title h2::before, .fancy-title h2::after { content: ""; width: clamp(24px, 9vw, 150px); height: 3px; background: linear-gradient(to right, transparent, var(--green-700)); border-radius: 3px; }
.fancy-title h2::after { background: linear-gradient(to left, transparent, var(--green-700)); }
.fancy-title p { margin: 2px 0 0; color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(24px, 3vw, 36px); }
.section-head > div { max-width: 760px; }
.section-note { margin: .75rem 0 0; color: var(--muted); }

/* Program cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: 24px; }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.program-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s; }
.program-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(10, 74, 39, .16); }
.program-photo { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-100); }
.program-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.program-card:hover .program-photo img { transform: scale(1.05); }
.status-pill { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; background: var(--green-700); border-radius: 999px; color: var(--white); font-size: .8rem; font-weight: 600; }
.status-pill .icon { width: 1em; height: 1em; stroke-width: 3; }
.status-live { background: var(--gold); color: var(--green-950); }
.program-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; text-align: center; }
.program-body h3 { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.08rem; }
.program-body h3 a { text-decoration: none; }
.program-body h3 a:hover { color: var(--green-500); }
.program-body h3 .icon { width: 1.35em; height: 1.35em; color: var(--green-500); }
.program-body > p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.program-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.program-foot .btn { flex: 1 1 auto; min-height: 38px; padding: 5px 14px; font-size: .9rem; }
.mini-progress { display: grid; gap: 4px; margin-top: 4px; }
.mini-progress div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .85rem; }
.mini-progress b { color: var(--green-800); font-weight: 700; }
progress { width: 100%; height: 10px; overflow: hidden; appearance: none; border: 0; border-radius: 999px; background: var(--green-100); }
progress::-webkit-progress-bar { background: var(--green-100); border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(to right, var(--green-800), var(--green-500)); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--green-700); border-radius: 999px; }

/* Impact band */
.impact { position: relative; background: var(--green-800); color: var(--white); overflow: hidden; }
.impact-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.impact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); align-items: center; padding-block: clamp(70px, 8vw, 104px); }
.impact h2 { color: var(--white); padding-inline-end: 24px; }
.impact-item { display: grid; justify-items: center; gap: 2px; padding: 4px 16px; border-inline-start: 1px solid rgba(255, 255, 255, .35); text-align: center; }
.impact-item .icon { width: 42px; height: 42px; margin-bottom: 4px; }
.impact-item strong { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.2; }
.impact-item span { font-size: .96rem; line-height: 1.4; }

/* About row */
.about-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 5fr); align-items: stretch; gap: clamp(20px, 3vw, 36px); }
.video-card { position: relative; display: block; min-height: 240px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--green-900); }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 55, 29, .55), transparent 55%); }
.video-play { position: absolute; top: 50%; left: 50%; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; transform: translate(-50%, -50%); background: var(--green-700); border: 3px solid var(--white); border-radius: 50%; color: var(--white); transition: background-color .18s; }
.video-card:hover .video-play { background: var(--gold); color: var(--green-950); }
.video-play .icon { width: 30px; height: 30px; }
.video-label { position: absolute; bottom: 14px; left: 50%; z-index: 1; padding: 5px 16px; transform: translateX(-50%); background: rgba(6, 55, 29, .82); border-radius: 999px; color: var(--white); font-size: .9rem; white-space: nowrap; }
.about-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.about-copy h2 { display: flex; align-items: center; gap: 10px; margin-bottom: .6rem; font-size: 1.5rem; }
.about-copy h2 .icon { color: var(--green-500); }
.about-copy p { color: var(--muted); }
.award-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 24px); background: var(--gold-soft); border-radius: var(--radius); }
.award-card h3 { font-size: 1.1rem; }
.award-card > div { display: flex; align-items: center; gap: 14px; }
.award-card img { flex: none; width: 92px; height: 92px; object-fit: cover; object-position: 60% center; border: 3px solid var(--gold); border-radius: 50%; }
.award-card p { margin: 0; font-size: .92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* Trust strip */
.trust { background: var(--white); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 22px; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 14px; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-item .icon { width: 42px; height: 42px; color: var(--green-700); }
.trust-item strong { display: block; color: var(--green-900); font-size: .98rem; font-weight: 600; line-height: 1.35; }
.trust-item span { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }

/* Before and after */
.before-after { background: var(--sand); padding-block: var(--section); }
.ba-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.before-after .kicker-mint { color: var(--green-700); }
.ba-copy p:last-child { margin: 1rem 0 0; color: var(--muted); }
.ba-widget { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--green-900); touch-action: pan-y; }
.ba-widget > img, .ba-clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-clip { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--gold); pointer-events: none; }
.ba-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; transform: translate(-50%, -50%); background: var(--gold); border-radius: 50%; color: var(--green-950); font-size: 1.3rem; }
.ba-widget input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-widget:has(input:focus-visible) { outline: 3px solid var(--gold-dark); outline-offset: 4px; }

/* Help band */
.help-band { position: relative; background: var(--green-900); color: #e6f2ea; padding-block: clamp(36px, 5vw, 60px); overflow: hidden; }
.help-band .kicker { color: var(--gold); }
.help-band h2 { margin-bottom: .6rem; color: var(--white); }
.help-band p:last-child { margin: 0; max-width: 62ch; }
.help-inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 48px; }
.help-inner > div { flex: 1 1 480px; }

/* News cards */
.project-card a, .news-card a, .news-card > div { display: block; text-decoration: none; }
.news-card { overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.news-card a, .news-card > div { padding-bottom: 18px; }
.news-card time, .news-card h3, .news-card p, .news-card .link-arrow { margin-inline: 18px; }
.card-photo { display: block; aspect-ratio: 16 / 10; margin-bottom: 14px; overflow: hidden; background: var(--green-100); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a:hover .card-photo img { transform: scale(1.05); }
.news-card h3 { margin-block: 6px; }
a:hover > h3 { color: var(--green-500); }
.news-card p { margin-block: 0; color: var(--muted); font-size: .96rem; }
.news-card time { display: block; color: var(--green-700); font-size: .88rem; font-weight: 600; }
.tag { display: inline-block; color: var(--green-700); font-size: .9rem; font-weight: 600; }

/* CTA */
.cta { position: relative; background: var(--gold-soft); padding-block: clamp(40px, 6vw, 72px); }
.cta h2 { margin-bottom: .6rem; }
.cta p { margin: 0; max-width: 58ch; color: var(--muted); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 56px; }
.cta-inner > div:first-child { flex: 1 1 460px; }
.cta .btn-line-light { border-color: var(--green-700); color: var(--green-800); }
.cta .btn-line-light:hover { background: var(--green-100); color: var(--green-800); }

/* Inner page head */
.page-head { position: relative; padding-block: clamp(44px, 6vw, 80px) clamp(76px, 10vw, 130px); background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #e6f2ea; overflow: hidden; }
.page-head .wrap { position: relative; z-index: 3; }
.page-head h1 { max-width: 22ch; color: var(--white); }
.page-head .lead { margin: 1rem 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { padding: 7px 18px; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; font-size: .95rem; font-weight: 500; text-decoration: none; }
.filters a:hover { border-color: var(--green-700); }
.filters a[aria-current] { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.empty { padding: 40px 0; color: var(--muted); }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); }
.two-col h2 { margin-bottom: .75rem; font-size: clamp(1.35rem, 2.3vw, 1.8rem); }
.award { background: var(--sand); padding-block: var(--section); }
.award-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(24px, 5vw, 64px); }
.award-grid img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.award-grid h2 { margin-bottom: 1rem; }
.team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.team-list li { display: grid; gap: 4px; padding: 18px 20px; background: var(--white); border-top: 4px solid var(--green-700); border-radius: 10px; box-shadow: var(--shadow); }
.team-list strong { color: var(--green-800); font-size: 1.1rem; font-weight: 700; }
.team-list span { color: var(--muted); font-size: .97rem; }
.reach-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding-inline: 20px; }
.reach-list li + li { border-top: 1px solid var(--line); }
.reach-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 13px 0; text-decoration: none; }
.reach-list a:hover { color: var(--green-500); }
.reach-list strong { color: var(--green-800); font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 700; line-height: 1.1; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; margin-top: 24px; }
.photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--green-100); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo:hover img { transform: scale(1.05); }

/* Detail pages */
.detail-head { display: grid; justify-items: start; gap: 10px; padding-block: clamp(26px, 4vw, 48px) clamp(20px, 3vw, 32px); }
.detail-head h1 { max-width: 24ch; font-size: clamp(1.85rem, 3.8vw, 3rem); }
.detail-head .lead { margin: 0; color: var(--muted); }
.detail-head .link-back { margin-bottom: 8px; font-size: .95rem; }
.meta { margin: 0; color: var(--green-700); font-weight: 600; }
.detail-cover { width: 100%; max-height: 600px; object-fit: cover; border-radius: var(--radius); }
.prose { max-width: 840px; padding-block: clamp(26px, 4vw, 46px) 0; font-size: 1.08rem; }
.prose .btn { margin-top: 8px; }
.where-list { margin-top: 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding-inline: 18px; }
.where-list li + li { border-top: 1px solid var(--line); }
.where-list a { display: block; padding: 13px 0; font-weight: 500; text-decoration: none; }
.where-list a:hover { color: var(--green-500); }

/* Bank card */
.bank-card { padding: clamp(22px, 3vw, 32px); background: var(--green-800); border-radius: var(--radius); color: #e6f2ea; }
.bank-card h2 { margin-bottom: 1rem; color: var(--white); font-size: clamp(1.25rem, 2vw, 1.5rem); }
.bank-card p:last-child { margin: 0; }
.bank-card dl { margin: 0; display: grid; gap: 14px; }
.bank-card dl > div + div { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); }
.bank-card dt { color: var(--gold); font-size: .88rem; }
.bank-card dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 0; color: var(--white); overflow-wrap: anywhere; }
[dir="rtl"] .bank-card dd { text-align: left; }
.copy { padding: 4px 14px; background: none; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; color: var(--white); font: inherit; font-size: .85rem; cursor: pointer; }
.copy:hover { border-color: var(--gold); color: var(--gold); }

/* Forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; gap: clamp(28px, 5vw, 64px); }
.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form label { display: grid; align-content: start; gap: 6px; font-size: .95rem; font-weight: 500; }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 11px 14px; background: var(--white); border: 1.5px solid #c8d1c7; border-radius: 10px; color: var(--ink); font: inherit; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green-700); outline: 2px solid var(--green-700); outline-offset: 0; }
[dir="rtl"] .form input[dir="ltr"] { text-align: right; }
.form > .btn { justify-self: start; }
.form small { color: var(--muted); font-size: .86rem; font-weight: 400; line-height: 1.45; }
.form input[type="file"] { padding: 9px; }
.hint { margin: -10px 0 0; color: var(--muted); font-size: .9rem; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.notice { padding: 14px 18px; border-radius: 10px; }
.notice-ok { background: var(--green-100); color: var(--green-900); }
.notice-error { background: #fbe6dd; color: #8b3412; }
.contact-side h2 { margin-bottom: .75rem; font-size: 1.25rem; }
.contact-side ul { margin-bottom: 2rem; }
.contact-side li { padding-block: 5px; }

/* Campaigns */
.campaign-list { display: grid; gap: clamp(20px, 3vw, 28px); }
.campaign-card { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.campaign-photo { display: block; min-height: 300px; background: var(--green-100); }
.campaign-photo img { width: 100%; height: 100%; object-fit: cover; }
.campaign-body { display: grid; align-content: center; gap: 14px; padding: clamp(22px, 3.4vw, 40px); }
.campaign-body .kicker { margin: 0; }
.campaign-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.campaign-body h3 a { text-decoration: none; }
.campaign-summary { margin: 0; color: var(--muted); }
.campaign-body .actions { gap: 12px 20px; }
.progress-block { display: grid; gap: 8px; }
.raised { margin: 0; }
.raised strong { color: var(--green-800); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.15; }
.raised span { color: var(--muted); }
.progress-block progress { height: 12px; }
.progress-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 0; color: var(--muted); font-size: .95rem; }
.progress-meta b { color: var(--green-800); font-weight: 700; }
.campaign-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; gap: clamp(24px, 4vw, 48px); padding-bottom: var(--section); }
.prose-inner { padding-top: 24px; font-size: 1.07rem; }
.campaign-side { position: sticky; top: 100px; display: grid; gap: 18px; }
.progress-card { display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 28px); background: var(--green-800); border-radius: var(--radius); color: #e6f2ea; }
.progress-card .raised strong, .progress-card .progress-meta b { color: var(--white); }
.progress-card .raised span, .progress-card .progress-meta { color: #d3e6da; }
.progress-card progress { background: var(--green-900); }
.progress-card progress::-webkit-progress-bar { background: var(--green-900); }
.progress-card progress::-webkit-progress-value { background: var(--gold); }
.progress-card progress::-moz-progress-bar { background: var(--gold); }
.donor-wall { padding: clamp(18px, 2.2vw, 24px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.donor-wall h2 { margin-bottom: 10px; font-size: 1.2rem; }
.donor-wall ul { max-height: 420px; overflow-y: auto; }
.donor-wall li { padding-block: 11px; border-top: 1px solid var(--line); }
.donor-wall li > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.donor-wall strong { font-weight: 500; overflow-wrap: anywhere; }
.donor-wall b { flex: none; color: var(--green-800); font-weight: 700; }
.donor-wall small { color: var(--muted); font-weight: 400; }
.donor-wall li p { margin: 4px 0 0; color: var(--muted); font-size: .94rem; overflow-wrap: anywhere; }
.wall-empty { margin: 0; padding-block: 8px; }
.verified-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; line-height: 1.5; }
.give-section { padding-block: var(--section); background: var(--sand); scroll-margin-top: 80px; }
.give-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; gap: clamp(24px, 5vw, 56px); }
.give-steps { max-width: 64ch; margin-top: .75rem; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.amount-chips button { min-height: 42px; padding: 6px 18px; background: var(--white); border: 1.5px solid #c8d1c7; border-radius: 999px; color: var(--green-800); font: inherit; font-weight: 600; cursor: pointer; }
.amount-chips button:hover { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.confirm-page { display: grid; justify-items: start; gap: 18px; max-width: 760px; }
.confirm-icon { width: 64px; height: 64px; color: var(--green-700); }
.confirm-page .lead { margin: 0; }
.confirm-page .bank-card { width: 100%; }
.ref-box { display: grid; gap: 4px; padding: 18px 24px; background: var(--green-100); border-radius: 12px; }
.ref-box strong { color: var(--green-800); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; letter-spacing: .03em; }
.ref-box small { color: var(--green-800); }
.status-form { width: min(460px, 100%); }

/* Aid request form */
.request-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; gap: clamp(28px, 5vw, 56px); }
.request-form { gap: 22px; }
.request-form fieldset { display: grid; gap: 16px; min-width: 0; margin: 0; padding: clamp(18px, 2.6vw, 28px); background: var(--white); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.request-form legend { float: inline-start; width: 100%; margin-bottom: 4px; padding: 0; color: var(--green-800); font-size: 1.2rem; font-weight: 700; }
.request-form legend + * { clear: both; }
.field-row-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.group-label { margin: 0 0 6px; font-size: .95rem; font-weight: 500; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.form .choice { display: block; position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 44px; padding: 8px 18px; background: var(--bg); border: 1.5px solid #c8d1c7; border-radius: 999px; }
.choice input:checked + span { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
.form .consent { display: flex; align-items: flex-start; gap: 12px; }
.form .consent input { flex: none; width: 22px; min-height: 22px; height: 22px; margin-top: 4px; accent-color: var(--green-700); }
.hint-flat { margin: -8px 0 0; }
.request-side { position: sticky; top: 100px; padding: clamp(20px, 2.6vw, 30px); background: var(--gold-soft); border-radius: var(--radius); }
.request-side h2 { margin-bottom: .75rem; font-size: 1.2rem; }
.request-side ol { margin: 0 0 1.75rem; padding-inline-start: 1.25rem; }
.request-side li { padding-block: 5px; }

.empty-page { display: grid; justify-items: start; gap: 12px; }
.empty-page p { margin: 0 0 10px; }

/* Footer */
.site-footer { position: relative; background: var(--green-900); color: #d3e6da; font-size: .97rem; }
.footer-sky { position: relative; height: clamp(110px, 13vw, 190px); background: var(--bg); overflow: hidden; }
/* Footer landscape: mountains, plains and cities, drawn with the theme colours. */
.landscape { position: absolute; inset: 0; width: 100%; height: 100%; }
.ls-sun { fill: var(--gold); opacity: .28; }
.ls-far { fill: var(--green-500); opacity: .35; }
.ls-snow { fill: var(--white); opacity: .85; }
.ls-mid { fill: var(--green-700); opacity: .75; }
.ls-plain { fill: var(--green-800); }
.ls-field { fill: none; stroke: var(--gold); stroke-width: 2; opacity: .45; }
.ls-tree { fill: var(--green-500); }
.ls-trunk { fill: none; stroke: var(--green-950); stroke-width: 2; }
.ls-trunk-f { fill: var(--green-950); }
.ls-city { fill: var(--gold); }
.ls-town { fill: var(--gold-soft, #fdf4da); }
.ls-win { fill: var(--green-900); }
.ls-ground { fill: var(--green-900); }
.ls-line { fill: none; stroke: var(--gold); stroke-width: 3; vector-effect: non-scaling-stroke; }
.footer-sky .wave { top: auto; bottom: -1px; height: 100%; }
.footer-sky .wave-fill { fill: var(--green-900); }
.skyline { position: absolute; bottom: 0; inset-inline-end: var(--gutter); z-index: 3; width: clamp(220px, 30vw, 420px); height: auto; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 30px clamp(24px, 4vw, 56px); padding-block: 28px 8px; }
.footer-about img { width: 76px; height: 76px; margin-bottom: 12px; }
.footer-name { margin-bottom: .5rem; color: var(--white); font-weight: 600; }
.footer-about p:last-child { max-width: 42ch; margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer h2 { margin-bottom: .75rem; color: var(--gold); font-size: 1rem; font-weight: 600; }
.site-footer li { padding-block: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials li { padding: 0; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; background: var(--white); border-radius: 50%; color: var(--green-800); transition: background-color .18s; }
.socials a:hover { background: var(--gold); color: var(--green-950); }
.footer-base { margin-top: 26px; padding-bottom: 20px; }
.footer-base p { margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .86rem; }

/* Lightbox */
.lightbox { width: min(1200px, 100vw); max-width: 100vw; max-height: 100vh; padding: 0; background: transparent; border: 0; color: var(--white); overflow: visible; }
.lightbox::backdrop { background: rgba(4, 28, 15, .93); }
.lightbox figure { margin: 0; padding-inline: clamp(8px, 6vw, 72px); }
.lightbox img { width: 100%; max-height: 84vh; object-fit: contain; }
.lightbox figcaption { padding-top: 10px; text-align: center; }
.lb-close, .lb-nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; background: rgba(255, 255, 255, .16); border: 0; border-radius: 50%; color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: var(--green-950); }
.lb-close { top: 8px; inset-inline-end: 8px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 8px; }
.lb-next { inset-inline-end: 8px; }
[dir="rtl"] .lb-nav { transform: translateY(-50%) scaleX(-1); }

@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; margin-inline-start: auto; }
  .site-nav { position: absolute; top: 100%; inset-inline: 0; display: none; flex-direction: column; align-items: stretch; gap: 14px; padding: 12px var(--gutter) 22px; background: var(--white); box-shadow: 0 16px 28px rgba(10, 74, 39, .14); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav li a[aria-current] { border-bottom-color: var(--line); }
  .site-nav .btn { align-self: stretch; }
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-card { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 7; }
}

@media (max-width: 900px) {
  .topbar-tag { display: none; }
  .hero { min-height: 0; }
  .hero::before, [dir="rtl"] .hero::before { background: linear-gradient(to bottom, rgba(6, 55, 29, .82), rgba(6, 55, 29, .55)); }
  .hero-grid { flex-direction: column; align-items: stretch; padding-block: 40px 76px; }
  .donate-card { width: 100%; max-width: 440px; margin-inline: auto; }
  .hero .zellige { display: none; }
  .impact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .impact h2 { grid-column: 1 / -1; padding: 0; text-align: center; }
  .impact-item:first-of-type { border-inline-start: 0; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .trust-item { justify-content: flex-start; }
  .trust-item:nth-child(odd) { border-inline-start: 0; }
  .ba-grid, .award-grid, .contact-grid, .two-col, .campaign-card, .campaign-layout, .give-grid, .request-grid { grid-template-columns: minmax(0, 1fr); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-list { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .campaign-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .campaign-side, .request-side { position: static; }
  .campaign-side { display: contents; }
  .progress-card { order: -1; }
}

@media (max-width: 620px) {
  .brand small, .topbar-info .optional { display: none; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 1.05rem; }
  .card-grid, .card-grid-4, .field-row, .field-row-wide, .about-row { grid-template-columns: minmax(0, 1fr); }
  .video-card { aspect-ratio: 16 / 10; }
  .actions .btn { flex: 1 1 100%; }
  .impact-item { padding-inline: 6px; }
  .impact-item span { font-size: .84rem; }
  .fancy-title h2::before, .fancy-title h2::after { width: 22px; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-item, .trust-item + .trust-item { border-inline-start: 0; }
  .footer-grid { gap: 26px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --- Motion --- */
@view-transition { navigation: auto; }

.scroll-bar { position: fixed; top: 0; inset-inline: 0; z-index: 40; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; pointer-events: none; }
[dir="rtl"] .scroll-bar { transform-origin: right; }
.site-header, .brand img { transition: box-shadow .25s, width .25s, height .25s; }
.site-header.scrolled { box-shadow: 0 6px 22px rgba(10, 74, 39, .16); }
.site-header.scrolled .brand img { width: 48px; height: 48px; }

/* Hero: photos crossfade with a slow zoom */
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slides .hero-photo { opacity: 0; animation: hero-slide 21s infinite both; }
.hero-slides .hero-photo:only-child { opacity: 1; animation: hero-zoom 24s ease-in-out infinite alternate; }
.hero-slides .hero-photo:nth-child(2) { animation-delay: 7s; }
.hero-slides .hero-photo:nth-child(3) { animation-delay: 14s; }
@keyframes hero-slide {
  0% { opacity: 0; transform: scale(1.02); }
  5% { opacity: 1; }
  39% { opacity: 1; }
  44% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }

.hero h1, .hero-lead, .hero .actions { animation: rise-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-lead { animation-delay: .18s; }
.hero .actions { animation-delay: .34s; }
.donate-card { animation: card-in .9s cubic-bezier(.2, .8, .2, 1) .3s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(44px) scale(.96); } to { opacity: 1; transform: none; } }

.hero h1 em { display: inline-block; animation: gold-glow 3.4s ease-in-out 1s infinite; }
@keyframes gold-glow { 50% { text-shadow: 0 0 26px rgba(247, 187, 30, .75); } }

.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-18deg); animation: shimmer 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shimmer { 0%, 62% { left: -60%; } 90%, 100% { left: 125%; } }
.btn-gold .icon, .donate-card > .icon, .topbar-tag .icon { animation: heartbeat 1.9s ease-in-out infinite; }
@keyframes heartbeat { 0%, 40%, 100% { transform: scale(1); } 12% { transform: scale(1.2); } 26% { transform: scale(1.06); } }

.float-hearts { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.float-hearts .icon { position: absolute; bottom: -40px; width: 22px; height: 22px; color: var(--gold); opacity: 0; animation: float-up 12s linear infinite; }
.float-hearts .icon:nth-child(1) { inset-inline-start: 6%; animation-delay: 0s; }
.float-hearts .icon:nth-child(2) { inset-inline-start: 16%; width: 14px; height: 14px; animation-delay: 3.5s; }
.float-hearts .icon:nth-child(3) { inset-inline-start: 28%; width: 28px; height: 28px; animation-delay: 7s; color: var(--white); }
.float-hearts .icon:nth-child(4) { inset-inline-start: 40%; width: 16px; height: 16px; animation-delay: 1.8s; }
.float-hearts .icon:nth-child(5) { inset-inline-start: 52%; animation-delay: 9.5s; color: var(--white); }
.float-hearts .icon:nth-child(6) { inset-inline-start: 62%; width: 14px; height: 14px; animation-delay: 5.2s; }
.float-hearts .icon:nth-child(7) { inset-inline-start: 11%; width: 18px; height: 18px; animation-delay: 10.6s; }
@keyframes float-up {
  0% { opacity: 0; transform: translateY(0) translateX(0) rotate(-8deg); }
  12% { opacity: .75; }
  50% { transform: translateY(-300px) translateX(18px) rotate(8deg); }
  85% { opacity: .35; }
  100% { opacity: 0; transform: translateY(-620px) translateX(-14px) rotate(-6deg); }
}

/* Waves: the gold line draws itself, then the wave keeps breathing */
.wave-gold { stroke-dasharray: 3200; animation: wave-draw 2.2s ease-out both; }
.wave { transform-origin: bottom; animation: wave-breathe 7s ease-in-out infinite alternate; }
.wave-top { transform-origin: top; animation: none; }
.footer-sky .wave { animation: none; }
@keyframes wave-draw { from { stroke-dashoffset: 3200; } to { stroke-dashoffset: 0; } }
@keyframes wave-breathe { from { transform: scaleY(1); } to { transform: scaleY(1.22); } }
.zellige { animation: zellige-drift 40s linear infinite; }
@keyframes zellige-drift { from { background-position: 0 0; } to { background-position: 76px 152px; } }
.impact-photo { transform: scale(1.25); will-change: transform; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .75s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.fancy-title h2::before, .fancy-title h2::after { transition: width .9s cubic-bezier(.2, .7, .2, 1) .15s; }
.fancy-title.reveal:not(.in) h2::before, .fancy-title.reveal:not(.in) h2::after { width: 0; }
.video-play::before { content: ""; position: absolute; inset: -3px; border: 3px solid var(--white); border-radius: 50%; animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
.trust-item .icon, .impact-item .icon { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.trust-item:hover .icon, .impact-item:hover .icon { transform: scale(1.18) rotate(-5deg); }
.status-live { animation: live-pulse 2.2s ease-in-out infinite; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 7px rgba(247, 187, 30, .3); } }

/* Donation journey */
.journey { padding-block: clamp(40px, 6vw, 72px); overflow: hidden; }
.journey-track { position: relative; margin-top: clamp(22px, 3vw, 38px); }
.journey-line { position: absolute; top: 0; left: 8%; width: 84%; height: 76px; overflow: visible; }
[dir="rtl"] .journey-line { transform: scaleX(-1); }
.journey-line path { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; }
.journey-ready .journey-line path { stroke-dashoffset: 1; }
.journey-in .journey-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s cubic-bezier(.4, 0, .3, 1) .2s; }
.journey-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); margin: 0; padding: 0; list-style: none; text-align: center; }
.journey-steps li { display: grid; justify-items: center; align-content: start; gap: 4px; }
.journey-dot { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 8px; background: var(--green-700); border: 4px solid var(--white); border-radius: 50%; box-shadow: var(--shadow); color: var(--white); transition: background-color .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.journey-dot .icon { width: 32px; height: 32px; }
.journey-ready .journey-dot { transform: scale(.4); background: var(--green-100); color: var(--green-700); }
.journey-in .journey-dot { transform: none; background: var(--green-700); color: var(--white); }
.journey-in li:nth-child(2) .journey-dot { transition-delay: .7s; }
.journey-in li:nth-child(3) .journey-dot { transition-delay: 1.4s; }
.journey-in li:nth-child(4) .journey-dot { transition-delay: 2.1s; }
.journey-steps strong { color: var(--green-800); font-size: 1.1rem; font-weight: 700; }
.journey-steps span:last-child { color: var(--muted); font-size: .93rem; line-height: 1.5; }

@media (max-width: 760px) {
  .journey-line { display: none; }
  .journey-steps { grid-template-columns: minmax(0, 1fr); gap: 0; text-align: start; }
  .journey-steps li { position: relative; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; justify-items: start; padding-bottom: 22px; }
  .journey-steps li:not(:last-child)::before { content: ""; position: absolute; top: 56px; bottom: 0; inset-inline-start: 27px; width: 3px; background: var(--gold); }
  .journey-dot { grid-row: span 2; width: 56px; height: 56px; margin: 0; border-width: 3px; }
  .journey-dot .icon { width: 24px; height: 24px; }
  .float-hearts .icon:nth-child(n + 5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides .hero-photo { animation: none; opacity: 0; }
  .hero-slides .hero-photo:first-child { opacity: 1; }
  .float-hearts { display: none; }
  .btn-gold::after { display: none; }
  .hero h1, .hero-lead, .hero .actions, .donate-card, .hero h1 em, .btn-gold .icon, .donate-card > .icon, .topbar-tag .icon, .wave, .wave-gold, .zellige, .video-play::before, .status-live { animation: none; }
  .wave-gold { stroke-dasharray: none; }
  @view-transition { navigation: none; }
}

/* Campaign progress bar with its percentage */
.progress-row { display: flex; align-items: center; gap: 12px; }
.progress-row progress { flex: 1; min-width: 0; height: 16px; }
[dir="rtl"] .progress-row progress { direction: rtl; }
.progress-pct { flex: none; min-width: 3ch; color: var(--green-800); font-size: 1.05rem; font-weight: 700; }
.mini-progress .progress-row { display: flex; gap: 8px; }
.mini-progress .progress-row progress { height: 12px; }
.mini-progress .progress-pct { font-size: .95rem; }
.progress-card .progress-row progress { background: rgba(255, 255, 255, .24); }
.progress-card .progress-row progress::-webkit-progress-bar { background: rgba(255, 255, 255, .24); }
.progress-card .progress-pct { color: var(--gold); font-size: 1.2rem; }

/* Campaign updates */
.updates { margin-top: clamp(26px, 4vw, 40px); }
.updates > h2 { margin-bottom: 18px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.updates-list { margin: 0; padding: 0; list-style: none; }
.updates-list li { position: relative; padding-block-end: 26px; padding-inline-start: 28px; border-inline-start: 3px solid var(--gold); }
.updates-list li:last-child { padding-block-end: 4px; }
.updates-list li::before { content: ""; position: absolute; top: 6px; inset-inline-start: -10px; width: 17px; height: 17px; background: var(--green-700); border: 3px solid var(--white); border-radius: 50%; box-shadow: var(--shadow); }
.updates-list time { color: var(--green-700); font-size: .9rem; font-weight: 600; }
.updates-list h3 { margin-block: 2px 6px; }
.updates-list p { margin-bottom: .6em; color: var(--muted); }
.updates-list img { width: min(420px, 100%); margin-top: 6px; border-radius: 12px; box-shadow: var(--shadow); }
.update-spent b, .spent-line b { color: var(--green-800); font-weight: 700; }
.spent-line { margin: -6px 0 0; color: #d3e6da; }
.spent-line b { color: var(--white); }

/* Legal pages */
.legal { max-width: 860px; }
.legal h2 { margin-block: 1.6em .5em; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); }
.legal a { color: var(--green-800); font-weight: 500; }
.legal-note { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.legal-note + .legal-note { margin-top: 0; padding-top: 0; border: 0; }
.form .consent a, .hint a { color: var(--green-800); font-weight: 500; }

/* Two hero photos need a shorter cycle than three */
.hero-slides:has(> :nth-child(2):last-child) .hero-photo { animation-name: hero-slide-two; animation-duration: 14s; }
@keyframes hero-slide-two {
  0% { opacity: 0; transform: scale(1.02); }
  8% { opacity: 1; }
  56% { opacity: 1; }
  64% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}

/* Amount stepper */
.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 6px; background: var(--green-100); border-radius: 999px; }
.stepper[hidden] { display: none; }
.stepper-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; font: inherit; cursor: pointer; transition: transform .15s, background-color .15s; }
.stepper-btn:active { transform: scale(.88); }
.stepper-more { background: var(--gold); color: var(--green-950); box-shadow: 0 4px 12px rgba(224, 163, 12, .4); }
.stepper-more:hover { background: var(--gold-dark); }
.stepper-less { background: var(--white); color: var(--green-800); }
.stepper-less:hover { background: var(--line); }
.stepper-less:disabled { opacity: .4; cursor: default; }
.stepper-btn .icon { width: 22px; height: 22px; stroke-width: 2.6; }
.stepper-value { flex: 1; min-width: 0; color: var(--green-900); font-size: 1.3rem; text-align: center; white-space: nowrap; }
.stepper-value b { font-weight: 700; }
.stepper-value small { color: var(--muted); font-size: .8rem; }
.stepper-value.bump b { display: inline-block; animation: amount-bump .3s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes amount-bump { 40% { transform: scale(1.28); color: var(--green-500); } }
.stepper-sound { flex: none; display: grid; place-items: center; width: 34px; height: 34px; background: none; border: 0; border-radius: 50%; color: var(--green-700); cursor: pointer; }
.stepper-sound:hover { background: var(--white); }
.stepper-sound .icon { width: 18px; height: 18px; }
.stepper-sound.off { color: var(--muted); opacity: .55; }
.stepper-sound.off .icon path:nth-child(n + 2) { display: none; }
.form .stepper { width: min(380px, 100%); margin: -8px 0 0; }

/* Goal, remaining and contributors */
.progress-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; }
.progress-stats > div { min-width: 0; padding: 10px 8px; background: var(--green-100); border-radius: 10px; text-align: center; }
.progress-stats dt { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.progress-stats dd { margin: 2px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.3; overflow-wrap: anywhere; }
.progress-stats b { display: block; color: var(--green-800); font-size: 1.08rem; font-weight: 700; }
.progress-card .progress-stats > div { background: rgba(255, 255, 255, .12); }
.progress-card .progress-stats dt, .progress-card .progress-stats dd { color: #d3e6da; }
.progress-card .progress-stats b { color: var(--white); }
.project-funding { margin-top: 18px; }
.project-funding .btn { margin-top: 0; }

/* Transparency page */
.tr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
.tr-stats > div { display: grid; justify-items: center; gap: 2px; padding: clamp(18px, 2.4vw, 28px) 12px; background: var(--green-800); border-radius: var(--radius); color: var(--white); text-align: center; }
.tr-stats .icon { width: 34px; height: 34px; margin-bottom: 4px; color: var(--gold); }
.tr-stats strong { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.tr-stats span { font-size: .92rem; line-height: 1.35; }
.tr-note { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; color: var(--muted); font-size: .94rem; }
.tr-note .icon { margin-top: 3px; color: var(--green-700); }
.ledger-list { display: grid; gap: 14px; margin-top: 18px; }
.ledger { display: grid; gap: 10px; padding: clamp(16px, 2.2vw, 24px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.ledger h3 a { text-decoration: none; }
.ledger h3 a:hover { color: var(--green-500); }
.ledger-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.ledger-figures > div { min-width: 0; padding: 8px 10px; background: var(--bg); border-radius: 8px; }
.ledger-figures dt { color: var(--muted); font-size: .82rem; }
.ledger-figures dd { margin: 0; color: var(--green-800); font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
[dir="rtl"] .ledger-figures dd { text-align: right; }
.tr-updates { margin-top: 18px; }
.tr-updates h3 a { text-decoration: none; }
.report-list { display: grid; gap: 10px; margin-top: 18px; }
.report-list a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding: 14px 18px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; text-decoration: none; }
.report-list a:hover { color: var(--green-500); }
.report-list small { color: var(--muted); font-weight: 400; }
.verified-note a { color: var(--green-800); font-weight: 500; }
.trust-item strong a { text-decoration: none; }
.trust-item strong a:hover { color: var(--green-500); }
@media (max-width: 900px) {
  .tr-stats, .ledger-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Looping scene of volunteers at work */
.aid-band { position: relative; height: clamp(190px, 19vw, 280px); overflow: hidden; background: linear-gradient(to bottom, var(--sand), var(--bg)); }
.aid-scene { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.aid-band.paused * { animation-play-state: paused !important; }

.aid-scene .sun { fill: var(--gold); opacity: .55; }
.aid-scene .cloud-fill { fill: var(--white); opacity: .85; }
.aid-scene .hill-far { fill: var(--green-100); }
.aid-scene .hill-near { fill: var(--green-500); opacity: .28; }
.aid-scene .kasbah path { fill: var(--green-700); opacity: .3; }
.aid-scene .trunk { fill: var(--green-950); opacity: .55; }
.aid-scene .crown { fill: var(--green-700); }
.aid-scene .ground { fill: var(--green-100); }
.aid-scene .ground-line { fill: none; stroke: var(--gold); stroke-width: 2.5; }

/* Every colour here comes from the site's own palette, so the scene follows the chosen style. */
.aid-scene .skin-a, .aid-scene .skin-b, .aid-scene .skin-c { fill: var(--gold); }
.aid-scene .hair-dark, .aid-scene .hair-brown { fill: var(--green-950); }
.aid-scene .hair-grey { fill: var(--white); }
.aid-scene .vest { fill: var(--green-700); }
.aid-scene .shirt-red { fill: var(--green-500); }
.aid-scene .robe { fill: var(--green-800); }
.aid-scene .scarf { fill: var(--gold-dark); fill-rule: evenodd; }
.aid-scene .robe-green { fill: var(--green-500); }
.aid-scene path[class^="pants-"], .aid-scene .shoe, .aid-scene path[class$="-line"], .aid-scene .pants-line-gold, .aid-scene .frame, .aid-scene .wheel-spoke, .aid-scene .box-tape, .aid-scene .stack-mark { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.aid-scene .pants-navy, .aid-scene .pants-grey { stroke: var(--green-950); stroke-width: 9; }
.aid-scene .pants-gold { stroke: var(--green-900); stroke-width: 9; }
.aid-scene .pants-line-gold { stroke: var(--green-900); stroke-width: 9; }
.aid-scene .shoe { stroke: var(--green-950); stroke-width: 6; }
.aid-scene .skin-a-line, .aid-scene .skin-b-line, .aid-scene .skin-c-line { stroke: var(--gold); stroke-width: 7; }
.aid-scene .robe-line { stroke: var(--green-800); stroke-width: 7; }
.aid-scene .frame { stroke: var(--green-900); stroke-width: 4.5; }
.aid-scene .caster { fill: var(--green-900); }
.aid-scene .wheel-rim { fill: var(--white); fill-opacity: .35; stroke: var(--green-950); stroke-width: 4; }
.aid-scene .wheel-small .wheel-rim { stroke-width: 3; }
.aid-scene .wheel-spoke { stroke: var(--green-700); stroke-width: 1.6; }
.aid-scene .box { fill: var(--gold); }
.aid-scene .box-alt { fill: var(--gold-dark); }
.aid-scene .box-tape, .aid-scene .stack-mark { stroke: var(--white); stroke-width: 2.5; }
.aid-scene .stack rect { fill: var(--gold); stroke: var(--gold-dark); stroke-width: 1; }
.aid-scene .heart-fill { fill: var(--gold); }
.aid-scene .jug-body { fill: var(--white); stroke: var(--green-700); stroke-width: 1.5; }
.aid-scene .jug-water { fill: var(--green-500); }

/* Walking */
.aid-scene .walker { animation: walk-across 30s linear infinite; }
.aid-scene .walker-b { animation-duration: 38s; animation-delay: -19s; }
.aid-scene .walker-c { animation-name: walk-back; animation-duration: 34s; animation-delay: -8s; }
@keyframes walk-across { from { transform: translateX(-340px); } to { transform: translateX(1500px); } }
@keyframes walk-back { from { transform: translateX(180px); } to { transform: translateX(-1560px); } }
.aid-scene .stepper-person { animation: body-bob .7s ease-in-out infinite alternate; }
@keyframes body-bob { to { transform: translateY(-2px); } }
.aid-scene .leg { transform-origin: 0 -46px; }
.aid-scene .walker .leg-a { animation: leg-swing .7s ease-in-out infinite alternate; }
.aid-scene .walker .leg-b { animation: leg-swing .7s ease-in-out infinite alternate-reverse; }
@keyframes leg-swing { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.aid-scene .wheel { animation: wheel-roll 2.4s linear infinite; }
.aid-scene .wheel-small { animation-duration: 1s; }
@keyframes wheel-roll { to { transform: rotate(360deg); } }
.aid-scene .wave-arm { transform-origin: 0 -76px; animation: arm-wave 2.4s ease-in-out infinite; }
.aid-scene .wave-arm-seat { transform-origin: -12px -66px; animation-duration: 3.4s; }
@keyframes arm-wave { 0%, 45%, 100% { transform: rotate(0); } 60% { transform: rotate(-20deg); } 75% { transform: rotate(14deg); } 90% { transform: rotate(-12deg); } }

/* Handing over a box, on a 6 second loop */
.aid-scene .give-box { animation: box-pass 6s ease-in-out infinite; }
@keyframes box-pass {
  0%, 8% { opacity: 0; transform: translate(-34px, 6px); }
  16% { opacity: 1; transform: translate(-6px, 0); }
  28% { opacity: 1; transform: translate(0, 0); }
  50% { opacity: 1; transform: translate(62px, 2px); }
  70% { opacity: 1; transform: translate(68px, 2px); }
  80%, 100% { opacity: 0; transform: translate(78px, 18px); }
}
.aid-scene .give-arm { transform-origin: 2px -74px; animation: arm-give 6s ease-in-out infinite; }
@keyframes arm-give { 0%, 16% { transform: rotate(14deg); } 28% { transform: rotate(0); } 48% { transform: rotate(-16deg); } 62%, 100% { transform: rotate(10deg); } }
.aid-scene .take-arm { transform-origin: 0 -68px; animation: arm-take 6s ease-in-out infinite; }
@keyframes arm-take { 0%, 34% { transform: rotate(14deg); } 50%, 66% { transform: rotate(-6deg); } 82%, 100% { transform: rotate(14deg); } }
.aid-scene .pop-heart { transform-box: fill-box; transform-origin: center; animation: heart-rise 6s ease-out infinite; }
@keyframes heart-rise {
  0%, 52% { opacity: 0; transform: translateY(14px) scale(.4); }
  60% { opacity: 1; transform: translateY(0) scale(1.1); }
  82% { opacity: 1; transform: translateY(-22px) scale(1); }
  94%, 100% { opacity: 0; transform: translateY(-40px) scale(.9); }
}

/* Scenery */
.aid-scene .cloud-a { animation: cloud-drift 70s linear infinite; }
.aid-scene .cloud-b { animation: cloud-drift 95s linear infinite reverse; }
@keyframes cloud-drift { from { transform: translateX(-160px); } to { transform: translateX(360px); } }
.aid-scene .crown { transform-box: fill-box; transform-origin: 50% 100%; animation: tree-sway 5s ease-in-out infinite alternate; }
@keyframes tree-sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.aid-scene .sun { transform-box: fill-box; transform-origin: center; animation: sun-glow 6s ease-in-out infinite alternate; }
@keyframes sun-glow { to { transform: scale(1.12); opacity: .75; } }

@media (prefers-reduced-motion: reduce) {
  .aid-scene * { animation: none !important; }
  .aid-scene .give-box { opacity: 1; }
  .aid-scene .pop-heart { opacity: 1; }
}

/* Morocco map */
.map-section { padding-block: var(--section); background: var(--white); }
.map-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.map-copy h2 { margin-bottom: .6rem; }
.map-lead { color: var(--muted); }
.map-count { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; }
.map-count strong { color: var(--green-800); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; }
.map-count span { color: var(--green-800); font-size: 1.15rem; font-weight: 600; }
.map-list { display: flex; flex-wrap: wrap; gap: 7px; }
.map-list button { padding: 6px 13px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s; }
.map-list button.on { border-color: var(--green-500); color: var(--green-800); }
.map-list button:hover, .map-list button.is-active { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.map-figure { position: relative; width: min(560px, 100%); margin: 0 auto; }
.map-figure svg { width: 100%; height: auto; overflow: visible; }
.map-region { fill: var(--green-100); stroke: var(--white); stroke-width: 1.4; stroke-linejoin: round; cursor: pointer; transition: fill .2s; }
.map-region.on { fill: var(--green-700); }
.map-region:nth-child(even).on { fill: var(--green-800); }
.map-region.on:hover, .map-region.on.is-active, .map-region.is-active { fill: var(--gold) !important; }
.map-dot { cursor: pointer; }
.map-pin { fill: var(--gold); stroke: var(--white); stroke-width: 2; transition: r .2s; }
.map-dot.is-active .map-pin { fill: var(--green-950); }
.map-pulse { fill: var(--gold); transform-box: fill-box; transform-origin: center; animation: map-pulse 2.8s ease-out infinite; }
@keyframes map-pulse { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3.2); } }
.pulse-1 { animation-delay: .2s; } .pulse-2 { animation-delay: .45s; } .pulse-3 { animation-delay: .7s; }
.pulse-4 { animation-delay: .95s; } .pulse-5 { animation-delay: 1.2s; } .pulse-6 { animation-delay: 1.45s; } .pulse-7 { animation-delay: 1.7s; }
.pulse-8 { animation-delay: 1.95s; } .pulse-9 { animation-delay: 2.2s; } .pulse-10 { animation-delay: 2.45s; } .pulse-11 { animation-delay: 2.7s; }
.map-ends text { fill: var(--green-950); font-family: inherit; font-size: 15px; font-weight: 700; paint-order: stroke; stroke: var(--white); stroke-width: 4px; pointer-events: none; }
.map-end { fill: var(--green-950); stroke: var(--white); stroke-width: 2; }
.map-tip { position: absolute; top: 44%; inset-inline-end: 0; max-width: 62%; padding: 7px 14px; background: var(--green-950); border-radius: 8px; color: var(--white); font-size: .92rem; font-weight: 500; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; pointer-events: none; }
.map-tip.show { opacity: 1; transform: none; }
.map-credit { display: block; color: var(--muted); font-size: .72rem; text-align: center; }
@media (max-width: 900px) {
  .map-grid { grid-template-columns: minmax(0, 1fr); }
  .map-figure { width: min(460px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .map-pulse { animation: none; opacity: 0; }
}

/* Cover verse, written word by word in a loop */
@property --verse-p { syntax: "<percentage>"; inherits: false; initial-value: 110%; }
@property --verse-pen { syntax: "<number>"; inherits: false; initial-value: 0; }
.hero-verse { margin: 0 0 clamp(4px, 1vw, 12px); }
.hero-verse blockquote { margin: 0; font-family: "Amiri Quran", "Readex Pro", serif; font-size: clamp(1.45rem, 3vw, 2.5rem); line-height: 1.5; color: var(--gold); text-align: start; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.verse-word { position: relative; display: inline-block; padding-block: .75em; margin-block: -.75em; padding-inline: .12em; margin-inline: -.06em; }
[dir="ltr"] .hero-verse blockquote { text-align: left; }
.hero-verse figcaption { margin-top: .55rem; font-size: .82rem; color: rgba(255, 255, 255, .86); text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
@media (prefers-reduced-motion: no-preference) {
  .verse-word {
    -webkit-mask-image: linear-gradient(to left, #000 calc(var(--verse-p) - 8%), transparent calc(var(--verse-p) + 2%));
    mask-image: linear-gradient(to left, #000 calc(var(--verse-p) - 8%), transparent calc(var(--verse-p) + 2%));
    animation: 13s linear infinite;
  }
  .verse-word.w1 { animation-name: verse-w1; }
  .verse-word.w2 { animation-name: verse-w2; }
  .verse-word.w3 { animation-name: verse-w3; }
  .verse-word.w4 { animation-name: verse-w4; }
  .verse-word.w5 { animation-name: verse-w5; }
  .hero-verse blockquote { position: relative; animation: verse-fade 13s linear infinite; }
}
@keyframes verse-w1 { 0%, 1% { --verse-p: -3%; } 21%, 100% { --verse-p: 110%; } }
@keyframes verse-w2 { 0%, 22% { --verse-p: -3%; } 29%, 100% { --verse-p: 110%; } }
@keyframes verse-w3 { 0%, 30% { --verse-p: -3%; } 40%, 100% { --verse-p: 110%; } }
@keyframes verse-w4 { 0%, 41% { --verse-p: -3%; } 50%, 100% { --verse-p: 110%; } }
@keyframes verse-w5 { 0%, 51% { --verse-p: -3%; } 72%, 100% { --verse-p: 110%; } }
@keyframes verse-fade { 0%, 93% { opacity: 1; } 99%, 100% { opacity: 0; } }

/* Share buttons */
.share { display: grid; gap: 10px; padding: 16px 18px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.prose .share { margin-top: 20px; }
.share-label { font-weight: 600; color: var(--green-900); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 14px; background: var(--green-100); border: 0; border-radius: 999px; color: var(--green-900); font: inherit; font-size: .92rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.share-btn:hover { background: var(--green-800); color: var(--white); }
.share-btn .icon { width: 1.15em; height: 1.15em; }
.donor-wall li p.donor-dedication { color: var(--green-800); font-weight: 500; }

/* FAQ */
.faq-list { max-width: 820px; }
.faq-item { margin-bottom: 12px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq-item summary { min-height: 56px; padding: 16px 20px; font-weight: 600; color: var(--green-900); cursor: pointer; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq-more { margin-top: 22px; text-align: center; }

/* Impact stories */
.story-card { overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.story-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story-body { padding: 18px 20px; }
.story-body h3 { margin-bottom: 6px; font-size: 1.15rem; }
.story-body p { margin: 0 0 8px; }

/* Partners */
.partner-list { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 14px; margin-top: 24px; padding: 0; list-style: none; }
.partner-card { display: grid; place-items: center; min-width: 170px; height: 96px; padding: 14px 26px; background: var(--white); border: 1px solid rgb(16 90 50 / .12); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--green-900); text-decoration: none; transition: transform .25s, border-color .25s; }
a.partner-card:hover, a.partner-card:focus-visible { transform: translateY(-3px); border-color: var(--gold); }
.partner-list img { display: block; width: auto; max-width: 150px; max-height: 64px; object-fit: contain; }
.partner-name { font-size: 1.2rem; font-weight: 700; letter-spacing: .01em; }
.partner-join { margin: 22px 0 0; text-align: center; }
@media (max-width: 600px) { .partner-list li { flex: 1 1 140px; } .partner-card { min-width: 0; height: 80px; } }

/* Newsletter in the footer */
.footer-news-title { margin-top: 1.25rem; }
.footer-news-text { margin: 0 0 .5rem; }
.news-form { position: relative; display: flex; gap: 6px; }
.news-form input[type="email"] { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; background: var(--white); border: 0; border-radius: 10px; color: var(--ink); font: inherit; font-size: .92rem; }
[dir="rtl"] .news-form input[type="email"] { text-align: right; }
.news-form button { min-height: 44px; padding: 6px 14px; background: var(--gold); border: 0; border-radius: 10px; color: var(--green-950); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.news-form button:hover { background: var(--gold-dark); }
.footer-news-note { margin: .45rem 0 0; font-size: .82rem; }
.site-footer .footer-news-note a { text-decoration: underline; }

/* French menu labels are longer: tighten them where the full menu is shown */
@media (min-width: 1241px) and (max-width: 1439px) {
  html[lang="fr"] .site-nav ul { gap: 12px; }
  html[lang="fr"] .site-nav li a { font-size: .9rem; }
}

/* Shipment campaigns: route, equipment list and stage tracker. */
.tag-ship { margin-inline-start: 8px; padding: 2px 10px; background: var(--gold); border-radius: 999px; color: var(--green-900); }
.shipment { display: grid; gap: 14px; margin: 28px 0; padding: clamp(18px, 2.4vw, 28px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.shipment h3 { margin-top: 6px; font-size: 1.05rem; }
.ship-route { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 700; color: var(--green-800); }
.ship-route span:not(.ship-arrow) { padding: 6px 14px; background: var(--green-100); border-radius: 999px; }
.ship-arrow { flex: 1; max-width: 140px; height: 2px; background: repeating-linear-gradient(90deg, var(--green-700) 0 8px, transparent 8px 14px); position: relative; }
.ship-arrow::after { content: ""; position: absolute; inset-inline-end: -2px; top: -5px; border: 6px solid transparent; border-inline-start: 8px solid var(--green-700); border-inline-end: 0; }
.ship-note { margin: 0; }
.ship-items { display: grid; gap: 6px; margin: 0; padding-inline-start: 1.2em; }
.ship-stages { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ship-stages li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--muted); }
.ship-stages li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 15px; top: 40px; bottom: -8px; width: 2px; background: var(--line); }
.ship-stages li.done:not(:last-child)::after { background: var(--green-700); }
.ship-dot { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--line); border-radius: 50%; background: var(--white); font-size: .85rem; font-weight: 700; }
.ship-stages li.done { color: var(--ink); }
.ship-stages li.done .ship-dot { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.ship-stages li.current { color: var(--green-800); font-weight: 700; }
.ship-stages li.current .ship-dot { background: var(--gold); border-color: var(--gold); color: var(--green-900); }

/* Cover: shortcuts to the shipment campaign and to the aid request form. */
.hero-links { display: grid; gap: 10px; max-width: 520px; margin-top: 26px; }
.hero-link { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: rgba(6, 55, 29, .55); border: 1px solid rgba(255, 255, 255, .28); border-radius: 14px; color: var(--white); text-decoration: none; backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.hero-link:hover, .hero-link:focus-visible { background: rgba(6, 55, 29, .8); border-color: var(--gold); }
.hero-link-ship { border-color: var(--gold); }
.hero-link-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: var(--white); border-radius: 50%; color: var(--green-700); }
.hero-link-ship .hero-link-icon { background: var(--gold); color: var(--green-900); }
.hero-link-icon .icon { width: 22px; height: 22px; }
.hero-link-text { display: grid; gap: 2px; min-width: 0; }
.hero-link-text strong { font-size: 1.02rem; line-height: 1.35; }
.hero-link-text small { color: #d3e6da; font-size: .88rem; line-height: 1.45; }
.hero-link-arrow { flex: none; margin-inline-start: auto; color: var(--gold); }
.hero-link-arrow .icon { width: 20px; height: 20px; }
[dir="ltr"] .hero-link-arrow .icon { transform: scaleX(-1); }
@media (max-width: 900px) { .hero-links { max-width: none; } }
@media (max-width: 600px) { .footer-sky { height: 96px; } }

/* Two ways to give while online payment is not ready. */
.give-ways { margin-bottom: clamp(32px, 5vw, 56px); }
.give-ways h2 { margin-bottom: 18px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.give-ways-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.way-card { position: relative; display: grid; gap: 12px; padding: clamp(20px, 2.6vw, 28px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.way-card h3 { padding-inline-start: 46px; font-size: 1.12rem; }
.way-card p { margin: 0; }
.way-num { position: absolute; top: clamp(18px, 2.4vw, 26px); inset-inline-start: clamp(20px, 2.6vw, 28px); display: grid; place-items: center; width: 34px; height: 34px; background: var(--gold); border-radius: 50%; color: var(--green-900); font-weight: 700; }
.way-rib { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; background: var(--green-100); border-radius: 10px; }
.way-rib span { width: 100%; color: var(--muted); font-size: .85rem; }
.way-rib b { overflow-wrap: anywhere; color: var(--green-900); }
.way-soon { padding: 12px 14px; background: var(--gold-soft); border-radius: 10px; font-size: .95rem; }
.way-card .btn { justify-self: start; }
.way-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--green-700); font-weight: 600; }
.way-wa .icon { width: 20px; height: 20px; }
@media (max-width: 900px) { .give-ways-grid { grid-template-columns: minmax(0, 1fr); } }

/* Giving form in three numbered steps. */
.give-flow > h2 { margin-bottom: 18px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.flow-steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.flow-step { position: relative; display: grid; gap: 14px; padding: clamp(20px, 2.8vw, 30px); padding-inline-start: clamp(64px, 7vw, 84px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.flow-step > h3 { font-size: 1.2rem; }
.flow-step > p { margin: 0; }
.flow-num { position: absolute; top: clamp(18px, 2.6vw, 28px); inset-inline-start: clamp(18px, 2.4vw, 26px); display: grid; place-items: center; width: 36px; height: 36px; background: var(--green-700); border-radius: 50%; color: var(--white); font-weight: 700; }
.flow-bank .flow-num { background: var(--gold); color: var(--green-900); }
.flow-echo { color: var(--green-800); white-space: nowrap; }
.flow-step .bank-card h2 { display: none; }
.flow-more { padding: 12px 16px; background: var(--sand); border-radius: 12px; }
.flow-more summary { cursor: pointer; font-weight: 500; color: var(--green-800); }
.flow-more[open] summary { margin-bottom: 12px; }
.flow-more .field-row + .field-row { margin-top: 12px; }
.give-flow + .give-ways { margin-top: 24px; margin-bottom: 0; }
.give-ways .way-card h3 { padding-inline-start: 0; }
@media (max-width: 600px) {
  .flow-step { padding-inline-start: clamp(20px, 5vw, 24px); padding-top: 64px; }
  .flow-num { top: 18px; }
}

/* Hero: the main give button and the two shortcut icons move gently. */
@media (prefers-reduced-motion: no-preference) {
  .hero .actions .btn-gold { animation: cta-float 3.2s ease-in-out infinite, cta-ring 2.4s ease-out infinite; }
  .hero-link-icon { position: relative; }
  .hero-link-icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(255, 255, 255, .85); opacity: 0; animation: icon-ping 2.6s ease-out infinite; pointer-events: none; }
  .hero-link-ship .hero-link-icon .icon { animation: icon-turn 3.6s ease-in-out infinite; }
  .hero-link:not(.hero-link-ship) .hero-link-icon .icon { animation: icon-bob 2.8s ease-in-out infinite; }
  .hero-link:not(.hero-link-ship) .hero-link-icon::after { animation-delay: 1.3s; }
  .hero-link-ship .hero-link-icon::after { border-color: var(--gold); }
  .hero-link:hover .hero-link-icon .icon { animation-duration: 1.2s; }
}
@keyframes cta-float { 50% { translate: 0 -4px; } }
@keyframes cta-ring { 0% { box-shadow: 0 0 0 0 rgba(247, 187, 30, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(247, 187, 30, 0); } }
@keyframes icon-ping { 0% { opacity: .7; scale: 1; } 80%, 100% { opacity: 0; scale: 1.45; } }
@keyframes icon-turn { 0%, 55% { rotate: 0deg; scale: 1; } 70% { rotate: 90deg; scale: 1.18; } 85%, 100% { rotate: 90deg; scale: 1; } }
@keyframes icon-bob { 0%, 100% { translate: 0 0; } 30% { translate: 0 -3px; } 60% { translate: 0 1px; } }

/* Impact: every kind of work the association does, small and in one row. */
.impact-wrap { position: relative; display: grid; gap: 26px; padding-block: clamp(64px, 7vw, 96px); }
.impact-head { max-width: 720px; }
.impact-head h2 { padding: 0; }
.impact-head p { margin: 10px 0 0; color: rgb(255 255 255 / .85); font-size: 1.05rem; line-height: 1.6; }
.impact-works { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.impact-works li + li { border-inline-start: 1px solid rgb(255 255 255 / .3); }
.impact-works a { display: grid; justify-items: center; align-content: start; gap: 8px; height: 100%; padding: 4px 8px; color: var(--white); text-align: center; text-decoration: none; }
.impact-works .icon { width: 34px; height: 34px; color: var(--gold); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.impact-works a:hover .icon, .impact-works a:focus-visible .icon { transform: translateY(-3px) scale(1.15); }
.impact-works a:hover .work-name, .impact-works a:focus-visible .work-name { color: var(--gold); }
.impact-works a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.work-name { font-size: .82rem; font-weight: 600; line-height: 1.35; transition: color .2s; }
.work-short { display: none; }
.impact-reach { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin: 4px 0 0; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .25); }
.impact-reach .icon { width: 30px; height: 30px; color: var(--gold); }
.impact-reach strong { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
@media (max-width: 1000px) {
  /* Tablet: everything visible in two short rows, no sideways scrolling. */
  .impact-works { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 22px; }
  .impact-works li:nth-child(5n + 1) { border-inline-start: 0; }
  .impact-works .icon { width: 30px; height: 30px; }
  .work-name { font-size: .8rem; }
}
@media (max-width: 600px) {
  /* Phone: small pills that wrap tightly, so the section stays short. */
  .impact-wrap { gap: 16px; padding-block: 52px 60px; }
  .impact-head p { font-size: .92rem; }
  .impact-works { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 5px; }
  .impact-works li, .impact-works li + li { border: 0; }
  .impact-works a { display: flex; align-items: center; gap: 7px; height: auto; padding: 4px 4px 4px 12px; background: var(--white); border-radius: 999px; color: var(--green-950); box-shadow: 0 4px 12px rgb(0 0 0 / .14); }
  [dir="rtl"] .impact-works a { padding: 3px 3px 3px 10px; }
  [dir="ltr"] .impact-works a { padding: 3px 10px 3px 3px; }
  .impact-works .icon { flex: none; box-sizing: content-box; width: 14px; height: 14px; padding: 4px; border-radius: 50%; background: var(--gold); color: var(--green-950); }
  /* Short name shows; the full title stays for screen readers. */
  .work-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .work-short { display: inline; font-size: .78rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
  .impact-works a:hover .work-short, .impact-works a:focus-visible .work-short { color: var(--green-700); }
  .impact-reach { padding-top: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Impact icons bob gently, one after another like a wave. */
  .impact-works li .icon { animation: work-bob 3.2s ease-in-out infinite; }
  .impact-works li:nth-child(2) .icon { animation-delay: -.32s; } .impact-works li:nth-child(3) .icon { animation-delay: -.64s; }
  .impact-works li:nth-child(4) .icon { animation-delay: -.96s; } .impact-works li:nth-child(5) .icon { animation-delay: -1.28s; }
  .impact-works li:nth-child(6) .icon { animation-delay: -1.6s; } .impact-works li:nth-child(7) .icon { animation-delay: -1.92s; }
  .impact-works li:nth-child(8) .icon { animation-delay: -2.24s; } .impact-works li:nth-child(9) .icon { animation-delay: -2.56s; }
  .impact-works li:nth-child(10n) .icon { animation-delay: -2.88s; }
  .impact-works a:hover .icon, .impact-works a:focus-visible .icon { animation: work-wiggle .6s ease; }
}
@keyframes work-bob { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-5px) rotate(-6deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-2px) rotate(5deg); } }
@keyframes work-wiggle { 30% { transform: translateY(-5px) scale(1.2) rotate(-10deg); } 60% { transform: translateY(-2px) scale(1.1) rotate(8deg); } }

/* Latest YouTube video: badge, view count and title over the thumbnail. */
.video-latest { background: var(--green-950); }
.video-latest img { transform: scale(1.04); }
/* Soft green fade at the top and bottom, so no hard edges or black bands show. */
.video-latest::after { background: linear-gradient(to bottom, rgb(4 40 20 / .85) 0%, rgb(4 40 20 / 0) 30%, rgb(4 40 20 / 0) 50%, rgb(4 40 20 / .9) 88%, rgb(4 40 20 / .97) 100%); }
/* Playing inside the page. */
.video-card.is-playing { cursor: default; }
.video-card.is-playing::after { content: none; }
.video-card iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.video-badge, .video-views { position: absolute; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.2; }
.video-badge { inset-inline-start: 12px; background: var(--gold); color: var(--green-950); }
.video-views { inset-inline-end: 12px; background: rgb(0 0 0 / .55); color: var(--white); backdrop-filter: blur(4px); }
.video-views .icon { width: 12px; height: 12px; color: #ff4d4d; }
.video-title { position: absolute; inset-inline: 14px; bottom: 14px; z-index: 1; display: -webkit-box; overflow: hidden; color: var(--white); font-size: 1rem; font-weight: 700; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.video-latest .video-play { top: 46%; }
@media (max-width: 600px) { .video-title { font-size: .9rem; } }

/* Orphans and widows page. */
.fam-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.fam-help li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(20px, 2.4vw, 28px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.fam-help h3 { margin: 0; font-size: 1.15rem; }
.fam-help p { flex: 1; margin: 0; color: var(--muted, #555); line-height: 1.6; }
.fam-help-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold-soft); color: var(--green-800); }
.fam-help-icon .icon { width: 24px; height: 24px; }
.fam-form-title { margin: 0 0 .4rem; }
.fam-form-lead { margin: 0 0 1.4rem; line-height: 1.7; }
#register { scroll-margin-top: 110px; }
@media (max-width: 900px) { .fam-help { grid-template-columns: minmax(0, 1fr); } }

/* Hero links as tiles: three side by side, icon on top, short title. */
.hero-links { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 10px; max-width: 560px; }
.hero-link { position: relative; flex-direction: column; justify-content: flex-start; gap: 9px; padding: 16px 10px 14px; border-radius: 18px; text-align: center; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), background .2s, border-color .2s; }
.hero-link:hover, .hero-link:focus-visible { transform: translateY(-4px); }
.hero-link-ship { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.hero-link-ship:hover, .hero-link-ship:focus-visible { background: #ffc934; border-color: var(--white); }
.hero-link-ship .hero-link-icon { background: var(--green-800); color: var(--gold); }
.hero-link-icon { width: 46px; height: 46px; }
.hero-link-text { justify-items: center; gap: 4px; }
.hero-link-text strong { font-size: .95rem; line-height: 1.3; }
.hero-link-text small { font-size: .76rem; line-height: 1.4; }
.hero-link-ship .hero-link-text small { color: rgb(6 55 29 / .8); }
.hero-link-arrow { display: none; }
@media (max-width: 600px) {
  .hero-links { gap: 8px; }
  .hero-link { padding: 13px 6px 12px; gap: 8px; border-radius: 16px; }
  .hero-link-icon { width: 42px; height: 42px; }
  .hero-link-text strong { font-size: .84rem; }
  /* Phones: the short title is enough; the sentence stays for screen readers. */
  .hero-link-text small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-link-ship .hero-link-icon::after { border-color: var(--green-800); }
}

/* Partners: every logo in gold on the association's green. Logos need a transparent background. */
.partner-card { background: var(--green-800); border-color: rgb(247 187 30 / .35); }
a.partner-card:hover, a.partner-card:focus-visible { background: var(--green-900); }
.partner-list img { filter: brightness(0) saturate(100%) invert(77%) sepia(62%) saturate(870%) hue-rotate(358deg) brightness(101%) contrast(94%); }
.partner-name { color: var(--gold); }

/* Hero tiles: icons in a soft rounded square with a gold outline, no white disc. */
.hero-link-icon { width: 48px; height: 48px; background: rgb(247 187 30 / .12); border: 1.5px solid rgb(247 187 30 / .75); border-radius: 15px; color: var(--gold); transform: rotate(-4deg); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
.hero-link-icon .icon { width: 24px; height: 24px; transform: rotate(4deg); }
.hero-link:hover .hero-link-icon, .hero-link:focus-visible .hero-link-icon { transform: rotate(0) scale(1.08); background: rgb(247 187 30 / .22); }
.hero-link-ship .hero-link-icon { background: rgb(6 55 29 / .1); border-color: var(--green-800); color: var(--green-800); }
.hero-link-ship:hover .hero-link-icon, .hero-link-ship:focus-visible .hero-link-icon { background: rgb(6 55 29 / .16); }
@media (max-width: 600px) { .hero-link-icon { width: 42px; height: 42px; border-radius: 13px; } .hero-link-icon .icon { width: 21px; height: 21px; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-link-icon::after { border-color: rgb(247 187 30 / .8); }
}
/* Partners: small cards side by side. */
.partner-list { gap: 12px; }
.partner-card { min-width: 0; width: 150px; height: 74px; padding: 10px 16px; border-radius: 16px; }
.partner-list img { max-width: 112px; max-height: 46px; }
.partner-name { font-size: .95rem; }
@media (max-width: 600px) { .partner-list { gap: 8px; } .partner-list li { flex: 0 0 calc((100% - 16px) / 3); } .partner-card { width: 100%; height: 60px; padding: 8px 10px; border-radius: 13px; } .partner-list img { max-width: 100%; max-height: 36px; } }
/* Partners: one green gradient panel, gold logos on it with no boxes. */
.partners { margin-block: clamp(20px, 4vw, 44px); padding: clamp(34px, 5vw, 56px) clamp(16px, 4vw, 48px); background: radial-gradient(120% 140% at 85% 0%, #1d7a45 0%, var(--green-800) 45%, var(--green-950) 100%); border-radius: calc(var(--radius) * 1.4); box-shadow: var(--shadow); color: var(--white); }
.partners .fancy-title h2 { color: var(--white); }
.partners .fancy-title p { color: rgb(255 255 255 / .82); }
.partners .partner-list { gap: 10px clamp(18px, 4vw, 46px); margin-top: 28px; }
.partners .partner-card { width: auto; min-width: 0; height: 64px; padding: 6px 4px; background: none; border: 0; box-shadow: none; }
.partners a.partner-card:hover, .partners a.partner-card:focus-visible { background: none; transform: translateY(-3px) scale(1.05); }
.partners .partner-list img { max-width: 140px; max-height: 50px; }
.partners .partner-join a { color: var(--gold); }
@media (max-width: 600px) {
  .partners .partner-list li { flex: 0 0 calc((100% - 20px) / 3); }
  .partners .partner-card { height: 52px; }
  .partners .partner-list img { max-height: 38px; }
}
.partners .fancy-title h2::before { background: linear-gradient(to right, transparent, var(--gold)); }
.partners .fancy-title h2::after { background: linear-gradient(to left, transparent, var(--gold)); }
@media (max-width: 600px) { .partners { width: calc(100% - 24px); margin-inline: auto; } }
