/* ======================================================================
   الرئيسية — دمج النماذج الأربعة:
   A «سينمائي» (صورة كاملة، قسم مثبّت يُروى بالتمرير، نافذة شتاء آمن)
   B «الملصق» (عنوان كوفي يُبنى كلمة كلمة، كتل حمراء وحبر، تطريز، جدار 500 طوبة، $50 الضخمة، الختام الأحمر)
   C «المنصة الحيّة» (بحث أولًا، بطاقات عائمة، شريط المتبرعين، الشرائح والتبرع السريع، منتقي كَنَف)
   D «الخريطة» (خريطة غزة الحية، مسارات العطاء، الدبابيس على خط زمني، بطاقة التسليم، سجل الميدان)
   كل الفئات تبدأ بـ hm- حتى لا تتصادم مع styles.css وpower.css وplatform.css.
   سلّم الأحجام: رموز الموقع (--fs-*) + ثلاثة أحجام للعرض الضخم فقط (--hm-mega · --hm-giant · --hm-poster).
   ====================================================================== */
:root {
  --hm-mega: clamp(46px, calc(18px + 5.6vw), 104px);
  --hm-giant: clamp(80px, calc(30px + 8vw), 156px);
  --hm-poster: clamp(40px, calc(16px + 3.2vw), 68px);
  --hm-ink: #17110f;
  --hm-red-d: #a11d26;
  --hm-sand-2: #e3d8c2;
  --hm-paper: #fbf8f1;
  --hm-muted: #6d625a;
  --hm-line: rgba(23, 17, 15, .14);
  --hm-line-2: rgba(23, 17, 15, .28);
  --hm-r: 18px;
  --hm-sh: 0 1px 2px rgba(23, 17, 15, .05), 0 12px 32px -14px rgba(23, 17, 15, .28);
  --hm-sh-3: 0 30px 60px -24px rgba(23, 17, 15, .45);
  /* نجمة التطريز: من system.css */
  --hm-star-cream: var(--px-star-cream);
  --hm-star-red: var(--px-star-red);
  --hm-star-ink: var(--px-star-ink);
  --hm-star-olive: var(--px-star-olive);
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[data-page="home"] main { overflow-x: clip; }
/* styles.css يجعل [dir=ltr] بخط لاتيني مُذيّل (لصفحة الإنجليزية). الأرقام هنا عربية السياق فتبقى بخط العرض. */
html[dir="rtl"] [data-page="home"] main [dir="ltr"] { --display: "Alexandria", "IBM Plex Sans Arabic", sans-serif; --text: "IBM Plex Sans Arabic", system-ui, sans-serif; }

/* ———— مشترك ———— */
.hm-k { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 var(--fs-small)/1.4 var(--display); color: var(--ink); }
.hm-k::before { content: ""; width: 12px; height: 12px; background: var(--red); flex: none; }
.hm-k:has(.hm-live)::before { display: none; }
.hm-k--light { color: #fff; }
.hm-k--olive::before { background: var(--olive); }
.hm-h2 { font: 800 var(--fs-h2-xl)/var(--lh-h2-xl) var(--display); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.hm-h3 { font: 800 var(--fs-h3-lg)/var(--lh-h3-lg) var(--display); margin: 0; }
.hm-lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-2); margin: 12px 0 0; max-width: 36em; }
.hm-head { margin-bottom: clamp(24px, 3vw, 40px); }
.hm-sec { padding-block: clamp(48px, 5vw, 72px); }
.hm-rail .hm-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.hm-fine { font-size: var(--fs-micro); color: var(--hm-muted); margin: 14px 0 0; }
.hm-credit { position: absolute; z-index: 3; inset-inline-start: 16px; bottom: 12px; margin: 0; font: 500 11px/1.4 var(--text); color: rgba(255, 255, 255, .78); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); direction: ltr; pointer-events: none; }
/* النبضة: حلقة ::after تتحرك بـ transform/opacity (على المركّب، بلا إعادة رسم كل إطار كما كان box-shadow) */
.hm-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.hm-live::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(196, 37, 47, .55); animation: hmPing 1.8s infinite; }
@keyframes hmPing { 0% { transform: scale(1); opacity: 1; } 80%, 100% { transform: scale(3); opacity: 0; } }
.hm-ill { font: 600 10.5px/1 var(--text); color: var(--hm-muted); background: rgba(23, 17, 15, .07); border-radius: 99px; padding: 4px 7px; white-space: nowrap; }
.hm-bar { height: 8px; border-radius: 99px; background: rgba(23, 17, 15, .1); overflow: hidden; }
.hm-bar i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--red); }
.hm-bar--lg { height: 10px; background: rgba(255, 255, 255, .18); }
.hm-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 13px/1 var(--text); color: #fff; background: hsl(var(--h) 40% 40%); }
.btn bdi { unicode-bidi: isolate; }

/* ======================================================================
   1. البطل
   ====================================================================== */
.hm-hero { position: relative; isolation: isolate; display: flex; overflow: hidden; color: #fff; background: var(--hm-ink);
  margin-top: calc(-1 * var(--nav-total, 76px)); min-height: clamp(640px, calc(100svh - 44px), 940px);
  border-radius: 0 0 var(--field-r, 40px) var(--field-r, 40px); }
.hm-hero__ph { position: absolute; inset: 0; margin: 0; z-index: -1; }
.hm-hero__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 58%; transform-origin: 100% 60%; transform: scale(1.14); filter: saturate(.92) contrast(1.04); animation: hmKen 22s var(--ease) both; }
@keyframes hmKen { from { transform: scale(1.2); } to { transform: scale(1.14); } }
.hm-hero__ph::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(23, 17, 15, .9) 0%, rgba(23, 17, 15, .74) 34%, rgba(23, 17, 15, .18) 62%, rgba(23, 17, 15, 0) 78%),
              linear-gradient(0deg, rgba(23, 17, 15, .6) 0%, rgba(23, 17, 15, 0) 34%),
              linear-gradient(180deg, rgba(23, 17, 15, .5) 0%, rgba(23, 17, 15, 0) 24%); }
.hm-hero .hm-credit { bottom: 12px; }
.hm-hero__in { position: relative; width: 100%; max-width: 1360px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: end; gap: 40px;
  padding: calc(var(--nav-total, 76px) + clamp(36px, 5vh, 64px)) 24px clamp(40px, 6vh, 64px); }
