/* «الهيكل التنظيمي» page (structure.html) — 21 Nov 2026. Hero + body tabs from the owner's first reference; members shown
   like her second reference (head card, executive tree, member cards). All rules scoped to .st-page. */
.st-page { background: #fff; overflow: hidden; padding-top: 96px; }

/* ---------- hero: curved photo (same drawing as «من نحن» section 1), breadcrumbs, title, text ---------- */
.st-hero { position: relative; padding-top: clamp(28px, 3.6vw, 60px); }
.st-photo { position: absolute; top: 0; right: 0; width: 55.5vw; max-width: 940px; pointer-events: none; }
.st-photo svg { display: block; width: 100%; height: auto; }
.st-intro { position: relative; display: grid; grid-template-columns: minmax(0, 41%) minmax(0, 1fr); min-height: calc(28vw - clamp(28px, 3.6vw, 60px)); align-content: center; }
.st-copy { display: grid; gap: 16px; justify-items: start; align-content: start; }
.st-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.st-crumbs a { color: var(--muted); transition: color .2s; }
.st-crumbs a:hover { color: var(--green-900); }
.st-crumbs [aria-current] { color: var(--green-900); font-weight: 600; }
.st-copy h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.25; color: var(--green-900); }
.st-copy p { margin: 0; font-size: max(15.5px, 1.12vw); line-height: 2; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.st-bar { display: block; width: 84px; height: 5px; border-radius: 3px; background: var(--orange); margin-top: 6px; }
@media (min-width: 1100px) { .st-page .wrap { max-width: none; padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1500px) { .st-intro { min-height: 0; padding-bottom: clamp(40px, 4vw, 80px); } }

/* ---------- the bar of the five bodies ---------- */
.st-tabs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(28px, 3vw, 44px); padding: 10px;
  background: #fff; border-radius: 24px; box-shadow: 0 14px 40px rgba(14, 91, 82, .1), 0 0 0 1px rgba(14, 91, 82, .05); }
.st-tab { position: relative; display: grid; justify-items: center; gap: 10px; padding: 18px 10px 16px; border: 0; border-radius: 18px; background: none; font: inherit; color: var(--green-900); cursor: pointer; transition: background .25s ease, color .25s ease; }
.st-tab + .st-tab::before { content: ""; position: absolute; inset-inline-start: 0; top: 26%; bottom: 26%; width: 1px; background: rgba(14, 91, 82, .14); }
.st-tab .ic svg { width: 30px; height: 30px; stroke-width: 1.6; }
.st-tab .tx { font-size: clamp(14.5px, 1.15vw, 17px); font-weight: 700; line-height: 1.35; text-align: center; }
.st-tab:hover { background: #F1F8F5; }
.st-tab[aria-selected="true"] { background: var(--green-900); color: #fff; }
.st-tab[aria-selected="true"]::before, .st-tab[aria-selected="true"] + .st-tab::before { display: none; }
.st-tab[aria-selected="true"]::after { content: ""; position: absolute; right: 50%; bottom: -9px; width: 18px; height: 18px; background: var(--green-900); border-radius: 3px; transform: translateX(50%) rotate(-45deg); }
.st-tab[aria-selected="true"] .ic svg { stroke: var(--orange); }
.st-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- members (second reference) ---------- */
.st-members { padding: clamp(56px, 5.6vw, 88px) 0 clamp(72px, 7vw, 112px); background: linear-gradient(180deg, #fff 0%, #FAFCFB 40%, #F4F8F6 100%); }
.st-panel[hidden] { display: none; }
/* head card: photo on one side, role badge, name, line */
.st-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(170px, 15vw, 220px); align-items: stretch; max-width: 620px; margin: 0 auto;
  background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 14px 40px rgba(14, 91, 82, .1), 0 0 0 1px rgba(14, 91, 82, .05); }
.st-head .ph { order: 2; margin: 0; position: relative; }
.st-head .ph::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; inset-inline-end: 0; width: 6px; background: var(--orange); }
.st-head .ph img { display: block; width: 100%; height: 100%; min-height: 200px; object-fit: cover; object-position: 50% 20%; }
.st-head .tx { display: grid; align-content: center; justify-items: start; gap: 10px; padding: clamp(24px, 2.4vw, 36px); }
.st-head .badge { padding: 5px 16px; border-radius: 999px; background: #FDF0E1; color: #B86A12; font-size: 13.5px; font-weight: 700; }
.st-head h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 800; line-height: 1.35; color: var(--green-900); }
.st-head p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.st-head .tx::after { content: ""; width: 56px; height: 3px; border-radius: 2px; background: var(--orange); margin-top: 4px; }
/* group title: — title — */
.st-gt { display: flex; align-items: center; justify-content: center; gap: 18px; margin: clamp(48px, 4.4vw, 64px) 0 clamp(24px, 2.4vw, 34px); font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 800; color: var(--green-900); }
.st-gt::before, .st-gt::after { content: ""; width: 40px; height: 3px; border-radius: 2px; background: var(--orange); }
/* member cards */
.st-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.st-m { display: grid; justify-items: center; align-content: start; gap: 8px; padding: clamp(22px, 2vw, 28px) 16px clamp(22px, 2vw, 28px); text-align: center; background: #fff; border-radius: 20px;
  box-shadow: 0 8px 26px rgba(14, 91, 82, .06), 0 0 0 1px rgba(14, 91, 82, .05); transition: transform .3s ease, box-shadow .3s ease; }
.st-m .ph { width: clamp(104px, 8.6vw, 128px); aspect-ratio: 1; margin-bottom: 8px; border-radius: 50%; padding: 4px; background: #fff; box-shadow: 0 0 0 2px #DCEEE8; }
.st-m .ph img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.st-m h4 { margin: 0; font-size: clamp(1rem, 1.2vw, 1.12rem); font-weight: 700; line-height: 1.5; color: var(--green-900); }
.st-m p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); text-wrap: balance; }
.st-m p::after { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--orange); margin: 10px auto 0; opacity: .8; }
@media (hover: hover) { .st-m:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -12px rgba(14, 91, 82, .22), 0 0 0 1px rgba(14, 91, 82, .05); } }
.st-m.is-more { display: none; }
.st-group.is-open .st-m.is-more { display: grid; }
.st-more-wrap { display: flex; justify-content: center; margin-top: clamp(28px, 3vw, 40px); }
.st-more { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--green-900); background: #fff; color: var(--green-900); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.st-more svg { width: 18px; height: 18px; transition: transform .25s; }
.st-more:hover { background: var(--green-900); color: #fff; }
.st-group.is-open .st-more svg { transform: rotate(-180deg); }
/* executive / secretariat tree: a line from the head card to the row, brackets down to each card */
.st-head.has-tree { margin-bottom: 0; }
.st-tree .st-gt { position: relative; margin-top: 0; padding-top: clamp(44px, 4vw, 60px); }
.st-tree .st-gt > span { position: relative; }
.st-tree .st-gt::before, .st-tree .st-gt::after { flex: none; }
.st-tree { position: relative; }
.st-tree::before { content: ""; position: absolute; top: 0; right: 50%; width: 2px; height: clamp(36px, 3.4vw, 52px); background: rgba(14, 91, 82, .3); transform: translateX(50%); }
.st-tree .st-cards { position: relative; padding-top: 30px; max-width: 980px; margin: 0 auto; }
.st-tree.st-n3 .st-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-tree.st-n3 .st-cards::before { content: ""; position: absolute; top: 0; height: 30px; right: calc(100% / 6); left: calc(100% / 6); border: 2px solid rgba(14, 91, 82, .3); border-bottom: 0; border-radius: 14px 14px 0 0; }
.st-tree.st-n3 .st-cards::after { content: ""; position: absolute; top: 0; right: 50%; width: 2px; height: 30px; background: rgba(14, 91, 82, .3); transform: translateX(50%); }
.st-tree.st-n1 .st-cards { grid-template-columns: minmax(0, 300px); justify-content: center; }
.st-tree.st-n1 .st-cards::before { content: ""; position: absolute; top: 0; right: 50%; width: 2px; height: 30px; background: rgba(14, 91, 82, .3); transform: translateX(50%); }
/* committees: no published composition yet */
.st-empty { max-width: 620px; margin: 0 auto; display: grid; justify-items: center; gap: 14px; padding: clamp(32px, 3.4vw, 48px); text-align: center; background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px rgba(14, 91, 82, .08); }
.st-empty .ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #EEF6F3; color: var(--green-900); }
.st-empty .ic svg { width: 34px; height: 34px; stroke-width: 1.5; }
.st-empty p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .st-m, .st-m:hover, .st-tab { transition: none; transform: none; } }

/* ---------- tablets / phones ---------- */
@media (max-width: 1099px) { .st-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .st-page { padding-top: 80px; }
  .st-hero { padding-top: 0; }
  .st-photo { position: relative; width: 100%; max-width: none; margin-bottom: 8px; }
  .st-intro { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .st-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 4px; padding: 8px; }
  .st-tabs::-webkit-scrollbar { display: none; }
  .st-tab { flex: 0 0 auto; min-width: 132px; scroll-snap-align: start; padding: 14px 12px 12px; }
  .st-tab[aria-selected="true"]::after { display: none; }
  .st-head { grid-template-columns: minmax(0, 1fr) 140px; }
}
@media (max-width: 760px) { .st-cards, .st-tree.st-n3 .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-tree.st-n3 .st-cards::before, .st-tree.st-n3 .st-cards::after { display: none; } .st-tree .st-cards { padding-top: 0; } }
@media (max-width: 480px) {
  .st-head { grid-template-columns: minmax(0, 1fr); }
  .st-head .ph { order: 0; }
  .st-head .ph img { min-height: 0; aspect-ratio: 4 / 3; }
  .st-head .ph::before { top: auto; bottom: 0; right: 0; left: 0; width: auto; height: 5px; }
  .st-m { padding: 18px 10px; }
  .st-m .ph { width: 92px; }
  .st-m p { font-size: 13px; }
}
/* head card photo: round like the member photos (several originals are round crops), on a pale panel with the orange edge */
.st-head .ph { display: grid; place-items: center; padding: 22px; background: #EEF6F3; }
.st-head .ph img { width: clamp(130px, 11vw, 164px); height: auto; aspect-ratio: 1; min-height: 0; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 0 0 2px #DCEEE8, 0 10px 24px rgba(14, 91, 82, .14); }
@media (max-width: 480px) { .st-head .ph img { aspect-ratio: 1; width: 140px; } }
/* 22 Nov (owner): one fixed hero photo (the alliance boardroom) — keep the logo wall and the flag in the curved frame */
#stPhoto { }
.st-copy p[hidden] { display: none; }

/* ===== 22 Nov (owner): switcher — same design; the green selection is GLASS (translucent green, blur, a light sheen and
   a fine bright edge) and it slides smoothly to the chosen body ===== */
.st-tabs { isolation: isolate; }
.st-pill { position: absolute; z-index: -1; border-radius: 18px; pointer-events: none; opacity: 0;
  background:
    linear-gradient(200deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .08) 38%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(27, 122, 108, .82) 0%, rgba(14, 91, 82, .9) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 26px -8px rgba(14, 91, 82, .45), 0 2px 6px rgba(14, 91, 82, .12);
  transition: right .65s cubic-bezier(.65, 0, .35, 1), top .65s cubic-bezier(.65, 0, .35, 1), width .65s cubic-bezier(.65, 0, .35, 1); }
.st-pill::after { content: ""; position: absolute; right: 50%; bottom: -8px; width: 16px; height: 16px; border-radius: 3px; background: rgba(14, 91, 82, .9); transform: translateX(50%) rotate(-45deg); }
.st-tabs.has-pill .st-pill { opacity: 1; }
.st-tabs.has-pill .st-tab[aria-selected="true"] { background: transparent; }
.st-tabs.has-pill .st-tab[aria-selected="true"]::after { display: none; }
.st-tabs.has-pill .st-tab[aria-selected="true"]::before, .st-tabs.has-pill .st-tab[aria-selected="true"] + .st-tab::before { display: none; }
.st-tab { transition: color .45s ease .1s; }
@media (max-width: 980px) { .st-pill::after { display: none; } .st-tabs { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .st-pill, .st-tab { transition: none; } .st-tabs { scroll-behavior: auto; } }

/* ===== 22 Nov (owner chose «ر٢»): the head of each body without a card — a large round photo centred with a soft green
   halo, then the role badge, the name and the line ===== */
.st-head { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; max-width: 640px; margin: 0 auto; text-align: center;
  background: none; border-radius: 0; overflow: visible; box-shadow: none; }
.st-head .ph { order: 0; padding: 0; background: none; display: block; }
.st-head .ph::before { display: none; }
.st-head .ph img { width: clamp(150px, 12vw, 184px); aspect-ratio: 1; height: auto; border-radius: 50%; border: 6px solid #fff;
  box-shadow: 0 0 0 10px #E6F2EE, 0 0 0 11px rgba(14, 91, 82, .08), 0 22px 44px -12px rgba(14, 91, 82, .35); }
.st-head .tx { justify-items: center; gap: 8px; padding: 30px 0 0; }
.st-head .tx::after { margin: 6px auto 0; }
.st-head h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.st-head p { max-width: 34em; }
@media (max-width: 980px) { .st-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .st-head .ph img { width: 140px; } .st-head .ph::before { display: none; } }

/* ===== 22 Nov (owner): the board in the live site's levels — chairman → 4 → 3 → the other members; each level joined to
   the one above by a line, cards a step smaller at each level. Fewer orange marks in the trees (no bar under each card). ===== */
.st-tree.st-notitle { padding-top: clamp(40px, 3.6vw, 56px); }
.st-tree.st-notitle::before { height: clamp(40px, 3.6vw, 56px); }
.st-tree.st-n4 .st-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1160px; }
.st-tree.st-n4 .st-cards::before { content: ""; position: absolute; top: 0; height: 30px; right: 12.5%; left: 12.5%; border: 2px solid rgba(14, 91, 82, .3); border-bottom: 0; border-radius: 14px 14px 0 0; }
.st-tree.st-n4 .st-m::before { content: ""; position: absolute; top: -30px; right: 50%; width: 2px; height: 30px; background: rgba(14, 91, 82, .3); transform: translateX(50%); }
.st-tree.st-n4 .st-m { position: relative; overflow: visible; }
.st-tree .st-m p::after { display: none; }               /* trees: no orange bar under each card */
/* level sizes: level 2 photos largest, then level 3, then the members */
.st-tree.st-n4 .st-m .ph { width: clamp(112px, 9vw, 132px); }
.st-tree.st-n3 .st-m .ph { width: clamp(100px, 8vw, 118px); }
.st-tree.st-n4 .st-m h4 { font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
/* the other members: every card shown, rows centred (no lone card pushed to a side) */
.st-flow .st-cards { display: flex; flex-wrap: wrap; justify-content: center; }
.st-flow .st-m { flex: 0 1 calc(25% - 18px); }
.st-flow .st-m .ph { width: clamp(92px, 7.4vw, 108px); }
@media (max-width: 1099px) { .st-flow .st-m { flex-basis: calc(33.33% - 16px); } .st-tree.st-n4 .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-tree.st-n4 .st-cards::before, .st-tree.st-n4 .st-m::before { display: none; } .st-tree.st-n4 .st-cards { padding-top: 0; } }
@media (max-width: 760px) { .st-flow .st-m { flex-basis: calc(50% - 10px); } }
.st-head.has-tree .tx::after { display: none; }   /* trees: the line itself continues from the head, no orange bar on it */
@media (max-width: 760px) { .st-tree.st-n3 .st-cards { grid-template-columns: minmax(0, 300px); justify-content: center; } }   /* phones: never 2 + 1 */

/* 22 Nov fix (owner: «the top tree of the board has something wrong»): the bracket ends were placed at 12.5% / 87.5%
   (and 1/6 for three cards) but the cards have gaps, so the true card centres sat ~9px further out and every end card got
   two short lines. Now one horizontal line runs exactly between the first and last card centres, and every card has
   ONE drop line at its own centre. */
.st-tree .st-cards { --g: clamp(14px, 1.6vw, 24px); gap: var(--g); }
.st-tree.st-n4 .st-cards::before, .st-tree.st-n3 .st-cards::before { height: 0; border: 0; border-radius: 0; border-top: 2px solid rgba(14, 91, 82, .3); top: 0; }
.st-tree.st-n4 .st-cards::before { right: calc((100% - 3 * var(--g)) / 8); left: calc((100% - 3 * var(--g)) / 8); }
.st-tree.st-n3 .st-cards::before { right: calc((100% - 2 * var(--g)) / 6); left: calc((100% - 2 * var(--g)) / 6); }
.st-tree.st-n3 .st-cards::after { display: none; }
.st-tree.st-n3 .st-m, .st-tree.st-n1 .st-m { position: relative; overflow: visible; }
.st-tree.st-n3 .st-m::before, .st-tree.st-n4 .st-m::before { content: ""; position: absolute; top: -30px; right: 50%; width: 2px; height: 30px; background: rgba(14, 91, 82, .3); transform: translateX(50%); }
@media (max-width: 760px) { .st-tree.st-n3 .st-m::before { display: none; } }
/* 22 Nov (owner): in the trees the card no longer rises on hover — its connector line moved with it and came apart.
   Hover now only deepens the shadow and draws a thin green edge; the line stays joined. */
@media (hover: hover) {
  .st-tree .st-m:hover { transform: none; box-shadow: 0 16px 34px -14px rgba(14, 91, 82, .28), 0 0 0 1.5px rgba(14, 91, 82, .22); }
}
/* 22 Nov (owner: the tree corners were too sharp): the line turns down into the first and last card with a round
   corner (a bracket with 16px radius, still ending exactly on their centres); the middle cards keep their own drop */
.st-tree.st-n4 .st-cards::before, .st-tree.st-n3 .st-cards::before { height: 30px; border: 2px solid rgba(14, 91, 82, .3); border-bottom: 0; border-radius: 18px 18px 0 0; }
.st-tree.st-n4 .st-cards::before { right: calc((100% - 3 * var(--g)) / 8 - 1px); left: calc((100% - 3 * var(--g)) / 8 - 1px); }
.st-tree.st-n3 .st-cards::before { right: calc((100% - 2 * var(--g)) / 6 - 1px); left: calc((100% - 2 * var(--g)) / 6 - 1px); }
.st-tree.st-n4 .st-m:first-child::before, .st-tree.st-n4 .st-m:last-child::before,
.st-tree.st-n3 .st-m:first-child::before, .st-tree.st-n3 .st-m:last-child::before { display: none; }

/* 22 Nov (owner: the glass looked bad): the selection is the original solid dark green again — no blur, no sheen, no
   bright edge — and it keeps only the smooth slide to the chosen body */
.st-pill { background: var(--green-900); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 10px 22px -10px rgba(14, 91, 82, .5); }
.st-pill::after { background: var(--green-900); }
/* 22 Nov (owner: the switcher felt pixelated): the little arrow is a clean triangle (clip-path) instead of a rotated
   square, the pill sits on whole pixels (structure.js), and its shadow is softer so the edges read crisp */
.st-pill::after { width: 20px; height: 10px; bottom: -10px; border-radius: 0; transform: translateX(50%); clip-path: polygon(calc(100% - 0) 0, 0% 0, 50% 100%); }
.st-pill { box-shadow: 0 8px 18px -10px rgba(14, 91, 82, .45); }
.st-tab .tx, .st-tab .ic { -webkit-font-smoothing: antialiased; }
/* 22 Nov: a two-card level (board level 2) — same rounded bracket, ends on the two card centres */
.st-tree.st-n2 .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; }
.st-tree.st-n2 .st-cards::before { content: ""; position: absolute; top: 0; height: 30px; right: calc((100% - var(--g)) / 4 - 1px); left: calc((100% - var(--g)) / 4 - 1px);
  border: 2px solid rgba(14, 91, 82, .3); border-bottom: 0; border-radius: 18px 18px 0 0; }
.st-tree.st-n2 .st-m { position: relative; overflow: visible; }
.st-tree.st-n2 .st-m .ph { width: clamp(118px, 9.4vw, 138px); }
.st-tree.st-n2 .st-m h4 { font-size: clamp(1.08rem, 1.35vw, 1.25rem); }
@media (max-width: 480px) { .st-tree.st-n2 .st-m .ph { width: 92px; } }
@media (max-width: 760px) { .st-tree.st-n2 .st-cards::before { display: none; } }

/* ===== 22 Nov (owner's chart): the secretariat's units and six general departments under the head and the deputy.
   The trunk continues from the deputy's card between the two unit boxes (offices on one side, audit / legal / risk on
   the other, each joined to it), down to «الإدارات العامة» and the six department cards. ===== */
.st-org { position: relative; }
.st-units { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 120px; max-width: 900px; margin: 0 auto; padding: 44px 0 0; }
.st-units::before { content: ""; position: absolute; top: 0; bottom: -44px; right: 50%; width: 2px; background: rgba(14, 91, 82, .3); transform: translateX(50%); }
.st-unit { position: relative; list-style: none; margin: 0; padding: 0; align-self: center; background: #fff; border-radius: 18px;
  box-shadow: 0 10px 28px rgba(14, 91, 82, .07), 0 0 0 1px rgba(14, 91, 82, .08); }
.st-unit::before { content: ""; position: absolute; top: 50%; width: 60px; height: 2px; background: rgba(14, 91, 82, .3); }
.st-unit:first-child::before { right: -60px; }                /* RTL: the first box sits on the right, its link goes left to the trunk */
.st-unit:last-child::before { left: -60px; }
.st-unit li { padding: 14px 22px; font-size: 15.5px; font-weight: 700; line-height: 1.6; color: var(--green-900); }
.st-unit li + li { border-top: 1px solid rgba(14, 91, 82, .1); }
.st-org > .st-gt { position: relative; margin-top: 44px; padding-top: 0; }
.st-depts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); }
.st-dept { overflow: hidden; background: #fff; border-radius: 20px; box-shadow: 0 10px 28px rgba(14, 91, 82, .07), 0 0 0 1px rgba(14, 91, 82, .08); }
.st-dept h4 { margin: 0; padding: 18px 22px; min-height: 92px; display: flex; align-items: center; background: #EEF6F3; font-size: clamp(1rem, 1.2vw, 1.1rem); font-weight: 800; line-height: 1.6; color: var(--green-900); }
.st-dept ul { list-style: none; margin: 0; padding: 6px 0 10px; }
.st-dept li { position: relative; padding: 11px 22px 11px 22px; padding-inline-start: 40px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.st-dept li::before { content: ""; position: absolute; inset-inline-start: 22px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 2px; border: 1.5px solid rgba(14, 91, 82, .45); }
.st-dept li + li { border-top: 1px solid rgba(14, 91, 82, .07); }
@media (max-width: 1099px) { .st-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .st-units { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 28px; }
  .st-units::before { display: none; }
  .st-unit::before { display: none; }
  .st-org > .st-gt { margin-top: 36px; }
  .st-depts { grid-template-columns: minmax(0, 1fr); }
  .st-dept h4 { min-height: 0; }
}

/* ===== 22 Nov (owner chose «د١»): the six general departments as a TREE, like her chart — one row joined to the trunk
   by a rounded branch, each department's own departments hanging beneath it on a line. (Overrides the card version.) ===== */
.st-units::before { bottom: -48px; }
.st-depts { --g: 14px; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--g); margin-top: 48px; padding-top: 30px; align-items: start; }
.st-depts::before { content: ""; position: absolute; top: 0; height: 30px; right: calc((100% - 5 * var(--g)) / 12 - 1px); left: calc((100% - 5 * var(--g)) / 12 - 1px);
  border: 2px solid rgba(14, 91, 82, .3); border-bottom: 0; border-radius: 18px 18px 0 0; }
.st-dept { position: relative; overflow: visible; background: none; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; align-items: stretch; }
.st-dept::before { content: ""; position: absolute; top: -30px; right: 50%; width: 2px; height: 30px; background: rgba(14, 91, 82, .3); transform: translateX(50%); }
.st-dept:first-child::before, .st-dept:last-child::before { display: none; }
.st-dept h4 { justify-content: center; text-align: center; min-height: 96px; padding: 14px 12px; border-radius: 16px; background: var(--green-900); color: #fff; font-size: clamp(.92rem, 1.05vw, 1rem); line-height: 1.6; }
.st-dept ul { padding: 0; }
.st-dept li { position: relative; margin-top: 18px; padding: 11px 10px; padding-inline-start: 10px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--green-900); font-weight: 600;
  background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(14, 91, 82, .14), 0 6px 16px rgba(14, 91, 82, .05); }
.st-dept li + li { border-top: 0; }
.st-dept li::before { inset-inline-start: auto; right: 50%; top: -18px; width: 2px; height: 18px; margin: 0; border: 0; border-radius: 0; background: rgba(14, 91, 82, .3); transform: translateX(50%); }
@media (max-width: 1199px) {
  .st-depts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; padding-top: 0; }
  .st-depts::before, .st-dept::before { display: none; }
  .st-units::before { bottom: -48px; }
}
@media (max-width: 760px) { .st-depts { grid-template-columns: minmax(0, 1fr); margin-top: 32px; } .st-dept h4 { min-height: 0; } }
.st-dept li::before { background: rgba(14, 91, 82, .38); z-index: 1; }
.st-dept h4 { position: relative; }

/* 22 Nov — a member added in the dashboard without a photo: a quiet person mark in the same round frame */
.st-m .ph-none { display: grid; place-items: center; color: #9DBFB6; background: #F2F8F6; }
.st-m .ph-none svg { width: 56%; height: 56%; }
.st-head .ph-none { display: grid; place-items: center; width: clamp(150px, 12vw, 184px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; border: 6px solid #fff; color: #9DBFB6; background: #F2F8F6; box-shadow: 0 0 0 2px #DCEEE8; }
.st-head .ph-none svg { width: 56%; height: 56%; }
