/* صفحة الأثر */
.imp-head-note { color: hsl(var(--fg-2)); font-size: 15px; }

/* المخرجات */
.outs { display: grid; gap: 14px; }
@media (min-width: 700px) { .outs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .outs { grid-template-columns: repeat(3, 1fr); } }
.out { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-md); min-height: 280px; display: grid; align-items: end; color: #fff; background: var(--linen); }
.out img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.out::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(23, 17, 15, .88), rgba(23, 17, 15, .15) 70%); }
.out:hover img { transform: scale(1.03); }
.out div { display: grid; gap: 2px; padding: 22px; }
.out b { font-size: clamp(38px, 4vw, 54px); font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.out span { font-family: var(--display); font-size: 21px; font-weight: 700; }
.out small { font-size: 14px; color: var(--linen-ink); }
@media (min-width: 1024px) { .out--wide { grid-column: span 2; grid-row: span 2; min-height: 100%; } .out--wide b { font-size: clamp(56px, 6vw, 88px); } }

/* جدول البرامج */
.imp-table { background: hsl(var(--card)); border-radius: var(--r-md); padding: 8px 20px; box-shadow: var(--shadow-card); }
.imp-table .table th[scope="row"] { font-weight: 400; }
.imp-table .table th[scope="row"] b { display: block; font-family: var(--display); font-size: 18px; font-weight: 700; color: hsl(var(--fg)); }
.imp-table .table th[scope="row"] small { font-size: 13px; color: hsl(var(--fg-2)); }
.imp-table td b { font-size: 17px; }
.imp-table td:last-child { text-align: end; }
.imp-table td .link { min-height: 32px; white-space: nowrap; }
.imp-table tfoot th, .imp-table tfoot td { border-bottom: 0; padding-top: 18px; font-size: 15px; color: hsl(var(--fg)); }
.imp-table tfoot td b { font-size: 22px; }
.imp-foot { margin-top: 16px; font-size: 14px; color: hsl(var(--fg-2)); max-width: 52rem; line-height: 1.8; }
@media (max-width: 699px) {
  .imp-table { padding: 4px 16px; }
  .imp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .imp-table tbody tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; padding: 16px 0; border-bottom: 1px solid hsl(var(--border)); }
  .imp-table tbody th, .imp-table tbody td { padding: 0; border: 0; }
  .imp-table tbody th[scope="row"] { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
  .imp-table tbody td:last-child { grid-column: 1 / -1; text-align: start; }
  .imp-table tbody td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; color: hsl(var(--fg-2)); }
  .imp-table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .imp-table tfoot th, .imp-table tfoot td { padding: 16px 0; }
}

/* الدول والخريطة */
.imp-countries span:not(.bar2) { white-space: nowrap; }
.imp-also { margin-top: 20px; font-size: 15px; color: hsl(var(--fg-2)); line-height: 1.8; }
.imp-mapnote { margin-top: 12px; font-size: 13px; color: hsl(var(--fg-2)); }
#map .btn { margin-top: 14px; }