.hm-hero__copy { display: grid; justify-items: start; }
.hm-hero__h { margin: 0; font: 800 var(--hm-mega)/1.22 var(--display); letter-spacing: -.012em; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hm-ln { display: block; white-space: nowrap; }
/* الكلمات (.px-w) ونقطة الطوب (.px-brick): من system.css */
.hm-hero__lead { margin: 16px 0 0; max-width: 32em; font-size: var(--fs-lead); line-height: 1.7; color: rgba(255, 255, 255, .88); }
.hm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hm-paytrust { margin: 14px 0 0; font-size: 14px; line-height: 1.6; }
.hm-paytrust a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px 6px 10px; border-radius: 16px; background: rgba(27, 22, 19, .42); color: #fbf6ec; text-decoration: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hm-paytrust a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.hm-paytrust svg { flex: none; }
.hm-paytrust bdi { font-weight: 700; letter-spacing: .02em; }
.hm-btn-glass { color: #fff; background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hm-btn-glass:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* البحث (C) */
.hm-search { position: relative; display: flex; align-items: center; width: min(100%, 600px); height: 62px; margin-top: 22px; padding-inline: 6px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); transition: box-shadow .25s; }
.hm-search:focus-within { box-shadow: 0 0 0 4px rgba(196, 37, 47, .35), 0 18px 40px -18px rgba(0, 0, 0, .6); }
.hm-search__ic { width: 22px; height: 22px; margin-inline: 12px 8px; color: var(--hm-muted); flex: none; }
.hm-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 17px var(--text); color: var(--ink); }
.hm-search input::-webkit-search-cancel-button { display: none; }
.hm-search__ph { position: absolute; inset-inline-start: 46px; inset-inline-end: var(--hm-go, 110px); top: 50%; transform: translateY(-50%); display: flex; gap: 6px; overflow: hidden; white-space: nowrap; pointer-events: none; font-size: 17px; color: #9a8f86; }
/* النص الدوّار لا يمرّ تحت زر البحث: نهايته عند حافة الزر (--hm-go يقيسه home.js)، ويُختصر بنقاط إن طال */
.hm-search__rot { color: var(--ink-2); font-weight: 500; display: inline-block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-search__rot.out { animation: hmPhOut .26s var(--ease) forwards; }
.hm-search__rot.in { animation: hmPhIn .32s var(--ease); }
@keyframes hmPhOut { to { transform: translateY(-70%); opacity: .2; } }
@keyframes hmPhIn { from { transform: translateY(70%); opacity: .2; } }
.hm-search.has-v .hm-search__ph { display: none; }
.hm-search__go { min-height: 50px !important; height: 50px; padding: 0 22px !important; border-radius: 12px; flex: none; }
.hm-search__pop { position: absolute; z-index: 30; top: calc(100% + 8px); inset-inline: 0; max-height: min(420px, 60vh); overflow-y: auto; padding: 8px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--hm-sh-3); animation: hmPop .2s var(--ease); }
@keyframes hmPop { from { transform: translateY(-6px); } }
.hm-res { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; }
.hm-res:hover, .hm-res.is-act { background: var(--hm-paper); }
.hm-res img { width: 54px; height: 42px; border-radius: 9px; object-fit: cover; flex: none; }
.hm-res a { flex: 1; min-width: 0; display: grid; text-decoration: none; }
.hm-res a b { font: 700 14px/1.45 var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-res a small { font-size: 12.5px; color: var(--hm-muted); }
.hm-res button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--red); color: #fff; font: 700 13px var(--text); cursor: pointer; }
.hm-res button:hover { background: var(--red-hover); }
.hm-res--all a { padding: 6px 4px; }
.hm-res--empty { padding: 12px; font-size: 14px; color: var(--hm-muted); }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; max-width: 620px; }
.hm-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: 600 14px var(--text); cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.hm-chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.hm-chip small { font-size: 12px; font-weight: 700; color: #ffb3b6; }
.hm-chip:hover { background: rgba(255, 255, 255, .22); border-color: #fff; transform: translateY(-1px); }

/* البطاقات العائمة (C) */
.hm-hero__float { position: relative; display: grid; gap: 14px; justify-items: end; align-self: end; }
.hm-fl { width: 300px; padding: 14px 16px; color: var(--ink); background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 18px; box-shadow: var(--hm-sh-3); }
.hm-fl--ping { animation: hmFloat 8s ease-in-out -2s infinite; justify-self: start; }
.hm-fl--camp { animation: hmFloat 9s ease-in-out infinite; }
@keyframes hmFloat { 50% { transform: translateY(-8px); } }
.hm-fl__k { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 12px var(--text); color: var(--hm-muted); }
.hm-fl__k .hm-ill { margin-inline-start: auto; }
.hm-ping { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 14px; line-height: 1.5; }
.hm-ping small { display: block; font-size: 12px; color: var(--hm-muted); } /* 6:1 على البطاقة البيضاء (كان #9a8f86 ≈ 3.2:1) */
.hm-av--inv { background: var(--red); font-size: 18px; }
.hm-ping__a { color: inherit; text-decoration: none; }
.hm-ping__a:hover b, .hm-ping__a:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.hm-ping.swap { animation: hmSwap .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes hmSwap { from { transform: translateY(8px) scale(.98); } }
.hm-fl__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; text-decoration: none; }
.hm-fl__top img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.hm-fl__top small { display: block; font-size: 12px; font-weight: 600; color: var(--red-ink); }
.hm-fl__top b { font: 700 14.5px/1.45 var(--display); }
.hm-fl__nums { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--hm-muted); }
.hm-fl__nums b { font: 800 17px var(--display); color: var(--ink); }
.hm-fl__nums em { margin-inline-start: auto; font-style: normal; font-weight: 700; color: var(--ink); }
.hm-fl__q { display: flex; gap: 6px; margin-top: 12px; }
.hm-fl__q button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--hm-line); background: var(--hm-paper); font: 700 14px var(--text); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.hm-fl__q button:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* 2. الشريط الحي: .px-marquee في system.css */

/* ======================================================================
   3. خريطة العطاء الحية (D)
   ====================================================================== */
