/* ==========================================================================
   مبادرة غرس — نظام التصميم
   الفكرة البصرية: مقطع رأسي في الأرض. السطح ورقيّ فاتح، والعمق تربة داكنة،
   وخط الأرض بينهما بلون البرونز. الألوان مأخوذة من شعار غرس نفسه.
   ========================================================================== */

/* ==========================================================================
   الخط: IBM Plex Sans Arabic — رخصة SIL OFL 1.1 (fonts/LICENSE.txt)
   مستضاف ذاتيًا، فلا يعتمد الموقع على أي مصدر خارجي.
   ========================================================================== */

@font-face {
  font-family: 'Plex Arabic';
  src: url('/assets/fonts/plex-ar-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('/assets/fonts/plex-ar-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('/assets/fonts/plex-ar-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('/assets/fonts/plex-ar-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
/* الأرقام والحروف اللاتينية — يُحمَّل فقط عند وجودها */
@font-face {
  font-family: 'Plex Latin';
  src: url('/assets/fonts/plex-la-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Plex Latin';
  src: url('/assets/fonts/plex-la-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212;
}

:root {
  /* التربة — من الشعار #133524 */
  --soil-900: #0A1B12;
  --soil-800: #133524;
  --soil-700: #1B4630;
  --soil-600: #265A3D;

  /* الورق والنمو */
  --leaf-600: #3C8E3B;
  --leaf-500: #4FA344;

  /* البرونز — من الشعار #B28333 */
  --gold-700: #8F6726;
  --gold-600: #B28333;
  --gold-500: #C79A45;
  --sand-300: #E0CFA8;

  /* السطح */
  --paper:    #F8F5EE;
  --paper-2:  #F1EBDD;
  --paper-3:  #E7DEC9;

  --ink:      #14231A;
  --ink-2:    #3B4C41;
  --muted:    #6B7A70;
  --line:     #DCD2BC;

  /* ---- سُلّم الأحجام ----
     خطوة واحدة بنسبة ~1.12 بين كل حجمين، فلا يتقارب حجمان تقاربًا يربك العين.
     العربية تُقرأ أصغر من اللاتينية بالحجم نفسه، فالأساس 17px لا 16px.
     أرقام الإحصاءات لها سُلّم مستقل، وأكبرها يظل دون عنوان الصفحة. */

  --fs-micro:    .75rem;      /* 12px — وسوم ومفاتيح ورموز */
  --fs-caption:  .85rem;      /* 13.6px — حواشٍ وملاحظات */
  --fs-small:    .95rem;      /* 15.2px — واجهة ثانوية: أزرار، شرائح */
  --fs-body:     1.0625rem;   /* 17px — النص الأساسي */
  --fs-body-lg:  1.19rem;     /* 19px — فقرة تمهيدية */
  --fs-h4:       1.35rem;     /* 21.6px — عناوين البطاقات */
  --fs-h3:       1.6rem;      /* 25.6px — عناوين فرعية */
  --fs-h2:       clamp(1.85rem, 3.6vw, 2.65rem);
  --fs-h1:       clamp(2.4rem, 5.8vw, 4.4rem);
  --fs-h1-sub:   clamp(2rem, 4.6vw, 3.1rem);   /* عنوان صفحة داخلية */

  --fs-stat-xl:  clamp(2.3rem, 5.2vw, 3.8rem);
  --fs-stat-lg:  clamp(1.6rem, 3.4vw, 2.4rem);
  --fs-stat-md:  1.4rem;
  --fs-stat-sm:  var(--fs-body);   /* الوزن الثقيل والأرقام الجدولية تكفي للتمييز */

  /* ارتفاع السطر: العربية تحتاج أوسع من اللاتينية بسبب التشكيل والنزول */
  --lh-tight:  1.22;
  --lh-head:   1.4;
  --lh-body:   1.75;
  --lh-loose:  1.9;

  /* الخطوط — Plex Latin أولًا ليأخذ الأرقام واللاتيني، ثم Plex Arabic للعربية */
  --display: "Plex Latin", "Plex Arabic", "Segoe UI", "SF Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --body: "Plex Latin", "Plex Arabic", "Segoe UI", "SF Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --data: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Courier New", monospace;

  /* الإيقاع */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(19, 53, 36, .06), 0 4px 14px rgba(19, 53, 36, .06);
  --shadow-2: 0 10px 40px rgba(19, 53, 36, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: var(--lh-head);
  margin: 0;
  letter-spacing: 0;      /* لا تباعد حروف على العربية — يكسر وصل الحروف */
  word-spacing: .09em;    /* خط النسخ يضغط المسافات بين الكلمات في الأحجام الكبيرة */
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.mono {
  font-family: var(--data);
  font-variant-numeric: tabular-nums;
  font-size: .78em;
  letter-spacing: .04em; /* لاتيني فقط */
}

.ltr { direction: ltr; unicode-bidi: isolate; }

.wrap {
  width: min(1140px, 100% - 40px);
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ======================= الترويسة ======================= */

.site-head {
  position: sticky;
  inset-block-start: 0;
  z-index: 60;
  background: rgba(248, 245, 238, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  border-block-end: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-head.is-stuck {
  border-block-end-color: var(--line);
  background: rgba(248, 245, 238, .95);
}
.head-in {
  display: flex;
  align-items: center;
  gap: 20px;
  block-size: 68px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; flex-shrink: 0;
}
.brand img { block-size: 40px; inline-size: 40px; }
.brand b {
  font-family: var(--display);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1;
}
.brand span {
  display: block;
  font-size: var(--fs-micro);
  color: var(--muted);
  line-height: 1.4;
  margin-block-start: 2px;
}
.nav {
  display: flex; gap: 4px;
  margin-inline-start: auto;
}
.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: var(--fs-small);
  text-decoration: none;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--paper-3); color: var(--ink); }

.wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--soil-800);
  color: var(--paper);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 600;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.wa-btn:hover { background: var(--leaf-600); transform: translateY(-1px); }
.wa-btn svg { inline-size: 17px; block-size: 17px; fill: currentColor; }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: none; border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px 10px; cursor: pointer;
}

/* ======================= البطل ======================= */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--soil-700) 0%, var(--soil-800) 42%, var(--soil-900) 100%);
  color: var(--paper);
  padding-block: clamp(56px, 9vw, 104px) 0;
  overflow: hidden;
}

/* الجذور المحيطة — ديكور خفيف */
.hero-roots {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
}
.hero-roots path { stroke: var(--leaf-600); fill: none; stroke-width: 1; opacity: .28; }

.hero-in { position: relative; text-align: center; }

.hero-mark {
  inline-size: clamp(96px, 15vw, 138px);
  margin-inline: auto;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .35));
}
.hero-mark .st0 { fill: var(--paper) !important; }

.eyebrow {
  display: inline-block;
  margin-block: 22px 14px;
  padding: 5px 15px;
  border: 1px solid rgba(199, 154, 69, .45);
  border-radius: 999px;
  font-size: var(--fs-caption);
  color: var(--sand-300);
  background: rgba(178, 131, 51, .1);
}

.hero h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  margin-block-end: 14px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-500);
}
.hero p.lede {
  max-inline-size: 46ch;
  margin: 0 auto;
  font-size: var(--fs-body-lg);
  color: rgba(248, 245, 238, .76);
  line-height: 1.95;
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-block: 30px 0;
}
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: var(--fs-small); font-weight: 600;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn-gold { background: var(--gold-600); color: #1A1206; }
.btn-gold:hover { background: var(--gold-500); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(248, 245, 238, .3); color: var(--paper); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-500); }

