/* Nada Foundation Yemen — the one stylesheet of the public site.
   Identity (docs/DESIGN.md): a Sana'a tower house. Fired brick, white gypsum, and the coloured glass of the qamariya.
   RTL first: every spacing and position uses logical properties, so Arabic and English share all rules. */

/* ---------- Fonts (self-hosted woff2 subsets, SIL Open Font License; N-04: every theme) ----------
   Alexandria for headings, Readex Pro for text; both cover Arabic and Latin. No third-party font request. */
@font-face { font-family: 'Alexandria'; src: url(/assets/fonts/alexandria-arabic-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-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: 'Alexandria'; src: url(/assets/fonts/alexandria-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Readex Pro'; src: url(/assets/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+0897-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(/assets/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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  /* gypsum: the white plaster of the façades */
  --gypsum: #f7f5f0;
  --gypsum-2: #eeeae1;
  --line: #d6cdbf;
  --frame: #ffffff;
  /* ink */
  --ink: #2a211d;
  --ink-soft: #5c4e47;
  /* brick: the fired brick of the tower houses */
  --brick: #6b2d1e;
  --brick-deep: #45190f;
  --on-brick: #fbf8f2;
  --on-brick-soft: #ecdcd0;
  /* logo colours (measured from the logo) */
  --logo-heart: #c86429;
  --logo-child: #454342;
  --logo-hand: #154721;
  /* actions and links */
  --link: #96421a;
  --help: #154721;
  --on-help: #ffffff;
  --focus: #17697a;
  /* qamariya glass: decoration and marks only, never text */
  --glass-teal: #1b7f93;
  --glass-amber: #e3a72f;
  --glass-ruby: #a8323e;
  --glass-green: #2e7d4f;
  --glass-orange: #d9722f;

  --font-body: 'Readex Pro', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Alexandria', 'Readex Pro', system-ui, sans-serif;
  --gutter: clamp(20px, 4.5vw, 56px);
  --wrap: 1200px;
  --band: clamp(52px, 7vw, 96px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gypsum: #1b1310; --gypsum-2: #251a15; --line: #4d3b31; --frame: #f3ede4;
    --ink: #f1ebe2; --ink-soft: #cbbfb3;
    --brick: #3b1a11; --brick-deep: #120b09; --on-brick: #fbf8f2; --on-brick-soft: #e4d3c6;
    --logo-heart: #e58a52; --logo-child: #ede6dc; --logo-hand: #76b98a;
    --link: #f2a878; --help: #8fd0a3; --on-help: #0f1f14; --focus: #7fd0e0;
    --glass-teal: #2a93a8; --glass-ruby: #b8424d; --glass-green: #3a8c5c;
  }
}
:root[data-theme="dark"] {
  --gypsum: #1b1310; --gypsum-2: #251a15; --line: #4d3b31; --frame: #f3ede4;
  --ink: #f1ebe2; --ink-soft: #cbbfb3;
  --brick: #3b1a11; --brick-deep: #120b09; --on-brick: #fbf8f2; --on-brick-soft: #e4d3c6;
  --logo-heart: #e58a52; --logo-child: #ede6dc; --logo-hand: #76b98a;
  --link: #f2a878; --help: #8fd0a3; --on-help: #0f1f14; --focus: #7fd0e0;
  --glass-teal: #2a93a8; --glass-ruby: #b8424d; --glass-green: #3a8c5c;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
/* Arabic sets the rhythm: taller lines for Arabic text, tighter for Latin. An element in the other language
   (a post title, a quote) carries its own lang attribute and takes that language's values. */
html, [lang="ar"] { --lh: 1.8; --lh-head: 1.45; --fs: 1.125rem; }
html[lang="en"], [lang="en"] { --lh: 1.65; --lh-head: 1.18; --fs: 1.0625rem; }
body { margin: 0; background: var(--gypsum); color: var(--ink); font-family: var(--font-body); font-size: var(--fs, 1.125rem); line-height: var(--lh); }
:where([lang]) { line-height: var(--lh); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; line-height: var(--lh-head); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 50; background: var(--brick); color: var(--on-brick); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-weight: 600; text-decoration: none; padding: 0.62em 1.25em; border: 2px solid transparent; border-radius: 3px; line-height: 1.5; }
.btn:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.btn-help { background: var(--help); color: var(--on-help); }
.btn-donate { border-color: var(--link); color: var(--link); }
.btn-brick { background: var(--brick); color: var(--on-brick); }
.btn-gypsum { background: var(--on-brick); color: #45190f; }

/* ---------- Logo ---------- */
.lg-heart { fill: var(--logo-heart); }
.lg-child { fill: var(--logo-child); }
.lg-hand { fill: var(--logo-hand); }

/* ---------- Header and main menu ---------- */
.site-head { background: var(--gypsum); position: relative; z-index: 20; }
.head-row { display: flex; align-items: center; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand .logo { width: 54px; height: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.25; }
.brand-tag { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.4; }
.site-nav { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-list > li { position: relative; }
.nav-list a, .sub-btn { display: flex; align-items: center; gap: 6px; padding: 8px 9px; color: var(--ink); font: inherit; font-size: 0.98rem; font-weight: 500; line-height: 1.6; text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; border-radius: 2px; }
.nav-list a:hover, .sub-btn:hover { text-decoration: underline; text-decoration-color: var(--logo-heart); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.nav-list a[aria-current="page"], .sub-btn.is-here { text-decoration: underline; text-decoration-color: var(--brick); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.chev { width: 11px; height: 8px; flex: none; transition: transform 0.15s; }
.sub-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub { display: none; }
.sub-btn[aria-expanded="true"] + .sub { display: block; }
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.head-actions .btn { padding: 0.42em 1em; font-size: 0.98rem; }
.lang-switch { font-weight: 500; padding: 8px 6px; color: var(--ink); }
.menu-btn { display: none; }
/* the full menu needs the room: between the menu breakpoint and wide screens the tagline steps aside */
@media (min-width: 1320px) and (max-width: 1679.98px) { .brand-tag { display: none; } .nav-list a, .sub-btn { padding-inline: 5px; font-size: 0.92rem; } .head-actions { gap: 4px; } .head-actions .btn { padding-inline: 0.8em; font-size: 0.92rem; } .brand .logo { width: 46px; } }

@media (min-width: 1320px) {
  .sub { position: absolute; inset-inline-start: 0; top: 100%; min-width: 250px; background: var(--gypsum); border: 1px solid var(--line); border-top: 3px solid var(--brick); padding: 8px; box-shadow: 0 14px 30px -18px rgba(42, 33, 29, 0.55); }
  .sub a { padding: 9px 12px; white-space: normal; }
  /* without the script the sub-menus still open on keyboard focus */
  html:not(.js) .has-sub:focus-within .sub { display: block; }
}
@media (max-width: 1319.98px) {
  .head-row { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; margin-inline-start: auto; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--ink); background: none; border: 2px solid var(--ink); border-radius: 3px; cursor: pointer; }
  .menu-bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  html.js .site-nav { display: none; }
  html.js.menu-open .site-nav { display: flex; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .sub { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list a, .sub-btn { width: 100%; justify-content: space-between; padding: 13px 4px; font-size: 1.05rem; white-space: normal; text-align: start; }
  .sub { padding-inline-start: 18px; padding-bottom: 8px; }
  .sub a { padding-block: 9px; font-weight: 400; }
  .head-actions { flex-wrap: wrap; padding-block: 16px 6px; }
  .head-actions .btn { flex: 1; text-align: center; padding-block: 0.6em; }
  .lang-switch { flex-basis: 100%; }
}
@media (max-width: 420px) {
  .brand .logo { width: 44px; }
  .brand-name { font-size: 1.2rem; }
  .brand-tag { font-size: 0.72rem; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-btn { padding: 14px 12px; }
}

/* ---------- The frieze: the gypsum band between the floors ---------- */
.frieze { height: 26px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2236%22%20height%3D%2226%22%20viewBox%3D%220%200%2036%2026%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23f7f5f0%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22square%22%3E%3Cpath%20d%3D%22M0%201.2H36M0%2024.8H36%22%2F%3E%3Cpath%20d%3D%22M0%2019L9%207L18%2019L27%207L36%2019%22%20stroke-linejoin%3D%22miter%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23f7f5f0%22%20d%3D%22M9%2015.5L11.6%2019L9%2022.5L6.4%2019ZM27%2015.5L29.6%2019L27%2022.5L24.4%2019Z%22%2F%3E%3C%2Fsvg%3E") repeat-x center / 36px 26px; opacity: 0.92; }

/* ---------- Hero: a window in a brick wall ---------- */
.hero { background: var(--brick); color: var(--on-brick); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(44px, 6vw, 84px); }
.hero-mark { width: 74px; height: auto; margin-bottom: 14px; }
/* the Our Dreams Thrive project mark (vector, traced from the old PNG) — always sits on brick */
.odt-girl { fill: #ffffff; } .odt-page { fill: #7fd0d6; } .odt-cover { fill: #2ba6cc; }
.hero h1, .hero .hero-h1 { margin: 0 0 22px; max-width: none; color: inherit; font-family: var(--font-display); font-weight: 600; line-height: var(--lh-head); }
.hero-title { display: block; font-weight: 700; font-size: clamp(3rem, 1.6rem + 6.2vw, 6.4rem); }
.hero-title:lang(ar) { line-height: 1.35; }
.hero-title:lang(en) { line-height: 1.02; }
.hero-sub { display: block; margin-top: 10px; font-family: var(--font-body); font-weight: 500; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); line-height: 1.5; color: var(--on-brick-soft); }
.hero p { color: var(--on-brick); max-width: 60ch; margin-bottom: 28px; }
.hero :focus-visible, .site-foot :focus-visible { outline-color: #ffffff; }
.window { justify-self: center; width: min(100%, 440px); background: var(--frame); padding: 10px; border-radius: 999px 999px 0 0; }
.window .qamariya { width: 100%; height: auto; }
.window img { width: 100%; margin-top: 10px; }
.glass { animation: light 0.7s both; animation-delay: calc(var(--i) * 45ms + 250ms); }
.g-teal { fill: var(--glass-teal); } .g-amber { fill: var(--glass-amber); } .g-ruby { fill: var(--glass-ruby); } .g-green { fill: var(--glass-green); } .g-orange { fill: var(--glass-orange); }
.eye { fill: var(--frame); }
@keyframes light { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .glass { animation: none; } html { scroll-behavior: auto; } .chev { transition: none; } }

/* ---------- Bands (the floors of the page) ---------- */
.band { padding-block: var(--band); }
.band-alt { background: var(--gypsum-2); }
.band h2 { margin-bottom: clamp(24px, 3vw, 40px); }

/* posts */
.post h3 { margin-bottom: 4px; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { text-decoration: underline; text-decoration-color: var(--logo-heart); text-decoration-thickness: 2px; }
.post-img { display: block; }
.post-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-date { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 8px; }
.post-excerpt { margin: 0; }
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.post-row { display: grid; grid-template-columns: minmax(140px, 240px) 1fr; gap: 22px; align-items: start; }
.campaigns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.post-tall .post-body { padding-top: 18px; }
.post-tall h3 { font-size: 1.55rem; }

/* programmes */
.programmes { display: grid; grid-template-columns: 1fr 1fr; }
.programme { padding-inline-end: clamp(24px, 4vw, 64px); }
.programme + .programme { padding-inline: clamp(24px, 4vw, 64px) 0; border-inline-start: 1px solid var(--line); }
.programme-mark { width: 112px; height: 112px; object-fit: contain; margin-bottom: 18px; }
.programme h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); margin-bottom: 14px; }
.programme h2 a { color: var(--ink); text-decoration: none; }
.programme h2 a:hover { text-decoration: underline; text-decoration-color: var(--logo-heart); text-decoration-thickness: 2px; }
.link-list li { position: relative; padding-inline-start: 22px; margin-top: 6px; }
.link-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.72em; width: 8px; height: 8px; background: var(--logo-heart); transform: rotate(45deg); }

/* how we help */
.helps { display: grid; gap: clamp(40px, 5vw, 72px); }
.help { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.help h2 { margin-bottom: 14px; }
.help-flip .video { order: -1; }
.video-play, .video iframe { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.86; }
.play-mark { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--glass-amber); border: 4px solid #fff; }
.play-mark::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 21px solid #45190f; transform: translateX(3px); /* a play mark points the same way in every language */ }
.video-play:hover .play-mark { background: #fff; }
.video-note { margin: 8px 0 0; font-size: 0.86rem; color: var(--ink-soft); }

/* photo strip */
.band-strip { padding-bottom: var(--band); }
.strip-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 32px); }
.band .strip-head h2 { margin: 0; }
.strip-btns { display: flex; gap: 8px; flex: none; }
html:not(.js) .strip-btns { display: none; }
.strip-btn { width: 46px; height: 46px; display: grid; place-items: center; color: var(--ink); background: none; border: 2px solid var(--ink); border-radius: 3px; cursor: pointer; }
.strip-btn:hover { background: var(--ink); color: var(--gypsum); }
.strip-btn svg { width: 22px; height: 22px; }
[dir="ltr"] .strip-btn[data-strip="-1"] svg, [dir="rtl"] .strip-btn[data-strip="1"] svg { transform: scaleX(-1); }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding-bottom: 14px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.strip li { flex: none; scroll-snap-align: start; }
.strip img { height: clamp(210px, 24vw, 300px); width: auto; }

/* testimonials */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 72px); }
.testimonial { margin: 0; padding-inline-start: 24px; border-inline-start: 4px solid var(--glass-teal); }
.testimonial:nth-child(2) { border-color: var(--glass-amber); }
.testimonial:nth-child(3) { border-color: var(--glass-ruby); }
.testimonial:nth-child(4) { border-color: var(--glass-green); }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-size: 1.18rem; margin-bottom: 18px; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.testimonial img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.t-name { display: block; font-weight: 600; line-height: 1.4; }
.t-role { display: block; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }

/* message, goals, dreams */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.glass-mark { width: 56px; height: 28px; margin-bottom: 18px; }
.mark-bar { stroke: var(--gypsum-2); stroke-width: 2.4; }
.principle h3 { font-size: 1.6rem; margin-bottom: 10px; }
.principle li { position: relative; padding-inline-start: 22px; margin-top: 4px; }
.principle li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.72em; width: 8px; height: 8px; background: var(--glass-amber); transform: rotate(45deg); }

/* ---------- Inner pages ---------- */
/* the head: the brick wall with the page's name */
.page-head { background: var(--brick); color: var(--on-brick); }
.page-head .wrap { padding-block: clamp(40px, 6vw, 84px) clamp(36px, 5vw, 68px); }
.page-head h1 { font-weight: 700; font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem); }
.page-head h1:lang(ar) { line-height: 1.4; }
.page-head h1:lang(en) { line-height: 1.06; }
.page-lead { margin: 18px 0 0; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); color: var(--on-brick-soft); max-width: 46ch; }
.page-head :focus-visible, .verse :focus-visible { outline-color: #ffffff; }

.prose > * { max-width: 68ch; }
.prose .lead, .lead-grid .lead { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.42rem); }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.lead-grid.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lead-grid h2 { margin-bottom: 18px; }
.lead-grid h2 a, .row h2 a { color: var(--ink); text-decoration: none; }
.lead-grid h2 a:hover { text-decoration: underline; text-decoration-color: var(--logo-heart); text-decoration-thickness: 2px; }
.plate { margin: 0; background: var(--frame); padding: 10px; }
.plate img { width: 100%; }
/* a brick niche with an arch, for the project mark */
.mark-plate { justify-self: center; width: min(100%, 320px); aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--brick); border: 10px solid var(--frame); border-radius: 999px 999px 0 0; }
.mark-plate .odt-mark { width: 46%; height: auto; margin-top: 12%; }

/* heading at the start, text beside it */
.rows { display: grid; gap: clamp(36px, 5vw, 64px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px clamp(28px, 5vw, 72px); align-items: start; }
.band .row h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.05rem); margin: 0; }
.row-body > :last-child { margin-bottom: 0; }
.row + .row { border-top: 1px solid var(--line); padding-top: clamp(36px, 5vw, 64px); }
.numbered { list-style: none; counter-reset: n; display: grid; gap: 18px; max-width: 68ch; }
.numbered li { counter-increment: n; position: relative; padding-inline-start: 2.6em; }
.numbered li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: -0.05em; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.4; color: var(--link); }
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); margin-top: 8px; }
.phase { border-top: 4px solid var(--glass-teal); padding-top: 14px; }
.phase + .phase { border-color: var(--glass-amber); }
.phase h3 { margin-bottom: 8px; }
.gone-note { font-size: 0.92rem; color: var(--ink-soft); }
.addr { overflow-wrap: anywhere; }
.findings { display: grid; gap: 10px; max-width: 68ch; }
.findings li { position: relative; padding-inline-start: 22px; }
.findings li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.72em; width: 8px; height: 8px; background: var(--glass-ruby); transform: rotate(45deg); }
[lang="en"] .findings li::before, [lang="en"] .link-list li::before, [lang="en"] .principle li::before { top: 0.6em; }

