/* ==========================================================================
   Nile Pioneers — public site
   Night (navy), River (teal), Sun (gold): the colours of the emblem.
   Signature: opportunities pinned as linen notes with a copper paperclip,
   the format the team already uses on Instagram.
   Logical properties throughout, so one stylesheet serves RTL Arabic and LTR English.
   ========================================================================== */

@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/alexandria-400-800-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/alexandria-400-800-latin.woff2) format('woff2'); 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'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/readex-pro-300-700-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/readex-pro-300-700-latin.woff2) format('woff2'); 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; }

:root {
  --night: #071e30;
  --night-2: #0d2b43;
  --night-3: #16384f;
  --river: #24595f;
  --river-ink: #1a464b;
  --river-tint: #dcebe9;
  --sun: #f2c14e;
  --sun-soft: #f7dc8f;
  --sun-ink: #8a6414;
  --linen: #dde4e9;
  --mist: #f1f4f5;
  --paper: #ffffff;
  --ink: #0b1b28;
  --ink-2: #445562;
  --ink-3: #6b7a85;
  --line: #d3dce1;
  --clip: #b9725a;
  --danger: #a3352b;
  --danger-tint: #f7e4e1;

  --font-display: 'Alexandria', 'Readex Pro', system-ui, sans-serif;
  --font-body: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.65rem);
  --step-3: clamp(1.7rem, 1.35rem + 1.6vw, 2.3rem);
  --step-4: clamp(2.05rem, 1.5rem + 2.6vw, 3.25rem);
  --step-5: clamp(2.5rem, 1.6rem + 4.6vw, 4.9rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(3rem, 2rem + 4vw, 5.5rem);

  --radius: 10px;
  --wrap: 1160px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --shadow: 0 1px 2px rgb(7 30 48 / 0.06), 0 8px 24px -12px rgb(7 30 48 / 0.18);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
:lang(ar) body, body:lang(ar) { line-height: 1.8; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--river); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--river-ink); text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--night);
  text-wrap: balance;
}
/* Arabic letterforms need more room above and below than Latin. */
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { line-height: 1.45; }
.brand__name:lang(ar) { line-height: 1.35; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-inline-start: 1.25em; margin: 0 0 1em; }
hr { border: 0; border-block-start: 1px solid var(--line); margin: var(--space-4) 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 2px; }
.on-light :focus-visible, main :focus-visible { outline-color: var(--river); }
::selection { background: var(--sun-soft); color: var(--night); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.visually-hidden { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 50; background: var(--sun); color: var(--night); padding: 0.6rem 1rem; border-radius: 6px; font-weight: 600; }
.skip-link:focus { inset-block-start: 1rem; }

.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }
.nums { font-variant-numeric: tabular-nums; }
.latin { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Eyebrow labels: letter-spacing only for Latin script (it breaks Arabic joining). */
.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--river);
  margin-block-end: 0.6rem;
}
:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.on-night .eyebrow { color: var(--sun); }

/* ---------- Header ---------- */

