/* Basira v3 — public pages: header extras and footer (same as the home page), plus shared page parts. */
.bar nav a.cta{color:var(--on-ink);background:var(--ink);padding:7px 14px;border-radius:3px;box-shadow:none}
.bar nav a[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--red)}
.bar nav a.cta[aria-current="page"]{background:var(--red)}
.bar .signin{font-size:14px;color:var(--muted);text-decoration:none;margin-inline-start:6px;white-space:nowrap}
.phonemenu{display:none}
.bar nav a{white-space:nowrap}
@media (max-width:980px){.bar nav,.bar .signin{display:none}.phonemenu{display:inline-flex;margin-inline-start:auto}}
.pm-top{display:flex;justify-content:space-between;align-items:center}
.pm-list{display:flex;flex-direction:column;gap:4px;font-size:18px}
.pm-list a{padding:10px 0;border-bottom:1px solid var(--rule);text-decoration:none}
.pm-list a[aria-current="page"]{color:var(--red)}
.foot{max-width:1240px;margin:48px auto 0;border-top:3px solid var(--ink);padding-top:22px;display:grid;grid-template-columns:1.5fr repeat(3,minmax(0,1fr));gap:24px}
.foot b{font-size:13px;font-family:var(--mono);font-weight:500;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:8px}
.foot a{display:block;font-size:14.5px;text-decoration:none;padding:3px 0}
.foot a:hover{text-decoration:underline}
.foot .brand p{font-size:14px;color:var(--t1);margin:8px 0 0;line-height:1.5}
.foot .fsoc{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:10px}
.foot .fsoc .soc{display:inline-flex;align-items:center;gap:6px}
.foot .fsoc svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
.foot .legal{grid-column:1/-1;margin:6px 0 0;padding:12px 0 26px;border-top:1px solid var(--rule);font-family:var(--mono);font-size:12.5px;letter-spacing:.02em;color:var(--muted)}
.v3-ban .ban-ar{font-family:var(--naskh);display:inline-block}
/* the calm pop-up (announcements, consultants): a card in the corner, never blocking the page */
.pubpop{position:fixed;inset-inline-end:18px;bottom:18px;z-index:40;width:min(380px,calc(100vw - 32px));background:var(--sheet);color:var(--ink);border:1px solid var(--rule);border-top:3px solid var(--red);border-radius:6px;box-shadow:var(--shadow);opacity:0;transform:translateY(12px);transition:opacity .25s,transform .25s}
.pubpop.on{opacity:1;transform:none}
.pubpop .pp-in{padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.pubpop b{font-size:17px;line-height:1.3}
.pubpop p{margin:0;font-size:15px;line-height:1.5;color:var(--t1)}
.pubpop p.ar{font-family:var(--naskh);font-size:16.5px;text-align:right}
.pubpop .pp-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
@media (max-width:520px){.pubpop{inset-inline:16px;bottom:12px;width:auto}}
@media (prefers-reduced-motion:reduce){.pubpop{transition:none}}
@media (max-width:760px){.foot{grid-template-columns:repeat(2,minmax(0,1fr))}.foot .brand{grid-column:1/-1}}
/* a coloured page hero for public pages */
.phero{position:relative;overflow:hidden;background:var(--band);color:var(--on-band);border-radius:6px;padding:34px 32px 30px;display:flex;flex-direction:column;gap:10px;
  background-image:radial-gradient(120% 140% at 100% 0%,var(--band2) 0%,transparent 55%)}
.phero .label{color:var(--on-band);opacity:.75}
.phero h1{margin:0;font-family:var(--sans);font-weight:700;font-size:clamp(30px,4.4vw,46px);line-height:1.08;text-wrap:balance;color:var(--on-band)}
.phero .arh{font-family:var(--deco);font-size:clamp(24px,3.4vw,34px);direction:rtl;text-align:right;color:#F2A49B;line-height:1.2}
.phero p{margin:0;max-width:62ch;font-size:17px;line-height:1.55;opacity:.9}
.phero .motif{position:absolute;right:-30px;top:-10px;width:420px;max-width:70%;opacity:.13;pointer-events:none;color:var(--on-band)}
.v3-bans{max-width:1240px;margin:14px auto 0;display:flex;flex-direction:column;gap:8px}
.v3-ban{display:flex;gap:12px;align-items:flex-start;padding:10px 14px;border-radius:4px;border-inline-start:4px solid var(--blue);background:var(--sky);color:var(--ink)}
.v3-ban.urgent{border-inline-start-color:var(--red);background:var(--rose)}
.v3-ban svg{flex:none;width:19px;height:19px;margin-top:2px;fill:none;stroke:var(--blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v3-ban.urgent svg{stroke:var(--red)}
.v3-ban p{margin:0;flex:1;min-width:0;font-size:15px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-line}
.v3-ban p a{font-weight:600;white-space:nowrap}
.v3-ban .x{flex:none;background:none;border:0;color:var(--t1);cursor:pointer;font:inherit;font-size:13.5px;padding:2px 4px;text-decoration:underline;text-underline-offset:3px;min-height:28px}
.v3-ban .x:hover{color:var(--ink)}

/* v5h: the phone menu, the announcement bar and the corner pop-up in the house look (icon tiles, colour, rounded) */
.pm-list{gap:6px;font-size:17px}
.pm-list a{display:flex;align-items:center;gap:12px;padding:8px 10px;border:1px solid transparent;border-radius:12px;color:var(--ink)}
.pm-list a:hover{background:var(--c-soft,var(--panel))}
.pm-list a[aria-current="page"]{color:var(--c,var(--red));background:var(--c-soft,var(--panel));border-color:color-mix(in srgb,var(--c,var(--red)) 30%,transparent);font-weight:600}
.pm-list a[aria-current="page"] .ic-tile{background:var(--c,var(--red));color:var(--bg)}
.pm-top b{font-family:var(--sans)}
.v3-bans .v3-ban{border-radius:12px;align-items:center;padding:10px 14px 10px 12px}
.v3-bans .v3-ban>svg{box-sizing:border-box;width:32px;height:32px;padding:6px;margin:0;border-radius:9px;background:color-mix(in srgb,var(--blue) 14%,transparent)}
.v3-bans .v3-ban.urgent>svg{background:color-mix(in srgb,var(--red) 14%,transparent)}
.pubpop.pp5{border:1px solid color-mix(in srgb,var(--c) 25%,var(--rule));border-top:5px solid var(--c);border-radius:16px;background:linear-gradient(160deg,var(--c-soft) 0,var(--sheet) 55%)}
.pp5 .pp-in{padding:18px 20px 18px;gap:10px}
.pp5 .pp-h{display:flex;align-items:center;gap:12px}
.pp5 .pp-h b{margin:0}
.pp5 .pp-k{font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--c)}
.pp5 .pp-acts .btn{display:inline-flex;align-items:center;gap:7px;border-radius:10px}
.pp5 .pp-acts .btn:not(.quiet){background:var(--c);border-color:var(--c);color:var(--bg)}
.pm-list .c-pk{--c:var(--pk);--c-bg:var(--pk-bg);--c-soft:color-mix(in srgb,var(--pk-bg) 45%,var(--card))}

/* Nov 2026: Arabic for the main public pages (assets/js/v3-ar.js). The عربي / English button in the header, the first-visit
   pop-up, and what changes when the page is in Arabic: right to left, Arabic fonts, and the English-only extras hidden. */
html.ar-wait #app,html.ar-wait main,html.ar-wait #pubfoot,html.ar-wait #pub nav{visibility:hidden}
.lang-b{display:inline-flex;align-items:center;gap:6px;margin-inline-start:10px;padding:6px 12px;border-radius:99px;border:1.5px solid var(--ink);background:var(--card);color:var(--ink);font:600 14px/1 var(--sans);cursor:pointer;white-space:nowrap}
.lang-b svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lang-b span[lang="ar"]{font-family:"IBM Plex Sans Arabic","Noto Naskh Arabic",var(--sans);font-size:15px}
.lang-b:hover{background:var(--ink);color:var(--on-ink,#fff)}
.lang-b:focus-visible{outline:2px solid var(--red);outline-offset:2px}
@media (max-width:980px){.lang-b{margin-inline-start:auto}.lang-b+.phonemenu,.lang-b~.phonemenu{margin-inline-start:8px}}
.arpop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(12,27,48,.45);opacity:0;transition:opacity .2s}
.arpop.on{opacity:1}
.arpop-in{width:min(440px,100%);background:var(--card,#fff);color:var(--ink);border-radius:18px;padding:26px 24px 20px;text-align:center;box-shadow:0 30px 60px -20px rgba(0,0,0,.45);border-top:6px solid var(--red);display:flex;flex-direction:column;align-items:center;gap:8px;transform:translateY(8px);transition:transform .2s}
.arpop.on .arpop-in{transform:none}
.arpop-ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--band,#0F2742);color:#F7F4EE;transform:rotate(-5deg);margin-bottom:4px}
.arpop-ic svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.arpop-ar{margin:0;font:700 23px/1.5 "IBM Plex Sans Arabic","Noto Naskh Arabic",sans-serif}
.arpop-en{margin:0;font-size:15.5px;color:var(--t1,var(--muted))}
.arpop-b{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:10px;width:100%}
.arpop-b .btn{flex:1 1 160px;justify-content:center;border-radius:10px;padding:11px 16px;font-size:16px}
.arpop-b .btn[lang="ar"]{font-family:"IBM Plex Sans Arabic","Noto Naskh Arabic",sans-serif;font-weight:700}
.arpop-s{margin:6px 0 0;font-size:12.5px;color:var(--muted);line-height:1.6}
.arpop-s span[lang="ar"]{display:block;font-family:"IBM Plex Sans Arabic",sans-serif}

/* the page in Arabic */
html.ar{--mono:"IBM Plex Sans Arabic","IBM Plex Mono",monospace;--sans:"IBM Plex Sans Arabic","IBM Plex Sans",system-ui,sans-serif;--serif:"Noto Naskh Arabic","Newsreader",Georgia,serif}
html.ar body{font-family:var(--sans)}
html.ar .note .en,html.ar .arh,html.ar .ap-arl,html.ar .arn{display:none}
html.ar .label,html.ar .oc-k,html.ar .pq-tk-k,html.ar .et{letter-spacing:0;text-transform:none;font-family:var(--sans)}
html.ar .hero2 h1,html.ar h1,html.ar h2,html.ar h3{letter-spacing:0}
html.ar .hero2 .arbig small{direction:rtl}
html.ar input[type="email"],html.ar input[type="tel"],html.ar .ap-tel,html.ar .ap-dial{direction:ltr}
html.ar input[type="email"],html.ar input[type="tel"]{text-align:right}
html.ar .skiplink:not(:focus),html.ar .hp{position:absolute!important;left:auto!important;right:auto!important;inset-inline-start:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html.ar body{overflow-x:clip}
/* the carousels scroll by scrollLeft, which runs backwards in right-to-left pages: keep their tracks left to right */
html.ar .tmc-track{direction:ltr}
html.ar .tmc-track>*{direction:rtl}
html.ar .ap-combo-list li .ar{display:none}
html.ar .bic-arrow-right,html.ar .bic-arrow-left,html.ar .bic-chevron-right,html.ar .bic-chevron-left{transform:scaleX(-1)}
html.ar .hero2 .arbig small{display:none}
html.ar .pc-ar,html.ar .ap-lv-top .nm .ar,html.ar .ap-sum .ar[lang="ar"]{display:none}
.bar .mk .w{white-space:nowrap}
@media (max-width:420px){.bar{gap:10px}.lang-b{padding:6px 10px;font-size:13px}.lang-b svg{display:none}}
html.ar body *{letter-spacing:0!important}
html.ar .ar-dup{display:none!important}
/* step arrows drawn with borders point right; in Arabic they sit on the left and point left */
html.ar .ap-steps li:not(:last-child)::after,html.ar .ap-prog li:not(:last-child)::after,html.ar .rq1-ladder li:not(:last-child)::after{transform:translateY(-50%) rotate(225deg)}
html.ar .lv-steps li:not(:last-child)::after{right:auto;left:-14px;transform:rotate(225deg)}
html.ar .lv-flow li:not(:last-child)::after{right:auto;left:-10px;transform:rotate(225deg)}
html.ar .ap-steps .n::before{content:"الخطوة "}
@media (max-width:760px){html.ar .lv-steps li:not(:last-child)::after{left:auto;right:38px;transform:rotate(135deg)}}
@media (max-width:900px){html.ar .ap-steps li:not(:last-child)::after{transform:rotate(135deg)}}
/* Nov 2026 rebuild: the footer's three columns each open with a small coloured icon */
.foot .fcol>b{display:flex;align-items:center;gap:7px}
.foot .fcol>b i,.foot .fcol>b svg{color:var(--c,var(--muted));flex:none}
/* Nov 2026 (site review): one language per heading. In English the Arabic calligraphy line under a section title is
   dropped; it stays in the page's hero band, where it belongs. The red margin notes stay as they are. */
html:not(.ar) .arh:not(.phero .arh):not(.hh .arh):not(.g2-hero .arh):not(.shead .arh){display:none}
/* bigger tap targets on phones */
@media (max-width:620px){.ws-ct h4 a{display:inline-block;padding:6px 0}.foot a{display:inline-block;padding:4px 0}}

/* Nov 2026 (site review): shorter pages on phones without losing anything. Groups of cards that used to stack one under
   another become a row you swipe sideways (each card about 85% of the screen, so the next one peeks in). */
@media (max-width:760px){
  .pc-grid,.ap-levels,.cu-strip,.inc-xl{position:relative;display:grid!important;grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:86%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding-bottom:8px;gap:12px!important;scrollbar-width:thin}
  .pc-grid>*,.ap-levels>*,.cu-strip>*,.inc-xl>*{scroll-snap-align:start;max-width:none!important}
  .cu-strip{grid-auto-columns:46%}
  .inc-l,.hm-get{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .inc-l li,.hm-get li{padding:10px!important;gap:6px!important}
  .inc-l li span:not(.ic-tile),.hm-get li>span:last-child>span{font-size:12.5px!important;line-height:1.4!important}
  .inc-l li b,.hm-get b{font-size:13.5px!important}
  /* the footer: two columns of links instead of five stacked lists */
  .foot{grid-template-columns:1fr 1fr!important;gap:14px 16px!important}
  .foot .brand{grid-column:1/-1}
  .foot a{font-size:13.5px;padding:4px 0}
  .foot .legal{grid-column:1/-1}
}
@media (max-width:760px){
  .lv-trio,.ab-std .pv-grid,.ab-team .pv-grid,.ab-teach .pv-grid,.nnl.nnl2{position:relative;display:grid!important;grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:86%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding-bottom:8px;gap:12px!important}
  .lv-trio>*,.ab-std .pv-grid>*,.ab-team .pv-grid>*,.ab-teach .pv-grid>*,.nnl.nnl2>*{scroll-snap-align:start;min-width:0}
  .nnl.nnl2>.col{display:flex;flex-direction:column;gap:10px}
  /* one language at a time: the Arabic line under a workshop's name only shows in Arabic */
  html:not(.ar) .ws-ar{display:none}
}
@media (max-width:760px){
  .ws-grid.ws-flow{position:relative;display:grid!important;grid-template-columns:none!important;grid-auto-flow:column;grid-template-rows:auto auto;grid-auto-columns:82%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding-bottom:8px;gap:12px!important}
  .ws-grid.ws-flow>*{scroll-snap-align:start;min-width:0}
  /* the apply banner and the home banner on a phone: text first, drawings off, steps as one line each */
  .ap-hero .ap-art{display:none}
  .ap-hero{padding:22px 18px!important}
  .hm-steps li>span:last-child>span{display:none}
  .hm-steps li{align-items:center!important}
  .news{padding:18px!important}
  .news p{font-size:14px;margin:6px 0}
}
@media (max-width:760px){
  /* footer on a phone: each group's links wrap as one short paragraph */
  .foot>div:not(.brand){display:flex;flex-wrap:wrap;gap:2px 14px;align-content:flex-start}
  .foot>div:not(.brand)>b{flex-basis:100%;margin-bottom:2px}
  .foot>div:not(.brand)>a{display:inline-block;padding:5px 0;font-size:13.5px}
  .foot .brand p{font-size:13px}
  /* on Apply, what a place includes is a quick list: names and icons (the full detail is on Programmes) */
  .ap-sec .inc-l li span:not(.ic-tile){display:none}
  .ap-sec .inc-l li{flex-direction:row!important;align-items:center}
  .ap-sec .inc-l li>div>span{display:none}
}
@media (max-width:760px){
  .inc-l{grid-template-columns:minmax(0,1fr)!important}
  .inc-l li{flex-direction:row!important;align-items:flex-start}
  .hm-get li>span:last-child>span{display:none}
  .hm-get li{flex-direction:row!important;align-items:center}
}

/* Nov 2026: the same sideways rows on every public page (apply, workshops, one workshop, curriculum, consultants,
   join, outputs, datasets, verify). Steps lose their arrows here: the cards are numbered and the next one peeks in. */
@media (max-width:760px){
  .ap-mini,.ap-steps,.ws-steps,.ws-path,.fr3,.vf-see,.csc-grid,.pv-grid.facts3,.pv-grid.g2,.pv-grid.keep,.dc-rules,.dc-grid{display:grid!important;grid-template-columns:none!important;grid-template-rows:none!important;grid-auto-flow:column;grid-auto-columns:86%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding-bottom:8px;gap:12px!important;flex-direction:row!important;position:relative}
  .ap-mini>*,.ap-steps>*,.ws-steps>*,.ws-path>*,.fr3>*,.vf-see>*,.csc-grid>*,.pv-grid.facts3>*,.pv-grid.g2>*,.pv-grid.keep>*,.dc-rules>*,.dc-grid>*{scroll-snap-align:start;min-width:0;max-width:none!important;grid-column:auto!important;grid-row:auto!important}
  .ap-mini{grid-auto-columns:72%;width:100%;max-width:100%;contain:inline-size}
  .ap-mini li.empty{grid-column:auto!important}
  .ap-steps li:not(:last-child)::after,.ws-path>li::before{content:none!important}
  .ws-path>li{padding-bottom:0!important;align-self:start}
  .dc-grid{grid-auto-columns:84%}
  /* an odd last card is stretched across the grid on bigger screens; in a sideways row it is just the last card */
  html body :is(.team-row,.pc-grid,.ap-levels,.cu-strip,.inc-xl,.lv-trio,.ab-std .pv-grid,.ab-team .pv-grid,.ab-teach .pv-grid,.nnl.nnl2,.ap-mini,.ap-steps,.ws-steps,.ws-path,.fr3,.vf-see,.csc-grid,.pv-grid.facts3,.pv-grid.g2,.pv-grid.keep,.dc-rules,.dc-grid)>*:nth-child(n):nth-child(n):nth-child(n):nth-child(n){grid-column:auto!important;grid-row:auto!important}
  html body .pv-grid>.pv-card:last-child:nth-child(odd){grid-template-columns:minmax(0,1fr)!important;column-gap:0!important}
  html body .pv-grid>.pv-card:last-child:nth-child(odd)>*{grid-column:auto!important}
}
/* Nov 2026 rebuild: page.html?p=policies, the one page that lists the policies */
.px-md .pol-list,.pol-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.pol-list a{display:flex;align-items:flex-start;gap:12px;height:100%;box-sizing:border-box;padding:16px;border-radius:var(--vis-radius,14px);background:var(--c-soft);border:1px solid color-mix(in srgb,var(--c) 22%,transparent);border-top:4px solid var(--c);text-decoration:none;color:var(--ink);transition:transform .15s,box-shadow .15s}
.pol-list a:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.pol-t{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.pol-t b{font:700 17px/1.25 var(--sans);color:var(--c)}
.pol-t span{font:400 14.5px/1.45 var(--sans);color:var(--t1)}
.px-md .pol-list li{margin:0;padding:0}.px-md .pol-list li::before{content:none}
.pol-go{color:var(--c);margin-top:2px}
html[dir="rtl"] .pol-go svg{transform:scaleX(-1)}
.pol-q{display:flex;align-items:center;gap:8px;margin:16px 0 0;font:400 15px/1.45 var(--sans);color:var(--t1)}
/* Nov 2026 rebuild: a facts line in a page hero (workshops, calendar): small chips on the dark band */
.ph-facts{list-style:none;margin:6px 0 2px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ph-facts li{display:inline-flex;align-items:center;gap:7px;padding:5px 12px 5px 5px;border-radius:99px;font:500 14px/1.25 var(--sans);color:var(--on-band);
  background:color-mix(in srgb,#F7F4EE 10%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,#F7F4EE 22%,transparent)}
.ph-facts .ph-fi{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;flex:none;color:var(--band,#0C2B4B);background:var(--c-on-dark,#E2C27F)}
.ph-facts .ph-fi svg,.ph-facts .ph-fi i{color:var(--band,#0C2B4B)}
@media (max-width:620px){.ph-facts li{font-size:13px}}
/* Nov 2026 rebuild: About's one contact line */
.ab-contact{display:flex;align-items:center;gap:12px;margin:0;padding:16px 18px;border-radius:var(--vis-radius,14px);background:var(--c-soft);border-inline-start:4px solid var(--c);font:400 16.5px/1.5 var(--sans);color:var(--ink)}
.ab-contact .ic-tile{flex:none}
.ab-contact a.mail{font-weight:600;word-break:break-all}
.jn-fel{display:flex;gap:12px;align-items:center;margin:4px 0 0;font-size:15px;line-height:1.5;color:var(--t1)}
.jn-fel a{font-weight:600}