/* child marriage: the opening lines and the closing message */
.opening { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: var(--lh-head); max-width: 30ch; margin-bottom: 1.1em; }
.opening span { display: block; }
.opening:lang(ar) { line-height: 1.6; }
.verse { background: var(--brick); color: var(--on-brick); }
.verse .frieze { transform: scaleY(-1); }
.verse .wrap { padding-block: clamp(44px, 6vw, 88px) clamp(52px, 7vw, 96px); }
.verse h2 { font-family: var(--font-body); font-weight: 500; font-size: 1.1rem; line-height: 1.6; color: var(--on-brick-soft); margin-bottom: 22px; }
.verse-lines { max-width: none; margin: 0; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); }
.verse-lines span { display: block; max-width: 60ch; }
.verse-lines .verse-loud { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); max-width: none; margin-block: 0.12em; }
.verse-lines .verse-loud:lang(ar) { line-height: 1.5; }
.verse-lines .verse-loud:lang(en) { line-height: 1.12; }

/* safe havens: the seven steps */
.sh-top { margin-bottom: clamp(36px, 5vw, 64px); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 56px); }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 10px; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1.25; color: var(--link); }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; }
.cities { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: var(--lh-head); color: var(--ink); }
.sh-welcome { align-items: start; }

/* awareness: topics, closing row */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px); }
.topic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 16px; }
.topic h3 { margin-bottom: 8px; }
.topic p { margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.band .cta-row h2 { margin: 0; }

/* placeholder pages and plain text pages */
.prose h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); margin-bottom: 20px; }
.stub-note { font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--brick-deep); color: var(--on-brick); --logo-heart: #e58a52; --logo-child: #f3ede4; --logo-hand: #76b98a; }
.site-foot a { color: var(--on-brick); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.foot-grid { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(32px, 6vw, 96px); padding-block: clamp(40px, 5vw, 64px); }
.foot-brand .logo { width: 76px; height: auto; margin-bottom: 14px; }
.foot-name { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.3; margin: 0; }
.foot-tag { color: var(--on-brick-soft); margin: 0; }
.foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-col h2 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--on-brick-soft); margin-bottom: 10px; }
.foot-col li { margin-top: 6px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; padding-block: 18px 26px; border-top: 1px solid rgba(251, 248, 242, 0.22); font-size: 0.9rem; color: var(--on-brick-soft); }
.foot-base p { margin: 0; max-width: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .window { order: -1; width: min(86vw, 400px); }
  .featured, .campaigns, .programmes, .help, .testimonials, .principles, .lead-grid, .lead-grid.even, .row, .topics { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .mark-plate { width: min(60vw, 260px); }
  .programme, .programme + .programme { padding-inline: 0; }
  .programme + .programme { border-inline-start: 0; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 36px; }
  .help-flip .video { order: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .post-row, .steps, .phases { grid-template-columns: 1fr; }
}

/* ---- old posts, lists and attachment pages (N-03: every old address answers) ---- */
.post h1 { overflow-wrap: anywhere; }
.post-meta { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: clamp(20px, 3vw, 36px); }
.post-kicker { color: var(--ink-soft); font-weight: 600; margin-bottom: 4px; }
.post p, .post li { overflow-wrap: anywhere; }
.post h2, .post h3, .post h4 { margin-top: 1.6em; margin-bottom: 0.5em; }
.post .video { margin-block: 22px; }
.post blockquote { margin: 22px 0; padding-inline-start: 18px; border-inline-start: 4px solid var(--glass-teal); }
.post ul, .post ol { padding-inline-start: 1.4em; margin-bottom: 1em; }
.post ul { list-style: disc; }
.post ol { list-style: decimal; }
.post-fig { margin: 22px 0; }
.post-fig img { max-width: 100%; height: auto; background: var(--frame); }
.video-play.no-poster { background: #1b1310; }
.post-list { list-style: none; padding: 0; display: grid; gap: 12px; max-width: 80ch; }
.post-list li { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.post-list a { font-weight: 600; overflow-wrap: anywhere; }
.post-list time { display: block; color: var(--ink-soft); font-size: 0.88rem; }
/* ---------- N-03: Our Dreams Thrive, The founder, Questions and answers, Contact ---------- */
/* the head of Our Dreams Thrive carries the project mark */
.page-head .hero-mark { width: 64px; }
/* beneficiaries: the old page's four figures, one per governorate */
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.counts li { border-top: 4px solid var(--glass-teal); padding-top: 12px; }
.counts li:nth-child(2) { border-color: var(--glass-amber); }
.counts li:nth-child(3) { border-color: var(--glass-ruby); }
.counts li:nth-child(4) { border-color: var(--glass-green); }
.count { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem); line-height: 1.2; }
.count-place { display: block; color: var(--ink-soft); }
/* a sentence on the brick wall */
.wall-quote { margin: 0; }
.wall-quote p { max-width: 24ch; margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.6rem); }
.wall-quote p:lang(ar) { line-height: 1.55; }
.wall-quote p:lang(en) { line-height: 1.14; }
.wall-quote footer { color: var(--on-brick-soft); font-size: 1.1rem; }
/* short points in three columns, a hairline above each */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 56px); margin-top: clamp(28px, 4vw, 48px); }
.points li { border-top: 1px solid var(--line); padding-top: 14px; }
.points h3 { margin-bottom: 8px; }
.points p { margin: 0; }
.points p + p { margin-top: 0.4em; }
.voices .testimonial h3 { margin-bottom: 10px; }
.voices .testimonial blockquote p { font-size: 1.0625rem; }
/* the founder */
.dashes { display: grid; gap: 10px; max-width: 68ch; }
.help-text .findings { max-width: 60ch; }
.award { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); margin-top: clamp(36px, 5vw, 64px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.award img { width: 120px; flex: none; background: #ffffff; padding: 8px; }
.award p { margin: 0; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); max-width: 44ch; }
/* questions and answers: native details, one hairline between questions */
.faq { max-width: 860px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-block: 20px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 0.55em; margin-inline-end: 4px; border-inline-end: 2.5px solid var(--link); border-bottom: 2.5px solid var(--link); transform: rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq summary:hover h3 { text-decoration: underline; text-decoration-color: var(--logo-heart); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.faq-a { padding-bottom: 24px; }
.faq-a > :last-child { margin-bottom: 0; }
.faq-a .findings { margin-bottom: 1em; }
.cta-row p { margin: 0; }
.band .cta-row h2 + p { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
@media (max-width: 900px) {
  .counts { grid-template-columns: 1fr 1fr; }
  .points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .points { grid-template-columns: 1fr; }
  .award { flex-direction: column; align-items: flex-start; }
}
.row-body .lead { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.42rem); }
.voices { margin-top: clamp(28px, 4vw, 48px); }
.band .help h2.h-long { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.05rem); margin-bottom: 20px; }

/* ---- lists of old posts (blog, campaigns, articles, videos) and the Arabic side of old posts ---- */
.page-count { margin: 10px 0 0; color: var(--on-brick-soft); font-size: 0.95rem; }
.year-nav ul { list-style: none; padding: 0; margin: 0 0 clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 8px; }
.year-nav a { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.year-nav a:hover { border-color: var(--link); text-decoration: underline; }
.year { scroll-margin-top: 90px; }
.year + .year { margin-top: clamp(36px, 5vw, 60px); }
.year > h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 18px; }
.pcards { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pcard { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pcard > a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.pcard > a:hover .pcard-title { text-decoration: underline; text-decoration-color: var(--logo-heart); text-decoration-thickness: 2px; }
.pcard img, .pcard-tile { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--gypsum-2); border: 1px solid var(--line); }
.pcard-tile { background: linear-gradient(135deg, var(--brick) 0 50%, var(--brick-deep) 50% 100%); }
.pcard-title { font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.pcard-meta { margin: 0; color: var(--ink-soft); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.pcard-ex { margin: 0; color: var(--ink); font-size: 0.95rem; overflow-wrap: anywhere; }
.lang-tag { display: inline-block; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; color: var(--ink-soft); }
.pcards-v { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.post-orig { color: var(--ink-soft); font-size: 0.95rem; margin-top: -6px; overflow-wrap: anywhere; }
.post-h { margin-top: 1.4em; }
.not-found hr { margin-block: 32px; border: 0; border-top: 1px solid var(--line); }
/* ---------- N-03b: photo-strip buttons, slots, Donate, Get help ---------- */
/* the strip buttons: hidden when the strip fits, faded when there is nothing more in their direction */
.strip-btns[hidden] { display: none; }
.strip-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.strip-btn[aria-disabled="true"]:hover { background: none; color: var(--ink); }
/* a marked slot: a detail the owner has not given yet, or the detail itself once given */
.slot { max-width: 68ch; margin-top: clamp(24px, 3vw, 36px); padding: 18px 22px 20px; background: var(--gypsum); border: 2px dashed var(--line); border-inline-start: 6px solid var(--glass-amber); }
.band-alt .slot { background: var(--gypsum-2); border-color: var(--ink-soft); border-inline-start-color: var(--glass-amber); }
.slot-filled { border-style: solid; border-inline-start-color: var(--glass-green); }
.slot h3 { margin-bottom: 6px; }
.slot p { margin: 0; }
.slot p + p { margin-top: 0.6em; }
.slot .slot-state { display: inline-block; font-size: 0.86rem; font-weight: 600; color: var(--ink); background: var(--gypsum-2); border: 1px solid var(--ink-soft); padding: 1px 10px; margin-bottom: 10px; }
.band-alt .slot-state { background: var(--gypsum); }
.slot-list { margin: 8px 0 0; display: grid; gap: 6px; }
.slot-list div { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.slot-list dt { font-weight: 600; min-width: 8em; }
.slot-list dd { margin: 0; }
.row-body .slot { margin-block: 0 1em; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.slots .slot { margin-top: 0; max-width: none; }
/* donate: the three monthly gifts */
.gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.gifts li { border-top: 4px solid var(--glass-teal); padding-top: 12px; }
.gifts li:nth-child(2) { border-color: var(--glass-amber); }
.gifts li:nth-child(3) { border-color: var(--glass-ruby); }
.gifts h3 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); margin-bottom: 6px; }
.gifts h3 a { color: var(--ink); text-decoration: none; }
.gifts h3 a:hover { text-decoration: underline; text-decoration-color: var(--logo-heart); text-decoration-thickness: 2px; }
.gift-amount { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0; }
.gift-note { color: var(--ink-soft); font-size: 0.95rem; margin: 18px 0 0; }
/* get help: the quick-exit link in the page head */
.quick-exit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 22px 0 0; max-width: none; }
.quick-exit span { color: var(--on-brick-soft); font-size: 0.95rem; }
.gh-more { margin-top: 1em; }
.gh-reach-text { max-width: 60ch; margin-bottom: clamp(20px, 3vw, 32px); }
.numbered a, .findings a { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .gifts, .slots { grid-template-columns: 1fr; }
}
/* ---------- N-03: Photo library (old page 3514 and the two gallery posts) ---------- */
/* Rows of equal height, each picture in its own shape: the basis and the growth of an item are both proportional
   to its aspect ratio (--r), so every picture in a row ends at the same height and nothing is cropped. */
.lib-grid { --lib-h: 230px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.lib-grid::after { content: ""; flex: 1000 1 0; } /* the last row keeps its height instead of stretching */
.lib-grid li { flex: var(--r) 1 calc(var(--r) * var(--lib-h)); min-width: 0; }
.lib-grid li[hidden] { display: none; }
.lib-grid a { display: block; background: var(--gypsum-2); }
.lib-grid img { width: 100%; }
.lib-grid a:hover img { opacity: 0.88; }
/* the filter bar: a small half-round of qamariya glass marks each category */
.chips { margin-bottom: clamp(20px, 3vw, 32px); }
.chips ul { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 16px; font: inherit; font-weight: 600; color: var(--ink); text-decoration: none; background: none; border: 2px solid var(--line); border-radius: 3px; cursor: pointer; }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.chip::before { content: ""; width: 16px; height: 8px; border-radius: 16px 16px 0 0; background: var(--glass-amber); flex: none; }
.chip-all::before { background: linear-gradient(90deg, var(--glass-teal) 0 25%, var(--glass-amber) 0 50%, var(--glass-ruby) 0 75%, var(--glass-green) 0); }
.chip-london::before { background: var(--glass-teal); }
.chip-girls-education::before { background: var(--glass-ruby); }
.chip-activities::before { background: var(--glass-green); }
.chip-n { font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--brick); border-color: var(--link); color: var(--on-brick); }
.chip[aria-pressed="true"] .chip-n { color: var(--on-brick-soft); }
/* without JavaScript: the category links filter by :target (the empty targets stand just before the bar) */
.lib-t { display: block; scroll-margin-top: 16px; }
html:not(.js) .chip-all { background: var(--brick); border-color: var(--link); color: var(--on-brick); }
html:not(.js) .chip-all .chip-n { color: var(--on-brick-soft); }
html:not(.js) .lib-t:not(#all):target ~ .chips .chip-all { background: none; border-color: var(--line); color: var(--ink); }
html:not(.js) .lib-t:not(#all):target ~ .chips .chip-all .chip-n { color: var(--ink-soft); }
html:not(.js) #london:target ~ .chips .chip-london,
html:not(.js) #girls-education:target ~ .chips .chip-girls-education,
html:not(.js) #activities:target ~ .chips .chip-activities { background: var(--brick); border-color: var(--link); color: var(--on-brick); }
html:not(.js) #london:target ~ .chips .chip-london .chip-n,
html:not(.js) #girls-education:target ~ .chips .chip-girls-education .chip-n,
html:not(.js) #activities:target ~ .chips .chip-activities .chip-n { color: var(--on-brick-soft); }
html:not(.js) #london:target ~ .lib-grid li:not([data-cats~="london"]),
html:not(.js) #girls-education:target ~ .lib-grid li:not([data-cats~="girls-education"]),
html:not(.js) #activities:target ~ .lib-grid li:not([data-cats~="activities"]) { display: none; }
.lib-credit { margin: clamp(18px, 2.5vw, 28px) 0 0; font-size: 0.92rem; color: var(--ink-soft); }
/* albums */
.albums-lead { color: var(--ink-soft); }
.album { margin-top: clamp(36px, 5vw, 64px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.album-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 12px; }
.album-head h3 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); }
.album-n { margin: 0; color: var(--ink-soft); }
.album-note { color: var(--ink-soft); font-size: 0.95rem; }
.album .lib-grid { margin-top: 18px; }
.album-link { margin: 18px 0 0; font-weight: 600; }
/* the picture viewer (assets/site.js): a dark room, the picture as large as the screen allows */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 11, 9, 0.96); color: #fbf8f2; overflow: hidden; }
.lb::backdrop { background: rgba(18, 11, 9, 0.95); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; justify-content: flex-end; gap: 8px; padding: 12px var(--gutter) 0; }
.lb-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px clamp(8px, 2vw, 24px); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 200px); width: auto; height: auto; margin: auto; object-fit: contain; background: #251a15; }
.lb-fig { margin: 0; height: 100%; min-height: 0; display: grid; place-items: center; }
.lb-btn { width: 46px; height: 46px; display: grid; place-items: center; color: #fbf8f2; background: rgba(18, 11, 9, 0.6); border: 2px solid #fbf8f2; border-radius: 3px; cursor: pointer; }
.lb-btn:hover { background: #fbf8f2; color: #45190f; }
.lb-btn svg { width: 22px; height: 22px; }
[dir="ltr"] .lb-prev svg, [dir="rtl"] .lb-next svg { transform: scaleX(-1); }
.lb-cap { padding: 4px var(--gutter) 18px; text-align: center; }
.lb-cap p { margin: 0 auto; max-width: 80ch; }
.lb-pos { color: #e4d3c6; font-size: 0.92rem; }
.lb a { color: #f2a878; }
.lb :focus-visible { outline-color: #ffffff; }
@media (max-width: 700px) {
  .lib-grid { --lib-h: 130px; gap: 6px; }
  .chip { padding: 6px 12px; gap: 8px; }
  .lb-stage { grid-template-columns: minmax(0, 1fr); }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; }
  .lb-prev { inset-inline-start: var(--gutter); }
  .lb-next { inset-inline-end: var(--gutter); }
  .lb-cap { padding-inline: calc(var(--gutter) + 56px); }
}
html.lb-open { overflow: hidden; }

/* =====================================================================================================================
   N-04 LOOKS. The pages and addresses are the same for every look; a look is a set of tokens plus a few rules, chosen by
   <html data-look>. Classic = everything above (unchanged). Humanitarian = below: warm and soft, one strong accent,
   generous white space, rounded picture frames, one card style, gentle dividers, no animation.
   ===================================================================================================================== */
[data-look="classic"] .h-only { display: none !important; }
[data-look="humanitarian"] .c-only { display: none !important; }
.look-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.88rem; }
.look-switch button { font: inherit; color: inherit; background: none; border: 1px solid currentColor; border-radius: 999px; padding: 2px 12px; cursor: pointer; opacity: 0.85; }
.look-switch button[aria-pressed="true"] { opacity: 1; font-weight: 600; background: rgba(255, 255, 255, 0.14); }
.look-switch button:focus-visible { outline-color: #ffffff; }

:root[data-look="humanitarian"] {
  --gypsum: #fffaf6;          /* page */
  --gypsum-2: #fbefe7;        /* soft peach band */
  --surface: #ffffff;         /* cards */
  --line: #ecdcd1;
  --frame: #ffffff;
  --ink: #2b2220;
  --ink-soft: #5f524d;
  --accent: #b23a2c;          /* the one strong accent: 5.9:1 on white, 5.6:1 on the page */
  --accent-deep: #8f2c21;
  --on-accent: #ffffff;
  --link: #a3362a;
  --brick: #fbe9df;           /* page heads: soft, not a wall */
  --brick-deep: #2e2321;      /* footer */
  --on-brick: #2b2220;
  --on-brick-soft: #5f524d;
  --help: #b23a2c; --on-help: #ffffff;
  --focus: #1c6b78;
  --radius: 20px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(80, 40, 30, 0.06), 0 10px 28px -14px rgba(80, 40, 30, 0.22);
  --band: clamp(60px, 8vw, 112px);
}
@media (prefers-color-scheme: dark) {
  :root[data-look="humanitarian"]:not([data-theme="light"]) {
    --gypsum: #1c1715; --gypsum-2: #261f1c; --surface: #2a2320; --line: #43362f; --frame: #2a2320;
    --ink: #f5ece6; --ink-soft: #cdbfb6;
    --accent: #f08a74; --accent-deep: #f5a48f; --on-accent: #1c1715; --link: #f4a08b;
    --brick: #2a211e; --brick-deep: #120e0d; --on-brick: #f5ece6; --on-brick-soft: #cdbfb6;
    --help: #f08a74; --on-help: #1c1715; --focus: #7fd0e0;
    --logo-child: #ede6dc; --logo-heart: #e58a52; --logo-hand: #76b98a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -16px rgba(0, 0, 0, 0.6);
  }
}
:root[data-look="humanitarian"][data-theme="dark"] {
  --gypsum: #1c1715; --gypsum-2: #261f1c; --surface: #2a2320; --line: #43362f; --frame: #2a2320;
  --ink: #f5ece6; --ink-soft: #cdbfb6;
  --accent: #f08a74; --accent-deep: #f5a48f; --on-accent: #1c1715; --link: #f4a08b;
  --brick: #2a211e; --brick-deep: #120e0d; --on-brick: #f5ece6; --on-brick-soft: #cdbfb6;
  --help: #f08a74; --on-help: #1c1715; --focus: #7fd0e0;
}

/* type: Alexandria headings, Readex Pro text, a clear hierarchy */
[data-look="humanitarian"] h1, [data-look="humanitarian"] h2, [data-look="humanitarian"] h3 { font-weight: 700; letter-spacing: -0.005em; }
[data-look="humanitarian"] h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.35rem); }
[data-look="humanitarian"] h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); font-weight: 600; }
[data-look="humanitarian"] .frieze { display: none; }
[data-look="humanitarian"] .foot-col h2 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; }
[data-look="humanitarian"] .h-story { padding-top: clamp(20px, 3vw, 40px); }
[data-look="humanitarian"] a { text-underline-offset: 0.25em; }

/* buttons: rounded, one filled accent, one soft */
[data-look="humanitarian"] .btn { border-radius: 999px; padding: 0.6em 1.4em; font-weight: 600; }
[data-look="humanitarian"] .btn:hover { text-decoration: none; filter: brightness(0.94); }
[data-look="humanitarian"] .btn-help, [data-look="humanitarian"] .btn-brick, [data-look="humanitarian"] .h-btn-main { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
[data-look="humanitarian"] .btn-donate, [data-look="humanitarian"] .h-btn-soft, [data-look="humanitarian"] .btn-gypsum { background: var(--surface); color: var(--accent-deep); border-color: var(--line); }
[data-look="humanitarian"] .h-btn-soft:hover, [data-look="humanitarian"] .btn-donate:hover { border-color: var(--accent); }

/* header: light and calm */
[data-look="humanitarian"] .site-head { background: color-mix(in srgb, var(--gypsum) 92%, transparent); border-bottom: 1px solid var(--line); }
[data-look="humanitarian"] .brand-name { font-weight: 700; }
[data-look="humanitarian"] .nav-list a[aria-current="page"], [data-look="humanitarian"] .sub-btn.is-here { text-decoration-color: var(--accent); }
@media (min-width: 1320px) { [data-look="humanitarian"] .sub { border-radius: var(--radius-s); border-top: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); } }
[data-look="humanitarian"] .menu-btn { border-radius: 999px; border-width: 1.5px; }

/* bands: generous space; the soft bands are rounded panels set into the page (the gentle divider) */
[data-look="humanitarian"] .band-alt { background: var(--gypsum-2); border-radius: clamp(24px, 4vw, 48px); margin-inline: clamp(8px, 1.6vw, 24px); }
[data-look="humanitarian"] .band h2 { margin-bottom: clamp(14px, 2vw, 22px); }

/* pictures: rounded frames */
[data-look="humanitarian"] .plate, [data-look="humanitarian"] .post-fig img, [data-look="humanitarian"] .topic img, [data-look="humanitarian"] .post-img img,
[data-look="humanitarian"] .strip img, [data-look="humanitarian"] .lib-grid a, [data-look="humanitarian"] .lib-grid img { border-radius: var(--radius-s); }
[data-look="humanitarian"] .plate { padding: 0; overflow: hidden; background: none; box-shadow: var(--shadow); }
[data-look="humanitarian"] .video-play, [data-look="humanitarian"] .video iframe { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
[data-look="humanitarian"] .play-mark { background: var(--accent); border-color: #fff; width: 68px; height: 68px; }
[data-look="humanitarian"] .play-mark::after { border-left-color: #fff; }
[data-look="humanitarian"] .testimonial img { border-radius: 50%; }

/* page heads: soft peach, ink text, rounded foot */
[data-look="humanitarian"] .page-head { border-radius: 0 0 clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px); }
[data-look="humanitarian"] .page-head h1 { font-weight: 700; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
[data-look="humanitarian"] .page-head :focus-visible, [data-look="humanitarian"] .verse :focus-visible { outline-color: var(--focus); }
[data-look="humanitarian"] .verse { border-radius: var(--radius); margin-inline: clamp(8px, 1.6vw, 24px); }
[data-look="humanitarian"] .mark-plate { border-radius: var(--radius); border-color: var(--surface); }
[data-look="humanitarian"] .hero { background: var(--brick); color: var(--ink); }

/* one card style: posts, programmes, gifts, steps */
[data-look="humanitarian"] .pcard, [data-look="humanitarian"] .h-card, [data-look="humanitarian"] .post-tall, [data-look="humanitarian"] .topic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
[data-look="humanitarian"] .pcard { gap: 0; }
[data-look="humanitarian"] .pcard > a { gap: 0; }
[data-look="humanitarian"] .pcard img, [data-look="humanitarian"] .pcard-tile { border: 0; border-radius: 0; }
[data-look="humanitarian"] .pcard-tile { background: linear-gradient(135deg, #f6d9c9, #f3c3ae); }
[data-look="humanitarian"] .pcard-title { padding: 16px 18px 4px; font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; }
[data-look="humanitarian"] .pcard-meta { padding: 6px 18px 0; }
[data-look="humanitarian"] .pcard-ex { padding: 6px 18px 0; color: var(--ink-soft); }
[data-look="humanitarian"] .pcard > :last-child { padding-bottom: 18px; }
[data-look="humanitarian"] .lang-tag { border-radius: 999px; }
[data-look="humanitarian"] .post-tall .post-body { padding: 18px 20px 22px; }
[data-look="humanitarian"] .post-tall .post-img img { border-radius: 0; }
[data-look="humanitarian"] .topic h3, [data-look="humanitarian"] .topic p { padding-inline: 18px; }
[data-look="humanitarian"] .topic p { padding-bottom: 18px; }
[data-look="humanitarian"] .topic img { border-radius: 0; }
[data-look="humanitarian"] .gifts li, [data-look="humanitarian"] .counts li, [data-look="humanitarian"] .phase { border-top: 0; background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
[data-look="humanitarian"] .slot { border-radius: var(--radius-s); background: var(--surface); }
[data-look="humanitarian"] .year-nav a, [data-look="humanitarian"] .chip { border-radius: 999px; }
[data-look="humanitarian"] .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
[data-look="humanitarian"] .chip[aria-pressed="true"] .chip-n { color: var(--on-accent); }
[data-look="humanitarian"] .testimonial { border-inline-start-width: 3px; border-color: var(--accent) !important; }

/* lists, quotes, FAQ */
[data-look="humanitarian"] .link-list li::before, [data-look="humanitarian"] .principle li::before, [data-look="humanitarian"] .findings li::before { background: var(--accent); border-radius: 50%; transform: none; width: 7px; height: 7px; }
[data-look="humanitarian"] .faq details { border-top-color: var(--line); }
[data-look="humanitarian"] .faq summary::after { border-color: var(--accent); }

/* footer: deep warm, light text */
[data-look="humanitarian"] .site-foot { --on-brick: #fbf3ee; --on-brick-soft: #e3d2c8; border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0; margin-top: clamp(40px, 6vw, 80px); }

/* ---------- Humanitarian home ---------- */
.h-hero { padding-block: clamp(36px, 6vw, 96px) clamp(48px, 7vw, 104px); background: radial-gradient(120% 90% at 85% 10%, #fde4d6 0, transparent 60%), var(--gypsum); }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.h-kicker { display: inline-block; font-weight: 600; color: var(--accent-deep); background: var(--gypsum-2); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px; font-size: 0.95rem; }
.h-hero .hh-h1 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: clamp(2.2rem, 1.3rem + 4vw, 4.2rem); line-height: 1.25; margin-bottom: 18px; max-width: 18ch; }
.h-hero .hh-h1:lang(en) { line-height: 1.1; }
.h-lead { font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.4rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px; }
.h-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; max-width: none; }
.h-ctas .btn { font-size: 1.06rem; padding: 0.7em 1.6em; }
.h-hero-fig { margin: 0; border-radius: 40% 40% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.h-hero-fig img { width: 100%; }
.h-split { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.h-portrait { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--gypsum-2); max-width: 420px; }
.h-portrait img { width: 100%; }
.h-story .lead { font-size: clamp(1.18rem, 1.05rem + 0.5vw, 1.36rem); }
.h-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-deep); text-decoration: none; }
.h-more:hover { text-decoration: underline; }
.h-arrow { width: 0.5em; height: 0.5em; border-top: 2px solid currentColor; border-inline-end: 2px solid currentColor; transform: rotate(45deg); }
[dir="rtl"] .h-arrow { transform: rotate(-45deg); }
.h-sub { color: var(--ink-soft); margin-bottom: clamp(24px, 3vw, 36px); }
.h-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.h-card { padding: clamp(20px, 2.4vw, 30px); }
.h-card h3 { margin-bottom: 8px; }
.h-card h3 a { color: var(--ink); text-decoration: none; }
.h-card h3 a::after { content: ""; position: absolute; inset: 0; } /* the whole card is the link */
.h-card { position: relative; }
.h-card:hover h3 a { text-decoration: underline; text-decoration-color: var(--accent); }
.h-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.h-card h3 a:focus-visible { outline: none; }
.h-card p { margin: 0; color: var(--ink-soft); }
.h-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--gypsum-2); margin-bottom: 14px; }
.h-mark img, .h-mark svg { width: 44px; height: 44px; object-fit: contain; }
.h-odt .odt-girl { fill: var(--accent); }
.h-label { font-size: 0.88rem; font-weight: 600; color: var(--accent-deep) !important; margin-bottom: 4px !important; }
.h-card-0 { background: var(--accent) !important; border-color: var(--accent) !important; }
.h-card-0 h3 a, .h-card-0 p { color: var(--on-accent) !important; }
.h-stories-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: var(--band); }
[data-look="humanitarian"] .h-feat { padding-top: clamp(20px, 3vw, 32px); }
[data-look="humanitarian"] .h-feat h2, [data-look="humanitarian"] .h-camp h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); color: var(--ink-soft); }
[data-look="humanitarian"] .h-camp { background: none; margin: 0; padding-top: 0; }
[data-look="humanitarian"] .post-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; gap: 0; }
[data-look="humanitarian"] .post-row .post-body { padding: 16px 20px; }
[data-look="humanitarian"] .post-row .post-img img { height: 100%; border-radius: 0; }
.h-partners-grid { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.h-award { margin: 0; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.h-contact-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 48px); }
.h-contact-box h2 { margin-bottom: 8px !important; }
.h-contact-box p { margin: 0; }
[data-look="humanitarian"] .home main { display: flex; flex-direction: column; }
@media (max-width: 900px) {
  .h-hero-grid, .h-split, .h-cards { grid-template-columns: 1fr; }
  .h-hero-fig { order: -1; max-width: 520px; }
  .h-portrait { max-width: 320px; }
  .h-partners-grid { grid-template-columns: 110px minmax(0, 1fr); }
}

/* ---------- Article reading (both looks; N-04) ---------- */
.post-band { padding-bottom: clamp(32px, 4vw, 56px); }
.post.prose > * { max-width: 70ch; }
.post.prose:lang(ar) > *, [lang="ar"] .post.prose > * { max-width: 66ch; }
.post .lead { font-size: clamp(1.18rem, 1.06rem + 0.5vw, 1.36rem); color: var(--ink); }
.post h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: var(--lh-head); margin-bottom: 14px; }
.post h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); }
.post li + li { margin-top: 0.35em; }
.post-kicker a { color: var(--ink-soft); text-decoration: none; }
.post-kicker a:hover { text-decoration: underline; }
.related { padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin-bottom: 20px; }
.related .pcards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
[data-look="humanitarian"] .post-band .post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 5vw, 64px); box-shadow: var(--shadow); max-width: min(100% - 2 * var(--gutter), 860px); }
[data-look="humanitarian"] .post-kicker { display: inline-block; background: var(--gypsum-2); border-radius: 999px; padding: 2px 14px; font-size: 0.9rem; }
[data-look="humanitarian"] .post blockquote { border-inline-start-color: var(--accent); background: var(--gypsum-2); border-radius: var(--radius-s); padding: 14px 20px; }
[data-look="humanitarian"] .related { border-top: 0; }
@media (max-width: 520px) { [data-look="humanitarian"] .post-band .post { border-radius: var(--radius-s); max-width: calc(100% - 2 * 12px); padding: 20px 16px; } [data-look="humanitarian"] .post-band { padding-top: 16px; } }

