/* Al Basira v5h: one hero layout for the signed-in and staff pages (the "house look").
   Loaded only on the pages that use it. New classes only (hh-), so nothing else on a page changes.
   A hero is the navy band at the top of a page:
     <header class="(its own classes) hh c-xx">
       [faint motif svg, absolutely placed]
       <div class="hh-k"><span class="ic-tile lg">icon</span><span class="label">kicker</span></div>
       <h1>title</h1>
       <div class="hh-ar" lang="ar">Arabic title</div>
       ...everything else (lede, fact chips, buttons, a progress rail)...
       <div class="hh-art">small coloured drawing</div>
     </header>
   Wide screens: the Arabic title sits on the right of the band level with the title, the drawing under it.
   Phones: the Arabic title goes under the title, right-aligned, as on programmes.html; the drawing hides.
   .hh-c on an inner wrapper lets its children join the layout (display:contents). */

:is(header,section,div).hh.hh.hh{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;
  column-gap:30px;row-gap:0;align-items:start;background-color:var(--band);color:var(--on-band);border:0;border-radius:16px;
  padding:28px 30px 26px;min-height:0}
.hh.hh.hh>*,.hh.hh.hh>.hh-c>*{grid-column:1;position:relative;z-index:1;min-width:0}
.hh.hh.hh .hh-c{display:contents}
.hh.hh.hh>.motif,.hh.hh.hh>.g2-art{position:absolute;z-index:0}
.hh.hh.hh>.hh-k,.hh.hh.hh>.hh-c>.hh-k{grid-row:1;display:flex;align-items:center;gap:14px;margin:0 0 12px}
.hh.hh .hh-k .label{margin:0;color:var(--on-band);opacity:.78}
.hh.hh.hh h1{grid-row:2;margin:0;color:var(--on-band)}
.hh.hh.hh .hh-ar{grid-column:2;grid-row:1 / 3;align-self:end;justify-self:end;position:relative;inset:auto;margin:0 0 2px;
  font-family:var(--deco);font-size:clamp(24px,3vw,32px);line-height:1.25;direction:rtl;text-align:right;color:#F2A49B;white-space:nowrap}
.hh.hh.hh>*:not(.hh-k):not(h1):not(.hh-ar):not(.hh-art):not(.hh-c):not(.motif):not(.g2-art),
.hh.hh.hh>.hh-c>*:not(.hh-k):not(h1):not(.hh-ar):not(.hh-art){margin-top:12px}
.hh.hh.hh .hh-art{grid-column:2;grid-row:3 / span 6;align-self:end;justify-self:end;width:180px;margin:14px 0 0;pointer-events:none}
.hh.hh.hh .hh-art svg{display:block;width:100%;height:auto}
.hh.hh.hh p{color:var(--on-band)}
.hh.hh.hh a:not(.btn){color:var(--on-band)}

/* the glass icon tile on navy, in the page's own colour (same recipe as v3-vis.css uses for .lhero/.phero) */
.hh .hh-k .ic-tile,.hh .hh-k .ic-tile.solid{width:52px;height:52px;border-radius:15px;flex:none;
  background:color-mix(in srgb,var(--c-on-dark,#F7F4EE) 16%,rgba(255,255,255,.06));color:var(--c-on-dark,var(--on-band,#F7F4EE));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c-on-dark,#F7F4EE) 38%,transparent)}
.hh .hh-k .ic-tile svg{width:26px;height:26px}
.hh.c-ink,.hh:not([class*="c-"]){--c-on-dark:#F7F4EE}

/* the drawing: fixed light colours, because the band is navy in both themes */
.hh-art .f-cream{fill:#F7F4EE}.hh-art .f-teal{fill:#86D0D8}.hh-art .f-gold{fill:#E2C27F}.hh-art .f-pink{fill:#F29AC0}
.hh-art .f-green{fill:#7FCBA6}.hh-art .f-sky{fill:#8DB6EA}.hh-art .f-red{fill:#E0685E}.hh-art .f-violet{fill:#BFB3F0}.hh-art .f-navy{fill:#0C2B4B}
.hh-art .f-gpale{fill:#CDEBD9}.hh-art .f-ypale{fill:#F4E3B5}.hh-art .f-ppale{fill:#F6CFD9}.hh-art .f-spale{fill:#D6E6F8}
.hh-art .s-navy{fill:none;stroke:#0C2B4B;stroke-linecap:round;stroke-linejoin:round}
.hh-art .s-cream{fill:none;stroke:#F7F4EE;stroke-linecap:round;stroke-linejoin:round}
.hh-art .s-soft{fill:none;stroke:#0C2B4B;stroke-linecap:round;opacity:.28}
.hh-art .s-gold{fill:none;stroke:#E2C27F;stroke-linecap:round;stroke-linejoin:round}

/* fact chips on the band (same look as Logbook's) */
.hh-facts{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.hh-facts li{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;line-height:1.3;padding:5px 12px 5px 10px;border-radius:99px;
  background:color-mix(in srgb,var(--on-band) 10%,transparent);border:1px solid color-mix(in srgb,var(--on-band) 14%,transparent);color:var(--on-band)}
.hh-facts li:nth-child(4n+1) .ic{color:#7FCBA6}.hh-facts li:nth-child(4n+2) .ic{color:#86D0D8}
.hh-facts li:nth-child(4n+3) .ic{color:#F29AC0}.hh-facts li:nth-child(4n+4) .ic{color:#E2C27F}

@media (max-width:860px){
  .hh.hh.hh .hh-art{width:130px}
}
@media (max-width:620px){
  :is(header,section,div).hh.hh.hh{grid-template-columns:minmax(0,1fr);padding:22px 18px 20px}
  .hh.hh.hh .hh-ar{grid-column:1;grid-row:3;justify-self:stretch;margin:4px 0 0;white-space:normal}
  .hh.hh.hh .hh-art{display:none}
  .hh .hh-k .ic-tile,.hh .hh-k .ic-tile.solid{width:44px;height:44px;border-radius:13px}
  .hh .hh-k .ic-tile svg{width:22px;height:22px}
}
.hh .hh-k :is(.hb-ic,.g2-hic,.g1-ht,.on-dark){display:inline-flex;margin:0;flex:none}
.hh.hh.hh .hh-art>svg{position:static;inset:auto;transform:none;width:100%;height:auto;max-width:none;opacity:1}
.hh.hh.hh:has(.hh-art)>.motif{opacity:.08}
.hh.hh.hh :is(.pill,.tonight){justify-self:start;align-self:start}
/* chapter pages: the big chapter number stands in for the drawing */
.hh.hh.hh .hh-num{width:auto;align-self:end;margin-top:22px}
.hh.hh.hh .hh-num .big{display:block;font-family:var(--serif);font-weight:500;font-size:clamp(76px,8vw,108px);line-height:.8;text-align:right;color:var(--c-on-dark,var(--on-band));opacity:.9}
@media (max-width:620px){
  /* phones: the chapter number sits beside the kicker row instead of hiding */
  :is(header,section,div).hh.hh.hh:has(>.hh-num){grid-template-columns:minmax(0,1fr) auto}
  .hh.hh.hh>.hh-num{display:block;position:static;grid-column:2;grid-row:1 / 3;align-self:start;margin:0}
  .hh.hh.hh>.hh-num .big{font-size:64px}
  .hh.hh.hh:has(>.hh-num)>.hh-c>*:not(.hh-k):not(h1){grid-column:1 / -1}
}
/* something that runs the full width of the band under everything else (Today's chapter track) */
.hh.hh.hh>.hh-wide{grid-column:1 / -1;grid-row:20;margin-top:20px}
/* pills that sit on the band keep their colours but read as light chips */
.hh.hh.hh .vpill{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--on-band) 18%,transparent)}
/* visually hidden text inside a hero stays out of the layout */
.hh.hh.hh :is(.vh,.sr,.sr-only,.visually-hidden,.lv-sr){position:absolute!important;margin:0!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.hh.hh.hh .hh-lede{margin:12px 0 0;max-width:60ch;font-size:16.5px;line-height:1.5;opacity:.9}
.band.hh.hh.hh .hh-art{width:150px}
/* a navy band further down a page: the tile sits beside its kicker, as in the hero */
.hh-krow{display:flex;align-items:center;gap:14px;margin:0 0 10px;position:relative;z-index:1}
.hh-krow .g2-hic{margin:0}
.hh-krow .label{margin:0}
/* the welcome tour card: an icon tile beside its step label, rounded like the other cards */
.tbo-card .tbo-k{display:flex;align-items:center;gap:10px}
.tbo-card .tbo-k .label{margin:0}
.tbo-card .tbo-k .ic-tile{width:30px;height:30px;border-radius:9px;flex:none}
.tbo-card.tbo-card{border-radius:14px}
/* the staff preview bar: an icon tile, a violet wash like the other staff-only notes, and each "view as" in its programme's colour */
.v3-pv.v3-pv{border:1px solid color-mix(in srgb,var(--sp) 30%,transparent);border-radius:14px;background:var(--sp-soft);padding:10px 14px}
.v3-pv .pv-ic{width:32px;height:32px;border-radius:9px;flex:none}
.v3-pv .pv-sw button{display:inline-flex;align-items:center;gap:6px}
.v3-pv .pv-sw button .ic{color:var(--c)}
.v3-pv .pv-sw button[aria-checked="true"]{background:var(--c);border-color:var(--c);color:var(--bg)}
.v3-pv .pv-sw button[aria-checked="true"] .ic{color:inherit}
.v3-pv.v3-pv p{flex:1 1 200px}
/* v5l: staff view, model answers shown (staff and "View as" only; students never get these classes). Violet is the
   staff-preview colour, as in the staff bar above. */
.v3-pv.pv-model{border-color:color-mix(in srgb,var(--sp) 50%,transparent)}
.stv-tag{display:inline-flex;align-items:center;gap:5px;margin-inline-start:auto;padding:3px 9px;border-radius:999px;background:var(--sp-bg);color:var(--sp);font-family:var(--mono);font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
.stv-tag svg{width:12px;height:12px}
.gate.stv-gate{border-color:var(--sp)}
.stv-gate .vhead{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.stv-pq{display:flex;flex-direction:column;gap:10px}
.stv-pq+.stv-pq{border-top:1px dashed var(--rule);padding-top:14px}
.stv-n{font-family:var(--mono);letter-spacing:.04em;text-transform:uppercase;font-size:11.5px;color:var(--sp)}
.stv-opts{list-style:none;margin:0;padding:0}
.stv-opts .opt{cursor:default;grid-template-columns:30px minmax(0,1fr) auto}
.stv-opts .opt:not(.stv-ok){opacity:.72}
.stv-opts .stv-ok{border-color:var(--lv1);background:var(--lv1-soft);box-shadow:inset 0 0 0 1px var(--lv1)}
.stv-opts .stv-ok .l{background:var(--lv1);border-color:var(--lv1);color:var(--card)}
.stv-mk{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--lv1);white-space:nowrap}
.stv-mk svg{width:13px;height:13px;flex:none}
.model.stv-model{border-inline-start:3px solid var(--sp);background:var(--sp-soft)}
.stv-model .kind{color:var(--sp)}
.stv-q .qh{flex-wrap:wrap}
.stv-q .stv-tag{margin-inline-start:0;margin-inline-end:auto}
.stv-rub ul{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.stv-rub li{display:grid;grid-template-columns:16px minmax(0,1fr);gap:8px;align-items:start}
.stv-rub li>svg{width:14px;height:14px;color:var(--lv1);margin-top:5px}
.stv-fin{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-radius:10px;background:var(--sp-soft);border:1px solid color-mix(in srgb,var(--sp) 30%,transparent);color:var(--ink);font-size:14.5px;line-height:1.45;margin:0}
.stv-fin>svg,.stv-fin>.ic{color:var(--sp);flex:none;margin-top:2px}
.stv-checks{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.stv-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;font-weight:600}
.stv-h>svg,.stv-h>.ic{color:var(--sp);flex:none}
.stv-checks .rv{gap:8px}
.stv-checks .rq{margin:0;font-weight:600;font-size:15.5px}
.sk-yd.stv-yd{background:var(--sp-soft);border-color:color-mix(in srgb,var(--sp) 50%,transparent);margin-top:6px}
.stv-yd .k svg{color:var(--sp)}
.stv-fq{font-size:13.5px;color:var(--t1);line-height:1.4}
.stv-key .pwhy{margin:10px 0 0}