.hm-map { display: grid; grid-template-columns: minmax(340px, 31%) minmax(0, 1fr); margin: clamp(40px, 4vw, 64px) 12px 0; border-radius: var(--field-r, 40px); overflow: hidden; background: var(--sand); border: 1px solid var(--hm-line); min-height: min(800px, calc(100svh - 60px)); }
.hm-map__text { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px, 3.6vw, 52px); background: var(--hm-paper); border-inline-end: 1px solid var(--hm-line); position: relative; z-index: 2; }
.hm-map__text .hm-k { color: var(--hm-muted); font-weight: 600; margin: 0; }
.hm-map__deck { margin: 0; font-size: var(--fs-body); line-height: 1.8; color: var(--ink-2); }
.hm-tally { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 0; border-block: 1px solid var(--ink); }
.hm-tally > div { display: flex; flex-direction: column-reverse; padding: 12px 0; padding-inline-end: 18px; margin-inline-end: 18px; border-inline-end: 1px solid var(--hm-line); }
.hm-tally > div:last-child { border: 0; margin: 0; padding-inline-end: 0; }
.hm-tally dd { margin: 0; font: 800 clamp(26px, 2.4vw, 38px)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.hm-tally dt { font-size: var(--fs-cap); color: var(--hm-muted); line-height: 1.4; margin-top: 4px; }
.hm-demotag { margin: -8px 0 0; }
.hm-map__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.hm-map__map { display: flex; flex-direction: column; min-width: 0; position: relative; }
.hm-ctrl { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--hm-paper); border-bottom: 1px solid var(--hm-line); position: relative; z-index: 3; }
.hm-ctrl__chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; min-height: 34px; } /* يحجز سطر الفلاتر قبل أن ترسمها الخريطة (CLS) */
.hm-mchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--hm-line-2); background: transparent; font: 600 13px/1 var(--text); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.hm-mchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hm-mchip small { font-size: 11px; color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.hm-mchip:hover { border-color: var(--ink); }
.hm-mchip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.hm-mchip[aria-pressed="true"] small { color: rgba(246, 239, 226, .7); }
.hm-views { display: flex; flex: none; padding: 3px; border: 1px solid var(--hm-line-2); border-radius: 99px; }
.hm-views button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: none; font: 600 13px/1 var(--text); color: var(--ink); cursor: pointer; }
.hm-views button.is-on { background: var(--red); color: #fff; }
.hm-mapbox { position: relative; flex: 1; min-height: 440px; overflow: hidden; touch-action: pan-y; background: var(--sand); }
.hm-geo, .hm-flows { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hm-flows { pointer-events: none; }
.hm-geo .land { fill: var(--sand); }
.hm-geo .sea { fill: #dfe5e3; }
.hm-geo .sea--hatch { fill: url(#hatch); opacity: .9; }
.hm-geo .hatch-line, .hatch-line { stroke: #c3cfcc; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hm-geo .coast { fill: none; stroke: #8fa3a0; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hm-geo .grat line { stroke: rgba(23, 17, 15, .07); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 4; }
.hm-geo .gov { fill: #f4ecdc; stroke: rgba(23, 17, 15, .38); stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .5s; }
.hm-geo .gov--gz { fill: var(--hm-paper); stroke: var(--ink); stroke-width: 1.3; }
.hm-geo .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hmDraw 1.6s var(--ease) forwards; }
@keyframes hmDraw { to { stroke-dashoffset: 0; } }
.hm-mapbox__wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: 700 15px var(--display); color: var(--hm-muted); }
.hm-mapbox.is-ready .hm-mapbox__wait { display: none; }
.hm-tl[hidden], .hm-demotag[hidden], .hm-tally > div[hidden], .hm-log[hidden], .hm-log__empty[hidden], .hm-ctrl__chips[hidden] { display: none; }
.hm-glabels, .hm-pins, .hm-origins { position: absolute; inset: 0; pointer-events: none; }
.hm-gl { position: absolute; transform: translate(-50%, -50%); font: 700 11.5px/1.2 var(--display); color: var(--ink-2); white-space: nowrap; text-shadow: 0 0 3px var(--sand), 0 0 3px var(--sand); transition: opacity .4s; }
.hm-gl--big { font-size: 15px; font-weight: 800; color: var(--ink); }
.hm-gl--sea { font: 600 15px/1.3 var(--text); color: #6f8683; letter-spacing: .3em; text-shadow: none; }
.hm-gl.is-off { opacity: 0; }
.hm-pin { position: absolute; left: 0; top: 0; width: 32px; height: 32px; margin: -16px 0 0 -16px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transition: opacity .35s, transform .35s var(--ease); }
.hm-pin__d { position: absolute; inset: 8px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.hm-pin__r { position: absolute; inset: 8px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; }
.hm-pin.is-live .hm-pin__r { animation: hmPulse 2.6s var(--ease) infinite; animation-delay: var(--pd, 0s); }
@keyframes hmPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
.hm-pin:hover .hm-pin__d, .hm-pin:focus-visible .hm-pin__d, .hm-pin.is-on .hm-pin__d { transform: scale(1.45); }
.hm-pin.is-on { z-index: 5; }
.hm-pin.is-on .hm-pin__d { box-shadow: 0 0 0 4px rgba(23, 17, 15, .85); }
.hm-pin.drop { animation: hmDrop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes hmDrop { 0% { transform: translateY(-46px) scale(.6); } 100% { transform: none; } }
.hm-pin.is-dim { opacity: .16; }
.hm-pin.is-dim .hm-pin__r { animation: none; }
.hm-pin.is-hidden { opacity: .2; transform: scale(.4); }
.hm-org { position: absolute; display: flex; align-items: center; gap: 6px; font: 600 11px/1 var(--text); color: var(--ink-2); white-space: nowrap; transform: translateY(-50%); transition: color .3s; }
.hm-org i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); flex: none; }
.hm-org b { font-weight: 700; color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.hm-org.is-hot { color: var(--red); }
.hm-org.is-hot i { background: var(--red); }
.hm-flows .arc { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; }
.hm-flows .arc--trail { stroke: var(--ink); opacity: .14; stroke-width: 1; }
.hm-flows .arc-head { fill: var(--red); }
.hm-flows .leader { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 3; }
.hm-mapnote { position: absolute; inset-inline-start: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-2); pointer-events: none; }
.hm-mapnote p { margin: 0; padding: 4px 8px; border-radius: 6px; background: rgba(251, 248, 241, .9); line-height: 1.5; }
.hm-mapnote b { color: var(--red-ink); }
.hm-scale { display: flex; align-items: center; gap: 8px; font: 600 11px var(--text); }
.hm-scale i { display: block; height: 7px; width: 60px; border: 1.5px solid var(--ink); border-top: 0; }
.hm-inset { position: absolute; inset-inline-start: 16px; top: 16px; width: 96px; padding: 8px 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(251, 248, 241, .94); border: 1px solid var(--hm-line-2); border-radius: 10px; cursor: pointer; font: 600 11px/1.3 var(--text); color: var(--ink); }
.hm-inset svg { width: 72px; height: 82px; }
.hm-inset:hover { border-color: var(--ink); }
.sym-pal path { fill: #e8dcc5; stroke: rgba(23, 17, 15, .4); stroke-width: 3; }
.sym-pal path.gz { fill: var(--red); stroke: var(--red); }
#hmInsetBox { fill: none; stroke: var(--red); stroke-width: 10; }
.hm-card { position: absolute; z-index: 10; width: 300px; overflow: hidden; pointer-events: auto; background: var(--hm-paper); border: 1px solid var(--ink); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(23, 17, 15, .35); animation: hmCardIn .28s var(--ease); }
@keyframes hmCardIn { from { transform: translateY(6px); } }
.hm-card[hidden] { display: none; }
.hm-card__img { position: relative; aspect-ratio: 16 / 10; background: var(--hm-sand-2); }
.hm-card__img img { width: 100%; height: 100%; object-fit: cover; }
.hm-card__img small { position: absolute; bottom: 6px; inset-inline-end: 8px; padding: 1px 6px; border-radius: 4px; font-size: 10px; color: #fff; background: rgba(0, 0, 0, .5); direction: ltr; }
.hm-card__blank { aspect-ratio: 16 / 10; display: grid; place-content: center; gap: 4px; padding: 16px; text-align: center; background: repeating-linear-gradient(-45deg, var(--sand), var(--sand) 8px, var(--hm-sand-2) 8px, var(--hm-sand-2) 16px); font: 700 14px/1.5 var(--display); color: var(--ink-2); }
.hm-card__blank span { font: 400 12.5px/1.5 var(--text); color: var(--hm-muted); }
.hm-card__b { display: grid; gap: 6px; padding: 14px 16px 16px; }
.hm-card__tag { display: flex; align-items: center; gap: 7px; margin: 0; font: 700 12px/1 var(--display); color: var(--c); }
.hm-card__tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.hm-card h3 { margin: 0; font: 700 17px/1.45 var(--display); }
.hm-card__m { margin: 0; font-size: 13px; color: var(--hm-muted); }
.hm-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--hm-line); }
.hm-card__f { margin: 0; font-size: 13px; color: var(--ink-2); }
.hm-card__f b { font: 800 18px var(--display); color: var(--ink); }
.hm-card__a { font: 700 13px var(--display); color: var(--red-ink); white-space: nowrap; }
.hm-card__give { min-height: 42px !important; width: 100%; margin-top: 6px; font-size: 14px !important; }
.hm-card__x { position: absolute; top: 8px; inset-inline-start: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(23, 17, 15, .72); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.hm-card__k { position: absolute; top: 8px; inset-inline-end: 8px; padding: 5px 8px; border-radius: 5px; font: 700 10.5px/1 var(--display); color: #fff; background: var(--red); }
.hm-tl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 10px 16px; background: var(--hm-paper); border-top: 1px solid var(--hm-line); }
.hm-tl__play { width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: none; cursor: pointer; }
.hm-tl__play svg { width: 16px; height: 16px; fill: var(--ink); }
.hm-tl__play:hover { background: var(--ink); }
.hm-tl__play:hover svg { fill: var(--cream); }
.hm-tl__track { min-width: 0; }
.hm-tl__bars { display: flex; align-items: flex-end; gap: 2px; height: 34px; direction: ltr; }
.hm-tl__bars i { flex: 1; min-height: 3px; border-radius: 2px 2px 0 0; background: var(--hm-sand-2); transition: background .25s; }
.hm-tl__bars i.on { background: var(--ink); }
.hm-tl__bars i.cur { background: var(--red); }
.hm-tl__axis { display: flex; justify-content: space-between; margin-top: 3px; font-size: 10.5px; color: var(--hm-muted); direction: ltr; }
.hm-tl__axis span { direction: rtl; }
.hm-tl__lbl { display: flex; flex-direction: column; min-width: 120px; margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--hm-muted); }
.hm-tl__lbl b { font: 800 16px/1.3 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ======================================================================
   4. الحملات (C)
   ====================================================================== */
.hm-rail + .hm-rail { margin-top: clamp(36px, 4vw, 56px); }
.hm-rail__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.hm-rail__ctl { display: flex; align-items: center; gap: 8px; flex: none; }
.hm-rail__ctl .link { margin-inline-end: 8px; }
.hm-rbtn { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--hm-line-2); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s, opacity .2s; }
.hm-rbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hm-rbtn:hover { border-color: var(--ink); }
.hm-rbtn:disabled { opacity: .35; cursor: default; }
.hm-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 10px 4px 26px; margin: -10px -4px -26px; }
.hm-track::-webkit-scrollbar { display: none; }
.hm-track > * { scroll-snap-align: start; }
.hm-track__none { margin: 0; }
.hm-c { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-r); box-shadow: var(--hm-sh); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.hm-c:hover { transform: translateY(-5px); box-shadow: var(--hm-sh-3); }
.hm-c__top { position: relative; overflow: hidden; }
.hm-c__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--hm-sand-2); }
.hm-c__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hm-c:hover .hm-c__media img { transform: scale(1.05); }
.hm-c__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(23, 17, 15, .3), transparent 32%, transparent 55%, rgba(23, 17, 15, .55)); }
.hm-c__cover { position: absolute; inset: 0; z-index: 1; }
.hm-c__badges { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: flex; gap: 6px; pointer-events: none; }
.hm-c__badges b { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 99px; font: 700 11.5px/1 var(--text); background: rgba(255, 255, 255, .95); color: var(--ink); }
.hm-c__badges .u { background: var(--red); color: #fff; }
.hm-c__badges .m { background: var(--ink); color: #fff; }
.hm-c__days { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; padding: 6px 9px; border-radius: 99px; font: 600 11.5px/1 var(--text); color: #fff; background: rgba(23, 17, 15, .55); pointer-events: none; }
.hm-c .hm-credit { font-size: 10px; bottom: 8px; inset-inline-start: 10px; transition: opacity .25s; }
.hm-c:hover .hm-credit, .hm-c:focus-within .hm-credit { opacity: 0; }
.hm-c__quick { position: absolute; z-index: 3; inset-inline: 10px; bottom: 10px; display: flex; gap: 6px; transform: translateY(140%); transition: transform .35s var(--ease); }
.hm-c:hover .hm-c__quick, .hm-c:focus-within .hm-c__quick { transform: none; }
.hm-c__quick button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .96); font: 700 14px var(--text); color: var(--ink); cursor: pointer; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); }
.hm-c__quick button:hover { background: var(--red); color: #fff; }
.hm-c__quick .more { flex: none; padding: 0 12px; font-size: 13px; background: var(--red); color: #fff; }
.hm-c__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px 18px 18px; }
.hm-c__org { display: flex; align-items: center; gap: 6px; overflow: hidden; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--hm-muted); white-space: nowrap; text-overflow: ellipsis; }
.hm-c__body h3 { margin: 0; font: 700 16.5px/1.55 var(--display); min-height: 3.1em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-c__body h3 a:hover { color: var(--red-ink); }
.hm-c .hm-bar.near i { background: var(--olive); }
.hm-c__nums { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 13px; color: var(--hm-muted); }
.hm-c__nums b { font: 800 17px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.hm-c__nums em { margin-inline-start: auto; font-style: normal; font-weight: 700; color: var(--ink); }
.hm-c__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hm-line); font-size: 12.5px; color: var(--hm-muted); white-space: nowrap; }
.hm-c__foot b { color: var(--ink); }
.hm-avs { display: flex; }
.hm-avs .hm-av { width: 26px; height: 26px; font-size: 11px; border: 2px solid #fff; }
.hm-avs .hm-av + .hm-av { margin-inline-start: -8px; }
.hm-c__last { margin-inline-start: auto; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (hover: none) { .hm-c__quick { position: static; transform: none; padding: 10px 10px 0; background: #fff; } .hm-c__quick button { background: var(--hm-paper); border: 1px solid var(--hm-line); box-shadow: none; } .hm-c__quick .more { background: var(--red); border-color: var(--red); } }

/* ======================================================================
   5. شتاء آمن (A + B)
   ====================================================================== */
.hm-win { --open: 1; --copy: 1; --img: 1; margin-top: clamp(16px, 2vw, 32px); }
.hm-win__stage { position: relative; height: 140vh; background: var(--hm-ink); margin-inline: 12px; border-radius: var(--field-r, 40px) var(--field-r, 40px) 0 0; }
.hm-win__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; border-radius: inherit; color: #fff; }
/* overflow: clip لا hidden: hidden يجعل الشكل حاوية تمرير، فيحسب Chrome تكبير الصورة داخل العنصر المثبّت (sticky) إزاحةً (CLS 0.24–0.5 عند التمرير). clip يقصّ دون حاوية تمرير */
.hm-win__ph { position: absolute; inset: 0; margin: 0; overflow: hidden; overflow: clip; z-index: -1;
  clip-path: inset(calc((1 - var(--open)) * 24%) calc((1 - var(--open)) * 32%) round calc((1 - var(--open)) * 28px)); }
.hm-win__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; filter: saturate(.85) brightness(.92); transform: scale(calc(1 + (1 - var(--img)) * .18)); }
.hm-win__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 17, 15, .95) 0%, rgba(23, 17, 15, .7) 34%, rgba(23, 17, 15, .12) 64%, rgba(23, 17, 15, .35) 100%), linear-gradient(270deg, rgba(23, 17, 15, .5), rgba(23, 17, 15, 0) 60%); }
.hm-win__ph .hm-credit { top: calc(var(--nav-total, 76px) + 8px); bottom: auto; }
.hm-win__word { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; margin: 0; pointer-events: none; white-space: nowrap;
  font: 800 clamp(64px, 15vw, 230px)/1 var(--display); color: var(--cream); letter-spacing: -.02em;
  opacity: calc(1 - var(--open)); transform: scale(calc(1 + var(--open) * 1.4)); }
.hm-win__copy { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; max-width: 1360px; margin-inline: auto; padding: 0 clamp(20px, 4vw, 56px) clamp(36px, 7vh, 72px); transform: translateY(calc((1 - var(--copy)) * 62vh)); }
.hm-win__h { margin: 0; font: 800 var(--hm-mega)/1.1 var(--display); letter-spacing: -.012em; }
.hm-win__lede { max-width: 36em; margin: 14px 0 0; font-size: var(--fs-lead); line-height: 1.7; color: rgba(255, 255, 255, .86); }
.hm-win__lede b { color: #fff; }
.hm-win__figs { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 22px 0 16px; }
.hm-win__figs > div { display: flex; flex-direction: column-reverse; padding-inline-end: 28px; margin-inline-end: 28px; border-inline-end: 1px solid rgba(255, 255, 255, .22); }
.hm-win__figs > div:last-child { border: 0; margin: 0; padding: 0; }
.hm-win__figs dd { margin: 0; font: 800 clamp(26px, 2.8vw, 44px)/1.15 var(--display); text-align: end; }
.hm-win__figs dt { font-size: var(--fs-small); color: rgba(255, 255, 255, .66); }
.hm-win__figs > div[hidden] { display: none; }
.hm-win__figs.is-zero { grid-template-columns: repeat(3, auto); }
.hm-win__figs.is-zero > div:nth-child(4) { border: 0; margin: 0; padding: 0; }
.hm-win__copy .hm-bar { max-width: 760px; }
.hm-wall { margin-inline: 12px; padding-block: clamp(36px, 4vw, 56px) clamp(40px, 4.4vw, 64px); background: var(--cream); border-radius: 0 0 var(--field-r, 40px) var(--field-r, 40px); }
.hm-wall__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.hm-wall__head .hm-h3 span { display: block; margin-top: 4px; font: 500 var(--fs-body)/1.6 var(--text); color: var(--ink-2); }
.hm-wall__head .hm-h3 span b { font-family: var(--display); color: var(--red-ink); }
.hm-wall__legend { display: flex; gap: 18px; margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.hm-wall__legend span { display: inline-flex; align-items: center; gap: 8px; }
.hm-wall__legend i { width: 18px; height: 9px; background: var(--hm-sand-2); }
.hm-wall__legend i.on { background: var(--red); }
/* الجدار نفسه: .px-bricks في system.css */
.hm-wall__give { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; margin-top: clamp(28px, 3vw, 40px); }
.hm-wall__ask { margin: 0 0 10px; font: 800 var(--fs-h3)/1.4 var(--display); }
.hm-fam { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2.5px solid var(--ink); border-radius: 14px; overflow: hidden; }
.hm-fam button { display: grid; gap: 2px; justify-items: center; padding: 12px 6px; border: 0; border-inline-start: 2.5px solid var(--ink); background: transparent; font: 700 15px/1.3 var(--display); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.hm-fam button:first-child { border-inline-start: 0; }
.hm-fam button small { font: 600 13px/1 var(--text); color: var(--hm-muted); }
.hm-fam button:hover { background: rgba(23, 17, 15, .06); }
.hm-fam button[aria-checked="true"] { background: var(--ink); color: var(--cream); }
.hm-fam button[aria-checked="true"] small { color: rgba(246, 239, 226, .75); }
.hm-wall__go { margin: 16px 0 4px; width: 100%; }
.hm-kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 2.5px solid var(--ink); }
.hm-kit li { display: grid; gap: 2px; padding: 14px 0; padding-inline-end: 14px; font-size: var(--fs-small); color: var(--ink-2); border-bottom: 1px solid var(--hm-line); }
.hm-kit li:nth-child(even) { border-inline-start: 1px solid var(--hm-line); padding-inline-start: 18px; }
.hm-kit b { font: 800 clamp(30px, 3vw, 44px)/1.1 var(--display); color: var(--ink); }

/* 6. القصة: .px-story في system.css */

/* ======================================================================
   7. البرامج (B) + كَنَف (B + C + D)
   ====================================================================== */
.hm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(172px, auto); border: 3px solid var(--hm-ink);
  grid-template-areas: "a a b c" "a a d e" "g h d f"; }
.hm-grid > :nth-child(1) { grid-area: a; } .hm-grid > :nth-child(2) { grid-area: b; } .hm-grid > :nth-child(3) { grid-area: c; } .hm-grid > :nth-child(4) { grid-area: d; }
.hm-grid > :nth-child(5) { grid-area: e; } .hm-grid > :nth-child(6) { grid-area: f; } .hm-grid > :nth-child(7) { grid-area: g; } .hm-grid > :nth-child(8) { grid-area: h; }
.hm-t { --bg: var(--cream); --fg: var(--hm-ink); --mot: var(--hm-star-red); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--hm-ink); }
.hm-t::after { content: ""; position: absolute; top: 16px; inset-inline-end: 16px; width: 48px; height: 48px; background: var(--mot) center/contain no-repeat; transition: transform .5s var(--ease); pointer-events: none; }
.hm-t:hover::after { transform: rotate(90deg) scale(1.12); }
.hm-t--red { --bg: var(--red); --fg: var(--cream); --mot: var(--hm-star-ink); }
.hm-t--ink { --bg: var(--hm-ink); --fg: var(--cream); --mot: var(--hm-star-red); }
.hm-t--olive { --bg: var(--olive); --fg: var(--cream); --mot: var(--hm-star-cream); }
.hm-t--sand { --bg: var(--sand); --fg: var(--hm-ink); --mot: var(--hm-star-red); }
.hm-t__n { position: relative; z-index: 1; font: 700 13px/1 var(--display); opacity: .85; }
.hm-t__name { position: relative; z-index: 1; margin: auto 0 0; font: 800 var(--hm-poster)/1.25 var(--display); transition: transform .45s var(--ease); }
.hm-t__name a::after { content: ""; position: absolute; inset: -400px; }
.hm-t--xl .hm-t__name { font-size: calc(var(--hm-poster) * 1.8); line-height: 1.25; }
.hm-t:hover .hm-t__name { transform: translateX(-8px); }
.hm-t__d { position: relative; z-index: 1; margin: 0; max-width: 24em; font-size: var(--fs-small); line-height: 1.6; opacity: .92; }
.hm-t__go { position: relative; z-index: 2; align-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; font: 700 15px/1 var(--display); color: inherit; cursor: pointer; }
.hm-t__go::after { content: ""; width: 26px; height: 3px; background: currentColor; transition: width .35s var(--ease); }
.hm-t:hover .hm-t__go::after, .hm-t__go:focus-visible::after { width: 52px; }
.hm-t__ph { position: absolute; inset: 0; z-index: 0; }
.hm-t__ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .9; transition: transform .8s var(--ease); }
.hm-t:hover .hm-t__ph img { transform: scale(1.04); }
.hm-t--olive .hm-t__ph { background: var(--olive); }
.hm-t--ink .hm-t__ph img { mix-blend-mode: luminosity; opacity: .55; }
.hm-t__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 10%, transparent 64%); }