/* N-06: the official social accounts in the footer */
.foot-social { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.foot-social a { text-decoration: underline; text-underline-offset: 0.25em; }

/* N-06 performance: sections below the first screen are laid out only when they come near (long lists, home) */
.list-page .year, .home main > section.band, .related { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.list-page .year:first-of-type { content-visibility: visible; }

/* N-07: lists by year — counts in the year bar, the index of earlier years, newer / older year links */
.year-nav .year-n { font-weight: 400; color: var(--ink-soft); font-size: 0.85em; }
.year-nav a[aria-current="page"] { background: var(--brick); border-color: var(--brick); color: var(--on-brick); }
.year-nav a[aria-current="page"] .year-n { color: var(--on-brick-soft); }
[data-look="humanitarian"] .year-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
[data-look="humanitarian"] .year-nav a[aria-current="page"] .year-n { color: var(--on-accent); }
.year > h2 a { color: inherit; text-decoration: none; }
.year > h2 a:hover { text-decoration: underline; }
.year-index { margin-top: clamp(40px, 6vw, 72px); }
.year-index h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-bottom: 18px; }
.year-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.year-cards a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); background: var(--gypsum); }
.year-cards a:hover { border-color: var(--link); }
.yc-y { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.3; }
.yc-n { color: var(--ink-soft); font-size: 0.9rem; }
[data-look="humanitarian"] .year-cards a { border-radius: var(--radius-s); background: var(--surface); box-shadow: var(--shadow); }
.year-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: clamp(32px, 5vw, 56px); padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }
/* N-07: the four count cards fit a 320 px screen in the Humanitarian look */
[data-look="humanitarian"] .counts li { min-width: 0; }
@media (max-width: 420px) { [data-look="humanitarian"] .counts { gap: 10px; } [data-look="humanitarian"] .counts li { padding: 12px 12px; } [data-look="humanitarian"] .count { font-size: clamp(2rem, 1.4rem + 3vw, 2.6rem); } }
.year-more { margin: 18px 0 0; font-weight: 600; }
