/* =====================================================================
   صفحة «البرامج والمبادرات» (programs.html, 15 Nov) — التحالف الوطني | NACDW v2
   Phase 1: hero only.
   - The hero uses the homepage hero classes (site.css) + the «مجالات عملنا» hero tweaks (areas.css #mj .mj-hero),
     exactly like join-us.html / platforms.html, so overlay, gradient, type, height under the header and breakpoints
     are the existing ones.
   - Only page-specific rules here.
   ===================================================================== */

/* the volunteers and the truck stand on the left of the photo: keep them in frame as the screen narrows
   (the copy sits on the right, over the light sky / path) */
.pg-hero .hero-bg{ object-position:10% 45%; }
/* same hero height as «مجالات عملنا», «منصات التحالف» and «انضم إلينا» (same empty block as join.css) */
.pg-hero .hero-copy::after{ content:""; display:block; height:3.1em; font-size:17px; }

/* 15 Nov: headline «برامج ومبادرات / التحالف الوطني» uses the site's hero colours as they are (site.css .hero h1 .l1
   green / .l2 orange); the earlier one-phrase-orange override was removed with the old copy */

/* =====================================================================
   Programmes list (programs.html #pgList) + programme detail pages (program-*.html), 15 Nov v2.
   Card = the «انضم إلينا» row from areas.html (areas.css .mj-jrow / .flip / .mj-jcta / .mj-btn-base), only re-proportioned
   for a short text. Detail page = calm long-form layout. Only existing tokens (areas.css #mj) and the site's hover lift.
   ===================================================================== */
#mj ol, #mj dl, #mj dd{ margin:0; padding:0; list-style:none; }
/* cards start right after the hero: 96px (64px from 980px down), the same first-section rhythm as «انضم إلينا» */
#mj .pg-list{ padding:96px 0; }

/* ---------- horizontal card (photo right, text left) ---------- */
/* 17 Nov (designer): hover = the folder cards of the domain pages (areas.css .mj-fc): same timing and easing (400ms,
   cubic-bezier(.22,.61,.36,1)), the card lifts 4px with a soft shadow, a 2px orange border fades in and the photo
   zooms a touch inside its frame. Mouse / trackpad only (hover:hover); no movement with prefers-reduced-motion. */
#mj .pg-row{ --fe:cubic-bezier(.22,.61,.36,1); --ft:400ms;
  position:relative; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px; padding:28px; cursor:pointer;
  transition:transform var(--ft) var(--fe), box-shadow var(--ft) var(--fe); }
#mj .pg-row::before{ content:""; position:absolute; inset:0; border-radius:inherit; border:2px solid var(--acc); opacity:0; pointer-events:none;
  transition:opacity var(--ft) var(--fe); }
#mj .pg-row .ph img{ transition:transform var(--ft) var(--fe); }
@media (hover:hover){
  #mj .pg-row:hover{ transform:translateY(-4px); box-shadow:0 16px 34px -14px rgba(14,91,82,.26); }
  #mj .pg-row:hover::before{ opacity:1; }
  #mj .pg-row:hover .ph img{ transform:scale(1.05); }
}
@media (prefers-reduced-motion:reduce){
  #mj .pg-row:hover, #mj .pg-row:hover .ph img{ transform:none; }
}
#mj .pg-row .tx{ padding-inline-end:16px; }
#mj .pg-row .ph{ min-height:340px; }
#mj .pg-row h3{ margin-top:0!important; }
#mj .pg-row .tx > p{ margin-top:12px!important; max-width:520px; }
#mj .pg-row .mj-jcta{ margin-top:28px; }
/* the whole card opens the page. 17 Nov fix: the layer used to take the BUTTON's pill radius (border-radius:inherit
   from .mj-btn), which turned it into a big oval: the card's corners and side strips (and parts of the photo) were
   dead. It now has the card's own corners and sits above the photo. */