.hm-kanaf { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); margin-top: clamp(24px, 3vw, 40px); padding: clamp(26px, 3.4vw, 52px); background: var(--olive); color: var(--cream); border-radius: var(--field-r, 40px); }
.hm-kanaf::before { content: ""; position: absolute; inset-block-start: -40px; inset-inline-end: -40px; width: 300px; height: 300px; background: var(--hm-star-olive) center/contain no-repeat; opacity: .16; pointer-events: none; }
.hm-kanaf__h { margin: 0; font: 800 var(--fs-h2)/1.35 var(--display); text-wrap: balance; }
.hm-kanaf__p { margin: 14px 0 0; max-width: 34em; font-size: var(--fs-body); color: rgba(246, 239, 226, .88); }
.hm-dots { margin-top: 24px; }
.hm-dots__grid { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 5px; max-width: 520px; }
.hm-dots__grid i { aspect-ratio: 1; border-radius: 50%; background: rgba(246, 239, 226, .22); }
.hm-dots__grid i.on { background: var(--cream); }
.hm-dots p { margin: 12px 0 0; font-size: var(--fs-small); color: rgba(246, 239, 226, .85); }
.hm-dots p b { font-family: var(--display); color: #fff; }
.hm-dots p span { color: #ffd2a8; font-weight: 600; }
/* العمود الأيسر: .px-giant في system.css */
.hm-kanaf .px-giant__n { color: #fff; }
.hm-kanaf .px-giant__pick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-kanaf__dar { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: var(--fs-small); color: var(--cream); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(246, 239, 226, .4); }
.hm-kanaf__dar b { font: 800 15px var(--display); text-decoration: none; padding: 3px 9px; border-radius: 6px; background: rgba(246, 239, 226, .16); }

/* ======================================================================
   8. الأمانة (D)
   ====================================================================== */
.hm-proof__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.hm-log { margin: 0; padding: 0; list-style: none; border-inline-start: 2px solid var(--ink); }
.hm-log li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) 128px; gap: 18px; padding: 18px 0; padding-inline-start: 20px; border-bottom: 1px solid var(--hm-line); }
.hm-log li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--canvas); border: 2px solid var(--ink); }
.hm-log li:first-child::before { background: var(--red); border-color: var(--red); }
.hm-log time { padding-top: 2px; font: 700 14px/1.5 var(--display); }
.hm-log__k { display: flex; align-items: center; gap: 7px; margin: 0; font: 600 12.5px var(--text); color: var(--hm-muted); }
.hm-log__k i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hm-log h3 { margin: 4px 0; font: 700 17px/1.5 var(--display); }
.hm-log p:not(.hm-log__k) { margin: 0; font-size: var(--fs-small); line-height: 1.65; color: var(--ink-2); }
.hm-log__empty { --pad: 24px; margin: 0; padding: 22px var(--pad); border-inline-start: 2px solid var(--ink); background: var(--hm-paper); border-radius: 0 var(--hm-r) var(--hm-r) 0; font-size: var(--fs-small); line-height: 1.75; color: var(--ink-2); }
[dir="rtl"] .hm-log__empty { border-radius: var(--hm-r) 0 0 var(--hm-r); }
.hm-log__lead { margin: 0; font-weight: 600; color: var(--ink); }
.hm-log__foot { margin: 14px 0 0; }
/* قالب السجل قبل أول تسليم: الحقول نفسها بلا قيم، بخط متقطع حتى لا يُقرأ تسليمًا حقيقيًا */
.hm-ghost { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) 128px; gap: 18px; align-items: center; margin-top: 16px; padding: 16px; border: 1.5px dashed var(--hm-line-2); border-radius: 14px; background: rgba(255, 255, 255, .55); }
.hm-ghost::before { content: ""; position: absolute; inset-inline-start: calc(-1 * var(--pad) - 8.5px); top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--canvas); border: 2px solid var(--ink); }
.hm-ghost small { display: block; font-size: 12.5px; line-height: 1.5; color: var(--hm-muted); }
.hm-ghost b { display: block; font: 700 16px/1.5 var(--display); color: var(--ink-2); }
.hm-ghost__date { display: grid; place-items: center; align-content: center; gap: 2px; aspect-ratio: 1; border-radius: 12px; background: var(--hm-sand-2); text-align: center; }
.hm-ghost__date b { font-size: 15px; }
.hm-ghost__date small { font-size: 11.5px; }
.hm-ghost__body { display: grid; gap: 4px; min-width: 0; }
.hm-ghost__ph { display: grid; place-items: center; align-content: center; gap: 4px; aspect-ratio: 4 / 3; border-radius: 10px; background: repeating-linear-gradient(-45deg, rgba(23, 17, 15, .045) 0 8px, transparent 8px 16px), var(--hm-sand-2); color: var(--hm-muted); }
.hm-ghost__ph svg { width: 26px; height: 26px; }
.hm-ghost__ph small { font-size: 11.5px; }
/* بطاقات الحملات قبل أول تبرع: الهدف ودعوة، بدل «‎$0 · 0% · 0 داعم» */
.hm-c__nums--goal span { font-weight: 600; }
.hm-c__foot--first { color: var(--red-ink); font-weight: 700; }
.hm-c__foot--first .hm-av { width: 26px; height: 26px; font-size: 15px; }
.hm-fl__first { font-size: 12.5px; color: var(--red-ink) !important; }
.hm-log p b { color: var(--ink); }
.hm-log img { width: 128px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.hm-tomap { min-height: 40px; margin-top: 4px; padding: 0; border: 0; background: none; font: 700 13.5px var(--display); color: var(--red-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.hm-vows { position: sticky; top: calc(var(--nav-total, 76px) + 24px); padding: clamp(22px, 2.4vw, 32px); background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-r); box-shadow: var(--hm-sh); }
.hm-vows ul { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.hm-vows li { position: relative; padding-inline-start: 26px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.hm-vows li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid var(--olive); border-bottom: 2.5px solid var(--olive); transform: rotate(-45deg); }
.hm-vows b { color: var(--ink); }
.hm-vows .btn { width: 100%; }

/* ======================================================================
   9. الختام (B)
   ====================================================================== */
/* الختام نفسه: .px-close في system.css؛ هنا الطلب الأخير فقط */
.hm-ask { display: grid; gap: 14px; width: min(100%, 520px); }
.hm-ask__freq { display: inline-flex; justify-self: start; padding: 4px; border-radius: 99px; background: rgba(23, 17, 15, .22); }
.hm-ask__freq button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 99px; background: none; font: 700 14px var(--text); color: var(--cream); cursor: pointer; }
.hm-ask__freq button[aria-checked="true"] { background: var(--cream); color: var(--hm-ink); }
.hm-ask__amts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hm-ask__amts button { min-height: 56px; border: 2px solid rgba(246, 239, 226, .55); border-radius: 14px; background: transparent; font: 800 19px var(--display); color: var(--cream); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.hm-ask__amts button:hover { border-color: var(--cream); }
.hm-ask__amts button[aria-checked="true"] { background: var(--hm-ink); border-color: var(--hm-ink); color: #fff; }
.hm-ask__go { width: 100%; }
.hm-ask__hint { margin: 0; font-size: var(--fs-small); color: var(--cream); } /* كريمي صريح على الأحمر (الشفافية كانت تنزله تحت 4.5:1) */

/* أهداف اللمس 44px على الشاشات اللمسية (الحاسوب كما هو) */
@media (pointer: coarse) {
  .hm-chip, .hm-mchip { min-height: 44px; }
  .hm-ctrl__chips { min-height: 44px; }
}

/* ======================================================================
   الشاشات المتوسطة والصغيرة
   ====================================================================== */
@media (max-width: 1180px) {
  .hm-hero__in { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .hm-map { grid-template-columns: 1fr; }
  .hm-map__text { border-inline-end: 0; border-bottom: 1px solid var(--hm-line); }
  .hm-mapbox { flex: none; height: min(78vh, 640px); }
  .hm-track { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
}
@media (max-width: 900px) {
  .hm-hero__in { grid-template-columns: 1fr; }
  .hm-hero__float { display: none; }
  .hm-track { grid-auto-columns: calc((100% - 22px) / 2); }
  .hm-win__figs { grid-template-columns: repeat(2, auto); row-gap: 14px; }
  .hm-win__figs > div:nth-child(2) { border: 0; }
  .hm-wall__give, .hm-proof__grid, .hm-kanaf { grid-template-columns: 1fr; }
  .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b c" "d e" "d f" "g h"; }
  .hm-vows { position: static; }
}
@media (max-width: 640px) {
  .hm-hero { min-height: calc(100svh - 44px); }
  .hm-hero__ph img { object-position: 38% 50%; transform-origin: 50% 50%; transform: scale(1.02); animation: none; }
  .hm-hero__ph::after { background: linear-gradient(0deg, rgba(23, 17, 15, .94) 0%, rgba(23, 17, 15, .8) 44%, rgba(23, 17, 15, .1) 72%, rgba(23, 17, 15, .45) 100%); }
  .hm-hero__in { padding: calc(var(--nav-total, 66px) + 120px) 16px 28px; }
  .hm-hero__lead { display: none; }
  .hm-hero .hm-credit { bottom: auto; top: calc(var(--nav-total, 66px) + 40px); }
  .hm-hero__cta { display: grid; grid-template-columns: 1fr; width: 100%; gap: 10px; margin-top: 20px; }
  .hm-hero__cta .btn { width: 100%; }
  .hm-search { height: 56px; margin-top: 14px; }
  .hm-search input, .hm-search__ph { font-size: 16px; }
  .hm-search__ph { inset-inline-start: 42px; inset-inline-end: var(--hm-go, 84px); }
  .hm-search__go { padding: 0 16px !important; height: 44px; min-height: 44px !important; }
  .hm-chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .hm-chips::-webkit-scrollbar { display: none; }
  .hm-chip { flex: none; }
  .hm-map, .hm-win__stage, .hm-wall { margin-inline: 8px; }
  .hm-map__text { padding: 24px 18px; }
  .hm-tally > div { padding-inline-end: 12px; margin-inline-end: 12px; }
  .hm-tally dd { font-size: 26px; }
  .hm-map__cta .btn { width: 100%; }
  .hm-ctrl { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0; }
  .hm-ctrl__chips { flex-wrap: nowrap; overflow-x: auto; padding-inline: 14px; scrollbar-width: none; }
  .hm-ctrl__chips::-webkit-scrollbar { display: none; }
  .hm-views { align-self: flex-start; margin-inline-start: 14px; }
  .hm-mapbox { height: 540px; }
  .hm-inset { display: none; }
  .hm-mapnote { bottom: 10px; inset-inline-start: 10px; font-size: 11px; }
  .hm-card { left: 10px !important; right: 10px !important; top: auto !important; bottom: 10px; width: auto; display: grid; grid-template-columns: 108px minmax(0, 1fr); }
  .hm-card__img, .hm-card__blank { aspect-ratio: auto; height: 100%; min-height: 160px; }
  .hm-card__img small, .hm-card__k { display: none; }
  .hm-card__b { padding: 12px; gap: 4px; }
  .hm-card h3 { font-size: 15px; }
  .hm-card__x { inset-inline-start: auto; inset-inline-end: 6px; top: 6px; width: 32px; height: 32px; background: var(--ink); }
  .hm-tl { grid-template-columns: auto 1fr; gap: 8px 12px; padding: 10px 14px 12px; }
  .hm-tl__lbl { grid-column: 1 / -1; grid-row: 1; flex-direction: row; gap: 10px; align-items: baseline; }
  .hm-rail__head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hm-rail__ctl { align-self: stretch; justify-content: space-between; }
  .hm-track { grid-auto-columns: 84%; gap: 14px; }
  .hm-win__stage { height: 150vh; }
  .hm-win__ph { clip-path: inset(calc((1 - var(--open)) * 26%) calc((1 - var(--open)) * 12%) round calc((1 - var(--open)) * 20px)); }
  .hm-win__ph img { object-position: 60% 90%; }
  .hm-win__word { font-size: 19vw; }
  .hm-win__lede { font-size: 15.5px; line-height: 1.65; }
  .hm-win__figs { margin: 16px 0 12px; }
  .hm-win__figs > div { padding-inline-end: 16px; margin-inline-end: 16px; }
  .hm-win__figs dd { font-size: 26px; }
  .hm-fam button { font-size: 13.5px; padding: 10px 2px; }
  .hm-grid { grid-auto-rows: minmax(170px, auto); }
  .hm-t { padding: 16px; }
  .hm-t::after { width: 34px; height: 34px; top: 12px; inset-inline-end: 12px; }
  .hm-t__d { font-size: 13px; }
  .hm-t--xl .hm-t__name { font-size: 76px; }
  .hm-kanaf { margin-inline: -12px; padding: 26px 18px; }
  .hm-dots__grid { grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
  .hm-log li { grid-template-columns: minmax(0, 1fr) 84px; gap: 6px 12px; }
  .hm-log__empty { --pad: 18px; padding-block: 18px; }
  .hm-ghost { grid-template-columns: 56px minmax(0, 1fr) 76px; gap: 12px; padding: 12px; }
  .hm-ghost b { font-size: 14.5px; }
  .hm-ghost small { font-size: 11.5px; }
  .hm-ghost__ph { aspect-ratio: 1; }
  .hm-win__figs.is-zero > div:nth-child(2) { border-inline-end: 1px solid rgba(255, 255, 255, .22); }
  .hm-win__figs.is-zero > div { padding-inline-end: 12px; margin-inline-end: 12px; }
  .hm-win__figs.is-zero dd { font-size: 22px; }
  .hm-log time { grid-column: 1 / -1; }
  .hm-log img { width: 84px; aspect-ratio: 1; align-self: start; }
}

/* ======================================================================
   حركة أقل
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hm-hero__ph img, .hm-fl, .hm-ping.swap, .hm-live, .hm-live::after, .hm-pin__r, .hm-pin.drop, .hm-geo .draw { animation: none !important; }
  .hm-geo .draw { stroke-dashoffset: 0; }
  .hm-win__stage { height: auto; }
  .hm-win__pin { position: relative; height: auto; min-height: 100svh; }
  .hm-win__word { display: none; }
  .hm-win__copy { position: relative; padding-top: 50vh; }
  .hm-c, .hm-c__media img, .hm-t__name, .hm-t__ph img { transition: none; }
}

/* ===== LTR (English home): mirror overlays, arrows and hover motion ===== */
html[dir="ltr"] .hm-hero__ph::after { background: linear-gradient(90deg, rgba(23, 17, 15, .9) 0%, rgba(23, 17, 15, .74) 34%, rgba(23, 17, 15, .18) 62%, rgba(23, 17, 15, 0) 78%), linear-gradient(0deg, rgba(23, 17, 15, .6) 0%, rgba(23, 17, 15, 0) 34%), linear-gradient(180deg, rgba(23, 17, 15, .5) 0%, rgba(23, 17, 15, 0) 24%); }
html[dir="ltr"] .hm-hero__ph img { transform-origin: 0% 60%; }
html[dir="ltr"] .hm-tl__axis span { direction: ltr; }
html[dir="ltr"] .hm-t:hover .hm-t__name { transform: translateX(8px); }
html[dir="ltr"] .hm-rbtn svg { transform: scaleX(-1); }

/* ===== 7ب. من الميدان: آخر قصص الفريق (js/home.js) ===== */
.hm-field[hidden] { display: none; }
.hm-field__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; }
.hm-field__grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
@media (min-width: 700px) { .hm-field__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm-fc:nth-child(3) { display: none; } }
@media (min-width: 1100px) { .hm-field__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hm-fc:nth-child(3) { display: grid; } }
.hm-fc { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 28px; background: var(--px-paper, #fbf8f1); border: 1px solid var(--px-line, rgba(23, 17, 15, .14)); transition: box-shadow .3s var(--px-ease, ease), border-color .3s; }
.hm-fc:hover { box-shadow: var(--px-sh-3); border-color: transparent; }
.hm-fc:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }
.hm-fc__ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--px-sand-2, #e3d8c2); }
.hm-fc__ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--px-ease, ease); }
.hm-fc:hover .hm-fc__ph img { transform: scale(1.03); }
.hm-fc__ph--none { background: #efe6d4 var(--px-star-red) center / 54px no-repeat; }
.hm-fc__b { display: grid; align-content: start; gap: 8px; padding: 20px 22px 24px; }
.hm-fc__m { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 13.5px; color: hsl(var(--fg-2)); }
.hm-fc__m b { font-weight: 700; color: var(--red); }
.hm-fc h3 { margin: 0; font: 800 clamp(19px, 1.5vw, 22px)/1.45 var(--display); text-wrap: balance; }
.hm-fc h3 a { color: inherit; }
.hm-fc h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hm-fc h3 a:focus-visible { outline: 0; }
.hm-fc p:not(.hm-fc__m) { margin: 0; color: hsl(var(--fg-2)); line-height: 1.75; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-field + .hm-proof { padding-top: 0; }

/* 8ب. يقف معنا: شعارات الشركاء المعتمدين (js/home.js) — مربعات بيضاء بارتفاع موحّد، رمادية حتى المرور */
.hm-partners { padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.hm-partners__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hm-partners__head .hm-k { margin: 0; }
.hm-partners__row { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.hm-partners__row a { display: grid; place-items: center; height: 84px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; text-align: center; transition: border-color .2s; }
.hm-partners__row a:hover { border-color: var(--line-strong); }
.hm-partners__row a:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 45%, transparent); outline-offset: 2px; }
.hm-partners__row img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.hm-partners__row a:hover img, .hm-partners__row a:focus-visible img { filter: none; opacity: 1; }
.hm-partners__row span { font: 700 14px/1.4 var(--display); overflow-wrap: anywhere; }
@media (hover: none) { .hm-partners__row img { filter: none; opacity: 1; } }

/* أزرار الخريطة (البرامج وغزة/كل فلسطين) فوق بطاقة التسليم المنبثقة دائمًا، فلا تُغطّى في اللغات ذات النصوص الأطول */
.hm-ctrl { position: relative; z-index: 20; }
.hm-inset { z-index: 12; }
.hm-fl .hm-bar[hidden] { display: none; }