/* شريط أرقام التقرير — يجلس على خط الأرض */
.ledger {
  position: relative;
  margin-block-start: clamp(48px, 7vw, 76px);
  border-block-start: 1px solid rgba(199, 154, 69, .35);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.ledger::before {
  content: '';
  position: absolute;
  inset-block-start: -3px; inset-inline-start: 0;
  inline-size: 100%; block-size: 5px;
  background: linear-gradient(90deg, transparent, var(--gold-600), transparent);
  opacity: .5;
}
.ledger-cell {
  padding: 24px 10px 30px;
  text-align: center;
  border-inline-start: 1px solid rgba(248, 245, 238, .09);
}
.ledger-cell:first-child { border-inline-start: 0; }
.ledger-cell b {
  display: block;
  font-family: var(--body);
  font-size: var(--fs-stat-lg);
  font-weight: 700;
  line-height: 1.15;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.ledger-cell small {
  display: block;
  font-size: var(--fs-caption);
  color: rgba(248, 245, 238, .58);
  margin-block-start: 4px;
}
.ledger-src {
  grid-column: 1 / -1;
  padding-block-end: 22px;
  text-align: center;
  font-size: var(--fs-micro);
  color: rgba(248, 245, 238, .42);
}

/* ======================= الأقسام ======================= */

.section { padding-block: clamp(60px, 8.5vw, 104px); }
.section--tint { background: var(--paper-2); }
.section--soil {
  background: var(--soil-800);
  color: var(--paper);
}

.sec-head { margin-block-end: clamp(30px, 4vw, 46px); max-inline-size: 62ch; }
.kicker {
  font-family: var(--data);
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  color: var(--gold-700);
}
.sec-head .kicker { display: block; margin-block-end: 10px; }
.section--soil .sec-head .kicker { color: var(--gold-500); }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head p {
  margin-block: 12px 0;
  color: var(--muted);
  font-size: var(--fs-body);
}
.section--soil .sec-head p { color: rgba(248, 245, 238, .68); }

/* ======================= رحلة الأثر ======================= */
/* تسلسل حقيقي: مساهمة تصير مشروعًا يصير أثرًا موثقًا — لذا الترقيم مبرَّر */

.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
}
.step {
  padding: 30px 26px 32px;
  border-inline-start: 1px solid var(--line);
  position: relative;
}
.step:first-child { border-inline-start: 0; }
.step-n {
  font-family: var(--data);
  font-size: var(--fs-micro);
  color: var(--gold-700);
  display: block;
  margin-block-end: 14px;
}
.step h3 { font-size: var(--fs-h3); margin-block-end: 8px; }
.step p { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.85; }
.step-line {
  position: absolute;
  inset-block-start: 42px; inset-inline-start: -1px;
  inline-size: 1px; block-size: 0;
  background: var(--gold-600);
  transition: block-size .8s var(--ease);
}
.step.in .step-line { block-size: 26px; }

/* ======================= مقياس الآبار (العنصر المميّز) ======================= */

.wells {
  position: relative;
  margin-block-start: 8px;
}
.wells-ground {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding-block-end: 10px;
  border-block-end: 2px solid var(--gold-600);
}
.wells-ground span {
  font-family: var(--data);
  font-size: var(--fs-micro);
  color: var(--gold-500);
}
.wells-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: clamp(6px, 1.4vw, 18px);
  align-items: start;
  padding-block-start: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
/* زر بلا زخرفة المتصفح — العمود نفسه هو الواجهة */
.well {
  position: relative;
  min-inline-size: 62px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  display: block;
}
.well-shaft {
  display: block;
  inline-size: 100%;
  max-inline-size: 44px;
  margin-inline: auto;
  background: linear-gradient(180deg, var(--leaf-500), var(--leaf-600) 42%, var(--gold-700));
  border-radius: 0 0 3px 3px;
  block-size: 0;
  transition: block-size 1.1s var(--ease);
  position: relative;
}
.well-shaft::after {
  content: '';
  position: absolute;
  inset-block-end: 0; inset-inline: 0;
  block-size: 5px;
  background: var(--gold-500);
}
.well:hover .well-shaft { filter: brightness(1.18); }

.well-label { display: block; margin-block-start: 10px; text-align: center; }
.well-depth {
  display: block;
  font-family: var(--body);
  font-size: var(--fs-body-lg);
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.well-depth i { font-style: normal; font-size: .62em; font-weight: 400; margin-inline-start: 2px; }
.well-label b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--body);
  font-size: var(--fs-micro);
  font-weight: 600;
  color: rgba(248, 245, 238, .88);
  line-height: 1.45;
  margin-block-start: 5px;
}
.well-label .flag {
  margin: 6px auto 0;
  display: block;
}
/* عمود البئر — إبراز عند المرور */
.well {
  background: none;
  border: 0;
  padding-inline: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.well .well-shaft { transition: block-size 1.1s var(--ease), filter .25s, transform .25s var(--ease); }
.well:hover .well-shaft,
.well:focus-visible .well-shaft {
  filter: brightness(1.22) saturate(1.1);
  transform: scaleX(1.08);
}
.well:hover .well-label b,
.well:focus-visible .well-label b { color: var(--gold-500); }
.well .flag { transition: transform .25s var(--ease); }
.well:hover .flag { transform: scale(1.18); }

/* ---- التلميحة ---- */
.tip {
  position: fixed;
  z-index: 200;
  padding: 7px 13px;
  background: var(--soil-900);
  color: var(--paper);
  border: 1px solid rgba(199, 154, 69, .35);
  border-radius: 9px;
  font-size: var(--fs-caption);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 26px rgba(10, 27, 18, .38);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 2px)) scale(.94);
  transition: opacity .16s var(--ease), transform .18s var(--ease);
}
.tip.on {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 9px)) scale(1);
}
.tip::after {
  content: '';
  position: absolute;
  inset-block-end: -5px; inset-inline-start: 50%;
  margin-inline-start: -5px;
  inline-size: 9px; block-size: 9px;
  background: var(--soil-900);
  border-inline-end: 1px solid rgba(199, 154, 69, .35);
  border-block-end: 1px solid rgba(199, 154, 69, .35);
  transform: rotate(45deg);
}