#mj .pg-row-link::after{ content:""; position:absolute; inset:0; z-index:2; border-radius:var(--r-lg); }
#mj .pg-row:hover .mj-btn-base{ background:var(--green); }   /* the card's button shows the homepage button's hover colour */
#mj .pg-row:focus-within{ outline:2px solid var(--base); outline-offset:3px; }
#mj .pg-row-link:focus-visible{ outline:none; }

/* ---------- detail page ---------- */
#mj .pd-intro{ padding:calc(var(--hdr) + 20px) 0 0; }
.pd-intro-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:56px; align-items:center; }
#mj .pd-intro .kick{ display:block; font-size:14px; font-weight:700; color:var(--acc); }
#mj .pd-intro h1{ margin-top:8px; font-size:clamp(2.1rem, 3.6vw, 3.1rem); line-height:1.3; font-weight:700; text-wrap:balance; }
#mj .pd-intro h1 .l1{ color:var(--base); }
#mj .pd-intro h1 .l2{ color:var(--acc); }
#mj .pd-lead{ margin-top:16px; max-width:600px; font-size:18px; line-height:2; color:var(--body); text-wrap:pretty; }
.pd-ph{ margin:0; position:relative; aspect-ratio:16 / 10; border-radius:var(--r-lg); overflow:hidden; background:var(--soft); }
.pd-ph img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
/* «نظرة سريعة»: the three card facts in one quiet row, separated by hairlines */
.pd-glance-wrap{ margin-top:48px; }
.pd-glance{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-block:1px solid var(--line); }
.pd-glance > div{ padding:22px 0; padding-inline-end:28px; }
.pd-glance > div + div{ padding-inline-start:28px; border-inline-start:1px solid var(--line); }
#mj .pd-glance dt{ font-size:14px; font-weight:600; color:var(--medium); }
#mj .pd-glance dd{ margin-top:4px; font-size:16px; font-weight:600; line-height:1.8; color:var(--dark); }


/* sections: heading in a side column, content in a reading column */
#mj .pd-sec{ padding:72px 0; scroll-margin-top:calc(var(--hdr) + 8px); }
#mj .pd-sec + .pd-sec:not(.pd-soft){ border-top:1px solid var(--line-2); }
#mj .pd-soft{ background:var(--soft); }
#mj .pd-soft + .pd-sec{ border-top:0; }
.pd-cols{ display:grid; grid-template-columns:300px minmax(0,1fr); gap:56px; align-items:start; }
#mj .pd-h2{ position:relative; padding-top:18px; font-size:clamp(1.5rem, 2.2vw, 1.9rem); line-height:1.4; font-weight:700; color:var(--base); text-wrap:balance; }
#mj .pd-h2::before{ content:""; position:absolute; top:0; inset-inline-start:0; width:46px; height:2px; background:var(--acc); }
.pd-body{ max-width:780px; }
#mj .pd-body p{ font-size:17px; line-height:2; color:var(--body); text-wrap:pretty; }
#mj .pd-prose{ display:grid; gap:16px; }
#mj .pd-h3{ font-size:18px; font-weight:700; color:var(--dark); line-height:1.6; }
#mj .pd-h3 + p{ margin-top:6px; }
.pd-block + .pd-block{ margin-top:32px; }

/* goals: a plain list with orange bullets */
#mj .pd-list{ display:grid; gap:14px; }
#mj .pd-list li{ position:relative; padding-inline-start:22px; font-size:17px; font-weight:600; line-height:1.85; color:var(--dark); }
#mj .pd-list li::before{ content:""; position:absolute; inset-inline-start:0; top:.8em; width:8px; height:8px; border-radius:50%; background:var(--acc); }

