/* ============================================================================
   PROGRAMS — nocturne page layer (page-specific, additive)
   Sits on top of mabarrah-nocturne.css. Scoped to .prog-* so it touches
   nothing else. Presents the 9 giving categories + the 6 impact tracks.
   ========================================================================== */

.prog-noct { position: relative; }
.prog-noct .mbn__inner { position: relative; z-index: 2; }

/* ---- Hero zone (full-bleed faded backdrop, constrained content) -------- */
.prog-hero { position: relative; overflow: clip; isolation: isolate;
  padding-block: clamp(56px, 9vw, 128px) clamp(40px, 6vw, 76px); }
.prog-hero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover;
  background-position: center; opacity: .22; }
.prog-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,37,43,.62) 0%, rgba(8,37,43,.34) 46%, rgba(6,30,35,.9) 100%),
    radial-gradient(78% 70% at 84% 8%, rgba(64,128,171,.24), transparent 60%); }
.prog-hero .mbn__inner { position: relative; z-index: 3; }
.prog-hero__inner .mbn-band__head { max-inline-size: 66ch; }
.prog-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 26px; }

.prog-crumbs { display: flex; align-items: center; gap: 10px; margin-block-start: 24px;
  font-size: .82rem; color: var(--mbn-faint); }
.prog-crumbs a { color: var(--mbn-mist); text-decoration: none; transition: color .2s; }
.prog-crumbs a:hover { color: var(--mbn-white); }
.prog-crumbs span[aria-hidden] { opacity: .5; }

/* ---- Body (tracks + categories) --------------------------------------- */
.prog-body { padding-block-end: clamp(64px, 9vw, 120px); position: relative; z-index: 2; }
.prog-section + .prog-section { margin-block-start: clamp(48px, 7vw, 88px); }
.prog-section__head { max-inline-size: 64ch; margin-block-end: clamp(22px, 3.4vw, 40px); }
.prog-section__head .mbn__h2 { margin-block: 12px 10px; }

/* ---- Impact tracks lens ("مسارات الأثر") ------------------------------ */
.prog-tracks { list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.prog-track { position: relative; display: flex; gap: 14px; padding: 18px 20px;
  border-radius: 14px; border: 1px solid var(--mbn-line);
  background: linear-gradient(160deg, rgba(20,84,99,.34), rgba(11,48,56,.5));
  transition: border-color .28s var(--mbn-ease), transform .28s var(--mbn-ease), background .28s; }
.prog-track:hover { border-color: var(--mbn-teal-400); transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(20,84,99,.5), rgba(11,48,56,.66)); }
.prog-track__n { flex: none; font-size: 1.05rem; font-weight: 800; color: var(--mbn-gold);
  font-variant-numeric: tabular-nums; line-height: 1; padding-block-start: 3px;
  min-inline-size: 1.4em; }
.prog-track__b { display: flex; flex-direction: column; gap: 5px; }
.prog-track__name { font-size: .98rem; font-weight: 700; color: var(--mbn-white); line-height: 1.4; }
.prog-track__gloss { font-size: .84rem; color: var(--mbn-mist); line-height: 1.7; }

/* ---- Giving categories ------------------------------------------------- */
.prog-cats { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.prog-cat { padding: 24px; }
.prog-cat__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.prog-cat__glyph { flex: none; inline-size: 48px; block-size: 48px; border-radius: 13px;
  display: grid; place-items: center; color: var(--mbn-teal-400);
  border: 1px solid var(--mbn-line); background: rgba(105,178,176,.1); }
.prog-cat__glyph svg { inline-size: 24px; block-size: 24px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prog-zakat { align-self: flex-start; font-size: .68rem; font-weight: 600; padding: 5px 11px;
  border-radius: 999px; color: var(--mbn-gold); border: 1px solid rgba(227,214,128,.42);
  background: rgba(227,214,128,.08); white-space: nowrap; }
.prog-cat__status { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem;
  font-weight: 600; color: var(--mbn-green-b); }
.prog-cat__status::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 999px;
  background: var(--mbn-green-b); box-shadow: 0 0 0 3px rgba(201, 162, 39,.18); }
.prog-cat .mbn-card__tag { margin-block-start: 4px; }
.prog-cat__desc { font-size: .9rem; color: var(--mbn-mist); line-height: 1.75; }
.prog-cat__note { font-size: .84rem; font-weight: 700; color: var(--mbn-gold);
  font-variant-numeric: tabular-nums; line-height: 1.5; max-inline-size: 60%; }

/* details disclosure inside a nocturne card */
.prog-cat__more { margin-block-start: 4px; border-block-start: 1px solid var(--mbn-line);
  padding-block-start: 12px; }
.prog-cat__more > summary { cursor: pointer; list-style: none; font-size: .84rem; font-weight: 600;
  color: var(--mbn-teal-400); display: inline-flex; align-items: center; gap: 7px;
  transition: color .2s; }
.prog-cat__more > summary::-webkit-details-marker { display: none; }
.prog-cat__more > summary::before { content: "+"; font-size: 1rem; line-height: 1;
  inline-size: 18px; block-size: 18px; display: grid; place-items: center; border-radius: 6px;
  border: 1px solid var(--mbn-line); }
.prog-cat__more[open] > summary::before { content: "\2212"; }
.prog-cat__more > summary:hover { color: var(--mbn-white); }
.prog-cat__more-body { margin-block-start: 12px; }
/* Opening unfolds instead of jumping (2026-09-13): the body settles 6px down
   into place as it fades in. Closing stays instant; nobody waits to leave. */
.prog-cat__more[open] > .prog-cat__more-body { animation: prog-disclose 260ms cubic-bezier(.22,.61,.36,1); }
@keyframes prog-disclose { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .prog-cat__more[open] > .prog-cat__more-body { animation: none; }
}
.prog-cat__more-body h4 { font-size: .82rem; font-weight: 700; color: var(--mbn-white);
  margin-block: 12px 6px; }
.prog-cat__more-body h4:first-child { margin-block-start: 0; }
.prog-cat__more-body p { font-size: .84rem; color: var(--mbn-mist); line-height: 1.8; margin: 0; }
.prog-cat__more-body ul { margin: 6px 0 0; padding-inline-start: 1.1em; }
.prog-cat__more-body li { font-size: .84rem; color: var(--mbn-mist); line-height: 1.75;
  margin-block: 3px; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 640px) {
  .prog-cat { padding: 20px; }
  .prog-cat__note { max-inline-size: none; }
  .prog-track { padding: 16px 16px; }
}