/* منقلبة لأسفل حين لا يتّسع المكان فوق العنصر */
.tip--below { transform: translate(-50%, 2px) scale(.94); }
.tip--below.on { transform: translate(-50%, 9px) scale(1); }
.tip--below::after {
  inset-block-end: auto; inset-block-start: -5px;
  border: 0;
  border-inline-start: 1px solid rgba(199, 154, 69, .35);
  border-block-start: 1px solid rgba(199, 154, 69, .35);
}

.wells-note {
  margin-block-start: 26px;
  font-size: var(--fs-caption);
  color: rgba(248, 245, 238, .5);
}

/* ======================= شجرة غرس ======================= */

.tree-sec { padding-block-end: clamp(40px, 6vw, 70px); }
.tree-wrap { position: relative; }

.tree {
  inline-size: 100%;
  block-size: auto;
  overflow: visible;
  display: block;
}

.tree .ground path {
  stroke: var(--gold-600);
  stroke-width: 1.5;
  opacity: .45;
  stroke-dasharray: 1 0;
}
.tree .roots path {
  stroke: var(--gold-700);
  stroke-width: 1.6;
  fill: none;
  opacity: .3;
  stroke-linecap: round;
}
.tree .trunk,
.tree .limb {
  fill: none;
  stroke: #6B4B2A;
  stroke-linecap: round;
}
.tree .trunk { stroke: #7A5730; stroke-width: 16; }

/* النمو: الجذع ثم الأطراف ثم تتفتّح الأوراق من المركز للخارج */
.tree .trunk, .tree .limb {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
}
.tree.grow .trunk {
  animation: grow-stroke .9s var(--ease) forwards;
}
.tree.grow .limb {
  animation: grow-stroke .8s var(--ease) forwards;
  animation-delay: .5s;
}
@keyframes grow-stroke { to { stroke-dashoffset: 0; } }

.tree .leaf {
  cursor: pointer;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.tree.grow .leaf {
  animation: leaf-pop .5s var(--ease) forwards;
  animation-delay: calc(1.15s + var(--d, 0ms));
}
@keyframes leaf-pop {
  from { opacity: 0; scale: .2; }
  60%  { opacity: 1; scale: 1.16; }
  to   { opacity: 1; scale: 1; }
}

.tree .leaf .blade {
  fill: var(--leaf, #5FA83D);
  transition: filter .2s, opacity .2s;
}
.tree .leaf .vein {
  stroke: rgba(10, 27, 18, .3);
  stroke-width: .9;
  fill: none;
}
.tree .leaf:hover .blade,
.tree .leaf:focus-visible .blade {
  filter: brightness(1.4) drop-shadow(0 0 10px var(--leaf));
}
.tree .leaf:focus-visible { outline: none; }

/* إبراز مجال عند المرور على مفتاح الألوان */
.tree[data-hi] .leaf .blade { opacity: .16; }
.tree .leaf.on .blade { opacity: 1; }

.tree-legend {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-block-start: 26px;
}
.leg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(248, 245, 238, .16);
  background: rgba(248, 245, 238, .05);
  color: rgba(248, 245, 238, .82);
  font-size: var(--fs-caption);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.leg:hover {
  border-color: var(--leaf);
  background: rgba(248, 245, 238, .1);
  transform: translateY(-2px);
}
.leg i {
  inline-size: 11px; block-size: 8px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--leaf);
  flex-shrink: 0;
}
.leg b {
  font-family: var(--data);
  font-size: var(--fs-micro);
  color: rgba(248, 245, 238, .55);
  font-weight: 400;
}

@media (max-width: 640px) {
  .tree-legend { gap: 6px; }
  .leg { padding: 6px 11px; font-size: var(--fs-caption); }
}

/* ======================= الدفعة الواحدة ======================= */

.batch {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding-block: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
/* الخيط الذي يربط العقد — يُرسم خلفها */
.batch::before {
  content: '';
  position: absolute;
  inset-block-start: 44px;
  inset-inline: 24px;
  block-size: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-600) 8%, var(--gold-600) 92%, transparent);
  opacity: 0;
  transform: scaleX(.2);
  transform-origin: center;
  transition: opacity .5s var(--ease), transform .9s var(--ease);
}
.batch.on::before { opacity: .55; transform: scaleX(1); }

.bnode {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 7px;
  min-inline-size: 92px;
  padding: 4px 6px 10px;
  background: none; border: 0; cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: transform .2s var(--ease);
}
.batch.on .bnode {
  animation: bnode-in .5s var(--ease) forwards;
  animation-delay: calc(.35s + var(--d, 0ms));
}
@keyframes bnode-in { to { opacity: 1; transform: none; } }
.bnode:hover { transform: translateY(-3px); }

.bnum { font-size: var(--fs-micro); color: var(--muted); }
.bdot {
  inline-size: 11px; block-size: 11px;
  border-radius: 50%;
  background: var(--gold-600);
  box-shadow: 0 0 0 4px var(--paper);
  transition: transform .2s var(--ease), background .2s;
}
.bnode:hover .bdot { transform: scale(1.35); background: var(--leaf-600); }
.bcountry { font-size: var(--fs-caption); font-weight: 600; line-height: 1.4; }

.batch-note {
  margin-block-start: 20px;
  font-size: var(--fs-caption);
  color: var(--muted);
  max-inline-size: 62ch;
}

/* ======================= تكلفة الوصول ======================= */

.reach-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-block-end: 24px;
  margin-block-end: 24px;
  border-block-end: 1px solid rgba(248, 245, 238, .14);
}
.reach-head b {
  font-size: var(--fs-stat-xl);
  line-height: 1;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
}
.reach-head span {
  font-size: var(--fs-body-lg);
  color: rgba(248, 245, 238, .8);
  max-inline-size: 34ch;
  line-height: 1.7;
}

