/* Al Basira bundle, made by work/bundle/build.mjs from the files named below. Don't edit it: edit those files and run the bundler again. */
/* >>> assets/css/v3.css */
/* Basira v3 — shared design (tokens, shell, sheet, notes, figures, reader). Built from the approved previews. */
/* two Arabic faces, both self-hosted (OFL, see assets/fonts):
   Basira Hand = Scheherazade New (bold), for everything students read (red notes, glossary, plain lines);
   Basira Deco = Aref Ruqaa (bold), drawn 20% larger, for the logo and the big decorative Arabic titles */
@font-face{font-family:"Basira Hand";src:url("../fonts/BasiraHand-Bold.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;size-adjust:108%}   /* v5m: Scheherazade New cut to the characters we use (89 KB to 51 KB, same glyphs); the full font is ScheherazadeNew-700.woff2 */
@font-face{font-family:"Basira Deco";src:url("../fonts/BasiraDeco-Bold.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;size-adjust:120%}
/* v5m speed: hold the space for the parts the scripts draw (the public header, the portal header, the home page)
   so the page doesn't jump while they arrive. Each rule only applies while the box is still empty, so the finished
   page looks exactly the same. */
#pub:empty,#shell:empty,#hdr:empty{min-height:77px}
main#app:empty{min-height:100vh}
/* v5m speed: an icon placeholder (<i data-ic>) holds its size until v3-icons.js draws the icon, so the text beside it
   doesn't move (only while it is still empty) */
i[data-ic]:empty{display:inline-block;width:20px;height:20px;vertical-align:-.18em}
i[data-ic][data-size="10"]:empty{width:10px;height:10px}i[data-ic][data-size="12"]:empty{width:12px;height:12px}i[data-ic][data-size="13"]:empty{width:13px;height:13px}i[data-ic][data-size="14"]:empty{width:14px;height:14px}i[data-ic][data-size="15"]:empty{width:15px;height:15px}i[data-ic][data-size="16"]:empty{width:16px;height:16px}i[data-ic][data-size="17"]:empty{width:17px;height:17px}i[data-ic][data-size="18"]:empty{width:18px;height:18px}i[data-ic][data-size="21"]:empty{width:21px;height:21px}i[data-ic][data-size="22"]:empty{width:22px;height:22px}i[data-ic][data-size="24"]:empty{width:24px;height:24px}i[data-ic][data-size="26"]:empty{width:26px;height:26px}i[data-ic][data-size="28"]:empty{width:28px;height:28px}i[data-ic][data-size="32"]:empty{width:32px;height:32px}i[data-ic][data-size="40"]:empty{width:40px;height:40px}i[data-ic][data-size="120"]:empty{width:120px;height:120px}i[data-ic][data-size="150"]:empty{width:150px;height:150px}

:root{
  --bg:#F7F4EE; --ink:#0C2B4B; --red:#B8322A; --rule:#DDD6C8; --muted:#63676F; /* v5m: a touch darker than #6B6F78 so small grey text passes AA on the tinted panels */
  --panel:#EEE9E1; --card:#FBF9F5; --sheet:#FFFDF9; --hl:#DCE7F2; --hl2:#EEE9E1; --shadow:0 1px 2px rgba(12,43,75,.05),0 14px 34px -18px rgba(12,43,75,.22); --t1:#3E5875; --t2:#6F86A0; --t3:#A7B6C6; --on-ink:#F7F4EE; --wash:#E4EAF0;
  /* accent shades (added Sep 2026): blues and reds for colour and visuals */
  --blue:#1E5596; --blue2:#4A7FC1; --sky:#DCE8F5; --sky2:#B9D0EA; --band:#0C2B4B; --on-band:#F7F4EE; --band2:#1A4675; --rose:#F7E3DF; --rose2:#EDBDB5; --red2:#8F221B;
  --serif:"Newsreader",Georgia,"Times New Roman",serif;
  --sans:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --hand:"Basira Hand","Noto Naskh Arabic",serif;
  --deco:"Basira Deco","Basira Hand",serif;
  --naskh:"Noto Naskh Arabic","Geeza Pro",serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){color-scheme:dark;
    --bg:#0C2B4B; --ink:#F7F4EE; --red:#E67A70; --rule:#2F4C6C; --muted:#A9B4C2;
    --panel:#11365C; --card:#0F3152; --sheet:#0F3152; --hl:#24507D; --hl2:#1A3F63; --shadow:0 1px 2px rgba(0,0,0,.2),0 16px 34px -18px rgba(0,0,0,.55); --t1:#C9D3DE; --t2:#8FA3B9; --t3:#56718F; --on-ink:#0C2B4B; --wash:#143D66;
    --blue:#8DB6EA; --blue2:#A9C8F0; --sky:#16406B; --sky2:#1F5185; --band:#081F38; --on-band:#F7F4EE; --band2:#1A4675; --rose:#3E2431; --rose2:#6B3942; --red2:#F4A097;
    --red-on:#BD564E; /* v5m: the darker coral behind white text in dark mode (as on the calendar pills); rules use var(--red-on,var(--red)) so light mode is unchanged */}
}
:root[data-theme="dark"]{color-scheme:dark;
  --blue:#8DB6EA; --blue2:#A9C8F0; --sky:#16406B; --sky2:#1F5185; --band:#081F38; --on-band:#F7F4EE; --band2:#1A4675; --rose:#3E2431; --rose2:#6B3942; --red2:#F4A097; --red-on:#BD564E;
  --bg:#0C2B4B; --ink:#F7F4EE; --red:#E67A70; --rule:#2F4C6C; --muted:#A9B4C2;
  --panel:#11365C; --card:#0F3152; --sheet:#0F3152; --hl:#24507D; --hl2:#1A3F63; --shadow:0 1px 2px rgba(0,0,0,.2),0 16px 34px -18px rgba(0,0,0,.55); --t1:#C9D3DE; --t2:#8FA3B9; --t3:#56718F; --on-ink:#0C2B4B; --wash:#143D66;}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;padding-inline:16px;padding-block:0 64px}
html.lg body{font-size:18px}
a{color:inherit;text-underline-offset:3px;text-decoration-thickness:1px}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.label{font-family:var(--mono);font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.small{font-size:14px;color:var(--muted)}
.btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:3px;border:1px solid var(--ink);background:var(--ink);color:var(--on-ink);font-weight:600;font-size:15px;text-decoration:none;cursor:pointer}
.btn[disabled]{opacity:.35;cursor:default}
.btn.ghost{background:transparent;color:var(--ink)}
.btn.quiet{background:transparent;color:var(--ink);border-color:var(--rule);min-height:38px;padding:6px 12px;font-size:14px;font-weight:500}
.chip{border:1px solid var(--rule);background:transparent;border-radius:20px;padding:6px 13px;font-size:14px;cursor:pointer;min-height:36px}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
.field{width:100%;border:1px solid var(--rule);background:var(--bg);color:var(--ink);font:inherit;font-size:15.5px;padding:10px 12px;border-radius:3px;resize:vertical}

/* ---------------- bar */
.bar{max-width:1240px;margin:0 auto;display:flex;align-items:center;gap:22px;padding-block:14px;border-bottom:1px solid var(--rule)}
.mk{display:flex;align-items:center;gap:14px;text-decoration:none}
.mk .hs{display:inline-flex;flex-direction:column;align-items:center;line-height:1}
.mk .h{font-family:var(--deco);font-size:26px;line-height:1.15;font-weight:700}
.mk .hsub{font-family:var(--deco);font-size:11px;font-weight:500;line-height:1.2;opacity:.8;white-space:nowrap;margin-top:5px}
.mk .w{font-weight:600;letter-spacing:.05em;font-size:14px}
.bar nav{display:flex;gap:20px;margin-inline-start:auto;font-size:15px}
.bar nav a{text-decoration:none;color:var(--muted);padding-block:6px}
.bar nav a[aria-current]{color:var(--ink);box-shadow:inset 0 -2px 0 var(--ink)}
.acct{width:36px;height:36px;border-radius:50%;border:1px solid var(--rule);background:var(--card);display:grid;place-items:center;font-family:var(--mono);font-size:13px;cursor:pointer}

/* ---------------- page + margin rows */
.page{max-width:1240px;margin:0 auto;padding-top:26px;display:flex;flex-direction:column;gap:30px}
.row{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:30px;align-items:start}
.note{padding-inline-end:6px;font-family:var(--hand);color:var(--red);direction:rtl;text-align:right;transform:rotate(-.8deg);transform-origin:right top;padding-top:8px;display:flex;flex-direction:column;gap:2px}
.note .ar{font-size:21px;line-height:1.5}
.note .en{font-family:var(--serif);font-style:italic;font-size:14px;direction:ltr;text-align:right;line-height:1.3}
.sech{font-family:var(--sans);font-weight:700;font-size:13px;letter-spacing:.08em;text-transform:uppercase;display:flex;align-items:center;gap:10px;margin:0}
.sech::after{content:"";flex:1;height:1px;background:var(--rule)}
.example{font-size:13px;color:var(--muted);border:1px dashed var(--rule);padding:3px 8px;border-radius:2px}
.draft{font-family:var(--mono);font-size:11px;border:1px dashed var(--t2);color:var(--t1);padding:1px 6px;border-radius:2px;white-space:nowrap}

/* ---------------- chapters index */
.hello{font-family:var(--sans);font-weight:700;font-size:clamp(32px,5vw,44px);line-height:1.08;letter-spacing:-.015em;margin:4px 0 0}
.timeline{background:var(--card);border:1px solid var(--rule);padding:18px 18px 14px;overflow-x:auto}
.tl{position:relative;min-width:640px;height:78px}
.tl .seg{position:absolute;top:24px;height:28px;border-inline-end:2px solid var(--bg);display:flex;align-items:center;padding-inline:8px;font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;color:var(--ink);background:var(--wash)}
.tl .seg.now{background:var(--ink);color:var(--on-ink)}
.tl .tick{position:absolute;top:56px;width:1px;height:6px;background:var(--t3)}
.tl .dl{position:absolute;top:64px;font-family:var(--mono);font-size:11px;color:var(--muted);transform:translateX(-50%);white-space:nowrap}
.tl .dl.first{transform:none}
.tl .dl.last{transform:translateX(-100%)}
.tl .here{position:absolute;top:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;font-family:var(--mono);font-size:11px;color:var(--red);font-weight:500}
.tl .here::after{content:"";width:2px;height:52px;background:var(--red)}
.chgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.chgrid>*{min-width:0}
.chcard{background:var(--card);border:1px solid var(--rule);padding:20px;display:flex;flex-direction:column;gap:16px;text-decoration:none;position:relative;min-width:0;height:100%}
.chcard.now{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.chcard.later{opacity:.82}
.chtop{display:grid;grid-template-columns:52px minmax(0,1fr) 44px;gap:0 14px;align-items:start}
.chnum{font-family:var(--serif);font-size:60px;line-height:.82;font-weight:500;grid-row:span 2}
.chline{display:flex;justify-content:space-between;align-items:baseline;gap:12px;min-width:0}
.chname{font-family:var(--sans);font-weight:700;font-size:22px;line-height:1.2;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chsub{font-size:14px;line-height:1.45;color:var(--muted);margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em;grid-column:2}
.char{font-family:var(--hand);color:var(--red);font-size:22px;direction:rtl;text-align:right;line-height:1.2;white-space:nowrap;flex:none}
.chtop .ringc{grid-column:3;grid-row:1/span 2}
.state{align-self:center;font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;padding:3px 8px;border-radius:2px;background:var(--panel)}
.state.now{background:var(--red-on,var(--red));color:#fff}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fact{border:1px solid var(--rule);padding:10px 11px;display:grid;grid-template-rows:auto 1fr auto;gap:3px;min-width:0;background:var(--bg);height:104px}
.fact .k{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fact .v{font-size:14px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fact .s{font-size:12.5px;color:var(--muted);align-self:end;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chfoot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;height:59px;border-top:1px solid var(--rule);padding-top:14px}
.chfoot .btn{min-height:40px;padding:8px 16px}
.mode{font-size:13px;color:var(--muted);display:flex;gap:8px;align-items:center}
.ico{width:22px;height:22px;flex:none}

/* ---------------- chapter home */
.hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:22px;align-items:end;border-bottom:3px solid var(--ink);padding-bottom:20px}
.hero .big{font-family:var(--serif);font-weight:500;font-size:clamp(96px,14vw,150px);line-height:.78}
.hero h1{font-family:var(--sans);font-weight:700;font-size:clamp(34px,5vw,50px);letter-spacing:-.02em;line-height:1;margin:6px 0 8px}
.hero .ar{font-family:var(--deco);color:var(--red);font-size:clamp(34px,5vw,48px);direction:rtl;text-align:right;line-height:1.1}
.strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tile{background:var(--card);border:1px solid var(--rule);padding:14px;display:flex;flex-direction:column;gap:8px;min-width:0}
.tile .top{display:flex;gap:10px;align-items:flex-start}
.date{flex:none;width:48px;border:1px solid var(--ink);text-align:center;line-height:1;background:var(--bg)}
.date .m{display:block;background:var(--ink);color:var(--on-ink);font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;padding:4px 0}
.date .d{display:block;font-family:var(--serif);font-size:22px;padding:5px 0 4px}
.kind{font-family:var(--mono);font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.tile h3{font-family:var(--sans);font-weight:600;font-size:15.5px;line-height:1.3;margin:2px 0 0}
.badge{display:inline-flex;gap:6px;align-items:center;font-size:12.5px;font-weight:600;background:var(--panel);padding:3px 8px;border-radius:2px;align-self:flex-start}
.badge.ink{background:var(--ink);color:var(--on-ink)}

.case{background:var(--card);border:1px solid var(--rule);border-inline-start:6px solid var(--ink);padding:22px 24px;display:flex;flex-direction:column;gap:12px}
.case h2{font-family:var(--sans);font-weight:700;font-size:26px;line-height:1.2;margin:0}
.case .story{font-family:var(--serif);font-size:19.5px;line-height:1.55;max-width:62ch;margin:0}
.case .ask{font-weight:600;font-size:17px}
.memo{background:var(--bg);border:1px solid var(--rule);padding:14px 16px;font-family:var(--mono);font-size:13.5px;line-height:1.6;max-width:62ch;position:relative}
.memo b{font-weight:500}
.locked{font-family:var(--serif);font-style:italic;color:var(--t1);border-inline-start:2px solid var(--t3);padding-inline-start:12px}
.stamp{display:inline-block;font-family:var(--mono);font-size:13px;letter-spacing:.12em;text-transform:uppercase;border:2px solid var(--red);color:var(--red);padding:4px 10px;transform:rotate(-3deg)}

.objs{background:var(--card);border:1px solid var(--rule);padding:18px 20px;display:flex;flex-direction:column;gap:4px}
.obj{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:center;padding-block:10px;border-top:1px solid var(--rule)}
.obj p{margin:0;font-size:15.5px}
.seg3{display:flex;border:1px solid var(--rule);border-radius:20px;overflow:hidden}
.seg3 button{border:0;background:transparent;padding:6px 11px;font-size:13px;cursor:pointer;min-height:34px;white-space:nowrap}
.seg3 button+button{border-inline-start:1px solid var(--rule)}
.seg3 button[aria-pressed="true"]{background:var(--ink);color:var(--on-ink)}
.objbar{display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--panel);flex:1;max-width:260px}
.objbar i{display:block;height:100%}

/* route */
.route{position:relative;background:var(--card);border:1px solid var(--rule);padding:20px 20px 12px}
.stops{position:relative;display:flex;flex-direction:column;margin-top:6px}
.stops::before{content:"";position:absolute;inset-block:14px 24px;inset-inline-start:23px;width:4px;background:var(--wash);border-radius:2px}
.stop{position:relative;display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:12px;align-items:center;padding-block:7px;text-decoration:none;min-height:48px;border-radius:3px}
a.stop:hover .st-t{text-decoration:underline;text-underline-offset:3px}
.dot{justify-self:center;width:22px;height:22px;border-radius:50%;border:3px solid var(--t3);background:var(--card);position:relative;z-index:1;display:grid;place-items:center}
.dot.done{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.dot.cur{border-color:var(--red);box-shadow:0 0 0 5px color-mix(in srgb,var(--red) 18%,transparent)}
.dot svg{width:11px;height:11px}
.st-n{font-family:var(--mono);font-size:12px;color:var(--muted);display:block}
.st-t{font-size:16px;font-weight:500}
.st-icons{display:flex;gap:6px;align-items:center;color:var(--t1)}
.st-icons span{display:inline-flex;align-items:center;gap:4px;font-size:12px;border:1px solid var(--rule);border-radius:20px;padding:2px 8px;background:var(--bg)}
.station{position:relative;display:grid;grid-template-columns:50px minmax(0,1fr);gap:12px;align-items:center;padding-block:12px 6px}
.station .date{justify-self:center;position:relative;z-index:1}
.station b{font-size:15px}
.cp{position:relative;display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px 0;margin-block:4px}
.cp .dia{justify-self:center;width:22px;height:22px;transform:rotate(45deg);background:var(--bg);border:3px solid var(--ink);position:relative;z-index:1}
.cp .box{background:var(--wash);padding:10px 12px;border-radius:3px;font-size:14.5px}
.casemark{justify-self:center;position:relative;z-index:1;width:26px;height:26px;border-radius:50%;background:var(--red-on,var(--red));color:#fff;display:grid;place-items:center;font-weight:700;font-size:13px}

/* key terms */
.terms{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.flip{display:block;width:100%;perspective:900px;border:0;padding:0;background:none;cursor:pointer;min-height:150px;text-align:start}
.flip .in{display:block;position:relative;width:100%;height:100%;min-height:150px;transition:transform .45s;transform-style:preserve-3d}
.flip[aria-pressed="true"] .in{transform:rotateY(180deg)}
.flip .f,.flip .b{position:absolute;inset:0;backface-visibility:hidden;border:1px solid var(--rule);background:var(--card);padding:14px;display:flex;flex-direction:column;gap:6px;border-radius:3px}
.flip .b{transform:rotateY(180deg);background:var(--bg);border-color:var(--ink);overflow:auto}
.flip .en{font-weight:700;font-size:17px}
.flip .say{font-family:var(--mono);font-size:12px;color:var(--muted)}
.flip .arT{font-family:var(--hand);color:var(--red);font-size:21px;direction:rtl;text-align:right;line-height:1.3}
.flip .pl{font-family:var(--naskh);font-size:14.5px;direction:rtl;text-align:right;line-height:1.6}
.flip .hint{margin-top:auto;font-size:12px;color:var(--muted)}
@media (prefers-reduced-motion:reduce){.flip .in{transition:none}}

/* go deeper */
.deeper{display:flex;flex-direction:column;gap:16px}
.dgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.dcard{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;background:var(--card);border:1px solid var(--rule);padding:12px;text-decoration:none;align-items:start;min-width:0}
.dcard:hover{border-color:var(--ink)}
.dcard .kind-ico{width:48px;height:48px;border-radius:3px;display:grid;place-items:center;background:var(--wash);color:var(--ink)}
.dcard .kind-ico.watch{background:var(--ink);color:var(--on-ink)}
.dcard b{display:block;font-size:15px;line-height:1.3}
.dcard .d{font-size:13.5px;color:var(--muted);display:block;margin-top:3px}
.pair{display:inline-block;margin-top:6px;font-size:12px;font-weight:600;background:var(--panel);padding:2px 7px;border-radius:2px}
.pdf{display:flex;gap:14px;align-items:center;background:var(--card);border:1px solid var(--rule);padding:16px 18px;text-decoration:none}
.pdf .pi{width:40px;height:48px;border:2px solid var(--ink);border-radius:2px;display:grid;place-items:end center;font-family:var(--mono);font-size:10px;font-weight:600;padding-bottom:5px;position:relative}
.pdf .pi::before{content:"";position:absolute;top:-2px;right:-2px;width:12px;height:12px;background:var(--bg);border-left:2px solid var(--ink);border-bottom:2px solid var(--ink)}

/* ---------------- reader */
.reader{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:210px minmax(0,1fr);gap:34px;padding-top:22px}
.rail{position:sticky;top:12px;align-self:start;max-height:calc(100vh - 24px);overflow:auto;padding-bottom:20px}
.rail a{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:start;text-decoration:none;padding:6px 6px;border-radius:3px;font-size:13.5px;line-height:1.35;color:var(--muted)}
.rail a[aria-current]{background:var(--wash);color:var(--ink);font-weight:600}
.rail a .rd{width:10px;height:10px;border-radius:50%;border:2px solid var(--t3);margin-top:4px}
.rail a .rd.done{background:var(--ink);border-color:var(--ink)}
.rail .rcp{font-family:var(--mono);font-size:11px;color:var(--t1);padding:4px 6px 4px 32px;display:flex;gap:6px;align-items:center}
.rail .rcp::before{content:"";width:8px;height:8px;border:2px solid var(--ink);transform:rotate(45deg)}
.rmain{min-width:0;display:flex;flex-direction:column;gap:16px}
.topline{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;max-width:min(720px,72%)}
.prog{display:flex;align-items:center;gap:12px;font-family:var(--mono);font-size:12px;letter-spacing:.04em;color:var(--muted)}
.prog b{color:var(--ink);font-weight:500}
.prog .pt{width:120px;height:4px;border-radius:2px;background:var(--wash);overflow:hidden}
.prog .pt i{display:block;height:100%;background:var(--ink);border-radius:2px}
.shead h1{font-family:var(--sans);font-weight:700;font-size:clamp(30px,4.4vw,42px);letter-spacing:-.015em;line-height:1.1;margin:6px 0 4px;text-wrap:balance}
.meta{display:flex;gap:8px;flex-wrap:wrap}
.meta span{font-size:13px;border:1px solid var(--rule);border-radius:20px;padding:2px 10px;color:var(--t1);background:var(--card)}
.sheet{position:relative;padding-block:40px 36px;display:flex;flex-direction:column}
.sheet::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:min(720px,72%);background:var(--sheet);border:1px solid var(--rule);border-top:3px solid var(--ink);box-shadow:var(--shadow)}
.sheet>*{position:relative}
.sheet .content{display:flex;flex-direction:column}
.brow{display:grid;grid-template-columns:min(720px,72%) minmax(0,1fr);gap:30px;align-items:start}
.bmain{min-width:0;padding:9px 48px}
.bmar{display:flex;flex-direction:column;gap:12px;padding-top:13px;min-width:0}
.sheet .prose p,.sheet .prose ul{max-width:64ch}
.sheet .shead{padding-bottom:18px;border-bottom:1px solid var(--rule);margin-bottom:10px}
.sheet .gap{height:14px}
.after{display:flex;flex-direction:column;gap:14px}
.after .brow{grid-template-columns:min(720px,72%) minmax(0,1fr)}
.after .bmain{padding:0}
.prose p{font-family:var(--serif);font-size:20px;line-height:1.65;margin:0 0 6px}
html.lg .prose p{font-size:22px}
.prose h2{font-family:var(--sans);font-weight:700;font-size:23px;margin:14px 0 0}
.prose h3{font-family:var(--sans);font-weight:700;font-size:18px;margin:12px 0 0}
.prose ul{font-family:var(--serif);font-size:19px;line-height:1.55;margin:0;padding-inline-start:22px;display:flex;flex-direction:column;gap:6px}
.prose table{border-collapse:collapse;font-size:15px;width:100%}
.prose td,.prose th{border-bottom:1px solid var(--rule);padding:8px 10px 8px 0;text-align:start;vertical-align:top}
.term{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;text-decoration:underline dotted var(--t1);text-underline-offset:4px;text-decoration-thickness:1.5px}
.redline{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;text-decoration:underline solid var(--red);text-underline-offset:5px;text-decoration-thickness:2px}
.xref{font-family:var(--sans);font-size:.8em;font-weight:600;text-decoration:none;background:var(--wash);padding:1px 6px;border-radius:2px;white-space:nowrap}
.gl{border-top:1px solid var(--rule);padding-top:8px;display:flex;flex-direction:column;gap:2px;transition:background .3s}
.gl.flash{background:var(--wash)}
.gl .en{font-weight:600;font-size:15px}
.gl .arT{font-family:var(--hand);color:var(--red);font-size:19px;direction:rtl;text-align:right;line-height:1.35}
.gl .pl{font-family:var(--naskh);color:var(--red);font-size:14px;direction:rtl;text-align:right;line-height:1.6;opacity:.9}
.rnote{padding-inline-end:6px;background:none;border:0;cursor:pointer;padding:0;text-align:right;font-family:var(--hand);color:var(--red);display:flex;flex-direction:column;align-items:flex-end;transform:rotate(-.8deg)}
.rnote .ar{font-size:24px;line-height:1.3;direction:rtl}
.rnote .en{font-family:var(--serif);font-style:italic;font-size:14px}

.gate{border:2px solid var(--ink);background:var(--card);padding:20px 22px;display:flex;flex-direction:column;gap:12px}
.gate .q{font-family:var(--sans);font-weight:600;font-size:20px;line-height:1.35;margin:0}
.opts{display:flex;flex-direction:column;gap:8px}
.opt{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:center;text-align:start;border:1px solid var(--rule);background:var(--bg);padding:10px 12px;border-radius:3px;cursor:pointer;font-size:16px;min-height:48px}
.opt .l{width:28px;height:28px;border-radius:50%;border:1.5px solid var(--t2);display:grid;place-items:center;font-family:var(--mono);font-size:13px}
.opt[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.opt[aria-pressed="true"] .l{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
.conf{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.lockwrap{position:relative}
.lockwrap.on>.content{filter:blur(5px);opacity:.45;pointer-events:none;user-select:none;max-height:420px;overflow:hidden}
.lockmsg{position:absolute;inset:40px 0 auto;display:flex;justify-content:center}
.lockmsg span{background:var(--ink);color:var(--on-ink);padding:10px 16px;border-radius:3px;font-weight:600;font-size:15px;display:flex;gap:8px;align-items:center}
.committed{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:var(--wash);padding:10px 14px;border-radius:3px;font-size:15px}

.figure{margin:14px 0 10px;display:flex;flex-direction:column;gap:10px}
.plate{background:var(--bg);border:1px solid var(--rule);padding:22px 22px 20px;position:relative;overflow:hidden}
.figure figcaption{font-size:14.5px;line-height:1.5;color:var(--muted);max-width:64ch}
.figure figcaption b{font-family:var(--mono);font-weight:500;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);margin-inline-end:8px}
.fh{font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.fh.red{color:var(--red)}
.pen{font-family:var(--serif);font-style:italic;color:var(--red);font-size:15px;line-height:1.35}
/* 1.1 stairs */
.stairs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:0;padding-top:58px;position:relative}
.stair{border:1.5px solid var(--ink);padding:14px 14px 16px;display:flex;flex-direction:column;gap:6px;margin-inline-start:-1.5px}
.stair:first-child{margin-inline-start:0}
.stair .rn{font-family:var(--mono);font-size:11px;letter-spacing:.08em;color:var(--muted)}
.stair b{font-size:19px;line-height:1.1}
.stair p{margin:0;font-size:14px;line-height:1.45}
.stair.s1{min-height:150px;background:var(--sheet)}
.stair.s2{min-height:210px;background:var(--wash)}
.stair.s3{min-height:270px;background:var(--ink);color:var(--on-ink)}
.stair.s3 .rn{color:var(--on-ink);opacity:.7}
.skip{position:absolute;top:18px;inset-inline:16.6% 16.6%;height:26px;border:2px dashed var(--red);border-bottom:0;border-radius:6px 6px 0 0}
.skip span{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--bg);padding:0 8px;white-space:nowrap}
.skip::after{content:"";position:absolute;right:-7px;bottom:-2px;border:6px solid transparent;border-top:9px solid var(--red)}
.axis{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:10px;font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.axis::before{content:"";flex:1;height:1.5px;background:linear-gradient(90deg,transparent,var(--t2))}
/* 1.2 loop */
.loop{position:relative;aspect-ratio:16/10.5;min-height:360px}
.loop svg.trk{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.loop .nd{position:absolute;transform:translate(-50%,-50%);width:29%;background:var(--sheet);border:1.5px solid var(--ink);padding:9px 12px;display:flex;flex-direction:column;gap:1px;text-align:center}
.loop .nd b{font-size:15.5px;display:flex;justify-content:center;gap:7px;align-items:baseline}
.loop .nd b i{font-style:normal;font-family:var(--mono);font-size:11px;color:var(--muted);font-weight:500}
.loop .nd span{font-size:13px;color:var(--t1);line-height:1.35}
.loop .nd.q{background:var(--ink);color:var(--on-ink)}
.loop .nd.q span,.loop .nd.q b i{color:var(--on-ink);opacity:.8}
.loop .mid{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;width:34%}
.loop .mid b{font-size:21px;display:block;line-height:1.15}
.loop .mid span{font-size:14px;line-height:1.4;color:var(--muted);display:block;margin-top:4px}
.loop .nt{position:absolute;left:28%;top:3%;transform:translateX(-50%) rotate(-8deg)}
.looplist{display:none;list-style:none;margin:0;padding:0 0 0 26px;border-inline-start:3px solid var(--wash);position:relative;flex-direction:column;gap:8px}
.looplist li{background:var(--sheet);border:1.5px solid var(--ink);padding:8px 12px;font-size:14px;position:relative}
.looplist li b{font-size:15px;margin-inline-end:6px}
.looplist li::before{content:attr(data-n);position:absolute;left:-40px;top:9px;width:24px;height:24px;border-radius:50%;background:var(--bg);border:2px solid var(--ink);display:grid;place-items:center;font-family:var(--mono);font-size:11px}
.looplist .back{border:0;background:none;padding:2px 0 0;color:var(--red);font-family:var(--serif);font-style:italic}
.looplist .back::before{content:"↺";border-color:var(--red);color:var(--red);font-size:14px}
/* 1.3 rivals */
.riv3{display:grid;grid-template-columns:minmax(0,.85fr) 26px minmax(0,2.15fr);align-items:center}
.obc{display:flex;flex-direction:column;gap:6px}
.rgrid{display:grid;grid-template-columns:minmax(0,1.1fr) 28px minmax(0,1fr);gap:8px 0;align-items:stretch}
.riv3 .fan{align-self:stretch;border:1.5px solid var(--t2);border-inline-start:0;margin-block:44px 18px;position:relative;margin-inline-end:6px}
.riv3 .fan::before{content:"";position:absolute;left:0;top:50%;width:10px;height:1.5px;background:var(--t2);transform:translateX(-100%)}
.conf1{display:flex;flex-direction:column;align-items:center;gap:12px}
.conf1 svg{width:100%;max-width:470px;height:auto;display:block;overflow:visible}
.conf1 svg text{font-family:var(--sans)}
.sv-mi{fill:var(--ink)}.sv-mr{fill:var(--red)}
.conf1 .bot{align-self:stretch;border-top:1px solid var(--rule);padding-top:10px;margin:0;font-family:var(--serif);font-size:16px;line-height:1.5}

.rivals{display:grid;grid-template-columns:minmax(0,.9fr) 22px minmax(0,1.1fr) 28px minmax(0,1fr);gap:8px 0;align-items:stretch}
.rivals .hd{padding-bottom:4px}
.riv3 .obs{border:1.5px solid var(--ink);background:var(--sheet);padding:14px;display:flex;flex-direction:column;gap:6px}
.riv3 .obs b{font-size:16px}
.riv3 .obs p{margin:0;font-size:14px;line-height:1.45}
.rivals .fan{grid-column:2;grid-row:2/span 4;border:1.5px solid var(--t2);border-inline-start:0;margin-block:26px;position:relative}
.rivals .fan::before{content:"";position:absolute;left:-1px;top:50%;width:10px;height:1.5px;background:var(--t2);transform:translateX(-100%)}
.rv{border:1px solid var(--rule);background:var(--sheet);padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.rv b{font-size:15px}
.rv span{font-size:13px;color:var(--t1);line-height:1.35}
.to{display:grid;place-items:center;color:var(--t2);font-size:16px}
.ts{background:var(--ink);color:var(--on-ink);padding:10px 12px;font-size:13.5px;line-height:1.35;display:flex;align-items:center;font-weight:500}
.rivals .pen{grid-column:1;grid-row:6;padding-top:6px}
/* 1.4 errors */
.errs{display:grid;grid-template-columns:minmax(0,.62fr) minmax(0,1fr) minmax(0,1fr);gap:6px}
.errs .ch{font-size:13.5px;font-weight:600;text-align:center;padding:4px 6px 6px;display:flex;flex-direction:column}
.errs .ch small,.errs .rh small{font-family:var(--mono);font-size:10.5px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.errs .rh{font-size:13.5px;font-weight:600;display:flex;flex-direction:column;justify-content:center;padding-inline-end:8px}
.cell{min-height:118px;padding:14px;display:flex;flex-direction:column;gap:4px;border:1px solid var(--rule);background:var(--sheet)}
.cell b{font-size:16px;display:flex;gap:8px;align-items:center}
.cell span{font-size:13.5px;line-height:1.4;color:var(--t1)}
.cell.ok b{color:var(--t1);font-weight:600}
.cell.bad{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.cell.bad span{color:var(--on-ink);opacity:.85}
.cell .tag{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;opacity:.75}
.seesaw{margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);gap:12px;align-items:center;font-size:13px;line-height:1.35}
.seesaw .tr{height:6px;border-radius:3px;background:linear-gradient(90deg,var(--ink),var(--t3),var(--ink));position:relative}
.seesaw .tr::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;border-radius:50%;background:var(--bg);border:3px solid var(--ink);transform:translate(-50%,-50%)}
.seesaw div:last-child{text-align:end}
/* 1.5 confounder */
.conf2{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:18px}
.conf2 .pn{display:flex;flex-direction:column;gap:8px;min-width:0}
.conf2 .pn+.pn{border-inline-start:1px solid var(--rule);padding-inline-start:18px}
.conf2 svg{width:100%;height:auto;display:block;overflow:visible}
.conf2 svg text{font-family:var(--sans)}
.sv-box{fill:var(--sheet);stroke:var(--ink);stroke-width:1.5}
.sv-fade{fill:var(--sheet);stroke:var(--t3);stroke-width:1.5}
.sv-c{fill:var(--sheet);stroke:var(--red);stroke-width:2}
.sv-t{fill:var(--ink);font-size:17px;font-weight:700}
.sv-s{fill:var(--t1);font-size:14.5px}
.sv-l{fill:var(--ink);stroke:var(--ink);stroke-width:2}
.sv-r{fill:var(--red);stroke:var(--red);stroke-width:2}
.sv-d{stroke:var(--t3);stroke-width:2;stroke-dasharray:5 5;fill:none}
.sv-m{fill:var(--muted);font-size:12.5px;font-family:var(--mono)!important;letter-spacing:.04em}
.sv-red{fill:var(--red);font-size:16px;font-family:var(--serif)!important;font-style:italic}
.conf2 .bot{grid-column:1/-1;border-top:1px solid var(--rule);padding-top:10px;font-family:var(--serif);font-size:16px;line-height:1.5}
/* 1.6 reproduce vs replicate */
.rr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}
.rrc{border:1.5px solid var(--ink);background:var(--sheet);padding:16px;display:flex;flex-direction:column;gap:10px}
.rrc .flow+.flow{margin-top:-4px}
.rrc.hi{background:var(--ink);color:var(--on-ink);min-height:100%}
.rrc h4{margin:0;font-size:18px}
.flow{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px;font-family:var(--mono)}
.flow span{border:1px solid currentColor;padding:4px 8px;border-radius:2px;white-space:nowrap}
.flow span.new{border-style:dashed}
.flow em{font-style:normal;opacity:.7}
.rrc p{margin:0;font-size:14px;line-height:1.45}
.meter{display:flex;gap:4px;align-items:center;font-family:var(--mono);font-size:11px;letter-spacing:.05em;text-transform:uppercase}
.meter i{width:26px;height:8px;border:1.5px solid currentColor}
.meter i.f{background:currentColor}
.meter span{margin-inline-start:6px;opacity:.8}
.rrc .v{border-top:1px solid currentColor;padding-top:10px;font-weight:600;font-size:14.5px;opacity:.95}
.rrc:not(.hi) .v{color:var(--red);border-color:var(--rule);font-family:var(--serif);font-style:italic;font-weight:400;font-size:16px}
/* 1.7 language ladder */
.lang{display:flex;flex-direction:column;border-inline:4px solid var(--ink);padding-inline:0}
.lr{display:grid;grid-template-columns:118px minmax(0,1fr) minmax(0,1.15fr);gap:14px;align-items:center;padding:14px 16px;border-bottom:4px solid var(--ink);background:var(--sheet)}
.lr:last-child{border-bottom:0}
.lr .lv{display:flex;flex-direction:column;gap:6px}
.lr .lv b{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.08em;text-transform:uppercase}
.lr .lv .pips{display:flex;gap:3px}
.lr .lv .pips i{width:18px;height:6px;background:var(--wash)}
.lr .lv .pips i.f{background:var(--ink)}
.lr q{font-family:var(--serif);font-style:italic;font-size:21px;line-height:1.2;quotes:"“" "”"}
.lr p{margin:0;font-size:13.5px;line-height:1.4;color:var(--t1)}
.lr.res q{color:var(--red)}
.lr.res{background:var(--bg)}
.lr .here{display:inline-block;margin-top:6px;font-size:11.5px;font-weight:600;background:var(--ink);color:var(--on-ink);padding:2px 8px;border-radius:2px}
/* 1.8 good vs weak */
.gw{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);gap:8px 0;align-items:stretch}
.gw .g{align-content:start;border:1.5px solid var(--ink);background:var(--sheet);padding:12px 14px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:2px 10px}
.gw .w{align-content:start;border:1.5px dashed var(--t3);padding:12px 14px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:2px 10px;color:var(--t1)}
.gw .ic{grid-row:span 2;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;margin-top:1px}
.gw .g .ic{background:var(--ink);color:var(--on-ink)}
.gw .w .ic{border:1.5px solid var(--t3);color:var(--t2)}
.gw b{font-size:15.5px}
.gw span{font-size:13.5px;line-height:1.4}
.gw .vs{display:grid;place-items:center;font-family:var(--mono);font-size:11px;color:var(--muted)}
@media (max-width:620px){
  .plate{padding:16px 14px}
  .stairs{grid-template-columns:minmax(0,1fr);padding-top:0;gap:6px}
  .stair{margin:0!important;min-height:0!important}
  .stair.s2{margin-inline-start:14px!important}.stair.s3{margin-inline-start:28px!important}
  .stairs{display:flex;flex-direction:column-reverse}
  .skip{display:none}
  .loop{display:none}.looplist{display:flex}
  .riv3{grid-template-columns:minmax(0,1fr);gap:14px}.riv3 .fan{display:none}
  .rgrid{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr)}
  .gw .hd{display:none}
  .sv-t{font-size:20px}.sv-s{font-size:16px}.sv-m{font-size:14px}.sv-red{font-size:17px}
  .lang .lr q{font-size:19px}
  .errs{grid-template-columns:62px minmax(0,1fr) minmax(0,1fr)}
  .cell{min-height:0;padding:10px}
  .seesaw{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.seesaw .tr{grid-column:1/-1;grid-row:1}
  .conf2{grid-template-columns:minmax(0,1fr)}
  .conf2 .pn+.pn{border-inline-start:0;padding-inline-start:0;border-top:1px solid var(--rule);padding-top:14px}
  .rr{grid-template-columns:minmax(0,1fr)}
  .lr{grid-template-columns:minmax(0,1fr);gap:6px}
  .gw{grid-template-columns:minmax(0,1fr)}.gw .vs{display:none}.gw .w{margin-bottom:10px}
}
.bx{border:1px solid var(--rule);background:var(--card);padding:16px 18px;display:flex;flex-direction:column;gap:8px;margin:6px 0}
.bx .bh{display:flex;gap:10px;align-items:center}
.bx .bh .sym{width:28px;height:28px;display:grid;place-items:center;border-radius:3px;background:var(--ink);color:var(--on-ink);font-size:14px;flex:none}
.bx .bh b{font-family:var(--sans);font-size:17px}
.bx.caution{border:2px solid var(--ink);background:var(--bg)}
.bx.caution .sym{background:transparent;color:var(--ink);border:2px solid var(--ink)}
.bx.definition .sym{background:var(--t1)}
.bx.keyidea{background:var(--wash);border-color:var(--wash)}
.bx p{font-family:var(--serif);font-size:18.5px;line-height:1.55;margin:0}
.verdict{font-size:15px;font-weight:600;display:flex;gap:8px;align-items:center}
.verdict i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:13px;background:var(--ink);color:var(--on-ink)}
.qpanel{border-inline-start:3px solid var(--red);background:var(--card);padding:14px 16px;display:flex;flex-direction:column;gap:10px;margin:8px 0}
.qpanel .qh{display:flex;justify-content:space-between;gap:10px;align-items:center}
.qpanel .qh .h{font-family:var(--hand);color:var(--red);font-size:22px}
.model{background:var(--bg);border:1px solid var(--rule);padding:12px 14px;font-size:15.5px}
.chk{display:flex;gap:10px;align-items:flex-start;font-size:15px;padding:4px 0}
.chk input{width:20px;height:20px;accent-color:var(--ink);margin-top:2px}
.step{display:flex;flex-direction:column;gap:10px}

/* toys */
.toy{border:1px solid var(--ink);background:var(--card);padding:16px 18px;display:flex;flex-direction:column;gap:12px;margin:10px 0;border-radius:4px}
.toy .th{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.toy .th b{display:flex;gap:8px;align-items:center;font-size:16px}
.toy .th b svg{width:20px;height:20px}
.toy input[type=range]{width:100%;accent-color:var(--ink)}
.readout{font-family:var(--serif);font-size:18px;line-height:1.5;border-top:1px solid var(--rule);padding-top:10px;margin:0}
.bars{display:flex;flex-direction:column;gap:8px}
.bars .r{display:grid;grid-template-columns:120px minmax(0,1fr) 44px;gap:10px;align-items:center;font-size:14px}
.bars .tr{height:14px;background:var(--panel);border-radius:2px;overflow:hidden}
.bars .fi{height:100%;background:var(--ink);transition:width .2s}
.bars .v{font-family:var(--mono);font-size:13px;text-align:end}
.ladder{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;align-items:stretch}
.rungs{display:flex;flex-direction:column;gap:0;border-inline:4px solid var(--ink);padding:0 10px}
.rung{flex:1;border-bottom:4px solid var(--ink);display:flex;align-items:flex-end;padding:18px 0 4px;min-height:64px;flex-direction:column;justify-content:flex-end;gap:4px}
.rung:last-child{border-bottom:0}
.rung .rl{font-family:var(--mono);font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;align-self:flex-start}
.rung .pin{font-size:12px;background:var(--ink);color:var(--on-ink);border-radius:10px;padding:1px 8px;align-self:flex-start}
.claims{display:flex;flex-direction:column;gap:10px}
.claim{border:1px solid var(--rule);background:var(--bg);padding:10px 12px;border-radius:3px;display:flex;flex-direction:column;gap:8px}
.claim p{margin:0;font-family:var(--serif);font-size:17px}
.fb{font-size:14px;font-weight:600}
.scatter svg{width:100%;height:auto;display:block}

/* end of section */
.endbox{border:2px solid var(--ink);background:var(--card);padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.cyi{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--rule);padding-top:12px}
.cyi:first-of-type{border-top:0;padding-top:0}
.cyi p{margin:0;font-size:16.5px;font-weight:500}
.compare{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center}
.compare .c{border:1px solid var(--rule);background:var(--bg);padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.compare .c b{font-size:22px;font-family:var(--serif)}
.compare .arr{font-size:22px;color:var(--t1)}
.nextnav{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.nextnav a{border:1px solid var(--rule);background:var(--card);padding:14px 16px;text-decoration:none;display:flex;flex-direction:column;gap:2px}
.nextnav a.nx{border:2px solid var(--ink);text-align:end}
.nextnav a b{font-size:16px}
.proj{border:1px solid var(--ink);background:var(--card);padding:16px 18px;display:flex;flex-direction:column;gap:10px;margin:8px 0}
.eoc{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.eoc div{background:var(--card);border:1px solid var(--rule);padding:14px;font-family:var(--serif);font-size:17px;line-height:1.5;display:flex;gap:10px}
.eoc div b{font-family:var(--serif);font-size:26px;line-height:1;color:var(--t2);font-weight:500}

/* locked answers, no skipping, highlighting */
.eocq{display:flex;flex-direction:column;gap:14px}
.eqi{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;border-top:1px solid var(--rule);padding-top:14px}
.eqi:first-child{border-top:0;padding-top:0}
.eqn{font-family:var(--serif);font-size:26px;line-height:1;color:var(--t2);font-weight:500}
.eqb{display:flex;flex-direction:column;gap:8px;min-width:0}
.eqb>p:first-child{margin:0;font-family:var(--serif);font-size:18px;line-height:1.5}
.cyi .model p,.eqb .model p{font-family:var(--serif);font-size:17px;line-height:1.55}
.finrow{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap}
.need{display:flex;flex-direction:column;gap:4px;flex:1;min-width:220px}
.needi{display:flex;gap:8px;align-items:center;text-align:start;background:none;border:0;padding:3px 0;font-size:15px;cursor:pointer;color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--t3)}
.needi::before{content:"";width:12px;height:12px;border:1.5px solid var(--t2);border-radius:2px;flex:none}
.nextnav .off{border:1px dashed var(--t3);background:transparent;padding:14px 16px;display:flex;flex-direction:column;gap:2px;text-align:end;color:var(--muted)}
.nextnav .off .small{display:inline-flex;gap:6px;align-items:center;justify-content:flex-end}
.nextnav .off svg{width:13px;height:13px}
.rlk svg{width:11px;height:11px;vertical-align:-1px;opacity:.7}
.lockcard{display:flex;gap:14px;align-items:flex-start;border:1px dashed var(--t3);padding:16px 18px;margin-top:10px}
.lockcard svg{width:22px;height:22px;flex:none;margin-top:2px}
mark.hl{background:var(--hl);color:inherit;padding:1px 0;border-radius:2px;cursor:pointer}
mark.hl[data-tag="claim"]{box-shadow:inset 0 -2px 0 var(--ink)}
mark.hl[data-tag="evidence"]{box-shadow:inset 0 -2px 0 var(--t2)}
mark.hl[data-tag="confused"]{background:transparent;box-shadow:inset 0 -2px 0 var(--t2);text-decoration:underline wavy var(--t2);text-underline-offset:5px;text-decoration-thickness:1px;box-shadow:none;background:var(--hl2)}
.hlbar{position:absolute;z-index:40;display:flex;gap:4px;align-items:center;background:var(--ink);color:var(--on-ink);padding:6px 8px;border-radius:4px;box-shadow:0 8px 24px -8px rgba(0,0,0,.35)}
.hlbar .small{color:var(--on-ink);opacity:.75;padding:0 6px}
.hlbar button{border:0;background:transparent;color:var(--on-ink);font-size:14px;padding:6px 10px;border-radius:3px;cursor:pointer;min-height:34px}
.hlbar button:hover{background:rgba(255,255,255,.14)}
.hlbar.dock{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));top:auto;justify-content:center;flex-wrap:wrap}
.hlist{border:1px solid var(--rule);background:var(--card);padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.hli{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;align-items:baseline;border-top:1px solid var(--rule);padding-top:8px}
.hli q{font-family:var(--serif);font-size:16.5px;line-height:1.5}
.tg{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;padding:2px 7px;border-radius:2px;background:var(--hl);justify-self:start}
.tg.t-claim{box-shadow:inset 0 -2px 0 var(--ink)}.tg.t-evidence{box-shadow:inset 0 -2px 0 var(--t2)}.tg.t-confused{background:var(--hl2)}

/* sheet (phone sections list) + customize */
.overlay{position:fixed;inset:0;background:rgba(12,43,75,.35);display:flex;justify-content:flex-end;z-index:30}
.panel{background:var(--bg);width:min(380px,100%);height:100%;padding:22px 20px calc(22px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:14px;overflow:auto;border-inline-start:1px solid var(--rule)}
.cz-g{display:flex;flex-direction:column;gap:8px;padding-block:12px;border-bottom:1px solid var(--rule)}
.segb{display:flex;flex-wrap:wrap;gap:6px}
.segb button{border:1px solid var(--rule);background:transparent;border-radius:20px;padding:7px 14px;min-height:40px;cursor:pointer;font-size:15px}
.segb button[lang="ar"]{font-family:var(--naskh);font-size:17px}
.segb button[aria-checked="true"]{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
.phonesec{display:none}

@media (max-width:1060px){
  .reader{grid-template-columns:minmax(0,1fr)}
  .rail{display:none}
  .phonesec{display:flex}
  .strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .bar nav{display:none}
  .bar .acct{margin-inline-start:auto}
  .row{grid-template-columns:minmax(0,1fr);gap:8px}
  .row>.note{order:-1;transform:rotate(-.4deg);padding-top:0}
  .brow,.after .brow{grid-template-columns:minmax(0,1fr);gap:6px}
  .topline{max-width:none}
  .sheet{margin-inline:-16px;padding-block:28px 26px}
  .sheet::before{width:100%;border-inline:0}
  .bmain{padding:8px 18px}
  .sheet .bmar{padding:4px 18px 0}
  .bmar{padding-top:0}
  .bmar:empty{display:none}
  .chgrid{grid-template-columns:minmax(0,1fr)}
  .hero{grid-template-columns:auto minmax(0,1fr)}
  .hero .arcol{grid-column:1/-1;text-align:right}
  .facts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ladder{grid-template-columns:minmax(0,1fr)}
  .rungs{min-height:220px}
}
@media (max-width:640px){.stop{grid-template-columns:50px minmax(0,1fr)}.stop .st-icons{grid-column:2;flex-wrap:wrap}.cp{grid-template-columns:50px minmax(0,1fr)}}
@media (max-width:520px){
  .chline{flex-direction:column;align-items:stretch;gap:2px}
  .chname{white-space:normal}
  .char{text-align:right}
  .facts{grid-template-columns:minmax(0,1fr)}
  .fact{height:auto;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto}
  .fact .k{grid-column:1/-1}
  .fact .s{align-self:baseline}
  .chsub{grid-column:2/-1}
  .strip{grid-template-columns:minmax(0,1fr)}
  .obj{grid-template-columns:minmax(0,1fr)}
  .compare{grid-template-columns:minmax(0,1fr)}
  .compare .arr{transform:rotate(90deg);justify-self:center}
  .nextnav{grid-template-columns:minmax(0,1fr)}
  .bars .r{grid-template-columns:96px minmax(0,1fr) 40px}
}

/* ---------------- v3 shell additions */
.skiplink{position:absolute;left:-9999px;top:0;background:var(--ink);color:var(--on-ink);padding:8px 12px;z-index:50}
.skiplink:focus{left:8px}
.bar nav a{position:relative}
.bar .dot,.tabbar .dot{position:absolute;top:2px;right:-8px;width:7px;height:7px;border-radius:50%;background:var(--red)}
.cz-g a{font-size:15px}
.tabbar{display:none}
@media (max-width:860px){
  body{padding-bottom:84px}
  .bar .acct{margin-inline-start:auto}
  .tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:25;background:var(--bg);border-top:1px solid var(--rule);padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px))}
  .tabbar a{display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none;color:var(--muted);font-size:11.5px;position:relative;padding:4px 0;min-height:44px}
  .tabbar a svg{width:22px;height:22px}
  .tabbar a[aria-current]{color:var(--ink);font-weight:600}
  .tabbar .dot{top:2px;right:calc(50% - 16px)}
}
.saved-toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--on-ink);font-size:13px;padding:6px 12px;border-radius:20px;z-index:40;opacity:0;transition:opacity .2s;pointer-events:none}
.saved-toast.on{opacity:.92}
.notice{background:var(--wash);padding:10px 14px;border-radius:3px;font-size:14.5px}
.sk{display:block;background:var(--panel);border-radius:3px;margin:10px 0;animation:skp 1.2s infinite alternate}
.sk.h{height:40px;width:40%}.sk.l{height:14px;width:70%}.sk.b{height:180px}
@keyframes skp{from{opacity:.55}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.sk{animation:none}}

/* reference entries (Chapter 5) and the question picker */
.method{border:1.5px solid var(--ink);background:var(--card);padding:14px 16px;display:flex;flex-direction:column;gap:8px;margin:6px 0}
.method .mname{font-family:var(--sans);font-size:18px}
.method dl{display:grid;grid-template-columns:130px minmax(0,1fr);gap:8px 14px;margin:0}
.method dt{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding-top:3px}
.method dd{margin:0;font-family:var(--serif);font-size:17px;line-height:1.5}
.method dd:last-of-type{color:var(--red)}
.picker{border:1px solid var(--ink);background:var(--card);padding:16px 18px;display:flex;flex-direction:column;gap:12px;border-radius:4px;margin:10px 0}
.picker .th{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:baseline}
.picker .th b{font-size:16px}
.pk{display:flex;flex-direction:column;gap:6px}
.pkq{text-align:start;border:1px solid var(--rule);background:var(--bg);padding:9px 12px;border-radius:3px;font:inherit;font-size:15px;cursor:pointer;color:var(--ink)}
.pkq[aria-pressed="true"]{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
.pka{border-top:1px solid var(--rule);padding-top:10px;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.pka .q{margin:0;font-size:14px;color:var(--muted)}
.pka .a{margin:0;font-family:var(--serif);font-size:19px;line-height:1.45}
@media (max-width:620px){.method dl{grid-template-columns:minmax(0,1fr);gap:2px}.method dd{margin-bottom:8px}}

/* coloured page heads (Sep 2026): the same navy band as Today on Chapters, Project, Logbook and Grow */
.lhero,.hero,.row>header.phero{position:relative;overflow:hidden;background:var(--band);color:var(--on-band);border:0;border-radius:6px;padding:26px 28px 24px;
  background-image:radial-gradient(120% 140% at 100% 0%,var(--band2) 0%,transparent 55%),radial-gradient(60% 90% at 0% 100%,color-mix(in srgb,var(--red) 22%,transparent) 0%,transparent 60%)}
.lhero .label,.hero .label,.row>header.phero .label{color:var(--on-band);opacity:.75}
.row>.lhero h1,.row>.hero h1,.row>header.phero h1,.row>.hero .big{color:var(--on-band)}
.row>.lhero p,.row>.hero p,.row>.hero .small,.row>header.phero p,.row>header.phero .small{color:var(--on-band);opacity:.88}
.row>.lhero .ar,.row>.hero .ar,.row>header.phero .ar{color:#F2A49B}
.lhero a,.row>header.phero a{color:var(--on-band)}
/* skills guides links on the chapters index */
.skl{display:flex;flex-direction:column;gap:10px}
.sklg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sklg a{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:center;text-decoration:none;border-radius:6px;padding:16px 18px;background:var(--rose);color:var(--ink);box-shadow:var(--shadow)}
.sklg a+a{background:var(--sky)}
.sklg a svg{width:48px;height:48px;color:var(--ink)}
.sklg a b{display:block;font-size:17px}
.sklg a span span{display:block;font-size:14px;color:var(--t1);margin-top:2px}
.sklg a:hover b{text-decoration:underline}
@media (max-width:620px){.sklg{grid-template-columns:minmax(0,1fr)}}

/* ===== v14 mobile: tap targets of at least 40px on phones (max-width 640px; desktop unchanged) =====
   One place for the whole site. ":root body" lifts these over the single- and double-class rules in the page stylesheets
   that load after this one, so a later file can't shrink a target back. Each line names what it fixes. */
@media (max-width:640px){
  :root body .btn.quiet,:root body .btn.ghost,:root body .btn.sm,:root body summary.btn{min-height:44px}   /* Menu, Mark, Edit, Sign up... were 38px */
  :root body .chip,:root body .seg3 button,:root body .segb button,:root body .kchip{min-height:40px}       /* filter chips, segmented buttons: 32-36px */
  :root body .foot a{padding-block:9px}                                                                       /* footer links were 28px tall */
  :root body .foot .fsoc .soc,:root body .fsoc a.soc{min-height:40px}
  :root body .bar .fbk{min-width:40px;justify-content:center}                                                 /* the feedback icon in the student header: 34px wide */
  :root body .g2-back,:root body .backl,:root body a.back,:root body .pe-more,:root body .csc-go,:root body .csc-join,:root body .csc-more,
  :root body .pc-tl,:root body .ct-go,:root body .ap-more,:root body .ap-link,:root body .dc-go,:root body .wp-links a,:root body .g2-hf a,
  :root body .aw-go,:root body .aw-box,:root body .sk-copy,:root body .sk-more,:root body .tn a,:root body .ls-small a,
  :root body section.card>a.more,:root body .linkish,:root body .pg-res .chb .acts a{display:inline-flex;align-items:center;min-height:40px}
  :root body .awalk .aw-tog{min-height:40px}
  :root body .chk2,:root body .authf .show{min-height:40px;align-items:center}
  /* the small session chips keep their look; only the area you can tap grows, to 40px tall */
  :root body a.sk-chip{position:relative}:root body a.sk-chip::after{content:"";position:absolute;inset:-7px 0}
  :root body .pg-tocl a{min-height:40px}
  :root body .wk .cn{min-height:40px}
  :root body .sx-tb{min-width:40px;min-height:40px}
  :root body .ap-extra>summary{padding-block:9px}
  :root body .btn,:root body .field:not(textarea){min-height:44px}                                            /* Mark Stage 3, Sign up, selects and inputs at 36-38px */
  :root body .sa-tabs button,:root body .pg-chips button,:root body .rs-chip,:root body .sw-l,:root body .hb5-chips a,:root body .hb5-more,
  :root body .pcb a,:root body .wcert a,:root body a.mail,:root body .stf-foot a{display:inline-flex;align-items:center;min-height:40px}
  :root body .ou-ib{width:40px;height:40px}
  :root body .pcard>summary,:root body .sw-tools>summary,:root body details.se-card>summary{padding-block:8px}
  /* long email addresses in a narrow box may break rather than run past the edge (FAQ "Still have a question?") */
  :root body a[href^="mailto:"],:root body .aw-b p{overflow-wrap:anywhere}
}

/* Nov 2026 (site review): one language per heading, and shorter pages on phones.
   The red margin notes show their Arabic only (the English line under each one is dropped, in both languages).
   On a phone, where the notes sit above every block, only the first one on the page (beside the top banner) shows. */
.note .en{display:none}
@media (max-width:760px){
  .row>.note{display:none}
  :is(main,.page,#app)>.row:first-of-type>.note,.page>.row:first-child>.note{display:flex}
}
/* section headings on the public pages: no small kicker label above the title */
.sh>.label{display:none}

/* Nov 2026: the sub-tabs under the bar (shell3.js subnav): My project · Logbook · Datasets, and You · Grow */
.v3-sub{max-width:1240px;margin:14px auto 0;box-sizing:border-box}
.v3-sub-in{display:flex;flex-wrap:wrap;gap:8px}
.v3-sub a{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:6px 14px;border-radius:999px;text-decoration:none;color:var(--ink);font-size:14.5px;font-weight:500;background:var(--card);border:1.5px solid var(--rule)}
.v3-sub a i,.v3-sub a svg{color:var(--c,var(--muted))}
.v3-sub a:hover{border-color:var(--c,var(--ink))}
.v3-sub a[aria-current]{background:var(--c-soft,var(--panel));border-color:var(--c,var(--ink));font-weight:700}
@media (max-width:860px){.v3-sub{margin-top:10px}.v3-sub a{font-size:14px;padding:6px 12px}}
/* <<< assets/css/v3.css */
/* >>> assets/css/pub3.css */
/* 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}
/* <<< assets/css/pub3.css */
/* >>> assets/css/v3-guides.css */
/* Basira v3 — Skills guides (guides.html). The chapter reader's look (sheet, margin notes, glosses, toys)
   with the Sep 2026 colour: a navy band on top, blues for datasets, reds for papers.
   Everything is prefixed g- so nothing meets a v3.css class. */

.gd{--acc:var(--blue);--acc2:var(--sky);--accd:var(--blue);--accb:var(--sky2)}
.gd.g-papers{--acc:var(--red);--acc2:var(--rose);--accd:var(--red2);--accb:var(--rose2)}
.gd [data-part-id]{scroll-margin-top:14px}
.gd .rmain{gap:0}
.gd .sheet{margin-top:22px}
.gd .after{margin-top:18px}
.gd code{font-family:var(--mono);font-size:.86em;background:var(--panel);padding:1px 5px;border-radius:2px;overflow-wrap:anywhere}
.gd .fb.ok{color:var(--blue)}.gd .fb.no{color:var(--red)}

/* ---------------------------------------------------------------- rail */
.gd .rail .g-rg{font-weight:600;color:var(--ink);margin-top:6px}
.gd .rail .g-rgn{display:block;font-family:var(--mono);font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:500}
.gd .rail .g-rg[aria-current]{background:transparent}
.gd .rail .g-rg[aria-current] .rd{background:var(--acc);border-color:var(--acc)}
.gd .g-rparts{display:flex;flex-direction:column;margin:2px 0 8px;border-inline-start:2px solid var(--wash);margin-inline-start:10px}
.gd .g-rparts a{padding-inline-start:8px}
.gd .g-rpn{font-family:var(--mono);font-size:11px;color:var(--t2);padding-top:1px}
.gd .g-rparts a[aria-current] .g-rpn{color:var(--acc)}

/* ---------------------------------------------------------------- the band */
.g-toprow{display:grid;grid-template-columns:min(720px,72%) minmax(0,1fr);gap:30px;align-items:start}
.g-band{position:relative;overflow:hidden;background:var(--band);color:var(--on-band);border-radius:6px;padding:28px 30px 24px;display:flex;flex-direction:column;gap:8px;
  background-image:radial-gradient(120% 140% at 100% 0%,var(--band2) 0%,transparent 55%),radial-gradient(60% 90% at 0% 100%,color-mix(in srgb,var(--red) 22%,transparent) 0%,transparent 60%)}
.g-band .motif{position:absolute;right:-30px;top:-10px;width:440px;max-width:70%;color:var(--on-band);opacity:.13;pointer-events:none}
.g-band .label{color:var(--on-band);opacity:.75;position:relative}
.g-band h1{margin:0;font-family:var(--sans);font-weight:700;font-size:clamp(30px,4.4vw,44px);line-height:1.08;letter-spacing:-.015em;color:var(--on-band);position:relative}
.g-band .arh{font-family:var(--deco);font-size:clamp(22px,3vw,30px);direction:rtl;text-align:right;color:#F2A49B;line-height:1.2;margin-top:-6px;position:relative}
.g-band p{margin:0;max-width:60ch;font-size:16.5px;line-height:1.55;opacity:.9;position:relative}
.g-tiles{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.g-tile{display:grid;grid-template-columns:38px minmax(0,1fr);gap:4px 12px;align-items:start;text-decoration:none;color:var(--on-band);padding:12px 14px;border-radius:5px;background:color-mix(in srgb,var(--on-band) 8%,transparent);border:1px solid color-mix(in srgb,var(--on-band) 18%,transparent);min-height:44px}
.g-tile:hover{background:color-mix(in srgb,var(--on-band) 14%,transparent)}
.g-tile[aria-current]{background:color-mix(in srgb,var(--on-band) 16%,transparent);border-color:color-mix(in srgb,var(--on-band) 45%,transparent);box-shadow:inset 0 -3px 0 var(--red)}
.g-tile.t-datasets[aria-current]{box-shadow:inset 0 -3px 0 var(--blue2)}
.g-tn{grid-row:span 2;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-family:var(--serif);font-size:20px;background:var(--red-on,var(--red));color:#fff}
.g-tile.t-datasets .g-tn{background:var(--blue2);color:var(--band)}
.g-tt{display:flex;flex-direction:column;gap:2px;min-width:0}
.g-tt b{font-size:15.5px;line-height:1.25}
.g-tt span{font-size:13px;line-height:1.35;opacity:.8}
.g-tar{grid-column:2;font-family:var(--hand);color:#F2A49B;font-size:17px;direction:rtl;text-align:right;line-height:1.2}
.g-tile:focus-visible{outline:2px solid var(--on-band);outline-offset:2px}

/* ---------------------------------------------------------------- sheet heads, part heads, contents */
.gd .g-title{font-family:var(--sans);font-weight:700;font-size:clamp(30px,4.4vw,42px);letter-spacing:-.015em;line-height:1.1;margin:6px 0 8px;text-wrap:balance}
.gd .shead .label{color:var(--acc)}
.gd .shead{border-bottom-color:var(--accb)}
.gd .prose h2.g-h{display:flex;gap:12px;align-items:center;font-size:24px;line-height:1.2;margin:26px 0 2px}
.g-hn{flex:none;width:34px;height:34px;border-radius:50%;background:var(--acc);color:#fff;display:grid;place-items:center;font-family:var(--serif);font-weight:500;font-size:19px}
.g-datasets .g-hn{color:var(--on-band);background:var(--blue)}
:root[data-theme="dark"] .g-datasets .g-hn{color:var(--band)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .g-datasets .g-hn{color:var(--band)}}
.gd .prose h3{margin-top:18px}
.g-toc{display:none;border:1px solid var(--rule);background:var(--card);border-radius:4px;padding:6px 12px;margin-top:6px}
.g-toc summary{cursor:pointer;font-weight:600;min-height:40px;display:flex;align-items:center}
.g-toc ol{margin:4px 0 8px;padding-inline-start:22px;display:flex;flex-direction:column;gap:4px;font-size:15px}
.g-toc a{text-decoration:none;color:var(--ink)}
.g-toc a:hover{text-decoration:underline}

/* ---------------------------------------------------------------- toys */
.gd .toy.g-toy{border-top:4px solid var(--acc);box-shadow:var(--shadow)}
.gd .toy .th b svg{color:var(--acc)}
.gd .g-sort{display:flex;flex-direction:column;gap:10px}
.gd .g-sort .claim p{font-family:var(--serif);font-size:17px}
.gd .chip[aria-pressed="true"]{background:var(--acc);border-color:var(--acc);color:#fff}
.g-datasets .chip[aria-pressed="true"]{color:var(--on-band)}
:root[data-theme="dark"] .g-datasets .chip[aria-pressed="true"]{color:var(--band)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .g-datasets .chip[aria-pressed="true"]{color:var(--band)}}

/* anatomy of a paper */
.g-anat{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;align-items:start}
.g-paper{background:var(--sheet);border:1px solid var(--rule);box-shadow:var(--shadow);padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
  grid-template-areas:"title title" "abs abs" "intro figs" "meth figs" "disc disc" "refs supp"}
.g-part{position:relative;display:flex;flex-direction:column;gap:6px;text-align:start;border:1.5px dashed var(--t3);background:transparent;border-radius:3px;padding:8px 10px;cursor:pointer;min-height:44px;font-size:13.5px;font-weight:600;line-height:1.25}
.g-part:hover{border-color:var(--acc)}
.g-part[aria-pressed="true"]{border-style:solid;border-color:var(--acc);background:var(--acc2)}
.a-title{grid-area:title}.a-abs{grid-area:abs}.a-intro{grid-area:intro}.a-figs{grid-area:figs}.a-meth{grid-area:meth}.a-disc{grid-area:disc}.a-refs{grid-area:refs}.a-supp{grid-area:supp}
.a-title .g-pl{font-size:15.5px}
.a-abs{background:color-mix(in srgb,var(--panel) 55%,transparent)}
.g-lines{display:flex;flex-direction:column;gap:4px}
.g-lines i{display:block;height:4px;border-radius:2px;background:var(--rule)}
.g-lines i.s{width:62%}
.g-lines i.fg{height:34px;border-radius:2px;background:var(--sky);border:1px solid var(--sky2)}
.g-ord{position:absolute;top:-9px;inset-inline-end:-9px;width:24px;height:24px;border-radius:50%;background:var(--red-on,var(--red));color:#fff;font-family:var(--mono);font-size:12px;display:grid;place-items:center;box-shadow:0 0 0 2px var(--sheet)}
.g-seen{position:absolute;top:6px;inset-inline-end:8px;color:var(--blue)}
.g-ord~.g-pl~.g-seen,.g-part:has(.g-ord) .g-seen{inset-inline-end:22px}
.g-info{background:var(--card);border:1px solid var(--rule);border-inline-start:4px solid var(--acc);padding:14px 16px;min-height:120px;position:sticky;top:12px}
.g-info dl{margin:8px 0 0;display:flex;flex-direction:column;gap:2px}
.g-info dt{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-top:8px}
.g-info dd{margin:0;font-family:var(--serif);font-size:17px;line-height:1.5}

/* spot the overclaim */
.g-abs{background:var(--sheet);border:1px solid var(--rule);padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.g-absh{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.g-absh b{font-size:17px;line-height:1.3}
.g-abp{margin:0;font-family:var(--serif);font-size:18px;line-height:1.75}
.g-sen{display:inline;background:none;border:0;padding:1px 2px;margin:0;font:inherit;color:inherit;text-align:start;cursor:pointer;border-radius:2px;text-decoration:underline dotted var(--t3);text-underline-offset:5px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.g-sen:hover{background:var(--panel)}
.g-sen.on{background:var(--rose);text-decoration:underline solid var(--red);text-decoration-thickness:2px}
.g-sen[disabled]{cursor:default;color:inherit;opacity:1}
.g-sen.hit{background:var(--rose);text-decoration:underline solid var(--red);text-decoration-thickness:2px}
.g-sen.miss{text-decoration:underline wavy var(--red);text-decoration-thickness:1.5px}
.g-sen.fp{background:var(--panel);text-decoration:line-through var(--t2)}
.g-sen.ok{text-decoration:none}
.g-fbl{margin:0;padding-inline-start:24px;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.45}
.g-fbl li.o b{color:var(--red)}

/* mock portal path */
.g-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.g-steps li{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted);border-top:3px solid var(--panel);padding-top:8px}
.g-steps li span{flex:none;width:24px;height:24px;border-radius:50%;border:1.5px solid var(--t3);display:grid;place-items:center;font-family:var(--mono);font-size:11px}
.g-steps li.done{color:var(--ink);border-top-color:var(--blue)}
.g-steps li.done span{background:var(--blue);border-color:var(--blue);color:var(--on-band)}
.g-steps li.now{color:var(--ink);font-weight:600;border-top-color:var(--red)}
.g-steps li.now span{border-color:var(--red);color:var(--red)}
.g-mock{border:1px solid var(--rule);border-radius:6px;overflow:hidden;background:var(--bg)}
.g-mbar{display:flex;align-items:center;gap:6px;background:var(--panel);padding:8px 12px;border-bottom:1px solid var(--rule)}
.g-mbar i{width:9px;height:9px;border-radius:50%;background:var(--t3)}
.g-mbar span{margin-inline-start:8px;font-family:var(--mono);font-size:12px;color:var(--t1);background:var(--card);padding:3px 10px;border-radius:12px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-mq{padding:14px 16px;display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--rule)}
.g-mq:first-of-type{border-top:0}
.g-mq>p:first-child{margin:0;font-weight:600;font-size:16px}
.g-mq.past{opacity:.8}
.g-mq .opt{font-size:15px}
.g-mq .opt[disabled]{cursor:default}
.g-mq .fb{margin:0}

/* dataset card */
.g-cs{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;background:var(--bg);border:1px solid var(--rule);padding:10px 12px;border-radius:4px}
.g-meter{flex:1 1 160px;height:10px;border-radius:5px;background:var(--sky);overflow:hidden}
.g-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--blue),var(--blue2));transition:width .2s}
.g-cacts{display:flex;gap:6px;flex-wrap:wrap}
.g-cf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
.g-fl{display:flex;flex-direction:column;gap:4px;min-width:0}
.g-fk{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);display:flex;gap:6px;align-items:center}
.g-fl.empty .g-fk::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--red)}
.g-fl .field{font-size:14.5px;padding:8px 10px}
.g-why{font-size:12.5px;line-height:1.35;color:var(--red2);display:none}
.g-fl.empty .g-why{display:block}
.g-full{margin:0;color:var(--blue);font-weight:600;display:flex;gap:8px;align-items:center}
.g-full[hidden]{display:none}

/* ---------------------------------------------------------------- do it now, sources */
.g-now{position:relative;border-inline-start:6px solid var(--acc);background:linear-gradient(90deg,var(--acc2) 0%,var(--card) 48%);box-shadow:var(--shadow);padding:20px 22px;display:flex;flex-direction:column;gap:12px;margin-top:22px;border-radius:0 4px 4px 0}
.g-nowh{display:flex;gap:14px;align-items:center}
.g-now .label{color:var(--accd)}
.g-now h2{margin:2px 0 0;font-family:var(--sans);font-weight:700;font-size:24px;line-height:1.2}
.g-clock{flex:none;width:48px;height:48px;border-radius:50%;background:var(--acc);color:#fff;display:grid;place-items:center}
.g-datasets .g-clock{color:var(--on-band)}
.g-clock svg{width:26px;height:26px}
.g-now ol{margin:0;padding-inline-start:22px;display:flex;flex-direction:column;gap:6px;font-family:var(--serif);font-size:18px;line-height:1.5}
.g-nacts{display:flex;gap:10px;flex-wrap:wrap}
.g-now .btn.red{background:var(--red-on,var(--red));border-color:var(--red-on,var(--red));color:#fff}
.g-datasets .g-now .btn.red{background:var(--blue);border-color:var(--blue);color:var(--on-band)}
.g-src{margin-top:22px;border-top:1px solid var(--rule);padding-top:12px;display:flex;flex-direction:column;gap:8px}
.g-src h3{margin:0;font-family:var(--mono);font-weight:500;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.g-src ol{margin:0;padding-inline-start:22px;display:flex;flex-direction:column;gap:5px;font-size:14px;line-height:1.45}
.g-src a{color:var(--t1);text-decoration-color:var(--t3);overflow-wrap:anywhere}
.g-src a:hover{color:var(--ink)}

/* ---------------------------------------------------------------- figures · Guide 1 */
.g-passes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.g-pass{background:var(--sheet);border:1px solid var(--rule);border-top:4px solid var(--blue2);padding:14px;display:flex;flex-direction:column;gap:10px;min-width:0}
.g-pass.p2{border-top-color:var(--blue)}
.g-pass.p3{border-top-color:var(--red)}
.g-mini{width:72px;height:auto;display:block}
.g-mini .g-pg{fill:var(--card);stroke:var(--t3);stroke-width:1}
.g-mini .g-off{fill:var(--panel)}
.g-mini .g-on{fill:var(--blue2)}
.g-mini .g-on2{fill:var(--blue)}
.g-pass.p3 .g-mini .g-on2{fill:var(--red)}
.g-pbody{display:flex;flex-direction:column;gap:4px;min-width:0}
.g-pn{font-family:var(--mono);font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.g-pbody b{font-size:17px;line-height:1.2}
.g-time{align-self:flex-start;font-size:12.5px;font-weight:600;background:var(--sky);color:var(--blue);padding:2px 8px;border-radius:10px}
.g-pass.p3 .g-time{background:var(--rose);color:var(--red2)}
.g-pbody ul{margin:6px 0 0;padding-inline-start:16px;font-size:13.5px;line-height:1.4;display:flex;flex-direction:column;gap:3px}
.g-out{margin:6px 0 0;padding-top:8px;border-top:1px solid var(--rule);font-size:13.5px;line-height:1.45;display:flex;flex-direction:column;gap:2px}
.g-key{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;font-size:12.5px;color:var(--muted)}
.g-key span{display:flex;gap:6px;align-items:center}
.g-sw{width:14px;height:8px;border-radius:2px;display:inline-block}
.g-sw.on{background:var(--blue2)}.g-sw.on2{background:var(--blue)}.g-sw.off{background:var(--panel);outline:1px solid var(--rule)}
.g-pen{margin:8px 0 0}

.g-lad{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;align-items:center}
.g-rungs{position:relative;display:flex;flex-direction:column;border-inline:4px solid var(--ink)}
.g-rung{display:grid;grid-template-columns:96px minmax(0,1fr);gap:4px 12px;align-items:center;padding:12px 44px 12px 12px;border-bottom:4px solid var(--ink);background:var(--sheet);min-height:64px}
.g-rung:last-of-type{border-bottom:0}
.g-lv{display:flex;flex-direction:column;gap:5px}
.g-lv b{font-family:var(--mono);font-size:10.5px;font-weight:500;letter-spacing:.08em;text-transform:uppercase}
.g-lv .pips{display:flex;gap:3px}
.g-lv .pips i{width:15px;height:5px;background:var(--wash)}
.g-lv .pips i.f{background:var(--ink)}
.g-rung q{font-family:var(--serif);font-style:italic;font-size:18px;line-height:1.2;quotes:none}
.g-rung.claimed{background:var(--rose)}
.g-rung.claimed q{color:var(--red)}
.g-rung.earned{background:var(--sky)}
.g-rung.earned q{color:var(--blue)}
.g-tag{grid-column:2;justify-self:start;font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:2px}
.g-tag.red{background:var(--red-on,var(--red));color:#fff}
.g-tag.blue{background:var(--blue);color:var(--on-band)}
.g-bracket{position:absolute;top:12.5%;height:50%;inset-inline-end:10px;width:14px;border:2px dashed var(--red);border-inline-start:0;border-radius:0 6px 6px 0}
.g-bracket span{position:absolute;top:50%;inset-inline-end:18px;transform:translateY(-50%);white-space:nowrap;font-family:var(--serif);font-style:italic;color:var(--red);font-size:14px;display:none}
.g-side{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.g-said,.g-did{display:flex;flex-direction:column;gap:4px;align-self:stretch}
.g-said{border-inline-start:3px solid var(--red);padding-inline-start:12px}
.g-said q{font-family:var(--serif);font-size:18px;line-height:1.4;color:var(--red)}
.g-did{border-inline-start:3px solid var(--blue);padding-inline-start:12px}
.g-did p{margin:0;font-size:15px;line-height:1.45}
.g-side::after{content:"two rungs too high";font-family:var(--serif);font-style:italic;color:var(--red);font-size:15px}

.g-four{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.g-chk{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:start;background:var(--sheet);border:1px solid var(--rule);padding:14px}
.g-chk b{font-size:16.5px}
.g-chk p{margin:4px 0 0;font-size:14.5px;line-height:1.5;color:var(--t1)}
.g-ic{width:52px;height:52px;border-radius:50%;background:var(--sky);display:grid;place-items:center}
.g-chk.k-c .g-ic,.g-chk.k-l .g-ic{background:var(--rose)}
.g-ic svg{width:32px;height:32px}
.g-ic .d1{fill:var(--blue)}.g-ic .d0{fill:var(--t3)}
.g-ic .st{fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.g-ic .fl{fill:var(--rose2);stroke:none}
.g-ic .rd{fill:none;stroke:var(--red);stroke-width:3}

.g-cite{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start}
.g-chain{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.g-doc{align-self:stretch;border:1.5px solid var(--ink);background:var(--sheet);padding:12px 14px;display:flex;flex-direction:column;gap:6px;position:relative}
.g-doc p{margin:0;font-family:var(--serif);font-size:17px;line-height:1.45}
.g-doc mark{background:var(--rose);color:var(--red2);font-family:var(--mono);font-size:.85em;padding:0 3px}
.g-doc.src{border-style:dashed;border-color:var(--t2)}
.g-doc .stamp{align-self:flex-end;margin-top:4px}
.g-arr{align-self:stretch;display:flex;align-items:center;gap:10px;padding-inline-start:18px;min-height:30px;font-family:var(--serif);font-style:italic;color:var(--red);font-size:14.5px}
.g-arr::before{content:"";width:2px;height:28px;background:var(--red);position:relative}
.g-waf{display:flex;flex-direction:column;gap:10px}
.g-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;max-width:260px}
.g-grid i{display:block;aspect-ratio:1;background:var(--sky2);border-radius:1px}
.g-grid i.maj{background:var(--red)}
.g-grid i.min{background:var(--rose2)}
.g-wl{display:flex;flex-direction:column;gap:5px;font-size:13.5px;line-height:1.35;color:var(--t1)}
.g-wl>span{display:grid;grid-template-columns:14px minmax(0,1fr);gap:8px;align-items:start}
.g-wl i{width:12px;height:12px;border-radius:1px;background:var(--sky2);margin-top:3px}
.g-wl i.maj{background:var(--red)}.g-wl i.min{background:var(--rose2)}
.g-wl b{color:var(--ink);margin-inline-end:4px}

.g-lat{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.g-lp{border:1.5px dashed var(--t3);padding:14px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.g-lp.on{border:1.5px solid var(--sky2);background:var(--sky)}
.g-lp svg{width:100%;max-width:220px;height:auto;align-self:center}
.g-lp p{margin:0;font-size:14.5px;line-height:1.5}
.fh.blue{color:var(--blue)}
.g-lp .win{fill:var(--sheet);stroke:var(--t2);stroke-width:1.5}
.g-lp .bar{fill:var(--panel);stroke:var(--t2);stroke-width:1.5}
.g-lp .win.t2,.g-lp .win.t3{stroke:var(--blue)}
.g-lp .bar.t2,.g-lp .bar.t3{fill:var(--sky2);stroke:var(--blue)}
.g-lp .dot{fill:var(--t3)}
.g-lp .logo{fill:var(--ink)}
.g-lp .ln{stroke:var(--rule);stroke-width:3;stroke-linecap:round}
.g-lp .arw{stroke:var(--red);stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.g-lp .lens{stroke:var(--blue);stroke-width:3;fill:none;stroke-linecap:round}

.g-lb{display:grid;grid-template-columns:minmax(0,1.75fr) 22px minmax(0,1fr);gap:8px;align-items:center}
.g-lbe{background:var(--sheet);border:1px solid var(--rule);border-top:4px solid var(--blue);padding:14px;display:flex;flex-direction:column;gap:10px}
.g-lbh{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:center}
.g-kind{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;background:var(--sky);color:var(--blue);padding:2px 8px;border-radius:2px}
.g-lbe dl{margin:0;display:grid;grid-template-columns:104px minmax(0,1fr);gap:6px 12px}
.g-lbe dt{font-size:12.5px;color:var(--muted);line-height:1.35}
.g-lbe dd{margin:0;font-family:var(--serif);font-size:15.5px;line-height:1.4}
.g-tick{display:flex;gap:8px;align-items:center;font-size:14px;font-weight:500}
.g-tick i{width:18px;height:18px;border-radius:3px;background:var(--blue);color:var(--on-band);display:grid;place-items:center}
.g-lbarr{text-align:center;color:var(--red);font-size:22px}
.g-lbc{border-inline-start:3px solid var(--red);background:var(--card);padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.g-lbc q{font-family:var(--serif);font-size:17px;line-height:1.4}
.g-verd{display:flex;flex-wrap:wrap;gap:5px}
.g-verd span{font-size:12.5px;border:1px solid var(--rule);border-radius:12px;padding:2px 9px;color:var(--t1)}
.g-verd span.on{background:var(--red-on,var(--red));border-color:var(--red-on,var(--red));color:#fff}

/* ---------------------------------------------------------------- figures · Guide 2 */
.g-tree{display:flex;flex-direction:column;gap:0}
.g-q0{align-self:center;background:var(--band);color:var(--on-band);border-radius:4px;padding:12px 18px;text-align:center;display:flex;flex-direction:column;gap:2px;max-width:440px;position:relative}
.g-q0 .fh{color:var(--on-band);opacity:.7}
.g-q0 b{font-size:16.5px;line-height:1.3}
.g-q0::after{content:"";position:absolute;left:50%;bottom:-18px;width:2px;height:18px;background:var(--t2)}
.g-br{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,3fr);gap:10px;padding-top:18px;margin-top:18px}
.g-br::before{content:"";position:absolute;top:0;left:12%;right:37.5%;height:2px;background:var(--t2)}
.g-col{display:flex;flex-direction:column;align-items:center;min-width:0;position:relative}
.g-col::before{content:"";position:absolute;top:-18px;left:50%;width:2px;height:18px;background:var(--t2)}
.g-lab{font-family:var(--mono);font-size:11.5px;letter-spacing:.07em;text-transform:uppercase;background:var(--panel);padding:3px 10px;border-radius:12px}
.g-col.cl .g-lab{background:var(--rose);color:var(--red2)}
.g-col.pt .g-lab{background:var(--sky);color:var(--blue)}
.g-stem{width:2px;height:14px;background:var(--t2)}
.g-q1{background:var(--card);border:1px solid var(--rule);padding:6px 12px;font-weight:600;font-size:14px;border-radius:3px;position:relative}
.g-q1::after{content:"";position:absolute;left:50%;bottom:-14px;width:2px;height:14px;background:var(--t2)}
.g-leaves{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:14px;margin-top:14px;align-self:stretch}
.g-leaves::before{content:"";position:absolute;top:0;left:16.6%;right:16.6%;height:2px;background:var(--t2)}
.g-leaves .g-leaf{position:relative}
.g-leaves .g-leaf::before{content:"";position:absolute;top:-16px;left:50%;width:2px;height:14px;background:var(--t2)}
.g-leaf{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;text-decoration:none;background:var(--sheet);border:1px solid var(--rule);border-top:4px solid var(--blue);padding:10px 8px;min-width:0;align-self:stretch;border-radius:0 0 3px 3px}
.g-leaf:hover b{text-decoration:underline}
.g-leaf svg{width:24px;height:24px;color:var(--blue)}
.g-leaf b{font-size:15px}
.g-leaf span{font-size:12.5px;line-height:1.3;color:var(--t1)}
.g-leaf.cbio{border-top-color:var(--blue2)}.g-leaf.cbio svg{color:var(--blue2)}
.g-leaf.dep{border-top-color:var(--red)}.g-leaf.dep svg{color:var(--red)}
.g-leaf.geo{border-top-color:var(--ink)}.g-leaf.geo svg{color:var(--ink)}
.g-col.cl .g-leaf{align-self:stretch}
.g-catline{margin-top:16px;display:flex;gap:10px;align-items:center;background:var(--wash);padding:10px 12px;border-radius:3px;font-size:14px;line-height:1.45}
.g-catline svg{flex:none;width:22px;height:22px;color:var(--red2)}
.g-catline a{font-weight:600}

.g-portals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:6px 0}
.g-portal{background:var(--card);border:1px solid var(--rule);border-top:4px solid var(--blue);padding:14px 16px;display:flex;flex-direction:column;gap:10px;min-width:0;box-shadow:var(--shadow)}
.g-portal.cbio{border-top-color:var(--blue2)}.g-portal.dep{border-top-color:var(--red)}.g-portal.geo{border-top-color:var(--ink)}
.g-ph{display:flex;gap:10px;align-items:center}
.g-pic{flex:none;width:40px;height:40px;border-radius:50%;background:var(--sky);color:var(--blue);display:grid;place-items:center}
.g-pic svg{width:22px;height:22px}
.g-portal.dep .g-pic{background:var(--rose);color:var(--red2)}
.g-portal.geo .g-pic{background:var(--panel);color:var(--ink)}
.g-ph b{display:block;font-size:17px}
.g-ph a{font-family:var(--mono);font-size:12px;color:var(--t1);overflow-wrap:anywhere}
.g-portal dl{margin:0;display:grid;grid-template-columns:78px minmax(0,1fr);gap:6px 10px}
.g-portal dt{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding-top:3px}
.g-portal dd{margin:0;font-size:14px;line-height:1.45}
.g-portal dd.w{color:var(--red2)}

.g-st{display:flex;flex-direction:column;gap:7px}
.g-sth{display:flex;justify-content:space-between}
.g-sr{display:grid;grid-template-columns:minmax(0,230px) minmax(0,1fr) 92px;gap:10px;align-items:center;font-size:13.5px}
.g-sl{line-height:1.3}
.g-sb{height:16px;background:var(--panel);border-radius:2px;overflow:hidden}
.g-sb i{display:block;height:100%;background:var(--blue2)}
.g-sr.c .g-sb i{background:var(--blue)}
.g-sr.c .g-sl{font-weight:600}
.g-sv{font-family:var(--serif);font-size:18px;text-align:end;line-height:1;display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.g-sv small{font-family:var(--mono);font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.g-stn{margin:6px 0 0;font-family:var(--serif);font-style:italic;color:var(--red);font-size:15px}

.g-star{display:flex;flex-direction:column;gap:12px}
.g-starw{overflow-x:auto;border:1px solid var(--rule);background:var(--sheet)}
.g-starw:focus-visible{outline:2px solid var(--ink)}
.g-star table{border-collapse:collapse;font-family:var(--mono);font-size:12px;white-space:nowrap}
.g-star td{padding:4px 10px;border-bottom:1px solid var(--rule);vertical-align:middle}
.g-star td.num{text-align:end}
.g-star tr.cm td{color:var(--muted);font-style:italic}
.g-star tr.hd td{background:var(--panel);font-weight:500}
.g-star tr.nn td{background:var(--rose);color:var(--red2)}
.g-star tr.tp td{background:var(--sky)}
.g-star td.raw{font-weight:500;color:var(--blue)}
.g-star tr.hd td.raw,.g-star tr.nn td.raw{color:inherit}
.g-cn{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--red-on,var(--red));color:#fff;font-family:var(--mono);font-size:10.5px;font-style:normal;font-weight:500;margin-inline-end:6px;vertical-align:1px}
.g-cns{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.g-cns li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:4px;font-size:14px;line-height:1.45}

.g-sm{display:flex;flex-direction:column;gap:10px}
.g-smh{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:baseline}
.g-smh b{font-size:16px}
.g-stack{display:flex;height:28px;border-radius:3px;overflow:hidden;background:var(--panel)}
.g-stack i{display:block;height:100%}
.g-stack i+i{border-inline-start:2px solid var(--bg)}
.g-sm .tu{background:var(--blue)}.g-sm .no{background:var(--blue2)}.g-sm .me{background:var(--red)}
.g-sml{display:flex;gap:16px;flex-wrap:wrap;font-size:13.5px;color:var(--t1)}
.g-sml span{display:flex;gap:6px;align-items:center}
.g-sml i{width:12px;height:12px;border-radius:2px}
.g-sml b{color:var(--ink)}
.g-vs{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:14px;color:var(--muted)}
.g-vsn{font-family:var(--serif);font-size:32px;color:var(--ink);line-height:1}
.g-vso{font-family:var(--serif);font-size:30px;color:var(--red);margin-inline:6px}
.g-bc{border-top:1px solid var(--rule);padding-top:10px;display:flex;flex-direction:column;gap:8px}
.g-bcr{display:flex;align-items:stretch;flex-wrap:wrap;gap:0}
.g-bf{display:flex;flex-direction:column;gap:2px;border:1.5px solid var(--ink);background:var(--sheet);padding:6px 10px;min-width:0}
.g-bf b{font-family:var(--mono);font-size:17px;font-weight:500}
.g-bf small{font-size:11.5px;color:var(--muted);line-height:1.2}
.g-bf.hi{border-color:var(--red);background:var(--rose)}
.g-bf.hi b{color:var(--red)}
.g-dash{display:grid;place-items:center;font-family:var(--mono);font-size:18px;padding:0 4px;color:var(--t2)}
.g-codes{display:flex;gap:8px;flex-wrap:wrap}
.g-codes span{display:flex;gap:6px;align-items:center;font-size:13.5px;border:1px solid var(--rule);border-radius:14px;padding:3px 10px 3px 4px;background:var(--card)}
.g-codes b{font-family:var(--mono);font-weight:500;background:var(--ink);color:var(--on-ink);border-radius:10px;padding:1px 7px;font-size:12px}

.g-un{display:flex;flex-direction:column;gap:16px}
.g-ids,.g-nums{display:flex;flex-direction:column;gap:8px}
.g-idr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.g-id{background:var(--sheet);border:1px solid var(--rule);padding:10px;display:flex;flex-direction:column;gap:3px;min-width:0}
.g-id .k{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.g-id b{font-family:var(--mono);font-size:14px;font-weight:500;overflow-wrap:anywhere;color:var(--blue)}
.g-id .s{font-size:12.5px;line-height:1.35;color:var(--t1)}
.g-nr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.g-n{background:var(--sheet);border:1px solid var(--rule);border-top:4px solid var(--t3);padding:10px;display:flex;flex-direction:column;gap:4px;min-width:0}
.g-n.ok{border-top-color:var(--blue)}.g-n.mid{border-top-color:var(--blue2)}
.g-n code{background:none;padding:0;font-size:11px;color:var(--muted)}
.g-n b{font-family:var(--serif);font-size:28px;font-weight:500;line-height:1}
.g-n.ok b{color:var(--blue)}
.g-n span{font-size:12.5px;line-height:1.4;color:var(--t1)}
.g-log{margin:0;font-family:var(--serif);font-size:16px;line-height:1.5;border-inline-start:3px solid var(--red);padding-inline-start:12px}

.g-terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.g-term.shut{grid-column:1/-1}
.g-term{background:var(--card);border:1px solid var(--rule);border-top:4px solid var(--blue);padding:12px 14px;display:flex;flex-direction:column;gap:6px;min-width:0}
.g-term.cbio{border-top-color:var(--blue2)}.g-term.dep{border-top-color:var(--red)}.g-term.geo{border-top-color:var(--ink)}
.g-term.shut{background:transparent;border-style:dashed;border-top-style:solid;border-top-color:var(--t3)}
.g-term b{font-size:15.5px}
.g-term p{margin:0;font-size:13.5px;line-height:1.5;color:var(--t1)}
.g-lock{align-self:flex-start;display:inline-flex;gap:5px;align-items:center;font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);background:var(--sky);padding:2px 8px;border-radius:2px}
.g-lock svg{width:12px;height:12px}
.g-term.shut .g-lock{color:var(--red2);background:var(--rose)}

/* ---------------------------------------------------------------- responsive */
@media (max-width:1060px){
  .g-toc{display:block}
}
@media (max-width:860px){
  .g-toprow{grid-template-columns:minmax(0,1fr);gap:8px}
  .g-toprow>.note{order:-1;transform:rotate(-.4deg);padding-top:0}
  .gd .sheet{margin-top:14px}
  .g-anat{grid-template-columns:minmax(0,1fr)}
  .g-info{position:static}
}
@media (max-width:760px){
  .g-passes{grid-template-columns:minmax(0,1fr)}
  .g-pass{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:start}
  .g-mini{width:64px}
  .g-lad,.g-cite,.g-lat{grid-template-columns:minmax(0,1fr)}
  .g-lb{grid-template-columns:minmax(0,1fr)}
  .g-lbarr{transform:rotate(90deg)}
  .g-portals{grid-template-columns:minmax(0,1fr)}
  .g-cns{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:620px){
  .g-band{padding:22px 18px 18px}
  .g-tiles{grid-template-columns:minmax(0,1fr)}
  .g-four{grid-template-columns:minmax(0,1fr)}
  .g-chk{grid-template-columns:44px minmax(0,1fr)}
  .g-ic{width:44px;height:44px}.g-ic svg{width:28px;height:28px}
  .g-rung{grid-template-columns:minmax(0,1fr);padding-inline-end:40px;gap:6px}
  .g-tag{grid-column:1}
  .g-paper{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "abs" "intro" "figs" "meth" "disc" "refs" "supp"}
  .g-lines i.fg{height:22px}
  .g-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-cf{grid-template-columns:minmax(0,1fr)}
  .g-terms{grid-template-columns:minmax(0,1fr)}
  .g-br{grid-template-columns:minmax(0,1fr);gap:18px}
  .g-br::before,.g-col::before{display:none}
  .g-leaves{grid-template-columns:minmax(0,1fr)}
  .g-leaves::before,.g-leaves .g-leaf::before{display:none}
  .g-leaf{flex-direction:row;text-align:start;gap:10px}
  .g-leaf span{flex:1}
  .g-sr{grid-template-columns:minmax(0,1fr) 78px;gap:4px 10px}
  .g-sl{grid-column:1/-1}
  .g-lbe dl{grid-template-columns:minmax(0,1fr);gap:2px}
  .g-lbe dd{margin-bottom:6px}
  .g-portal dl{grid-template-columns:minmax(0,1fr);gap:2px}
  .g-portal dd{margin-bottom:6px}
  .g-now{padding:18px 16px}
  .g-now ol{font-size:17px}
}
@media (max-width:420px){
  .g-idr,.g-nr{grid-template-columns:minmax(0,1fr)}
}

/* a cross-reference into a chapter that is not open yet */
.xref.shut{opacity:.7;cursor:default}

/* Figure 7, the portal tree, as SVG (Sep 2026 redraw). Colours come from the theme tokens. */
.g-tree2{container-type:inline-size;display:flex;flex-direction:column}
.g-tsvg{display:block;width:100%;height:auto;overflow:visible;font-family:var(--sans)}
.g-tsvg.ph{display:none;max-width:420px;margin:0 auto}
@container (max-width:540px){.g-tsvg.wd{display:none}.g-tsvg.ph{display:block}}
.gt-q0{fill:var(--band)}
.gt-fh{fill:var(--on-band);opacity:.72;font-family:var(--mono);font-size:10.5px;letter-spacing:.12em}
.gt-q{fill:var(--on-band);font-size:15.5px;font-weight:700}
.gt-ln{fill:none;stroke:var(--t3);stroke-width:1.6}
.gt-pill.cl{fill:var(--rose)}.gt-pill.pt{fill:var(--sky)}
.gt-pt{font-family:var(--mono);font-size:11px;letter-spacing:.08em}
.gt-pt.cl{fill:var(--red2)}.gt-pt.pt{fill:var(--blue)}
.gt-box{fill:var(--sheet);stroke:var(--rule);stroke-width:1}
.gt-q1{fill:var(--ink);font-size:13.5px;font-weight:600}
.gt-acc.dep{fill:var(--red)}.gt-acc.cbio{fill:var(--blue2)}.gt-acc.gdc{fill:var(--blue)}.gt-acc.geo{fill:var(--ink)}
.gt-ic.dep{color:var(--red)}.gt-ic.cbio{color:var(--blue2)}.gt-ic.gdc{color:var(--blue)}.gt-ic.geo{color:var(--ink)}
.gt-nm{fill:var(--ink);font-size:15px;font-weight:700}
.gt-ds{fill:var(--t1);font-size:13px}
.gt-leaf{cursor:pointer}
.gt-leaf:hover .gt-nm{text-decoration:underline}
.gt-leaf:hover .gt-box{stroke:var(--t3)}
.gt-leaf:focus{outline:none}
.gt-leaf:focus-visible .gt-box{stroke:var(--ink);stroke-width:2}
/* Figure 9: say the table scrolls */
.g-hint{margin:-4px 0 0;font-size:12.5px;color:var(--muted);display:flex;gap:6px;align-items:baseline}
/* Figure 10: the seven metastatic files stay visible (about 3px at full width, so drawn 4px), and the barcode keeps its four parts on one line */
.g-stack i+i{border-inline-start-width:1px}
.g-stack i.me{min-width:4px}
.g-bc{container-type:inline-size}
.g-bcr{display:grid;grid-template-columns:auto 18px auto 18px auto 18px auto;justify-content:start}
.g-dash{padding:0}
@container (max-width:460px){
  .g-bcr{grid-template-columns:minmax(0,.9fr) 12px minmax(0,1fr) 12px minmax(0,1fr) 12px minmax(0,1.1fr);justify-content:stretch}
  .g-bf{padding:5px 6px}
  .g-bf b{font-size:14.5px}
  .g-bf small{font-size:10.5px}
  .g-dash{font-size:15px}
}

/* ---------------------------------------------------------------- Guide 3: making connections (Sep 2026) */
.gd.g-connect{--acc:var(--ink);--acc2:var(--wash);--accd:var(--ink);--accb:var(--rule)}
.g-connect .g-hn{color:var(--on-ink)}
.g-connect .g-now .btn.red{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.g-connect .chip[aria-pressed="true"]{color:var(--on-ink)}
.g-tile.t-connect[aria-current]{box-shadow:inset 0 -3px 0 var(--on-band)}
.g-tile.t-connect .g-tn{background:var(--on-band);color:var(--band)}
.g-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1060px){.g-tiles{grid-template-columns:minmax(0,1fr)}}
.g-where{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.g-wh{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:start;background:var(--card);border:1px solid var(--rule);border-top:3px solid var(--ink);padding:12px 14px;border-radius:3px}
.g-wh:nth-child(2n){border-top-color:var(--red)}
.g-wh:last-child{grid-column:1/-1}
.g-whic{width:40px;height:40px;border-radius:50%;background:var(--wash);display:grid;place-items:center;color:var(--ink)}
.g-whic svg{width:22px;height:22px}
.g-wh b{font-size:15.5px}
.g-wh p{margin:3px 0 0;font-size:14px;line-height:1.5;color:var(--t1)}
.g-em{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.g-emg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%}
.g-emc{background:var(--sheet);border:1px solid var(--rule);border-top:3px solid var(--red);padding:12px 14px;display:flex;flex-direction:column;gap:8px;min-width:0}
.g-emc.good{border-top-color:var(--blue)}
.g-emc .fh{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.g-emc .fh.red{color:var(--red)}.g-emc .fh.blue{color:var(--blue)}
.g-emsub{display:grid;grid-template-columns:62px minmax(0,1fr);gap:8px;align-items:center;font-size:14px;border-bottom:1px solid var(--rule);padding-bottom:6px;font-weight:600}
.g-emsub span{font-family:var(--mono);font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:500}
.g-embody p{margin:0 0 7px;font-family:var(--serif);font-size:15px;line-height:1.45}
.g-emc.bad .g-embody{color:var(--t1)}
.g-emk{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;width:100%}
.g-emk li{display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:1.45}
.g-fu{display:flex;flex-direction:column;gap:12px}
.g-fut{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;position:relative}
.g-fus{position:relative;padding:14px 16px 12px;border-top:4px solid var(--blue);background:var(--card);border-inline-end:1px solid var(--rule)}
.g-fus.f{border-top-color:var(--ink)}.g-fus.x{border-top-color:var(--red)}
.g-fus:last-child{border-inline-end:0}
.g-fus::before{content:"";position:absolute;top:-10px;left:14px;width:14px;height:14px;border-radius:50%;background:var(--sheet);border:3px solid currentColor;color:var(--blue)}
.g-fus.f::before{color:var(--ink)}.g-fus.x::before{color:var(--red)}
.g-fud{display:block;font-family:var(--mono);font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-top:4px}
.g-fus b{display:block;font-size:16px;margin-top:2px}
.g-fus p{margin:4px 0 0;font-size:14px;line-height:1.5;color:var(--t1)}
.g-fun{margin:0;font-family:var(--serif);font-size:16px;font-style:italic}
.g-mt{display:flex;flex-direction:column;gap:8px}
.g-mtr{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;align-items:start;padding:10px 14px;border-radius:3px;border:1px solid var(--rule);background:var(--card)}
.g-mtr.r0{margin-inline-end:36%}.g-mtr.r1{margin-inline-end:24%}.g-mtr.r2{margin-inline-end:12%}
.g-mtr.r0{background:var(--wash)}
.g-mtn{width:32px;height:32px;border-radius:50%;background:var(--ink);color:var(--on-ink);display:grid;place-items:center;font-family:var(--serif);font-size:17px}
.g-mtr b{font-size:15.5px}
.g-mtw{display:block;font-size:13px;color:var(--muted)}
.g-mtr p{margin:3px 0 0;font-size:14px;line-height:1.5;color:var(--t1)}
.g-mtn2{margin:10px 0 0;font-family:var(--serif);font-size:16px;font-style:italic}
.g-dprev{background:var(--sheet);border:1px solid var(--rule);border-top:3px solid var(--ink);padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.g-dprev .g-emsub .field{font-size:14px;padding:6px 8px;font-weight:500;width:100%;box-sizing:border-box}
.g-dtext{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--serif);font-size:15.5px;line-height:1.5;color:var(--ink)}
.g-dwc.over{color:var(--red)}
@media (max-width:760px){.g-where,.g-emg,.g-emk,.g-fut{grid-template-columns:minmax(0,1fr)}.g-fus{border-inline-end:0;margin-top:12px}.g-mtr.r0,.g-mtr.r1,.g-mtr.r2{margin-inline-end:0}}
.g-emk .g-cn{flex:none}

/* v5: the line at the top saying these guides belong to Principles of Research */
.g-pr{margin:0 0 14px;font-size:15px;line-height:1.5;color:var(--ink);max-width:72ch}
.g-pr a{font-weight:600;white-space:nowrap}

/* ---------------------------------------------------------------- v5f: Principles green, book covers in the band */
.gd,.gd.g-papers,.gd.g-datasets,.gd.g-connect{--acc:var(--lv1);--acc2:var(--lv1-bg);--accd:var(--lv1);--accb:color-mix(in srgb,var(--lv1) 35%,var(--rule))}
:root[data-theme="dark"] .gd .chip[aria-pressed="true"],:root[data-theme="dark"] .gd .g-hn,:root[data-theme="dark"] .gd .g-clock{color:#0C2B4B}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .gd .chip[aria-pressed="true"],:root:not([data-theme="light"]) .gd .g-hn,:root:not([data-theme="light"]) .gd .g-clock{color:#0C2B4B}}
.g-band{border-radius:16px;padding:28px 30px 26px;gap:12px;
  background-image:radial-gradient(110% 90% at 100% 0%,color-mix(in srgb,#2F7A5B 55%,transparent),transparent 60%),radial-gradient(60% 90% at 0% 100%,color-mix(in srgb,var(--red) 16%,transparent) 0%,transparent 60%)}
.gh-top{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:16px;align-items:center}
.gh-txt{display:flex;flex-direction:column;gap:8px;min-width:0}
.gh-txt .arh{text-align:left;margin-top:0}
.gh-art{width:100%;height:auto}
.g-books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(5,auto);gap:0 12px;margin-top:6px}
.g-book{grid-row:span 5;display:grid;grid-template-rows:subgrid;row-gap:6px;position:relative;text-decoration:none;color:#F7F4EE;
  padding:14px 14px 12px 22px;border-radius:4px 12px 12px 4px;background:linear-gradient(160deg,#36875F 0%,#2F7A5B 55%,#276B4F 100%);
  box-shadow:3px 3px 0 -1px #DDEFE6,3px 3px 0 0 rgba(0,0,0,.18),0 12px 22px -14px rgba(0,0,0,.7);transition:transform .15s}
.g-book::before{content:"";position:absolute;inset:0 auto 0 0;width:9px;border-radius:4px 0 0 4px;background:#1F5A42;box-shadow:inset -2px 0 0 rgba(255,255,255,.12)}
.g-book:hover{transform:translateY(-2px)}
.g-book:focus-visible{outline:3px solid #F7F4EE;outline-offset:3px}
.g-book[aria-current]{outline:2.5px solid #7FCBA6;outline-offset:3px}
.gb-top{display:flex;align-items:center;gap:10px}
.gb-ic{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:rgba(247,244,238,.16);border:1px solid rgba(247,244,238,.25);color:#DDEFE6;flex:none}
.gb-n{font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;opacity:.85}
.gb-on{margin-inline-start:auto;font-size:11.5px;font-weight:700;padding:2px 9px;border-radius:99px;background:#F7F4EE;color:#1F5A42}
.gb-t{font-size:15.5px;line-height:1.25;align-self:end}
.gb-l{font-size:13px;line-height:1.4;opacity:.88}
.gb-ar{font-family:var(--hand);color:#F2C9A0;font-size:17px;direction:rtl;text-align:right;line-height:1.25;align-self:end}
.gb-meta{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;padding-top:7px;border-top:1px dashed rgba(247,244,238,.3);opacity:.9}
.g-plink{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;margin-top:8px;padding:12px 14px;border-radius:12px;text-decoration:none;color:var(--on-band);
  background:color-mix(in srgb,var(--on-band) 9%,transparent);border:1px solid color-mix(in srgb,var(--on-band) 18%,transparent)}
.g-plink:hover{background:color-mix(in srgb,var(--on-band) 15%,transparent)}
.g-plink .gp-ic{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#7FCBA6;color:#0C2B4B}
.g-plink b{display:block;font-size:15px}
.g-plink span span{display:block;font-size:13.5px;opacity:.85;line-height:1.4}
@media (max-width:1060px){.g-books{grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:12px}.g-book{grid-row:auto;grid-template-rows:none}}
@media (max-width:620px){.gh-top{grid-template-columns:minmax(0,1fr)}.gh-art{display:none}.g-band{padding:22px 18px 20px}}
@media (prefers-reduced-motion:reduce){.g-book{transition:none}.g-book:hover{transform:none}}
.g-plink .gp-go{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:700;white-space:nowrap;padding:7px 12px;border-radius:99px;background:#F7F4EE;color:#1F5A42}
@media (max-width:620px){.g-plink{grid-template-columns:40px minmax(0,1fr)}.g-plink .gp-go{grid-column:2;justify-self:start}}
@media (max-width:620px){.g-book{padding:12px 12px 12px 20px;row-gap:4px}.g-book .gb-l,.g-book .gb-meta{display:none}.g-books{gap:10px}}

/* v5h: part headings get an icon tile with the part number on its corner */
.gd .prose h2.g-h .g-ht{position:relative;width:42px;height:42px}
.g-ht .g-hn{position:absolute;top:-7px;right:-7px;width:21px;height:21px;font-family:var(--sans);font-weight:700;font-size:11.5px;line-height:1;background:var(--lv1);color:var(--bg);box-shadow:0 0 0 2px var(--card)}
.g-datasets .g-ht .g-hn{background:var(--lv1);color:var(--bg)}
:root[data-theme="dark"] .g-datasets .g-ht .g-hn{color:var(--bg)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .g-datasets .g-ht .g-hn{color:var(--bg)}}
.gh-txt .vh-k{margin-bottom:2px}

/* v33: "Want the printable PDF?" at the end of each guide (v3-guides.js pdfBox), and the printable version itself
   (guides.html?print=1#<guide>: only the guide, then the print window) */
.g-pdf{margin-top:22px;padding:20px 22px;border-radius:14px;background:var(--lv1-soft,#EEF7F2);border:1px solid color-mix(in srgb,var(--lv1,#2E7658) 25%,transparent);display:flex;flex-direction:column;gap:12px}
.g-pdf-h{display:flex;gap:12px;align-items:center}
.g-pdf h2{margin:0;font-family:var(--sans);font-weight:700;font-size:22px;line-height:1.2}
.g-pdf .arh{display:block;font-family:var(--naskh);color:var(--lv1,#2E7658);font-size:17px;direction:rtl;text-align:start}
.g-pdf p{margin:0;font-size:16px;line-height:1.5;color:var(--t1)}
.g-pdf-f{display:flex;flex-direction:column;gap:10px}
.g-pdf-l{font-weight:600;font-size:14.5px}
.g-pdf-row{display:flex;gap:10px;flex-wrap:wrap}
.g-pdf-row .field{flex:1 1 240px;min-width:0}
.g-pdf .btn.red{background:var(--red-on,var(--red));border-color:var(--red-on,var(--red));color:#fff}
.g-pdf-ck{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;line-height:1.45;cursor:pointer}
.g-pdf-ck input{margin-top:3px;width:18px;height:18px;flex:none;accent-color:var(--lv1,#2E7658)}
.g-pdf-ck .ar,.g-pdf-ok .ar{display:block;font-family:var(--naskh);direction:rtl;text-align:start;font-size:15px;color:var(--t1);margin-top:2px}
.g-pdf-ok{display:flex;gap:10px;align-items:flex-start}
.g-pdf-msg{min-height:1em}.g-pdf-msg.bad{color:var(--red)}
.g-pdf .hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
html.g-print #hdr,html.g-print #pub,html.g-print #shell,html.g-print #pubfoot,html.g-print .rail,html.g-print .g-toprow,html.g-print .after,html.g-print .g-toc,html.g-print .g-nacts,html.g-print .v3-bans{display:none!important}
html.g-print .reader{display:block}
@media print{
  .rail,.g-toprow,.after,.g-pdf,#g-pdf,#pubfoot,#pub,#shell,#hdr,.g-nacts,.arpop{display:none!important}
  .reader{display:block}
  body{background:#fff}
}
.g-pdf-jump{display:inline-flex;align-items:center;gap:5px;background:none;border:1px solid currentColor;border-radius:99px;padding:2px 10px;font:inherit;font-size:13px;color:var(--lv1,#2E7658);cursor:pointer}
/* <<< assets/css/v3-guides.css */
/* >>> assets/css/v3-kinds.css */
/* Al Basira v3.2: the three kinds of thing on the timetable (approved preview, work-icons.html),
   the sixth tab, banners and the check-in card. shell3.js injects this file once. */

/* ---------------- kind badges: colour, glyph and shape all differ, so they read apart even in grey */
.kic{display:inline-grid;place-items:center;flex:none;color:#fff;width:var(--s,34px);height:var(--s,34px)}
.kic svg{width:58%;height:58%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.kic.k-session{background:var(--blue);border-radius:50%}
.kic.k-assignment{background:var(--red);border-radius:4px 12px 4px 4px}
.kic.k-quiz{background:var(--ink);border-radius:6px;transform:rotate(45deg);width:calc(var(--s,34px) * .8);height:calc(var(--s,34px) * .8);margin:calc(var(--s,34px) * .1)}
.kic.k-quiz svg{transform:rotate(-45deg);width:70%;height:70%;stroke-width:2.2}
:root[data-theme="dark"] .kic{color:var(--bg)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .kic{color:var(--bg)}}

/* small chips in the kinds' colours */
.kchip{display:inline-block;font-size:12.5px;font-weight:600;padding:2px 9px;border-radius:999px;line-height:1.5;white-space:nowrap}
.kchip.c-b{background:var(--sky);color:var(--blue)}
.kchip.c-r{background:var(--rose);color:var(--red2)}
.kchip.c-rr{background:var(--red);color:var(--on-ink)}
.kchip.c-q{background:var(--wash);color:var(--ink)}
.kchip.c-g{background:var(--panel);color:var(--t1)}

/* ---------------- six tabs */
@media (max-width:860px){.tabbar{grid-template-columns:repeat(6,minmax(0,1fr))}.tabbar a{font-size:11px;min-width:0}.tabbar a span{white-space:nowrap}}
.bar nav .nl-s{display:none}

/* ---------------- banners (app_config 'banners') */
.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)}

/* ---------------- the check-in card, and pages held behind it */
.v3-ci{max-width:1240px;margin:16px auto 0}
.v3-ci .row{align-items:start}
.v3-ci .cic{background:var(--band);color:var(--on-band);border-radius:6px;padding:22px 24px;display:flex;gap:18px;align-items:center;flex-wrap:wrap;
  background-image:radial-gradient(120% 140% at 100% 0%,var(--band2) 0%,transparent 55%)}
.v3-ci .cic .kicker{font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.8}
.v3-ci .cic h2{margin:2px 0 4px;font-family:var(--sans);font-weight:700;font-size:clamp(21px,2.6vw,26px);color:var(--on-band)}
.v3-ci .cic p{margin:0;max-width:62ch;font-size:15.5px;line-height:1.5;opacity:.9}
.v3-ci .cic .btn{background:var(--red-on,var(--red));border-color:var(--red-on,var(--red));color:#fff;margin-inline-start:auto}
.v3-ci .cic > div{flex:1 1 320px;min-width:0}
html.v3-held #app{opacity:.42;filter:saturate(.35);pointer-events:none;user-select:none}
@media (max-width:620px){.v3-ci .cic{padding:18px}.v3-ci .cic .btn{margin-inline-start:0}}

/* ---------------- public footers: Instagram, TikTok and the email (app_config 'home') */
.fsoc{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:12px}
.fsoc .soc{display:inline-flex!important;align-items:center;gap:7px;font-size:14px;text-decoration:none;padding:4px 0;color:var(--ink)}
.fsoc .soc svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fsoc .soc:hover span{text-decoration:underline;text-underline-offset:3px}
.fnote{font-size:14px;color:var(--t1);margin:8px 0 0;line-height:1.5}
/* v4: the Skills cohort has five tabs; the Feedback link in the header for every signed-in student */
@media (max-width:860px){.tabbar.t5{grid-template-columns:repeat(5,minmax(0,1fr))}}
.bar .fbk{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--muted);text-decoration:none;padding:6px 2px;white-space:nowrap}
.bar .fbk svg{width:18px;height:18px;flex:none}
.bar .fbk:hover,.bar .fbk[aria-current]{color:var(--ink)}
.bar nav + .fbk{margin-inline-start:-4px}
@media (max-width:860px){.bar .fbk{margin-inline-start:auto}.bar .fbk + .acct{margin-inline-start:0}}
@media (max-width:420px){.bar .fbk span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.bar .fbk{padding:8px}}
/* v4: a banner's Arabic line, and an announcement shown as a pop-up (bottom corner, once per device) */
.v3-ban .ban-ar{font-family:var(--naskh);display:inline-block}
.stpop{position:fixed;inset-inline-end:18px;bottom:18px;z-index:40;width:min(380px,calc(100vw - 32px));display:flex;flex-direction:column;gap:8px;padding:16px 18px;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}
.stpop.on{opacity:1;transform:none}
.stpop p{margin:0;font-size:15px;line-height:1.5;color:var(--t1);white-space:pre-line}
.stpop p.ar{font-family:var(--naskh);font-size:16.5px;text-align:right}
.stpop .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
@media (max-width:520px){.stpop{inset-inline:16px;bottom:78px;width:auto}}
@media (prefers-reduced-motion:reduce){.stpop{transition:none}}

/* ---------- v4: staff preview bar (shell3.js) */
.v3-pv{max-width:1240px;margin:12px auto 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:8px 12px;border:1px dashed var(--t2);border-radius:4px;background:var(--wash);font-size:14px;color:var(--t1)}
.v3-pv p{margin:0;flex:1 1 300px;line-height:1.45}
.v3-pv b{color:var(--ink)}
.pv-sw{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.pv-sw>span{font-family:var(--mono);font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-inline-end:4px}
.pv-sw button{font:inherit;font-size:13.5px;padding:5px 11px;min-height:32px;border:1px solid var(--rule);background:var(--card);color:var(--ink);border-radius:999px;cursor:pointer}
.pv-sw button[aria-checked="true"]{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
.pv-sw button:focus-visible,.pdfb:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.pv-nosend{display:inline-block;max-width:40ch}
.pdfb{gap:6px}
.pdfb svg{flex:none}
.pdfrow{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
.overlay.ctr{align-items:center;justify-content:center;padding:16px}
.overlay.ctr .panel{height:auto;max-height:90vh;width:min(440px,100%);border:1px solid var(--rule);border-radius:6px;box-shadow:var(--shadow)}
.pdfpanel h2{font-family:var(--sans);font-weight:700;font-size:21px;margin:0}
.pdfpanel p{margin:0;line-height:1.5}
.pdfpanel .acts{display:flex;flex-wrap:wrap;gap:8px}
.pdfopt{display:flex;gap:10px;align-items:center;font-size:15px;cursor:pointer}
.pdfopt input{width:18px;height:18px;accent-color:var(--ink)}
.v3-phead,.pv-val{display:none}

/* ---------- v4: print to PDF (A4) */
@media print{
  @page{size:A4;margin:14mm 13mm 16mm}
  html.v3-printing,html.v3-printing body{background:#fff!important;color:#111!important;font-size:11pt}
  html.v3-printing .skiplink,html.v3-printing #shell .bar,html.v3-printing #shell .tabbar,html.v3-printing .v3-bans,html.v3-printing .v3-ci,html.v3-printing .v3-pv,html.v3-printing .stpop,html.v3-printing .overlay,html.v3-printing .tbo,html.v3-printing .pdfb,html.v3-printing .btn,html.v3-printing .v3e-ui,html.v3-printing .stucklink,html.v3-printing .linkish,html.v3-printing nav.rail,html.v3-printing .prail,html.v3-printing .nextnav,html.v3-printing .after,html.v3-printing .topline,html.v3-printing .qbar3,html.v3-printing .backl,html.v3-printing .tourbox,html.v3-printing .pv-nosend,html.v3-printing .pause,html.v3-printing .chain,html.v3-printing .gw-prev summary{display:none!important}
  html.v3-printing .pv-hide{display:none!important}
  html.v3-printing .v3-phead{display:block!important;margin:0 0 10mm;padding-bottom:4mm;border-bottom:1.5pt solid #0C2B4B;color:#0C2B4B}
  html.v3-printing .ph-top{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
  html.v3-printing .ph-mk{display:flex;flex-direction:column;gap:3px;line-height:1.2}
  html.v3-printing .ph-mk [lang=ar]{font-family:var(--hand);font-size:20pt}
  html.v3-printing .ph-mk b{font-family:var(--sans);font-size:9pt;letter-spacing:.12em}
  html.v3-printing .ph-who{display:flex;flex-direction:column;align-items:flex-end;font-size:9.5pt;color:#333}
  html.v3-printing .ph-who b{color:#0C2B4B;font-size:10.5pt}
  html.v3-printing .ph-t{font-family:var(--sans);font-size:17pt;margin:5mm 0 0;color:#0C2B4B}
  html.v3-printing .pv-val{display:block!important;white-space:pre-wrap;border:0.8pt solid #888;border-radius:2px;padding:5px 8px;min-height:1.9em;margin:2px 0 6px;font:inherit;color:#111;background:#fff;break-inside:avoid}
  html.v3-printing .pv-val.tall{min-height:6em}
  html.v3-printing .page,html.v3-printing .page-host,html.v3-printing main,html.v3-printing #app,html.v3-printing .reader,html.v3-printing .rmain,html.v3-printing .sheet,html.v3-printing .content{max-width:none!important;width:auto!important;margin:0!important;padding:0!important;box-shadow:none!important;background:#fff!important;border:0!important;display:block!important}
  html.v3-printing .page>*+*,html.v3-printing .content>*+*{margin-top:12px!important}
  html.v3-printing .row,html.v3-printing .brow,html.v3-printing .after .brow{display:block!important}
  html.v3-printing .row>aside,html.v3-printing .brow>.bmar{display:none!important}
  html.v3-printing.pv-notes .row>aside,html.v3-printing.pv-notes .brow>.bmar{display:block!important;margin:4px 0 10px}
  html.v3-printing.pv-notes .note{display:block;max-width:60%;margin-inline-start:auto;padding:2px 10px 2px 0;border-right:2pt solid #B8322A;text-align:right}
  html.v3-printing .note .ar{font-size:12pt}
  html.v3-printing *{box-shadow:none!important;animation:none!important;transition:none!important}
  html.v3-printing a{color:inherit!important}
  html.v3-printing h1,html.v3-printing h2,html.v3-printing h3,html.v3-printing h4{break-after:avoid;color:#0C2B4B}
  html.v3-printing table{width:100%!important;border-collapse:collapse;font-size:9.5pt}
  html.v3-printing thead{display:table-header-group}
  html.v3-printing tr,html.v3-printing img,html.v3-printing svg,html.v3-printing figure,html.v3-printing .qcard,html.v3-printing .tk,html.v3-printing .bf-f{break-inside:avoid}
  html.v3-printing th,html.v3-printing td{border:0.6pt solid #bbb!important;padding:3px 5px!important;color:#111!important;background:#fff!important}
  html.v3-printing [class*="tw"],html.v3-printing .bf-tw,html.v3-printing .table-wrap{overflow:visible!important}
  html.v3-printing details>summary::marker{content:""}
  html.v3-printing .hero,html.v3-printing .lhero,html.v3-printing .band,html.v3-printing .sband,html.v3-printing .hband,html.v3-printing header.phero{background:#fff!important;background-image:none!important;color:#0C2B4B!important;border:1pt solid #0C2B4B!important;padding:10px 12px!important;min-height:0!important}
  html.v3-printing .hero *,html.v3-printing .lhero *,html.v3-printing .band *,html.v3-printing .sband *,html.v3-printing .hband *,html.v3-printing header.phero *{color:#0C2B4B!important}
  html.v3-printing .hband .pill,html.v3-printing .hband .kchip{border:0.8pt solid #0C2B4B!important;background:#fff!important}
  html.v3-printing .hero svg.motif,html.v3-printing .lhero svg.motif,html.v3-printing .band .motif,html.v3-printing .hband>svg,html.v3-printing .hero .deco,html.v3-printing .hband .chain{display:none!important}
  html.v3-printing .hband .hb-ic svg,html.v3-printing .kic svg{color:#fff!important}
}

/* ---------- v4: the tour overlay (v3-tour.js) */
.tbo{position:fixed;inset:0;z-index:80}
.tbo-dim{position:absolute;inset:0;background:rgba(8,25,45,.55);display:none}
.tbo.nohole .tbo-dim{display:block}
.tbo.nohole .tbo-hole{display:none}
.tbo-hole{position:fixed;border-radius:6px;box-shadow:0 0 0 200vmax rgba(8,25,45,.55);outline:2px solid var(--red);outline-offset:0;pointer-events:none;transition:top .2s,left .2s,width .2s,height .2s}
.tbo-card{position:fixed;width:min(380px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;background:var(--card);color:var(--ink);border:1px solid var(--rule);border-top:4px solid var(--red);border-radius:6px;box-shadow:0 18px 50px -18px rgba(0,0,0,.5);padding:18px 18px 16px;display:flex;flex-direction:column;gap:10px}
.tbo-card.mid{top:50%;left:50%;transform:translate(-50%,-50%);width:min(460px,calc(100vw - 24px))}
.tbo-card:focus{outline:none}
.tbo-card h2{font-family:var(--sans);font-weight:700;font-size:20px;line-height:1.25;margin:0}
.tbo-card p{margin:0;font-size:15px;line-height:1.55;color:var(--t1)}
.tbo-card .tbo-ar{font-family:var(--hand);font-size:21px;line-height:1.5;color:var(--red);text-align:right;margin-top:2px}
.tbo-card .tbo-en{font-family:var(--serif);font-style:italic;font-size:14px;color:var(--red);text-align:right;margin-top:-6px}
.tbo-card .tbo-staff{font-size:14px;background:var(--wash);border:1px dashed var(--t2);border-radius:4px;padding:6px 10px}
.tbo-dots{display:flex;gap:5px;flex-wrap:wrap;margin-top:2px}
.tbo-dots span{width:8px;height:8px;border-radius:50%;background:var(--rule)}
.tbo-dots span.done{background:var(--t2)}
.tbo-dots span.on{background:var(--red);width:18px;border-radius:4px}
.tbo-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tbo-acts .btn{min-height:40px}
.tbo-skip{margin-inline-start:auto;background:none;border:0;padding:6px 2px;font:inherit;font-size:14px;color:var(--muted);text-decoration:underline;cursor:pointer}
.tbo-addr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tbo-addr button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;border:1px solid var(--rule);border-radius:6px;background:var(--bg);color:var(--ink);cursor:pointer;font:inherit}
.tbo-addr button b{font-family:var(--naskh);font-size:18px}
.tbo-addr button span{font-family:var(--naskh);font-size:14px;color:var(--t1)}
.tbo-addr button small{font-size:12px;color:var(--muted)}
.tbo-addr button[aria-checked="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);background:var(--sky)}
.tbo-card button:focus-visible{outline:2px solid var(--red);outline-offset:2px}
@media (max-width:699px){.tbo-card:not(.mid){left:12px;right:12px;width:auto;max-height:calc(100vh - 140px)}}
@media (prefers-reduced-motion:reduce){.tbo-hole{transition:none}}
/* v5: Principles of Research has four tabs (Today, Guides, Work, Feedback) */
@media (max-width:860px){.tabbar.t4{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ---------------- v5i: one bar for every level (shell3.js). Eight tabs with their icons, in the level's colour.
   1180px and up: icon and full label in a row. 861 to 1179px: icon over a short label, Feedback as an icon,
   the wordmark hidden under 1000px. Phones: Today, Sessions, Chapters, Work and More (a sheet with the rest). */
.v3-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:-1px;padding:0;border:0}
#shell .bar{gap:18px}
#shell .bar nav.mainnav{gap:4px;font-size:14.5px;align-items:stretch}
#shell .bar nav.mainnav a{display:inline-flex;align-items:center;gap:7px;padding:8px 9px;border-radius:10px;color:var(--muted);min-height:44px;box-sizing:border-box;white-space:nowrap}
#shell .bar nav.mainnav a svg{width:19px;height:19px;flex:none;color:var(--c,var(--muted));opacity:.85}
#shell .bar nav.mainnav a:hover{color:var(--ink);background:var(--c-soft,var(--panel))}
#shell .bar nav.mainnav a[aria-current]{color:var(--ink);font-weight:600;background:var(--c-soft,var(--panel));box-shadow:none}
#shell .bar nav.mainnav a[aria-current]::after{content:"";position:absolute;left:10px;right:10px;bottom:2px;height:3px;border-radius:3px;background:var(--c,var(--ink))}
#shell .bar nav.mainnav a[aria-current] svg{opacity:1}
#shell .bar nav.mainnav .dot{top:6px;right:4px}
#shell .bar .fbk{min-height:44px;padding:6px 8px;border-radius:10px}
#shell .bar .fbk svg{color:var(--fe)}
#shell .bar .acct{width:44px;height:44px;font-size:15px}
#shell .bar .acct:hover{border-color:var(--c,var(--ink))}
@media (max-width:1179px) and (min-width:861px){
  #shell .bar{gap:12px}
  #shell .bar nav.mainnav{gap:2px}
  #shell .bar nav.mainnav a{flex-direction:column;justify-content:center;gap:2px;padding:5px 6px;font-size:12.5px;line-height:1.15;min-width:44px}
  #shell .bar nav.mainnav .nl-f{display:none}
  #shell .bar nav.mainnav .nl-s{display:inline}
  #shell .bar .fbk .fbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  #shell .bar .fbk{padding:6px 10px}
  #shell .bar .mk{gap:10px}
}
@media (max-width:1000px) and (min-width:861px){#shell .bar .mk .w{display:none}#shell .bar .mk .h{font-size:23px}}
/* phones: five places in the bottom bar; More is a button that opens the sheet */
@media (max-width:860px){
  .tabbar.t5{grid-template-columns:repeat(5,minmax(0,1fr))}
  .tabbar.t2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tabbar a,.tabbar .tmore{min-height:48px}
  .tabbar .tmore{display:flex;flex-direction:column;align-items:center;gap:2px;background:none;border:0;color:var(--muted);font:inherit;font-size:11.5px;position:relative;padding:4px 0;cursor:pointer}
  .tabbar .tmore svg{width:22px;height:22px}
  .tabbar a svg,.tabbar .tmore svg{color:var(--c,currentColor)}
  .tabbar a[aria-current],.tabbar .tmore.on{color:var(--ink);font-weight:600}
  .tabbar a[aria-current]::before,.tabbar .tmore.on::before{content:"";position:absolute;top:-6px;left:22%;right:22%;height:3px;border-radius:0 0 3px 3px;background:var(--c,var(--ink))}
}
/* the More sheet: a bottom sheet on phones, a side panel like Customize on wider screens */
.overlay.msheet .panel{gap:12px}
.ms-head{display:flex;justify-content:space-between;align-items:center}
.ms-head h2{font-family:var(--sans);font-weight:700;font-size:22px;margin:0}
.ms-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ms-grid a{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;border:1px solid var(--rule);background:var(--card,var(--bg));text-decoration:none;color:var(--ink);min-height:44px;height:100%;box-sizing:border-box;border-top:4px solid var(--c,var(--rule))}
.ms-grid a:hover{background:var(--c-soft,var(--panel))}
.ms-grid a[aria-current]{background:var(--c-soft,var(--panel));box-shadow:inset 0 0 0 2px var(--c)}
.ms-grid .ic-tile{width:40px;height:40px;border-radius:11px}
.ms-grid .ic-tile svg{width:22px;height:22px}
.ms-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.ms-t b{font-size:15px}
.ms-t span{font-size:12.5px;line-height:1.35;color:var(--t1,var(--muted))}
.c-pk{--c:var(--pk);--c-bg:var(--pk-bg);--c-soft:color-mix(in srgb,var(--pk-bg) 45%,var(--bg))}
@media (max-width:860px){
  .overlay.msheet{align-items:flex-end;justify-content:center}
  .overlay.msheet .panel{width:100%;height:auto;max-height:86vh;border-inline-start:0;border-top:1px solid var(--rule);border-radius:20px 20px 0 0;padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}
}
html.dlg-on{overflow:hidden}
/* the account panel: 44px targets */
.cz-links a{display:flex;align-items:center;min-height:44px}
.segb button{min-height:44px}
/* focus you can see on any ground: a dark ring with a light halo (navy heroes, cards, the bars) */
:focus-visible{outline:2px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 5px var(--bg)}
:is(.hh,.lhero,.hero,.band,.vband.dark,.phero,.on-dark,.hband,.sph) :focus-visible{outline-color:#F7F4EE;box-shadow:0 0 0 5px #0C2B4B}
.skiplink:focus{z-index:60}
/* the red margin notes: a touch lighter in dark mode so they pass 4.5:1 on navy */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .note{color:#E8776D}}
:root[data-theme="dark"] .note{color:#E8776D}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .kchip.c-rr{background:#B8322A;color:#fff}}
:root[data-theme="dark"] .kchip.c-rr{background:#B8322A;color:#fff}

/* Nov 2026: the Help button on every student page (shell3.js), and its dialog */
#shell .bar .hlp{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 12px;border-radius:10px;border:1.5px solid var(--red);background:var(--card,#FFFDF9);color:var(--red);font:600 14px var(--sans);cursor:pointer;white-space:nowrap}
#shell .bar .hlp svg{width:18px;height:18px;flex:none}
#shell .bar .hlp:hover{background:var(--red);color:var(--bg)}
@media (max-width:860px){#shell .bar .fbk{display:none}#shell .bar .hlp{margin-inline-start:auto}#shell .bar .hlp + .acct{margin-inline-start:0}}
@media (max-width:420px){#shell .bar .hlp{padding:8px 10px}}
.hlp-panel{max-width:560px;display:flex;flex-direction:column;gap:12px}
.hlp-head{display:flex;justify-content:space-between;align-items:center}
.hlp-head h2{display:flex;align-items:center;gap:8px;font:700 22px var(--sans);margin:0}
.hlp-head h2 svg{width:22px;height:22px;color:var(--red)}
.hlp-lead{margin:0}
.hlp-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.hlp-o{display:flex;gap:10px;align-items:center;text-align:start;padding:12px;border-radius:12px;border:1px solid var(--rule);border-top:3px solid var(--c,var(--ink));background:var(--card,#FFFDF9);color:var(--ink);text-decoration:none;font:inherit;cursor:pointer}
.hlp-o:hover,.hlp-o[aria-pressed="true"]{background:var(--c-bg,var(--panel))}
.hlp-o b{display:block;font-weight:600;font-size:15px}
.hlp-o span span{display:block;font-size:13px;color:var(--muted)}
.hlp-o .ic-tile{flex:none}
.hlp-sec{border-top:1px solid var(--rule);padding-top:12px;display:flex;flex-direction:column;gap:8px}
.hlp-sec h3{font:600 16px var(--sans);margin:0}
.hlp-sec textarea{width:100%;box-sizing:border-box;font:16px/1.5 var(--sans);padding:10px 12px;border-radius:10px;border:1px solid var(--rule);background:var(--card,#FFFDF9);color:var(--ink)}
.hlp-send{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px}
.hlp-m{padding:8px 0;border-top:1px solid var(--rule)}
.hlp-m p,.hlp-r p{margin:2px 0}
.hlp-r{margin:6px 0 0 12px;padding-inline-start:10px;border-inline-start:2px solid var(--fe)}
/* <<< assets/css/v3-kinds.css */
/* >>> assets/css/v3-vis.css */
/* Al Basira visual kit (v5e): colour per programme, icon tiles, lively cards, steps, bands.
   Loaded on every page by pub3.js and shell3.js, with assets/js/v3-icons.js (BIcon / <i data-ic="…">).
   Builds on v3.css tokens; never overrides them. */
:root{
  --lv1:#2E7658; --lv1-bg:#DDEFE6; --lv1-soft:#EEF7F2;   /* Principles: green (v5m: a shade darker than #2F7A5B for AA on the pale green) */
  --lv2:#1E5596; --lv2-bg:#DCE8F5; --lv2-soft:#EEF4FB;   /* Skills: blue */
  --lv3:#B8322A; --lv3-bg:#F7E3DF; --lv3-soft:#FBF1EF;   /* Research: red */
  --ws:#856017;  --ws-bg:#F3E6C8;  --ws-soft:#FAF4E6;    /* Workshops: gold (v5m: a shade darker than #8A6418) */
  --sp:#5B4E8C;  --sp-bg:#E6E1F3;  --sp-soft:#F3F0FA;    /* Sprints: violet */
  --fe:#1F6F78;  --fe-bg:#D6ECEE;  --fe-soft:#ECF6F7;    /* Fellowships: teal */
  --pk:#B54272;  --pk-bg:#F8DCE7;                         /* pink accents (v5m: a shade darker than #C2477A) */
  --vis-radius:14px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --lv1:#7FCBA6; --lv1-bg:#173F3A; --lv1-soft:#123733;
  --lv2:#8DB6EA; --lv2-bg:#16406B; --lv2-soft:#113559;
  --lv3:#F08A80; --lv3-bg:#4A2632; --lv3-soft:#3A2230;
  --ws:#E2C27F;  --ws-bg:#3B3524;  --ws-soft:#302B1F;
  --sp:#BFB3F0;  --sp-bg:#2E2B52;  --sp-soft:#262443;
  --fe:#86D0D8;  --fe-bg:#173F45;  --fe-soft:#13363B;
  --pk:#F29AC0;  --pk-bg:#4A2639;}}
:root[data-theme="dark"]{
  --lv1:#7FCBA6; --lv1-bg:#173F3A; --lv1-soft:#123733;
  --lv2:#8DB6EA; --lv2-bg:#16406B; --lv2-soft:#113559;
  --lv3:#F08A80; --lv3-bg:#4A2632; --lv3-soft:#3A2230;
  --ws:#E2C27F;  --ws-bg:#3B3524;  --ws-soft:#302B1F;
  --sp:#BFB3F0;  --sp-bg:#2E2B52;  --sp-soft:#262443;
  --fe:#86D0D8;  --fe-bg:#173F45;  --fe-soft:#13363B;
  --pk:#F29AC0;  --pk-bg:#4A2639;}

/* colour scopes: put one on any container and children use --c / --c-bg / --c-soft */
.c-lv1{--c:var(--lv1);--c-bg:var(--lv1-bg);--c-soft:var(--lv1-soft)}
.c-lv2{--c:var(--lv2);--c-bg:var(--lv2-bg);--c-soft:var(--lv2-soft)}
.c-lv3{--c:var(--lv3);--c-bg:var(--lv3-bg);--c-soft:var(--lv3-soft)}
.c-ws{--c:var(--ws);--c-bg:var(--ws-bg);--c-soft:var(--ws-soft)}
.c-sp{--c:var(--sp);--c-bg:var(--sp-bg);--c-soft:var(--sp-soft)}
.c-fe{--c:var(--fe);--c-bg:var(--fe-bg);--c-soft:var(--fe-soft)}
.c-ink{--c:var(--ink);--c-bg:var(--wash,#E4EAF0);--c-soft:var(--panel,#EEE9E1)}

i.ic{display:inline-flex;vertical-align:-.18em;line-height:0}
.bic{flex:none}

/* icon tile: a rounded coloured square with an icon */
.ic-tile{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--c-bg,var(--panel));color:var(--c,var(--ink));flex:none}
.ic-tile.lg{width:56px;height:56px;border-radius:16px}
.ic-tile.sm{width:32px;height:32px;border-radius:9px}
.ic-tile.solid{background:var(--c,var(--ink));color:var(--bg)}

/* vcard: lively card with a coloured band and icon */
.vcard{position:relative;background:var(--card);border:1px solid var(--rule);border-radius:var(--vis-radius);padding:20px;display:flex;flex-direction:column;gap:10px;overflow:hidden;min-width:0}
.vcard::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:var(--c,var(--ink))}
.vcard.soft{background:var(--c-soft,var(--card));border-color:transparent}
.vcard .vc-top{display:flex;gap:12px;align-items:center}
.vcard h3{margin:0}
.vcard .vc-kicker{font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--c,var(--muted))}
.vgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}
.vgrid.two{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}

/* facts with icons: one line each */
.vfacts{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:14px;color:var(--ink)}
.vfacts span{display:inline-flex;gap:6px;align-items:center}
.vfacts .bic{color:var(--c,var(--muted))}

/* pills */
.vpill{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;padding:3px 10px;border-radius:99px;background:var(--c-bg,var(--panel));color:var(--c,var(--ink))}

/* steps: numbered path with icons */
.vsteps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:14px;counter-reset:vs}
.vstep{position:relative;padding:18px;border-radius:var(--vis-radius);background:var(--c-soft,var(--panel));display:flex;flex-direction:column;gap:8px}
.vstep .vs-n{font-family:var(--serif);font-size:30px;line-height:1;color:var(--c,var(--ink));opacity:.9}
.vstep h4{margin:0;font-size:16px}
.vstep p{margin:0;font-size:14px}

/* band: a full-width coloured section */
.vband{border-radius:calc(var(--vis-radius) + 4px);background:var(--c-soft,var(--panel));padding:clamp(18px,3vw,32px);display:grid;gap:16px}
.vband.dark{background:var(--band);color:var(--on-band)}
.vband.dark h2,.vband.dark h3{color:var(--on-band)}

/* section heading with icon */
.vhead{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.vhead h2{margin:0}

/* stat */
.vstat{display:flex;gap:12px;align-items:center}
.vstat b{font-family:var(--serif);font-size:30px;font-weight:500;line-height:1}
.vstat span{font-size:13.5px;color:var(--muted)}

/* tabs with icons */
.vtabs{display:flex;gap:8px;flex-wrap:wrap}
.vtabs button,.vtabs a{display:inline-flex;align-items:center;gap:8px;font:600 14px var(--sans);padding:10px 16px;border-radius:99px;border:1.5px solid var(--rule);background:var(--card);color:var(--ink);cursor:pointer;text-decoration:none}
.vtabs [aria-selected="true"],.vtabs .on{background:var(--c,var(--ink));border-color:var(--c,var(--ink));color:var(--bg)}

/* accordion polish for <details class="vacc"> */
details.vacc{border:1px solid var(--rule);border-radius:12px;background:var(--card);overflow:hidden}
details.vacc+details.vacc{margin-top:8px}
details.vacc>summary{list-style:none;cursor:pointer;display:flex;gap:12px;align-items:center;padding:14px 16px;font-weight:600}
details.vacc>summary::-webkit-details-marker{display:none}
details.vacc>summary::after{content:"";margin-left:auto;width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s}
details.vacc[open]>summary::after{transform:rotate(-135deg)}
details.vacc>.vacc-b{padding:0 16px 16px}
@media (prefers-reduced-motion:reduce){details.vacc>summary::after{transition:none}}

/* v5f: icon tiles on navy (page heroes, dark bands, the home and workshop heroes, any .on-dark box).
   A solid level colour on navy reads poorly (blue on navy nearly vanishes), so on dark ground every tile becomes a
   light, slightly tinted glass square with a light icon in the programme's own colour. --c-on-dark is that light
   colour for each scope; it works in both themes because the band is navy in both. */
.c-lv1{--c-on-dark:#9EDDBE} .c-lv2{--c-on-dark:#AFCDF3} .c-lv3{--c-on-dark:#F6A79E}
.c-ws{--c-on-dark:#EBCF92} .c-sp{--c-on-dark:#CEC4F6} .c-fe{--c-on-dark:#9CDCE3} .c-pk{--c-on-dark:#F6AFCD} .c-ink{--c-on-dark:#F7F4EE}
:is(.phero,.hero,.lhero,.vband.dark,.pp-band,.px-card.ink,.on-dark,.fx-ask) .ic-tile,
:is(.phero,.hero,.lhero,.vband.dark,.pp-band,.px-card.ink,.on-dark,.fx-ask) .ic-tile.solid{
  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)}
:is(.phero,.hero,.lhero,.vband.dark,.pp-band,.px-card.ink,.on-dark,.fx-ask) a:hover .ic-tile{background:color-mix(in srgb,var(--c-on-dark,#F7F4EE) 26%,rgba(255,255,255,.08))}
/* a light card sitting inside a dark band keeps the ordinary tiles */
:is(.phero,.hero,.lhero,.vband.dark,.pp-band,.on-dark,.fx-ask) :is(.vcard,.pc,.on-light) .ic-tile{background:var(--c-bg,var(--panel));color:var(--c,var(--ink));box-shadow:none}
:is(.phero,.hero,.lhero,.vband.dark,.pp-band,.on-dark,.fx-ask) :is(.vcard,.pc,.on-light) .ic-tile.solid{background:var(--c,var(--ink));color:var(--bg)}

/* v5g (G4): pay.html, reset.html and certificate.html in the same look. New classes only; nothing above changes.
   vh-k = icon tile beside the hero label; py- = pay; rs- = reset; ct- = certificate page (not the certificate). */
.vh-k{display:flex;align-items:center;gap:12px}
.vh-k .label{margin:0}
.py-ib{display:inline-flex;align-items:center;justify-content:center;gap:8px}
/* the price card wears the programme's colour */
.py-card{border-radius:var(--vis-radius);border-top:5px solid var(--c,var(--ink));padding:20px 22px;gap:12px}
.py-head{display:flex;gap:14px;align-items:center}
.py-ht{display:flex;flex-direction:column;gap:2px;min-width:0}
.py-ht .px-kick{color:var(--c,var(--muted))}
.py-facts{margin:0}
.py-facts span{padding:4px 11px;border-radius:99px;background:var(--c-soft,var(--panel))}
.py-held{display:flex;gap:8px;align-items:flex-start;margin:0}
.py-held .ic{color:var(--c,var(--muted));margin-top:2px}
.py-quote{padding:4px 16px;border-radius:12px;background:var(--c-soft,var(--panel))}
.py-quote dt{display:flex;align-items:center;gap:8px}
.py-quote dt .ic{color:var(--c,var(--muted))}
.py-quote dt:first-of-type,.py-quote dt:first-of-type+dd{border-top:0}
.py-warn{display:flex;gap:10px;align-items:flex-start;border-radius:12px}
.py-warn>.ic{color:var(--red);margin-top:2px}
.py-msg{flex-direction:row;align-items:flex-start;gap:14px;border:0;border-radius:var(--vis-radius);background:var(--c-soft,var(--panel));border-inline-start:5px solid var(--c,var(--ink))}
.py-msg>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.py-done{border-radius:var(--vis-radius)}
.py-dh{display:flex;align-items:center;gap:12px}
.py-how{display:flex;flex-direction:column;gap:14px;min-width:0}
.py-steps{list-style:none;margin:0;padding:0}
.py-steps .vstep h3{margin:0;font-size:16px}
.py-st{display:flex;align-items:center;justify-content:space-between}
.py-help{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin:0;font-size:14.5px;color:var(--t1)}
.py-hl{font-weight:600;color:var(--ink);margin-inline-end:4px}
.py-help a{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:99px;background:var(--ws-soft);color:var(--ink);text-decoration:none;border:1px solid var(--rule)}
.py-help a .ic{color:var(--ws)}
.py-help a:hover{border-color:var(--ws)}
/* reset: the sign-in card's twin, with a tip line */
.rs-tip{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:start;margin:0;padding:12px 14px;border-radius:12px;background:var(--lv2-soft);font-size:14.5px;line-height:1.5;color:var(--t1)}
/* the certificate page around the certificate */
.ct-tools .btn{display:inline-flex;align-items:center;gap:8px}
.ct-msg .px-empty{position:relative;border:0;border-radius:var(--vis-radius);background:var(--fe-soft);border-inline-start:5px solid var(--fe);padding-inline-start:80px;min-height:84px}
.ct-msg .px-empty::before{content:"";position:absolute;left:20px;top:20px;width:44px;height:44px;border-radius:12px;background:var(--fe-bg)}
.ct-msg .px-empty::after{content:"";position:absolute;left:31px;top:31px;width:22px;height:22px;background:var(--fe);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89 17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E") center/22px no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89 17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E") center/22px no-repeat}
.ct-msg .px-warn{border-radius:12px}
.ct-cards .vcard p{margin:0;font-size:14.5px;line-height:1.5;color:var(--t1)}
.ct-cards .vcard a.ct-go{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--c)}
@media (max-width:620px){.py-head .ic-tile.lg{width:48px;height:48px;border-radius:14px}.py-card{padding:18px 16px}.ct-msg .px-empty{padding-inline-start:20px;padding-top:76px}}
main:has(.ct-msg .px-empty) #certHost>.small{display:none}

/* v5h (H1): the house hero on the public pages. Opt-in with .ph5 on a navy hero; nothing above changes.
   The Arabic deco title is a block straight after the h1, right-aligned: on the right of the band on wide screens,
   under the title on phones (as on programmes.html). The glass icon tile sits in one row with the kicker (.vh-k). */
.ph5.ph5.ph5 .arh{direction:rtl;text-align:right;align-self:stretch;margin-top:-2px}
.ph5 .vh-k{flex-wrap:nowrap}
.ph5 .vh-k .ic-tile{flex:none}
/* a navy box that isn't a .phero (the guides band, the home hero) gets the same glass tile through .on-dark */
main:has(.ct-msg .px-empty) .row:has(>#certHost){display:none}   /* no certificate to show: drop the empty row so the spacing stays even */

/* v33: a short real student quote beside an Apply button (V3Pub.fillQuotes: programmes.html, apply.html). The same
   attribution as the home page's story: initials in the programme colour, the name, the programme or "First cohort". */
.qx{margin:0;padding:12px 14px;border-radius:12px;background:var(--c-soft,var(--panel));border-inline-start:4px solid var(--c,var(--ink));display:flex;flex-direction:column;gap:8px}
.qx blockquote{margin:0}
.qx blockquote p{margin:0;font-family:var(--serif);font-size:16px;line-height:1.5;color:var(--ink)}
.qx figcaption{display:flex;align-items:center;gap:8px}
.qx-av{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--c,var(--ink));color:var(--bg);font:700 11px/1 var(--sans);flex:none}
.qx figcaption>span:last-child{display:flex;flex-direction:column;min-width:0}
.qx figcaption b{font-size:13.5px;line-height:1.3}
.qx figcaption>span:last-child>span{font-size:12.5px;color:var(--t1);line-height:1.3}

/* v33: the blue "Next time" box under a returned mark's note (students: Today, the work page, the assignment pages;
   staff: the marking form, where it's required before Return) */
.nt-box{margin:10px 0 0;padding:10px 14px;border-radius:10px;background:var(--lv2-soft,#EEF4FB);border:1px solid color-mix(in srgb,var(--lv2,#1E5596) 30%,transparent);border-inline-start:4px solid var(--lv2,#1E5596);color:var(--ink)}
.nt-box .nt-h{display:flex;gap:10px;align-items:baseline;font:700 13px/1.3 var(--sans);letter-spacing:.04em;text-transform:uppercase;color:var(--lv2,#1E5596)}
.nt-box .nt-h span{font-family:var(--naskh);text-transform:none;letter-spacing:0;font-size:15px;font-weight:500}
.nt-box p{margin:4px 0 0;font-size:15.5px;line-height:1.5}
.mklist li>.nt-box{margin:6px 0 4px}
/* v33: the staff page: whose portal task an item is ("Portal: Haneen", purple) or that it's done there (green) */
.pt-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:99px;font:600 12px/1.3 var(--sans);text-decoration:none;white-space:nowrap;background:var(--sp-bg);color:var(--sp);border:1px solid color-mix(in srgb,var(--sp) 30%,transparent)}
.pt-pill:hover{background:var(--sp);color:var(--bg)}
.pt-pill.done{background:var(--lv1-bg);color:var(--lv1);border-color:color-mix(in srgb,var(--lv1) 30%,transparent)}
.pt-pill.done:hover{background:var(--lv1);color:var(--bg)}
li.pt-done .sx-li-t>b,li.pt-done .sx-li-t>span:not(.sx-pills){text-decoration:line-through;opacity:.6}
li.pt-done{opacity:.8}
/* <<< assets/css/v3-vis.css */