/* two phases on a vertical line */
#mj .pd-phases{ position:relative; display:grid; gap:20px; margin-top:12px; }
#mj .pd-phases::before{ content:""; position:absolute; inset-inline-start:5px; top:10px; bottom:10px; width:2px; background:var(--line); }
#mj .pd-phases li{ position:relative; padding-inline-start:30px; }
#mj .pd-phases li::before{ content:""; position:absolute; inset-inline-start:0; top:.55em; width:12px; height:12px; border-radius:50%; background:#fff; border:2px solid var(--acc); }
#mj .pd-phases b{ font-size:16px; color:var(--base); }
#mj .pd-phases p{ margin-top:2px; }

/* implementation: numbered list, two columns */
#mj .pd-intro-line{ margin-bottom:24px; }
#mj .pd-steps{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 40px; }
.pd-steps li{ display:grid; grid-template-columns:36px minmax(0,1fr); gap:14px; align-items:start; }
.pd-steps .n{ display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:var(--base); color:#fff; font-weight:700; font-size:15px; }
#mj .pd-steps h3{ font-size:17px; font-weight:700; color:var(--base); line-height:1.6; padding-top:4px; }
#mj .pd-steps p{ margin-top:2px; font-size:16px; line-height:1.85; }

/* partners: label / names rows */
#mj .pd-partners > div{ display:grid; grid-template-columns:200px minmax(0,1fr); gap:24px; padding:16px 0; border-bottom:1px solid var(--line-2); }
#mj .pd-partners > div:first-child{ padding-top:0; }
#mj .pd-partners dt{ font-size:15px; font-weight:700; color:var(--acc); line-height:1.8; }
#mj .pd-partners dd{ font-size:16px; font-weight:600; color:var(--dark); line-height:1.8; }
#mj .pd-names{ display:grid; gap:6px 28px; }
#mj .wide .pd-names{ grid-template-columns:repeat(2,minmax(0,1fr)); }
#mj .pd-note{ margin-top:22px; }

/* activities: two columns of text, a short orange rule on top */
.pd-acts{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px; }
.pd-acts article{ padding-top:18px; border-top:2px solid var(--line); }

/* 15 Nov («ازرع»): grouped lists (heading + bullets) inside the same blocks; used only by pages that give grouped data */
#mj .pd-after{ margin-top:36px; }
#mj .pd-h3 + .pd-list, #mj .pd-block p + .pd-list{ margin-top:12px; }
#mj .pd-acts .pd-list{ gap:10px; }
#mj .pd-acts .pd-list li{ font-size:16px; line-height:1.8; }
#mj .pd-stage .pd-h3{ color:var(--base); }
#mj .pd-stage + .pd-stage{ padding-top:32px; margin-top:32px; border-top:1px solid var(--line-2); }

/* sources + back */
#mj .pd-end{ padding:24px 0 96px; }
.pd-sources{ padding-top:28px; border-top:1px solid var(--line-2); }
#mj .pd-sources h2{ font-size:15px; font-weight:700; color:var(--medium); }
#mj .pd-sources ul{ display:grid; gap:8px; margin-top:10px; }
.pd-sources a{ display:inline-flex; align-items:center; gap:8px; font-size:15px; color:var(--body); transition:color .2s; }
.pd-sources a:hover{ color:var(--base); text-decoration:underline; }
.pd-sources a svg{ width:14px; height:14px; flex:none; color:var(--medium); }
.pd-back{ margin-top:36px; }

/* ---------- tablet ---------- */
@media (max-width:1199px){
  .pd-cols{ grid-template-columns:240px minmax(0,1fr); gap:40px; }
  #mj .pd-partners > div{ grid-template-columns:170px minmax(0,1fr); }
}
@media (max-width:980px){
  #mj .pg-list{ padding:64px 0; }
  #mj .pg-row{ grid-template-columns:minmax(0,1fr); gap:24px; padding:24px; }
  #mj .pg-row .tx{ padding-inline-end:0; }
  #mj .pg-row .ph{ order:-1; min-height:300px; }
  .pd-intro-grid{ grid-template-columns:minmax(0,1fr); gap:28px; }
  .pd-ph{ order:-1; }
  .pd-glance-wrap{ margin-top:36px; }
  .pd-cols{ grid-template-columns:minmax(0,1fr); gap:20px; }
  #mj .pd-sec{ padding:56px 0; }
  #mj .pd-end{ padding-bottom:64px; }
}
/* ---------- phone ---------- */
@media (max-width:767px){
  #mj .pg-row{ padding:0 18px 22px; gap:20px; }
  #mj .pg-row .ph{ min-height:220px; }
  #mj .pg-row .mj-jcta{ margin-top:22px; }
  #mj .pd-intro{ padding-top:calc(var(--hdr) + 12px); }
  .pd-ph{ border-radius:var(--r-md); }
  #mj .pd-lead, #mj .pd-body p, #mj .pd-list li{ font-size:16px; }
  .pd-glance{ grid-template-columns:minmax(0,1fr); }
  .pd-glance > div, .pd-glance > div + div{ padding:16px 0; border-inline-start:0; }
  .pd-glance > div + div{ border-top:1px solid var(--line-2); }
  #mj .pd-sec{ padding:48px 0; }
  #mj .pd-steps{ grid-template-columns:minmax(0,1fr); gap:22px; }
  #mj .pd-partners > div{ grid-template-columns:minmax(0,1fr); gap:4px; }
  #mj .wide .pd-names{ grid-template-columns:minmax(0,1fr); }
  .pd-acts{ grid-template-columns:minmax(0,1fr); gap:28px; }
  .pd-back .mj-btn{ width:100%; }
}

/* =====================================================================
   Detail page, layout='index' (15 Nov, designer chose the u.ae concept; pilot on «أمل جديد» only):
   one long page, each section with its heading on top, and a fixed «في هذه الصفحة» list beside them.
   Desktop: content column + 280px list on the end side (left in RTL) with a vertical rail; the section being read
   is marked in the base green. ≤980px: the list becomes a drop-down at the top of the content that stays in view
   under the site header. No animation. Content blocks inside the sections keep the .pd-* styles above.
   ===================================================================== */
#mj .pdx{ display:grid; grid-template-columns:minmax(0,1fr) 280px; grid-template-areas:"main toc"; gap:72px; align-items:start; padding-top:64px; }
#mj .pdx-main{ grid-area:main; min-width:0; max-width:820px; }
#mj .pdx-toc{ grid-area:toc; position:sticky; top:calc(var(--hdr) + 24px); }
#mj .pdx-toc-t{ margin:0 0 12px; font-size:14px; font-weight:700; color:var(--medium); }
#mj .pdx-toc ul{ border-inline-start:2px solid var(--line); }
.pdx-toc a{ display:block; margin-inline-start:-2px; padding:10px 18px; border-inline-start:2px solid transparent; font-size:15px; font-weight:500; line-height:1.6; color:var(--body); transition:color .2s, border-color .2s; }
.pdx-toc a:hover{ color:var(--base); }
.pdx-toc a[aria-current]{ color:var(--base); font-weight:700; border-inline-start-color:var(--base); }
.pdx-toc a:focus-visible{ outline:2px solid var(--base); outline-offset:2px; border-radius:4px; }
#mj .pdx-jump{ display:none; }

#mj .pdx-sec{ padding-bottom:56px; margin-bottom:56px; border-bottom:1px solid var(--line-2); scroll-margin-top:calc(var(--hdr) + 24px); }
#mj .pdx-sec:last-child{ margin-bottom:0; border-bottom:0; padding-bottom:0; }
#mj .pdx-sec > .pd-h2{ margin-bottom:24px; }
#mj .pdx-sec p{ font-size:17px; line-height:2; color:var(--body); text-wrap:pretty; }
#mj .pdx-sec .pd-pgroup h3, #mj .pdx-sec .pd-steps h3{ text-wrap:balance; }
#mj .pdx-end{ padding-top:64px; }

@media (max-width:1199px){
  #mj .pdx{ grid-template-columns:minmax(0,1fr) 240px; gap:48px; }
}
@media (max-width:980px){
  #mj .pdx{ grid-template-columns:minmax(0,1fr); grid-template-areas:"main"; gap:0; padding-top:40px; }
  #mj .pdx-toc{ display:none; }
  #mj .pdx-jump{ display:block; position:sticky; top:calc(var(--hdr) + 8px); z-index:5; margin-bottom:32px; }
  #mj .pdx-jump select{ width:100%; height:52px; padding:0 16px; border:1px solid var(--line); border-radius:var(--r); background-color:#EEF5F3;
    font:inherit; font-size:16px; font-weight:600; color:var(--base); cursor:pointer; }
  #mj .pdx-jump select:focus-visible{ outline:2px solid var(--base); outline-offset:2px; }
  #mj .pdx-sec{ padding-bottom:44px; margin-bottom:44px; scroll-margin-top:calc(var(--hdr) + 84px); }
  #mj .pdx-end{ padding-top:48px; }
}
@media (max-width:767px){
  #mj .pdx-sec p{ font-size:16px; }
}
/* 21 Nov (owner): the programs hero was too tall — less space above and below the copy, and no reserved stats row
   (676px → about 545px at 1440). Only the programs page. */