.reach { display: grid; gap: 7px; }
.reach-row {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 11px 15px;
  background: rgba(248, 245, 238, .05);
  border: 1px solid rgba(248, 245, 238, .1);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: start;
  color: var(--paper);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.reach-row:hover {
  border-color: var(--gold-500);
  background: rgba(199, 154, 69, .12);
  transform: translateX(-3px);
}
.reach-name {
  display: flex; align-items: center;
  font-size: var(--fs-small); font-weight: 600;
}
.reach-bar {
  block-size: 9px;
  background: rgba(248, 245, 238, .1);
  border-radius: 999px;
  overflow: hidden;
}
.reach-bar i {
  display: block; block-size: 100%;
  inline-size: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf-500), var(--gold-500));
  transition: inline-size 1s var(--ease);
}
.reach-per { font-size: var(--fs-small); white-space: nowrap; }
.reach-per b { font-variant-numeric: tabular-nums; }
.reach-per em {
  font-style: normal;
  font-size: var(--fs-micro);
  color: rgba(248, 245, 238, .55);
}

.reach-note {
  margin-block-start: 20px;
  font-size: var(--fs-caption);
  color: rgba(248, 245, 238, .62);
  max-inline-size: 68ch;
  line-height: 1.85;
}
.reach-caveat {
  margin-block-start: 12px;
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--gold-700);
  font-size: var(--fs-caption);
  color: rgba(248, 245, 238, .5);
}