.site-head { background: var(--night); color: #fff; position: relative; z-index: 20; }
.site-head__bar { display: flex; align-items: center; gap: var(--space-2); min-block-size: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; margin-inline-end: auto; }
.brand:hover { color: #fff; }
.brand img { inline-size: 44px; block-size: auto; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; white-space: nowrap; }
.brand__name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.72rem; color: #b9c6cf; }
.brand__name:lang(en) { letter-spacing: 0.06em; text-transform: uppercase; }
.brand__name:lang(en) small { letter-spacing: 0.14em; }

.nav { display: none; }
.nav a {
  color: #d6e0e6;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / 0.08); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sun); border-radius: 6px 6px 0 0; }

.lang-switch {
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover { background: rgb(255 255 255 / 0.1); color: #fff; }

/* Mobile menu: a native <details>, so it works with JavaScript off. */
.menu { position: static; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  min-block-size: 44px;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { inline-size: 22px; }
.menu[open] > summary { background: rgb(255 255 255 / 0.1); }
.menu__panel {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  background: var(--night-2);
  border-block-start: 1px solid rgb(255 255 255 / 0.08);
  padding: 0.75rem var(--gutter) 1.25rem;
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.5);
}
.menu__panel a { display: block; color: #e6edf1; text-decoration: none; padding: 0.7rem 0.25rem; border-block-end: 1px solid rgb(255 255 255 / 0.07); font-size: 1.05rem; }
.menu__panel a[aria-current="page"] { color: var(--sun); }
.menu__panel .btn { margin-block-start: 1rem; inline-size: 100%; justify-content: center; border: 0; }

@media (min-width: 1180px) {
  .nav { display: flex; gap: 0.1rem; align-items: center; }
  .menu { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 46px;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--river);
  color: #fff;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--river-ink); color: #fff; text-decoration: none; }
.btn--sun { background: var(--sun); color: var(--night); }
.btn--sun:hover { background: #ffd36a; color: var(--night); }
.btn--ghost { background: transparent; color: var(--river); border-color: currentColor; }
.btn--ghost:hover { background: var(--river-tint); color: var(--river-ink); }
.on-night .btn--ghost { color: #fff; border-color: rgb(255 255 255 / 0.45); }
.on-night .btn--ghost:hover { background: rgb(255 255 255 / 0.08); color: #fff; }
.btn--small { min-block-size: 38px; padding: 0.35rem 0.9rem; font-size: 0.92rem; }
.btn svg { inline-size: 18px; flex: none; }
[dir="rtl"] .btn .flip { transform: scaleX(-1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Sections ---------- */

.section { padding-block: var(--space-5); }
.section--tight { padding-block: var(--space-4); }
.section--paper { background: var(--paper); }
.section--night { background: var(--night); color: #dbe5eb; }
.section--night h2, .section--night h3 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 2rem; margin-block-end: var(--space-3); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0.35rem 0 0; color: var(--ink-2); max-inline-size: 60ch; }
.section--night .section-head p { color: #b9c8d1; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: ' →'; }
[dir="rtl"] .link-arrow::after { content: ' ←'; }

/* ---------- Page header (inner pages) ---------- */

.page-head { background: var(--night); color: #cfdbe2; padding-block: var(--space-4) var(--space-5); position: relative; overflow: hidden; }
.page-head h1 { color: #fff; margin-block-end: 0.35em; max-inline-size: 22ch; }
.page-head p { max-inline-size: 62ch; font-size: var(--step-1); margin: 0; color: #c6d3db; }
.page-head .eyebrow { color: var(--sun); }
.page-head::after {
  /* the sun on the horizon, cropped by the page edge */
  content: '';
  position: absolute;
  inset-inline-end: -90px;
  inset-block-end: -150px;
  inline-size: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(242 193 78 / 0.35), rgb(242 193 78 / 0) 70%);
  pointer-events: none;
}
.crumbs { font-size: var(--step--1); margin-block-end: 1rem; color: #9fb2be; }
.crumbs a { color: #cfdbe2; }

/* ---------- Home hero ---------- */

.hero {
  background:
    radial-gradient(60rem 30rem at var(--sun-x, 85%) -10%, rgb(242 193 78 / 0.16), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #0a2638 100%);
  color: #d4dfe6;
  padding-block: var(--space-4) var(--space-5);
  overflow: hidden;
  position: relative;
}
[dir="rtl"] .hero { --sun-x: 15%; }
.hero__grid { display: grid; gap: var(--space-4); align-items: center; }
.hero__title {
  font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.22;
  margin: 0 0 0.5em;
  max-inline-size: 15ch;
}
.hero__title em { font-style: normal; color: var(--sun); }
:lang(en) .hero__title { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); max-inline-size: 18ch; line-height: 1.1; letter-spacing: -0.015em; font-weight: 700; }
.hero__lede { font-size: var(--step-1); max-inline-size: 46ch; color: #c2d0d8; margin-block-end: var(--space-3); }
.hero__emblem { position: absolute; inline-size: min(52vw, 420px); inset-inline-end: -60px; inset-block-start: 40px; opacity: 0.09; pointer-events: none; }
.hero__board { position: relative; }
.hero__board-label { display: flex; align-items: center; gap: 0.6rem; color: #9fb4c1; font-size: var(--step--1); margin-block-end: 1rem; }
.hero__board-label::before { content: ''; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgb(242 193 78 / 0.2); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 1fr; }
  .hero { padding-block: var(--space-5); }
}

/* ---------- Signature: pinned linen notes ---------- */

.board { display: grid; gap: 1.75rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.board--hero { grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 560px) { .board--hero { grid-template-columns: 1fr 1fr; } }

.note {
  --tilt: -1.2deg;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--linen);
  background-image:
    linear-gradient(rgb(36 89 95 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(36 89 95 / 0.07) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.22) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(7 30 48 / 0.03) 0 1px, transparent 1px 3px);
  background-size: 22px 22px, 22px 22px, auto, auto;
  color: var(--night);
  padding: 2rem 1.35rem 1.25rem;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgb(7 30 48 / 0.12), 0 14px 26px -16px rgb(0 0 0 / 0.55);
  transform: rotate(var(--tilt));
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1), box-shadow 0.25s;
  text-decoration: none;
}
.note:nth-child(3n+2) { --tilt: 0.9deg; }
.note:nth-child(3n+3) { --tilt: -0.5deg; }
[dir="rtl"] .note { --tilt: 1.2deg; }
[dir="rtl"] .note:nth-child(3n+2) { --tilt: -0.9deg; }
[dir="rtl"] .note:nth-child(3n+3) { --tilt: 0.5deg; }
.note::before {
  /* copper paperclip */
  content: '';
  position: absolute;
  inset-block-start: -18px;
  inset-inline-start: 22px;
  inline-size: 20px;
  block-size: 54px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 64' fill='none' stroke='%23b9725a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M16 22v28a4 4 0 0 1-8 0V12a6.5 6.5 0 0 1 13 0v40a9 9 0 0 1-18 0V18'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(1px 1px 0 rgb(0 0 0 / 0.15));
}
a.note:hover, a.note:focus-visible { transform: rotate(0deg) translateY(-3px); box-shadow: 0 1px 1px rgb(7 30 48 / 0.12), 0 22px 34px -18px rgb(0 0 0 / 0.6); color: var(--night); }
.note__org { font-size: 0.8rem; font-weight: 600; color: var(--river); margin-block-end: 0.3rem; }
.note__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0 0 0.9rem;
  padding-block-end: 0.7rem;
  background: linear-gradient(var(--sun-soft), var(--sun-soft)) no-repeat;
  background-size: 72% 5px;
  background-position: 50% 100%;
  text-align: center;
}
.note__body { font-size: 0.95rem; color: #24384a; margin-block-end: 1rem; flex: 1; }
.note__meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; font-size: 0.82rem; color: #2f4657; border-block-start: 1px dashed rgb(7 30 48 / 0.18); padding-block-start: 0.7rem; }
.note__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.note__due { font-weight: 600; }
.note__due--closing { color: #8a2f20; }
.note--closed { filter: grayscale(0.6); opacity: 0.78; }
.note__stamp {
  position: absolute;
  inset-block-start: -0.7rem;
  inset-inline-end: 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  color: var(--river);
  transform: rotate(-4deg);
  background: #eef1f3;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.15);
}
:lang(en) .note__stamp { text-transform: uppercase; letter-spacing: 0.08em; }
.note__stamp--closing { color: #8a2f20; }
.note__stamp--closed { color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  .note, a.note:hover { transition: none; }
  a.note:hover, a.note:focus-visible { transform: rotate(var(--tilt)); }
}

/* ---------- Cards (programs, stories, reports) ---------- */

.cards { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.card:hover { border-color: #b6c4cc; box-shadow: var(--shadow); color: inherit; }
.card__media { aspect-ratio: 4 / 5; background: var(--night); overflow: hidden; }
.card__media--wide { aspect-ratio: 16 / 10; }
.card__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.card__body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--night); margin: 0; }
.card__text { color: var(--ink-2); font-size: 0.97rem; margin: 0; }
.card__meta { margin-block-start: auto; padding-block-start: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.85rem; color: var(--ink-2); }

/* Program row: compact horizontal card on wide screens */
.program-list { display: grid; gap: 1rem; }
.program-row { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem; text-decoration: none; color: inherit; }
.program-row:hover { border-color: #b6c4cc; box-shadow: var(--shadow); color: inherit; }
.program-row img { inline-size: 96px; block-size: 120px; object-fit: cover; border-radius: 6px; background: var(--night); }
.program-row h3 { margin: 0.15rem 0 0.25rem; font-size: 1.15rem; }
.program-row p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
@media (min-width: 720px) { .program-row { grid-template-columns: 120px 1fr auto; padding: 1rem 1.2rem; } .program-row img { inline-size: 120px; block-size: 150px; } }
.program-row__side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; font-size: 0.88rem; color: var(--ink-2); }
@media (min-width: 720px) { .program-row__side { grid-column: auto; flex-direction: column; align-items: end; text-align: end; } }

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: #e7ecef;
  color: #34444f;
  white-space: nowrap;
}
.badge::before { content: ''; inline-size: 7px; block-size: 7px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.badge--teal { background: var(--river-tint); color: var(--river-ink); }
.badge--gold { background: #f8ecc9; color: var(--sun-ink); }
.badge--blue { background: #e1ebf5; color: #1f4b78; }
.badge--muted { background: #eceff1; color: #66747e; }
.badge--plain::before { display: none; }

/* ---------- Manifesto (home "what we do") ---------- */

.manifesto { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.55; color: var(--night); max-inline-size: 34ch; margin: 0; }
:lang(ar) .manifesto { line-height: 1.75; }
.hl { background: linear-gradient(transparent 58%, var(--sun-soft) 58% 90%, transparent 90%); padding-inline: 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pillars { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }
.pillars li { border-block-start: 2px solid var(--night); padding-block-start: 0.75rem; }
.pillars strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--night); }
.pillars span { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Record (completed / active timeline) ---------- */

.record { list-style: none; margin: 0; padding: 0; position: relative; }
.record::before { content: ''; position: absolute; inset-block: 0.6rem 0.6rem; inset-inline-start: 5.4rem; inline-size: 2px; background: linear-gradient(var(--river), rgb(36 89 95 / 0.15)); }
.record li { display: grid; grid-template-columns: 5rem 1fr; gap: 1.6rem; padding-block: 0.9rem; position: relative; }
.record li::before { content: ''; position: absolute; inset-inline-start: calc(5.4rem - 5px); inset-block-start: 1.45rem; inline-size: 12px; block-size: 12px; border-radius: 50%; background: var(--mist); border: 2px solid var(--river); }
.section--paper .record li::before { background: var(--paper); }
.record time { font-weight: 600; font-size: 0.85rem; color: var(--ink-2); padding-block-start: 0.2rem; line-height: 1.35; }
.record h3 { margin: 0 0 0.2rem; font-size: 1.12rem; }
.record h3 a { color: var(--night); text-decoration: none; }
.record h3 a:hover { text-decoration: underline; }
.record p { margin: 0.2rem 0 0; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Quote ---------- */

.pull-quote { margin: 0; padding: var(--space-4) 0; text-align: center; }
.pull-quote blockquote { margin: 0 auto; font-family: var(--font-display); font-weight: 600; font-size: var(--step-4); line-height: 1.25; color: #fff; max-inline-size: 20ch; }
.pull-quote blockquote::before { content: '❞'; display: block; color: var(--sun); font-size: 2.6rem; line-height: 1; margin-block-end: 0.5rem; }
[dir="ltr"] .pull-quote blockquote::before { content: '❝'; }
.pull-quote p { color: #b9c8d1; max-inline-size: 52ch; margin: 1.2rem auto 0; }
.pull-quote cite { display: block; font-style: normal; color: var(--sun); font-size: var(--step--1); margin-block-start: 1rem; }

/* ---------- Paths (get involved) ---------- */

.paths { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.path { background: var(--paper); padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.path h3 { margin: 0; font-size: 1.2rem; }
.path p { margin: 0; color: var(--ink-2); font-size: 0.97rem; flex: 1; }
.path .who { font-size: 0.8rem; font-weight: 600; color: var(--river); }
:lang(en) .path .who { text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Detail pages ---------- */

.detail { display: grid; gap: var(--space-4); }
@media (min-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.facts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem; position: sticky; inset-block-start: 1.25rem; }
.facts dl { margin: 0 0 1.1rem; display: grid; gap: 0.75rem; }
.facts dt { font-size: 0.8rem; color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 0; font-weight: 500; }
.facts .btn { inline-size: 100%; justify-content: center; }
.facts__note { font-size: 0.85rem; color: var(--ink-2); margin: 0.9rem 0 0; }
.detail-media { border-radius: var(--radius); overflow: hidden; background: var(--night); margin-block-end: var(--space-3); }
.gallery { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 0.5rem; margin-block-end: var(--space-3); }
.gallery img { flex: 0 0 auto; inline-size: min(78%, 360px); scroll-snap-align: start; border-radius: 8px; background: var(--night); }
.speakers { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); list-style: none; padding: 0; }
.speakers li { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem 1rem; }
.speakers strong { display: block; color: var(--night); }
.speakers span { font-size: 0.9rem; color: var(--ink-2); }

.prose { max-inline-size: 68ch; }
.prose h2 { font-size: var(--step-2); margin-block-start: 1.6em; }
.prose h3 { margin-block-start: 1.4em; }
.prose img { border-radius: 8px; margin-block: 1.2rem; }
.prose blockquote { margin: 1.5rem 0; padding-inline-start: 1.1rem; border-inline-start: 4px solid var(--sun); color: var(--night); font-weight: 500; }
.prose li { margin-block-end: 0.35rem; }
.prose table { inline-size: 100%; border-collapse: collapse; margin-block: 1.25rem; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 0.6rem 0.75rem; border-block-end: 1px solid var(--line); }
.prose th { background: var(--night); color: #fff; font-weight: 600; }
.prose tr:nth-child(even) td { background: #f6f8f9; }

.callout { background: var(--river-tint); border-inline-start: 4px solid var(--river); border-radius: 0 8px 8px 0; padding: 1rem 1.2rem; margin-block: var(--space-3); }
[dir="rtl"] .callout { border-radius: 8px 0 0 8px; }
.callout p:last-child { margin: 0; }
.callout--sun { background: #fbf2d8; border-color: var(--sun); }
.callout strong { color: var(--night); }

/* ---------- Opportunity filters ---------- */

.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); align-items: end; margin-block-end: var(--space-4); }
.filters .field { margin: 0; }
.filters__search { grid-column: 1 / -1; }
@media (min-width: 900px) { .filters__search { grid-column: span 2; } }
.filters__actions { display: flex; gap: 0.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-end: var(--space-3); }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.9rem; color: var(--ink); text-decoration: none; }
.chip[aria-current="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.result-count { color: var(--ink-2); font-size: 0.95rem; margin-block-end: 1.5rem; }
.board-wrap { background: var(--night); border-radius: 14px; padding: 2.75rem clamp(1rem, 3vw, 2rem) 2rem; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 1.35rem; }
.form-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); display: grid; gap: 1.2rem; }
.form-section > legend, .form-section h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--night); margin: 0; padding: 0; }
fieldset.form-section { margin: 0; min-inline-size: 0; }
fieldset.form-section > legend { float: inline-start; inline-size: 100%; margin-block-end: 0.2rem; }
fieldset.form-section > legend + * { clear: both; }
.field { display: grid; gap: 0.35rem; }
.field label, .field .label { font-weight: 600; font-size: 0.97rem; color: var(--night); }
.field .optional { font-weight: 400; color: var(--ink-3); font-size: 0.88rem; }
.hint { font-size: 0.88rem; color: var(--ink-2); margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], input[type="password"], select, textarea {
  inline-size: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #b9c6ce;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  min-block-size: 48px;
}
textarea { min-block-size: 120px; resize: vertical; line-height: 1.6; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23445562'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 0.7rem center; padding-inline-end: 2.4rem; }
[dir="rtl"] select { background-position: left 0.7rem center; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgb(36 89 95 / 0.35); outline-offset: 0; border-color: var(--river); }
input[type="email"], input[type="tel"], input[type="url"] { direction: ltr; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="url"] { text-align: right; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.9rem; font-weight: 600; margin: 0; }
.grid-2 { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.choices { display: grid; gap: 0.5rem; }
.choices--inline { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; line-height: 1.5; }
.check:hover { border-color: #b6c4cc; }
.check input { inline-size: 20px; block-size: 20px; margin: 0.15rem 0 0; flex: none; accent-color: var(--river); }
.check:has(input:checked) { border-color: var(--river); background: #f4f9f8; }
.check--consent { border-style: dashed; }
.check small { display: block; color: var(--ink-2); font-size: 0.86rem; }

.error-summary { background: var(--danger-tint); border: 2px solid var(--danger); border-radius: var(--radius); padding: 1rem 1.2rem; }
.error-summary h2 { font-size: 1.1rem; color: var(--danger); margin: 0 0 0.4rem; font-family: var(--font-body); }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--danger); font-weight: 600; }

.hp { position: absolute !important; inset-inline-start: -10000px; inline-size: 1px; block-size: 1px; overflow: hidden; }

.flash { background: var(--river-tint); border: 1px solid #b7d4d1; color: var(--river-ink); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-block: 1rem; font-weight: 500; }
.flash--warn { background: #fbf2d8; border-color: #ead597; color: #6d4f0f; }

/* ---------- Receipt ---------- */

.receipt { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.receipt__ref { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.06em; background: var(--mist); border: 1px dashed #9fb0ba; border-radius: 8px; padding: 0.5rem 1rem; margin: 0.5rem 0 1rem; direction: ltr; }
.receipt ol { text-align: start; max-inline-size: 46ch; margin: 1.5rem auto 0; }

/* ---------- Subscribe band ---------- */

.subscribe { background: var(--river); color: #e3f0ee; border-radius: 14px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.25rem; align-items: center; }
.subscribe h2 { color: #fff; margin: 0 0 0.3rem; }
.subscribe p { margin: 0; color: #cfe3e0; }
.subscribe form { display: grid; gap: 0.6rem; }
.subscribe .row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.subscribe input[type="email"] { flex: 1 1 220px; border-color: transparent; }
.subscribe .check { background: transparent; border-color: rgb(255 255 255 / 0.25); color: #e3f0ee; font-size: 0.9rem; }
.subscribe .check:has(input:checked) { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.5); }
.subscribe .check input { accent-color: var(--sun); }
.subscribe a { color: #fff; }
@media (min-width: 900px) { .subscribe { grid-template-columns: 1fr 1.1fr; } }

/* ---------- Footer ---------- */

.site-foot { background: var(--night); color: #a9bcc8; padding-block: var(--space-5) var(--space-3); margin-block-start: var(--space-5); font-size: 0.95rem; }
.section--night + .site-foot, .subscribe-wrap + .site-foot { margin-block-start: 0; }
.site-foot a { color: #dbe6ec; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.foot-brand img { inline-size: 64px; margin-block-end: 0.75rem; }
.foot-brand p { max-inline-size: 34ch; }
.foot-grid h2 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--sun); margin: 0 0 0.75rem; }
:lang(en) .foot-grid h2 { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.foot-base { border-block-start: 1px solid rgb(255 255 255 / 0.1); margin-block-start: var(--space-4); padding-block-start: var(--space-3); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.85rem; }
.tagline { font-family: var(--font-display); color: var(--sun); }
:lang(en) .tagline { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; }

/* ---------- Misc ---------- */

.empty { background: var(--paper); border: 1px dashed #b6c4cc; border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; color: var(--ink-2); }
.empty h3 { color: var(--night); }
.section--night .empty { background: transparent; border-color: rgb(255 255 255 / 0.2); color: #b9c8d1; }
.section--night .empty h3 { color: #fff; }
.share { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-block-start: var(--space-4); list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-flex; min-inline-size: 42px; min-block-size: 42px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; padding-inline: 0.6rem; }
.pagination [aria-current="page"] span { background: var(--night); color: #fff; border-color: var(--night); }
.pagination .disabled span { color: var(--ink-3); }
.lang-note { font-size: 0.85rem; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 6px; padding: 0.35rem 0.6rem; display: inline-block; margin-block-end: 1rem; }
.issue-section { border-block-start: 1px solid var(--line); padding-block: 1.5rem; }
.issue-section .eyebrow { margin-block-end: 0.3rem; }
.two-col { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.list-plain { list-style: none; padding: 0; margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.two-col > * { min-width: 0; }
.team { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.team figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.team img { aspect-ratio: 1; object-fit: cover; inline-size: 100%; }
.team figcaption { padding: 0.8rem 1rem; }
.team strong { display: block; color: var(--night); }
.values { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border: 1px solid var(--line); }
.values div { background: var(--paper); padding: 1.2rem; }
.values strong { display: block; font-family: var(--font-display); color: var(--night); font-size: 1.1rem; margin-block-end: 0.25rem; }
.values span { color: var(--ink-2); font-size: 0.95rem; }
.logos { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; }
.logos img { max-block-size: 56px; inline-size: auto; }

@media print {
  .site-head, .site-foot, .subscribe, .share, .btn { display: none !important; }
  body { background: #fff; }
}

@media (max-width: 420px) { .brand__name small { display: none; } }