@media (min-width:981px){
  .pg-hero .hero-grid{ padding-top:150px; padding-bottom:56px; }
  .pg-hero .hero-copy::after{ display:none; }
}


/* ===== 21 Nov (owner): initiative pages ===== */
/* key facts: three soft cards with an icon each (target group · how it works · partnership), no dividing lines */
#mj .pd-glance{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; border-block:0; }
#mj .pd-glance > div, #mj .pd-glance > div + div{ position:relative; padding:20px 22px 22px; padding-inline-start:84px; border:0; border-radius:18px; background:#F1F5F4; min-height:100%; }
#mj .pd-glance > div::before{ content:""; position:absolute; inset-inline-start:20px; top:20px; width:46px; height:46px; border-radius:13px; background:#fff no-repeat center / 24px 24px; box-shadow:0 2px 8px rgba(14,91,82,.06); }
#mj .pd-glance > div:nth-child(1)::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E5B52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 21a8 8 0 0 0-16 0' /%3E %3Ccircle cx='10' cy='8' r='5' /%3E %3Cpath d='M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3' /%3E%3C/svg%3E"); }
#mj .pd-glance > div:nth-child(2)::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E5B52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7h-9' /%3E %3Cpath d='M14 17H5' /%3E %3Ccircle cx='17' cy='17' r='3' /%3E %3Ccircle cx='7' cy='7' r='3' /%3E%3C/svg%3E"); }
#mj .pd-glance > div:nth-child(3)::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E5B52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 17 2 2a1 1 0 1 0 3-3' /%3E %3Cpath d='m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4' /%3E %3Cpath d='m21 3 1 11h-2' /%3E %3Cpath d='M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3' /%3E %3Cpath d='M3 4h8' /%3E%3C/svg%3E"); }
#mj .pd-glance dt{ font-size:13.5px; font-weight:600; color:var(--orange); }
#mj .pd-glance dd{ margin-top:4px; font-size:15.5px; font-weight:600; line-height:1.75; color:var(--dark); }
/* member institutions: logo tiles with the name underneath */
#mj .pd-logos{ list-style:none; margin:6px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(132px, 1fr)); gap:14px; }
#mj .pd-logos li{ display:grid; justify-items:center; align-content:start; gap:8px; text-align:center; }
#mj .pd-logos .lg{ width:100%; aspect-ratio:4 / 3; display:grid; place-items:center; padding:12px; border-radius:16px; background:#fff; border:1px solid var(--line-2); box-shadow:0 4px 14px rgba(14,91,82,.05); }
#mj .pd-logos .lg img{ max-width:100%; max-height:100%; object-fit:contain; }
#mj .pd-logos .nm{ font-size:13px; line-height:1.6; color:var(--body); }
/* activities: cards with a photo, a title and the description */
#mj .pd-acards{ display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:20px; margin-top:8px; }
#mj .pd-acard{ display:flex; flex-direction:column; overflow:hidden; border-radius:20px; background:#fff; border:1px solid var(--line-2); box-shadow:0 8px 24px rgba(14,91,82,.06); }
#mj .pd-acard figure{ margin:0; aspect-ratio:16 / 10; overflow:hidden; background:var(--soft); }
#mj .pd-acard figure img{ width:100%; height:100%; object-fit:cover; display:block; }
#mj .pd-acard .tx{ display:grid; gap:10px; padding:18px 20px 22px; }
#mj .pd-acard .tx p, #mj .pd-acard .tx li{ font-size:15px; line-height:1.85; color:var(--body); }
#mj .pd-acard .pd-list{ gap:6px; }
#mj .pd-acard .pd-note{ font-size:14px; }
/* «في هذه الصفحة»: the section being read is orange */
.pdx-toc a[aria-current]{ color:var(--orange); border-inline-start-color:var(--orange); }
@media (max-width:980px){
  #mj .pd-glance{ grid-template-columns:minmax(0,1fr); gap:12px; }
  #mj .pd-glance > div + div{ border-top:0; }
}
@media (max-width:600px){ #mj .pd-logos{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* logo tiles: every tile the same size, the logo fitted inside it */
#mj .pd-logos{ grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); align-items:start; }
#mj .pd-logos .lg{ display:block; position:relative; height:auto; padding:0; }
#mj .pd-logos .lg img{ position:absolute; inset:12px; width:calc(100% - 24px); height:calc(100% - 24px); max-width:none; max-height:none; object-fit:contain; }

/* ===== 21 Nov v2 (owner) ===== */
/* «في هذه الصفحة»: a slim side list so the reading column gets the room */
@media (min-width:981px){
  #mj .pdx{ grid-template-columns:minmax(0,1fr) 200px; gap:56px; }
  #mj .pdx-main{ max-width:none; }
  .pdx-toc a{ padding:8px 14px; font-size:14px; }
  #mj .pdx-toc-t{ font-size:13px; }
}
@media (min-width:981px) and (max-width:1199px){ #mj .pdx{ grid-template-columns:minmax(0,1fr) 180px; gap:40px; } }

/* partnerships: each role is a soft card (label on top, value underneath); lists of institutions take the full width */
#mj .pd-partners{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
#mj .pd-partners > div, #mj .pd-partners > div:first-child{ display:block; padding:18px 20px 20px; border:0; border-radius:18px; background:#F4F8F7; }
#mj .pd-partners > div.wide{ grid-column:1 / -1; }
#mj .pd-partners dt{ margin-bottom:6px; font-size:13.5px; font-weight:600; color:var(--orange); line-height:1.7; }
#mj .pd-partners dd{ font-size:15.5px; font-weight:600; color:var(--dark); line-height:1.8; }
#mj .pd-partners .pd-names{ display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 0; padding:0; list-style:none; grid-template-columns:none; }
#mj .pd-partners .pd-names li{ padding:6px 14px; border-radius:999px; background:#fff; border:1px solid var(--line-2); font-size:14.5px; font-weight:500; line-height:1.6; }
#mj .pd-partners .pd-names li::before{ display:none; }
#mj .pd-partners .pd-logos{ margin-top:10px; grid-template-columns:repeat(auto-fill, minmax(124px, 1fr)); gap:12px; }
#mj .pd-partners .pd-logos .lg{ border-color:transparent; box-shadow:0 2px 10px rgba(14,91,82,.06); }
@media (max-width:767px){
  #mj .pd-partners{ grid-template-columns:minmax(0,1fr); }
  #mj .pd-partners .pd-logos{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
/* activities: two cards per row so each card has room */
@media (min-width:768px){ #mj .pd-acards{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* logos: four per row on wide screens, wider and shorter tiles */
@media (min-width:981px){ #mj .pd-partners .pd-logos{ grid-template-columns:repeat(4,minmax(0,1fr)); } #mj .pd-partners .pd-logos .lg{ aspect-ratio:2 / 1; } }
@media (min-width:768px) and (max-width:980px){ #mj .pd-partners .pd-logos{ grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* ===== 21 Nov v3 (owner) ===== */
/* member logos: small round frames with the name underneath */
#mj .pd-partners .pd-logos, #mj .pd-logos{ grid-template-columns:repeat(auto-fill, minmax(108px, 1fr)); gap:18px 12px; }
#mj .pd-partners .pd-logos .lg, #mj .pd-logos .lg{ width:78px; height:78px; aspect-ratio:auto; margin-inline:auto; border-radius:50%; background:#fff; border:1px solid var(--line-2); box-shadow:0 3px 10px rgba(14,91,82,.07); overflow:hidden; }
#mj .pd-partners .pd-logos .lg img, #mj .pd-logos .lg img{ inset:14px; width:calc(100% - 28px); height:calc(100% - 28px); }
#mj .pd-logos .nm{ font-size:12.5px; line-height:1.55; max-width:13em; }
@media (min-width:981px){ #mj .pd-partners .pd-logos{ grid-template-columns:repeat(auto-fill, minmax(108px, 1fr)); } #mj .pd-partners .pd-logos .lg{ aspect-ratio:auto; } }
@media (max-width:767px){ #mj .pd-partners .pd-logos{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
/* activity cards, new look: a soft green card, the photo inset with its own rounded corners, an orange line before the title */
#mj .pd-acard{ padding:10px; border:0; border-radius:24px; background:#F1F5F4; box-shadow:none; transition:transform .3s ease, box-shadow .3s ease; }
#mj .pd-acard figure{ border-radius:16px; aspect-ratio:16 / 9; }
#mj .pd-acard .tx{ padding:16px 12px 12px; gap:8px; }
#mj .pd-acard .tx .pd-h3{ position:relative; padding-inline-start:16px; font-size:17.5px; line-height:1.55; }
#mj .pd-acard .tx .pd-h3::before{ content:""; position:absolute; inset-inline-start:0; top:.35em; bottom:.35em; width:4px; border-radius:2px; background:var(--orange); }
@media (hover:hover){ #mj .pd-acard:hover{ transform:translateY(-3px); box-shadow:0 14px 30px -16px rgba(14,91,82,.3); } }
/* initiative pages: room before the footer now that the browse button is gone; logos a little larger inside their circles */
main:has(.pd-glance){ padding-bottom:96px; }
@media (max-width:980px){ main:has(.pd-glance){ padding-bottom:64px; } }
#mj .pd-partners .pd-logos .lg img, #mj .pd-logos .lg img{ inset:11px; width:calc(100% - 22px); height:calc(100% - 22px); }

/* 21 Nov (designer): activity cards never leave one card alone on its own row. 2 cards = 2 side by side (as before);
   3 cards = 3 side by side where they fit (≥1280px), otherwise one card per row with the photo beside the text
   (768–1279px). Phones keep one card per row, photo on top. */
@media (min-width:1280px){
  #mj .pd-acards:has(> .pd-acard:nth-child(3)){ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (min-width:768px) and (max-width:1279px){
  #mj .pd-acards:has(> .pd-acard:nth-child(3)){ grid-template-columns:minmax(0,1fr); }
  #mj .pd-acards:has(> .pd-acard:nth-child(3)) .pd-acard{ display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:6px; align-items:start; }
  #mj .pd-acards:has(> .pd-acard:nth-child(3)) .pd-acard figure{ aspect-ratio:4 / 3; }
}