@media (max-width: 720px) {
  .reach-row { grid-template-columns: 1fr auto; }
  .reach-bar { grid-column: 1 / -1; order: 3; }
  .bnode { min-inline-size: 84px; }
}

/* ======================= المجالات ======================= */

.cats { display: grid; gap: 10px; }
.cat {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: start;
  inline-size: 100%;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.cat:hover {
  border-color: var(--gold-600);
  transform: translateX(-3px);
  box-shadow: var(--shadow-1);
}
/* الأيقونة عنصر مرن لا سطر مستقل — القاعدة العامة تجعل svg كتليًا */
.cat-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: var(--fs-small);
  line-height: 1.4;
}
.cat-name svg { flex-shrink: 0; }
.cat-bar {
  block-size: 8px;
  background: var(--paper-3);
  border-radius: 999px;
  overflow: hidden;
}
.cat-bar i {
  display: block; block-size: 100%;
  inline-size: 0;
  background: linear-gradient(90deg, var(--leaf-600), var(--gold-600));
  border-radius: 999px;
  transition: inline-size 1s var(--ease);
}
.cat-n {
  font-family: var(--data);
  font-size: var(--fs-caption);
  color: var(--ink-2);
  min-inline-size: 3ch;
  text-align: end;
}

/* ======================= الدول ======================= */

.countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.country {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: start;
  transition: border-color .2s, transform .2s var(--ease);
}
.country:hover { border-color: var(--gold-600); transform: translateY(-2px); }
/* ---- أعلام الدول ----
   ملفات SVG محلية بدل الرموز التعبيرية، لأن ويندوز لا يرسم أعلام الإيموجي.
   الحلقة الرقيقة تفصل الأعلام الفاتحة (اليابان، الأردن…) عن الخلفية. */
.flag {
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(19, 53, 36, .18);
}
.flag-sm {
  inline-size: 19px; block-size: 14px;
  vertical-align: -2px;
  margin-inline-end: 7px;
}
.flag-lg {
  inline-size: 34px; block-size: 25px;
  border-radius: 4px;
}
.section--soil .flag,
.hero .flag { box-shadow: 0 0 0 1px rgba(248, 245, 238, .3); }
.country b { display: block; font-size: var(--fs-small); font-weight: 600; line-height: 1.4; }
.country small {
  display: block;
  font-family: var(--data);
  font-size: var(--fs-micro);
  color: var(--muted);
}

/* ======================= المشاريع ======================= */