/* كيف نحسب */
.imp-method { display: grid; gap: 32px; }
@media (min-width: 960px) { .imp-method { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.imp-rules { display: grid; border-top: 1px solid hsl(var(--border)); }
.imp-rules li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid hsl(var(--border)); }
@media (min-width: 640px) { .imp-rules li { grid-template-columns: 11rem 1fr; gap: 20px; } }
.imp-rules b { font-family: var(--display); font-size: 19px; }
.imp-rules span { color: hsl(var(--fg-2)); line-height: 1.8; }

/* v31: المخرجات بشبكة رباعية + شريط الكفالة */
@media (min-width: 1024px) {
  .outs { grid-template-columns: repeat(4, 1fr); }
  .out--wide { grid-column: span 2; grid-row: span 2; }
}
.out { min-height: 260px; }
.out small { opacity: .9; }
.imp-strip { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 14px; border-radius: var(--r-md); background: hsl(var(--card)); box-shadow: var(--shadow-card); }
@media (min-width: 860px) { .imp-strip { grid-template-columns: repeat(4, 1fr); } }
.imp-strip li { display: grid; gap: 2px; padding: 22px 24px; }
.imp-strip li + li { border-inline-start: 1px solid hsl(var(--border)); }
@media (max-width: 859px) { .imp-strip li:nth-child(3) { border-inline-start: 0; } .imp-strip li:nth-child(n + 3) { border-top: 1px solid hsl(var(--border)); } }
.imp-strip b { font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; line-height: 1.1; }
.imp-strip b i { font-style: normal; font-size: .5em; color: hsl(var(--fg-2)); font-weight: 500; }
.imp-strip span { font-family: var(--display); font-weight: 700; font-size: 18px; }
.imp-strip small { font-size: 13px; color: var(--red-ink); font-weight: 600; }
.imp-table .tbd { font-size: 13.5px; color: hsl(var(--fg-2)); }
.imp-table td { font-size: 14.5px; color: hsl(var(--fg-2)); }
.imp-table td b { color: hsl(var(--fg)); }
.imp-table tr.is-live th b::after { content: "جارية"; display: inline-block; margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px; font: 700 11.5px/1.7 var(--text); color: var(--red-ink); background: rgba(196, 37, 47, .1); vertical-align: 3px; }
.imp-table tr.is-live { background: linear-gradient(90deg, transparent, rgba(196, 37, 47, .035)); }
@media (max-width: 699px) {
  .imp-table tbody tr { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 699px) { .imp-table tbody th[scope="row"] { display: block; } .imp-table tbody th[scope="row"] small { display: block; margin-top: 2px; } }

/* v54: رأس قسم واحد، شريط الحملة، جدول أخف، خريطة مقروءة */
.imp-head { display: grid; gap: 6px; margin-bottom: 40px; max-width: 46rem; }
.imp-head .lead { margin-top: 6px; }
.imp-live { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 14px; padding: 16px 22px; border-radius: var(--r-md); background: var(--ink-deep); color: #f6efe2; transition: background-color .2s; }
.imp-live:hover { background: #000; }
.imp-live__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(196, 37, 47, .3); flex: none; }
.imp-live b { font-family: var(--display); font-weight: 800; font-size: 18px; }
.imp-live span { font-size: 14.5px; color: var(--linen-ink); }
.imp-live .imp-live__go { margin-inline-start: auto; font-weight: 700; color: #fff; }
.imp-table td, .imp-table th { padding: 12px; }
.imp-table tbody tr:not(.imp-season__h) th[scope="row"] small { display: block; }
.imp-season__h th { padding-top: 26px !important; font-size: 13px; font-weight: 700; color: var(--red-ink); border-bottom: 1px solid hsl(var(--border)); }
@media (max-width: 699px) {
  .imp-table tbody tr { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 12px 0; }
  .imp-table tbody th[scope="row"] { grid-column: 1 / -1; margin-bottom: 0; }
  .imp-table tbody td[data-l] { grid-column: 1; }
  .imp-table tbody td[data-l]::before { display: none; }
  .imp-table tbody td:last-child { grid-column: 2; grid-row: 2; text-align: end; }
  .imp-table tbody tr.imp-season__h { display: block; padding: 20px 0 8px; }
  .imp-table tbody tr.imp-season__h th { padding: 0 !important; border: 0; }
}
@media (max-width: 699px) {
  .outs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .out { min-height: 200px; }
  .out--wide { grid-column: 1 / -1; min-height: 300px; }
  .out b { font-size: 34px; }
  .out span { font-size: 16px; }
  .out small { font-size: 12.5px; }
  .out div { padding: 14px; }
}
@media (min-width: 1024px) { #donors .world > .rv:first-child { position: sticky; top: calc(var(--nav-total) + 4px + 62px + 24px); } }
#map svg .gov-label, #map svg text { font-size: 16px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
#map svg .gov-label.is-gaza { font-size: 13px; }
@media (max-width: 699px) { #map svg text { display: none; } }

/* ======================================================================
   v60: لغة الرئيسية — px-hero + px-stat-row + خريطة على الحبر + px-close
   ====================================================================== */
[data-page="impact"] main { overflow-x: clip; }
.imp-stats { padding-block: clamp(36px, 4vw, 64px) clamp(8px, 1vw, 16px); }
.imp-stats .px-stat-row { color: var(--ink); }
.imp-stats .px-stat dt { opacity: .78; }
#outputs > .wrap, .imp-stats + .subnav + .sec > .wrap { border-top: 0; }

/* الخريطة: بطاقة حبر كبيرة كما في خريطة الرئيسية */
#donors .world { align-items: stretch; }
.map__card { background: var(--px-ink, #17110f); color: var(--cream, #f6efe2); border-radius: 28px; padding: clamp(20px, 2.4vw, 32px); box-shadow: var(--px-sh-3); }
.map__card .map__k { color: #ff8a90; font-weight: 700; }
.map__card .map__top h3 { color: #fff; font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; }
.map__card .gov { fill: hsl(4 70% 52% / calc(var(--o, .22) + .12)); stroke: var(--px-ink, #17110f); stroke-width: 1.4; }
.map__card .gov:hover, .map__card .gov:focus-visible { fill: hsl(4 78% 56%); }
.map__card .gov.is-on { fill: var(--cream, #f6efe2); }
#map.map__card svg .gov-label, #map.map__card svg text { fill: #fff; stroke: var(--px-ink, #17110f); }
.map__card .map__stats div { background: rgba(246, 239, 226, .07); border: 1px solid rgba(246, 239, 226, .12); }
.map__card .map__stats dt { color: rgba(246, 239, 226, .7); }
.map__card .map__stats dd { color: #fff; font-family: var(--display); font-weight: 800; }
.map__card .map__list li { border-top-color: rgba(246, 239, 226, .14); color: rgba(246, 239, 226, .9); }
.map__card .map__list b { color: #fff; }
.map__card .imp-mapnote { color: rgba(246, 239, 226, .6); }
.imp-countries b { font-family: var(--display); font-weight: 700; }
.imp-countries .bar2 { height: 10px; border-radius: 2px; }
.imp-countries li:first-child b { font-size: 1.15em; }

/* الأرقام في البطاقات: خط العرض */
.out b, .imp-strip b { font-family: var(--display); font-weight: 800; }
.px-hero__card-t .num { font-weight: 800; color: var(--ink); }
@media (max-width: 640px) {
  .imp-stats { padding-top: 28px; }
}

/* ======================================================================
   v70 (إطلاق): كل رقم هنا هدف، ويُقرأ هدفًا — وسجلّ «متى ننشر ماذا»
   ====================================================================== */
.out div { justify-items: start; }
.out .out__k { order: -1; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 4px 10px 5px; border-radius: 999px; background: rgba(246, 239, 226, .16); box-shadow: inset 0 0 0 1px rgba(246, 239, 226, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 700 12px/1.2 var(--text); font-style: normal; letter-spacing: .01em; color: #fff; }
.out .out__k::before { content: ""; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; }
.out--wide .out__k { font-size: 13px; }
.imp-strip__k { margin-top: clamp(28px, 3vw, 40px); margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--red-ink); }
.imp-strip__k + .imp-strip { margin-top: 0; }
.imp-strip b i { font-size: .42em; margin-inline-start: 4px; }

.imp-cal { grid-column: 1 / -1; margin-top: clamp(8px, 2vw, 24px); padding: clamp(22px, 3vw, 36px); border-radius: var(--r-md, 20px); background: hsl(var(--tint)); }
.imp-cal__k { font: 800 clamp(20px, 1.8vw, 24px)/1.4 var(--display); margin-bottom: 18px; }
.imp-cal__list { counter-reset: cal; display: grid; gap: 0; }
.imp-cal__list li { counter-increment: cal; position: relative; display: grid; gap: 4px; padding: 14px 0 14px; padding-inline-start: 34px; border-top: 1px solid hsl(var(--border)); }
.imp-cal__list li::before { content: counter(cal); position: absolute; inset-inline-start: 0; top: 15px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--text); color: #fff; background: var(--ink); }
.imp-cal__list li:first-child::before { background: var(--red); }
.imp-cal__list b { font-family: var(--display); font-weight: 700; font-size: 17px; }
.imp-cal__list span { color: hsl(var(--fg-2)); line-height: 1.75; font-size: 15px; }
.imp-cal__list .link { display: inline; min-height: 0; }
@media (min-width: 1024px) {
  .imp-cal__list { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; }
  .imp-cal__list li { padding: 40px 0 0; border-top: 0; }
  .imp-cal__list li::after { content: ""; position: absolute; top: 11px; inset-inline: 30px -24px; height: 1px; background: hsl(var(--border)); }
  .imp-cal__list li:last-child::after { display: none; }
  .imp-cal__list li::before { top: 0; }
}
@media (max-width: 699px) {
  .out .out__k { margin-bottom: 6px; padding: 3px 8px 4px; font-size: 11px; }
}