.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center;
  margin-block-end: 22px;
}
.search {
  flex: 1 1 240px;
  position: relative;
  min-inline-size: 220px;
}
.search input {
  inline-size: 100%;
  padding: 12px 42px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search input:focus { border-color: var(--gold-600); box-shadow: 0 0 0 3px rgba(199, 154, 69, .16); }
.search svg {
  position: absolute;
  inset-inline-start: 15px; inset-block-start: 50%;
  transform: translateY(-50%);
  inline-size: 17px; block-size: 17px;
  stroke: var(--muted); fill: none; stroke-width: 2;
  pointer-events: none;
}
.sel {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  max-inline-size: 100%;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: var(--fs-small);
  transition: all .2s;
}
.chip[aria-pressed="true"] {
  background: var(--soil-800);
  border-color: var(--soil-800);
  color: var(--paper);
}

/* ---- شريط مشاركة الدولة ---- */
.cshare {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding: 16px 20px;
  margin-block-end: 18px;
  background: linear-gradient(120deg, var(--soil-800), var(--soil-700));
  border-radius: var(--r-lg);
  animation: rise .35s var(--ease);
}
.cshare[hidden] { display: none; }
.cshare-info { display: flex; align-items: center; gap: 13px; }
.cshare-info b {
  display: block;
  font-family: var(--display);
  font-size: var(--fs-h4);
  color: var(--paper);
  line-height: 1.4;
}
.cshare-info small {
  display: block;
  font-size: var(--fs-caption);
  color: rgba(248, 245, 238, .62);
}
.cshare-acts { display: flex; gap: 9px; flex-wrap: wrap; }
.cshare .share-btn { padding: 10px 17px; font-size: var(--fs-caption); }
.cshare .share-wa { background: var(--leaf-600); border-color: var(--leaf-600); }
.cshare .share-wa:hover { background: var(--leaf-500); border-color: var(--leaf-500); }
.cshare .share-copy {
  background: rgba(248, 245, 238, .1);
  border-color: rgba(248, 245, 238, .28);
  color: var(--paper);
}
.cshare .share-copy:hover { border-color: var(--gold-500); color: var(--gold-500); }
.cshare .share-copy.ok { border-color: var(--gold-500); color: var(--gold-500); }

@media (max-width: 620px) {
  .cshare { flex-direction: column; align-items: stretch; }
  .cshare-acts .share-btn { flex: 1; justify-content: center; }
}

.result-line {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-block-end: 18px;
  font-size: var(--fs-caption);
  color: var(--muted);
}
.link-btn {
  background: none; border: 0; cursor: pointer;
  color: var(--gold-700); font-size: var(--fs-caption);
  text-decoration: underline; text-underline-offset: 3px;
  padding: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
}

.card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  text-align: start;
  padding: 0;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--sand-300);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(150deg, var(--soil-700), var(--soil-900));
  overflow: hidden;
}
.card-media img {
  inline-size: 100%; block-size: 100%;
  object-fit: cover;
}
/* لوحة المجال الفنية — تظهر حتى تُرفع صورة المشروع الحقيقية */
.cat-art {
  inline-size: 100%; block-size: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .cat-art { transform: scale(1.04); }
.badges {
  position: absolute;
  inset-block-start: 11px; inset-inline-start: 11px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.badge {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: var(--fs-micro);
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.badge-done { background: rgba(60, 142, 59, .92); color: #fff; }
.badge-active { background: rgba(199, 154, 69, .95); color: #241703; }
.badge-new { background: rgba(248, 245, 238, .94); color: var(--soil-800); }
.badge-media {
  position: absolute;
  inset-block-end: 11px; inset-inline-end: 11px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 27, 18, .72);
  color: var(--paper);
  font-family: var(--data);
  font-size: var(--fs-micro);
  backdrop-filter: blur(6px);
}

.card-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.card-cc {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--data);
  font-size: var(--fs-micro);
  color: var(--muted);
  margin-block-end: 8px;
}
.card-cc .flag-sm { margin-inline-end: 1px; }
.card h3 {
  font-size: var(--fs-h4);
  line-height: 1.5;
  margin-block-end: 10px;
}
.card-sub { font-size: var(--fs-caption); color: var(--muted); margin: 0 0 14px; line-height: 1.7; }
.card-foot {
  margin-block-start: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding-block-start: 13px;
  border-block-start: 1px solid var(--line);
}
.card-foot div { line-height: 1.35; }
.card-foot b {
  display: block;
  font-size: var(--fs-stat-sm);
  font-variant-numeric: tabular-nums;
}
.card-foot small { font-size: var(--fs-micro); color: var(--muted); }

.empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  color: var(--muted);
}
.empty b { display: block; font-size: var(--fs-body-lg); color: var(--ink); margin-block-end: 6px; font-family: var(--display); }

/* ======================= نافذة المشروع ======================= */

.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  max-inline-size: none; max-block-size: none;
  inline-size: 100%; block-size: 100%;
}
.modal[open] { display: block; }
.modal::backdrop { background: rgba(10, 27, 18, .72); backdrop-filter: blur(5px); }

.modal-scroll {
  block-size: 100%;
  overflow-y: auto;
  padding: clamp(12px, 4vw, 44px);
  display: flex; align-items: flex-start; justify-content: center;
}
.modal-card {
  inline-size: min(880px, 100%);
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  animation: rise .35s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

.modal-hero {
  position: relative;
  aspect-ratio: 16 / 8;
  background: linear-gradient(150deg, var(--soil-700), var(--soil-900));
}
.modal-hero img, .modal-hero video {
  inline-size: 100%; block-size: 100%; object-fit: cover;
}
.modal-hero .glyph { position: absolute; inset: 0; display: grid; place-items: center; opacity: .3; }
.modal-hero .glyph svg { inline-size: 96px; block-size: 96px; stroke: var(--gold-500); fill: none; stroke-width: 1.1; }

.modal-close {
  position: absolute;
  inset-block-start: 14px; inset-inline-end: 14px;
  inline-size: 38px; block-size: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 27, 18, .6);
  color: var(--paper);
  cursor: pointer;
  font-size: var(--fs-h4);
  line-height: 1;
  backdrop-filter: blur(6px);
  transition: background .2s;
  z-index: 2;
}
.modal-close:hover { background: var(--soil-800); }

.modal-body { padding: clamp(22px, 4vw, 34px); }
.modal-body > .badges { position: static; margin-block-end: 12px; }
.modal-body h2 { font-size: var(--fs-h2); line-height: 1.4; }
.modal-sub { color: var(--muted); font-size: var(--fs-small); margin-block: 8px 0; }

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-block: 24px;
}
.spec { background: var(--paper); padding: 15px 16px; }
.spec small { display: block; font-size: var(--fs-micro); color: var(--muted); margin-block-end: 5px; }
.spec b { font-size: var(--fs-stat-sm); font-variant-numeric: tabular-nums; font-weight: 700; }
.spec b em { font-style: normal; font-size: var(--fs-micro); font-weight: 400; color: var(--muted); }

.dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-block-end: 24px;
}
.date-row {
  padding: 12px 15px;
  background: var(--paper-2);
  border-inline-start: 3px solid var(--gold-600);
  border-radius: var(--r-sm);
}
.date-row small { display: block; font-size: var(--fs-micro); color: var(--muted); margin-block-end: 3px; }
.date-row b { font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; }

.modal-desc { font-size: var(--fs-body); line-height: 1.95; color: var(--ink-2); white-space: pre-wrap; }

.gal-title {
  font-family: var(--data);
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  color: var(--gold-700);
  margin-block: 28px 12px;
}
.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.gal button {
  padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--paper-3);
}
.gal img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.gal button:hover img { transform: scale(1.06); }

.modal-video {
  margin-block-start: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
/* ---- مشاركة المشروع ---- */
.share {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-block-start: 28px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--line);
}
.share-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-small); font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.share-btn svg { inline-size: 18px; block-size: 18px; flex-shrink: 0; }
.share-wa { background: var(--soil-800); border-color: var(--soil-800); color: var(--paper); }
.share-wa svg { fill: currentColor; }
.share-wa:hover { background: var(--leaf-600); border-color: var(--leaf-600); transform: translateY(-2px); }
.share-copy:hover { border-color: var(--gold-600); color: var(--gold-700); transform: translateY(-2px); }
.share-copy.ok { border-color: var(--leaf-600); color: var(--leaf-600); }

.modal-video video, .modal-video iframe {
  inline-size: 100%; block-size: 100%; border: 0; display: block;
}

/* عارض الصور */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(6, 16, 11, .93);
  display: none;
  place-items: center;
  padding: 24px;
}
.lightbox.on { display: grid; }
.lightbox img { max-block-size: 88vh; max-inline-size: 100%; border-radius: var(--r-sm); }
.lightbox button {
  position: absolute;
  inset-block-start: 20px; inset-inline-end: 20px;
  inline-size: 42px; block-size: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .13); color: #fff;
  border: 0; cursor: pointer; font-size: var(--fs-h4);
}

/* ======================= الشريك والتواصل ======================= */

.partner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.partner-logo {
  display: grid; place-items: center;
  min-block-size: 170px;
  padding: 26px;
  background: var(--paper-2);
  border-radius: var(--r-md);
  text-align: center;
}
/* الشعار الرسمي 200×64 — لا يُكبَّر فوق حجمه حتى لا يتشوّش */
.partner-logo img {
  inline-size: auto;
  block-size: auto;
  max-inline-size: min(100%, 240px);
  max-block-size: 78px;
}
.partner-lockup b {
  display: block;
  font-family: var(--display);
  font-size: var(--fs-h3);
  color: var(--soil-800);
  line-height: 1.4;
}
.partner-lockup span {
  display: block;
  font-family: var(--data);
  font-size: var(--fs-micro);
  color: var(--gold-700);
  letter-spacing: .1em;
  margin-block-start: 6px;
}
.partner h2 { font-size: var(--fs-h2); margin-block-end: 12px; }
.partner p { color: var(--muted); margin-block: 0 18px; }

/* بطاقة واحدة لا تتمدّد على العرض كله */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 360px));
  justify-content: start;
  gap: 16px;
  margin-block-start: 22px;
}
.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: rgba(248, 245, 238, .06);
  border: 1px solid rgba(248, 245, 238, .14);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.contact-card:hover {
  border-color: var(--gold-500);
  background: rgba(199, 154, 69, .1);
  transform: translateY(-2px);
}
.contact-card svg { inline-size: 26px; block-size: 26px; fill: var(--gold-500); flex-shrink: 0; }
.contact-card small { display: block; font-size: var(--fs-micro); color: rgba(248, 245, 238, .6); }
.contact-card b { font-size: var(--fs-body); }

/* ======================= التذييل ======================= */

.site-foot {
  background: var(--soil-900);
  color: rgba(248, 245, 238, .62);
  padding-block: 44px 34px;
  font-size: var(--fs-caption);
}
.foot-in {
  display: flex; flex-wrap: wrap; gap: 22px;
  align-items: center; justify-content: space-between;
}
.foot-brand { display: flex; align-items: center; gap: 11px; }
.foot-brand img { inline-size: 38px; block-size: 38px; }
.foot-brand .st0 { fill: var(--paper); }
.foot-brand b { color: var(--paper); font-family: var(--display); font-size: var(--fs-h4); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--gold-500); }
.foot-note {
  margin-block-start: 26px;
  padding-block-start: 20px;
  border-block-start: 1px solid rgba(248, 245, 238, .1);
  font-size: var(--fs-caption);
  color: rgba(248, 245, 238, .4);
  line-height: 1.8;
}

/* ======================= الصفحات الداخلية ======================= */

.page-hero {
  background: linear-gradient(170deg, var(--soil-800), var(--soil-900));
  color: var(--paper);
  padding-block: clamp(38px, 6vw, 66px) clamp(44px, 7vw, 74px);
}
.crumbs {
  display: flex; align-items: center; gap: 9px;
  font-size: var(--fs-caption);
  color: rgba(248, 245, 238, .5);
  margin-block-end: 18px;
}
.crumbs a { color: var(--gold-500); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 {
  font-size: var(--fs-h1-sub);
  line-height: var(--lh-tight);
  margin-block-end: 14px;
}
.page-hero .lede {
  max-inline-size: 56ch;
  color: rgba(248, 245, 238, .74);
  font-size: var(--fs-body-lg);
  line-height: 1.9;
  margin: 0;
}

.prose-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}
.prose .kicker {
  display: block;
  font-family: var(--data);
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  color: var(--gold-700);
  margin-block-end: 10px;
}
.prose h2 { font-size: var(--fs-h2); margin-block-end: 16px; }
.prose p { color: var(--ink-2); line-height: 1.95; margin-block: 0 16px; }
.prose p:last-child { margin-block-end: 0; }

.side-card {
  background: var(--soil-800);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.side-card .kicker {
  display: block;
  font-family: var(--data);
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  color: var(--gold-500);
  margin-block-end: 18px;
}
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px;
  padding-block: 11px;
  border-block-end: 1px solid rgba(248, 245, 238, .12);
}
.fact-list li:last-child { border-block-end: 0; padding-block-end: 0; }
.fact-list b {
  font-size: var(--fs-stat-md);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.fact-list span { font-size: var(--fs-caption); color: rgba(248, 245, 238, .6); }

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.ed-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.ed-block h2 { font-size: var(--fs-h4); margin-block-end: 10px; }
.ed-block p { margin: 0; color: var(--ink-2); line-height: 1.95; white-space: pre-wrap; }

/* أيقونة المجال في صفحة عن غرس */
.cat-ico {
  inline-size: 30px; block-size: 30px;
  border-radius: 6px;
  object-fit: cover;
  vertical-align: -9px;
  margin-inline-end: 10px;
}
a.cat { text-decoration: none; color: inherit; }

.ledger--flat { border-block-start: 0; margin-block-start: 0; }
.ledger--flat::before { display: none; }

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.note {
  background: rgba(248, 245, 238, .06);
  border: 1px solid rgba(248, 245, 238, .14);
  border-radius: var(--r-md);
  padding: 20px 21px;
}
.note h3 { font-size: var(--fs-body-lg); margin-block-end: 8px; color: var(--gold-500); }
.note p { margin: 0; font-size: var(--fs-small); line-height: 1.85; color: rgba(248, 245, 238, .72); }

/* ======================= التقارير ======================= */

.reports { display: grid; gap: 16px; }
.report {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s, transform .25s var(--ease);
}
.report:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--sand-300);
  transform: translateY(-3px);
}
.report-cover {
  position: relative;
  background: linear-gradient(150deg, var(--soil-700), var(--soil-900));
  min-block-size: 170px;
  display: grid; place-items: center;
}
.report-cover img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.report-mark svg {
  inline-size: 54px; block-size: 54px;
  color: var(--gold-500);
  opacity: .5;
}
.report-body { padding: 22px 24px; display: flex; flex-direction: column; }
.report-date {
  display: block;
  font-size: var(--fs-micro);
  color: var(--gold-700);
  margin-block-end: 8px;
}
.report-body h3 { font-size: var(--fs-h4); line-height: 1.5; margin-block-end: 8px; }
.report-body p { margin: 0 0 16px; color: var(--muted); font-size: var(--fs-small); line-height: 1.8; }
.report-foot {
  margin-block-start: auto;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.report-size { font-size: var(--fs-micro); color: var(--muted); }
.report-pending {
  font-size: var(--fs-caption); color: var(--muted);
  padding: 10px 0;
}

@media (max-width: 760px) {
  .prose-wrap { grid-template-columns: 1fr; }
  .report { grid-template-columns: 1fr; }
  .report-cover { min-block-size: 130px; }
}

/* ======================= الظهور عند التمرير ======================= */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ======================= الاستجابة ======================= */

@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; }
  .step { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .step:first-child { border-block-start: 0; }
  .partner { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: repeat(3, 1fr); }
  .ledger-cell:nth-child(4) { border-inline-start: 0; }
}

@media (max-width: 720px) {
  html { scroll-padding-block-start: 72px; }
  .nav {
    position: fixed;
    inset-block-start: 68px; inset-inline: 0;
    flex-direction: column;
    background: var(--paper);
    border-block-end: 1px solid var(--line);
    padding: 10px 20px 18px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow-1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: var(--r-sm); }
  /* مناطق لمس لا تقل عن 44 بكسل */
  .nav-toggle { display: grid; place-items: center; min-inline-size: 44px; min-block-size: 44px; padding: 0; }
  .head-in .wa-btn span { display: none; }
  .head-in .wa-btn {
    padding: 0; min-inline-size: 44px; min-block-size: 44px;
    justify-content: center;
  }
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger-cell { border-inline-start: 1px solid rgba(248, 245, 238, .09); }
  .ledger-cell:nth-child(odd) { border-inline-start: 0; }
  .cat { grid-template-columns: 1fr auto; }
  .cat-bar { grid-column: 1 / -1; order: 3; }
  .grid { grid-template-columns: 1fr; }
  .countries { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .specs { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
