/* Ujumbe wa Mkurugenzi: ONE stylesheet for the series page and the three parts (16 Nov 2026, the polish round).
   Khamis: "Think of these three as one organism having three organs." Every page uses the same header, hero, type scale,
   section rhythm, cards, highlights, diagrams and footer. A part only sets its own colour (body.p1, .p2, .p3, .ps).
   Phone first: 360 px is the base; the desktop rules widen the page, they never stretch a phone layout.
   A language switch never changes the design: Arabic only mirrors direction and borrows Noto Naskh Arabic for Arabic letters (16 Nov 2026: a natural Naskh face, about 1.1x size). */

:root{
  --paper:#F7F5F0; --card:#FFFFFF; --soft:#EFECE4; --ink:#17191F; --muted:#4A4F5A; --line:#DDD8CC;
  --danger:#B42318; --danger-bg:#FDECEA; --ok:#1E7A4C; --ok-bg:#E3F2E8;
  --gold:#F2C14E; --gold-ink:#7A5600; --mark:#FFE9A8;
  --rust:#A0442A; --rust-bg:#F6E7E1; --leaf:#2D6A4F; --leaf-bg:#E3EFE7; --clay:#6B5C46; --clay-bg:#EFEBE3;
  --c1:#1E2A5A; --c2:#1B4332; --c3:#4B2142;
  --accent:#2B3140; --accent-ps:#2B3140; --hero:#1F2430; --hero-fg:#F7F5F0; --hero-muted:#D6D9E0; --ring-track:rgba(255,255,255,.18);
  --f-display:"Bricolage Grotesque","Noto Naskh Arabic","Geeza Pro","Arial Narrow",system-ui,sans-serif;
  --f-body:"Literata","Noto Naskh Arabic","Geeza Pro",Georgia,"Times New Roman",serif;
  --measure:46rem; --wide:68rem; --gut:16px;
  --r:14px; --r-lg:20px;
  --fs-body:1.25rem; --fs-small:1.05rem;
  --fs-h1:clamp(2.1rem,1rem + 4vw,4rem); --fs-h2:clamp(1.75rem,1.05rem + 1.9vw,2.4rem); --fs-h3:clamp(1.25rem,1.1rem + .4vw,1.45rem);
  --fs-pull:clamp(1.45rem,1rem + 1.5vw,2.05rem);
  color-scheme:light;
}
body.p1{--accent:var(--c1);--hero:var(--c1)}
body.p2{--accent:var(--c2);--hero:var(--c2)}
body.p3{--accent:var(--c3);--hero:var(--c3)}
body.ps{--accent:var(--accent-ps);--hero:linear-gradient(115deg,var(--c1) 0%,var(--c2) 52%,var(--c3) 100%)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#111318; --card:#1A1D24; --soft:#20242C; --ink:#ECEAE4; --muted:#B9BCC4; --line:#2E323B;
  --danger:#FF9B8C; --danger-bg:#3B1E1B; --ok:#82D3A6; --ok-bg:#15301F; --mark:#4A3E14; --gold-ink:#F2C14E;
  --rust:#E8987B; --rust-bg:#33201A; --leaf:#82D3A6; --leaf-bg:#16301F; --clay:#D2C2A4; --clay-bg:#29241B;
  --c1:#B3C2FF; --c2:#8FD1AE; --c3:#EBB6DB; --accent:#D6D9E0; --accent-ps:#D6D9E0; color-scheme:dark}
  :root:not([data-theme="light"]) body.p1{--hero:#151D40} :root:not([data-theme="light"]) body.p2{--hero:#10291D} :root:not([data-theme="light"]) body.p3{--hero:#2E1429}
  :root:not([data-theme="light"]) body.ps{--hero:linear-gradient(115deg,#151D40 0%,#10291D 52%,#2E1429 100%)}}
:root[data-theme="dark"]{
  --paper:#111318; --card:#1A1D24; --soft:#20242C; --ink:#ECEAE4; --muted:#B9BCC4; --line:#2E323B;
  --danger:#FF9B8C; --danger-bg:#3B1E1B; --ok:#82D3A6; --ok-bg:#15301F; --mark:#4A3E14; --gold-ink:#F2C14E;
  --rust:#E8987B; --rust-bg:#33201A; --leaf:#82D3A6; --leaf-bg:#16301F; --clay:#D2C2A4; --clay-bg:#29241B;
  --c1:#B3C2FF; --c2:#8FD1AE; --c3:#EBB6DB; --accent:#D6D9E0; --accent-ps:#D6D9E0; color-scheme:dark}
:root[data-theme="dark"] body.p1{--hero:#151D40} :root[data-theme="dark"] body.p2{--hero:#10291D} :root[data-theme="dark"] body.p3{--hero:#2E1429}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:72px}
html.i18n-pending body{visibility:hidden}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--f-body);font-size:var(--fs-body);line-height:1.7;overflow-x:hidden;overflow-wrap:break-word;-webkit-font-smoothing:antialiased}
:root[dir="rtl"] body{line-height:1.9}
img,svg{max-width:100%}
a{color:var(--accent);text-underline-offset:3px}
p{margin:0;text-wrap:pretty}
h1,h2,h3{font-family:var(--f-display);font-weight:700;line-height:1.15;margin:0;text-wrap:balance}
:root[dir="rtl"] h1,:root[dir="rtl"] h2,:root[dir="rtl"] h3{line-height:1.45}
h2{font-size:var(--fs-h2);letter-spacing:-.01em;color:var(--ink)}
h3{font-size:var(--fs-h3)}
b,strong{font-weight:600}
sup{font-family:var(--f-display);font-size:.8em;line-height:0;vertical-align:.45em;font-weight:700;color:var(--accent)}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.eyebrow{font-family:var(--f-display);font-weight:700;font-size:1rem;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
:root[dir="rtl"] .eyebrow,:root[dir="rtl"] .fact b,:root[dir="rtl"] .law-n small,:root[dir="rtl"] .paths .res,:root[dir="rtl"] .audit thead th,:root[dir="rtl"] .pk-n,:root[dir="rtl"] .tree .lvl{letter-spacing:0;text-transform:none}

/* ---------- header: sticky on phone and desktop, never scrolls away ---------- */
.hdr{position:sticky;top:0;z-index:60;background:color-mix(in srgb,var(--paper) 92%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(10px);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.hdr-in{max-width:var(--wide);margin:0 auto;padding:0 var(--gut);min-height:60px;display:flex;align-items:center;gap:10px}
.hdr-home{display:flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;flex:none}
.hdr-home img{width:34px;height:34px;border-radius:9px;display:block}
.hdr-t{flex:1;min-width:0;min-height:48px;display:flex;align-items:center;font-family:var(--f-display);font-weight:700;font-size:1.05rem;color:var(--ink);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdr-t .short{display:none}
.lang{display:flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--card);direction:ltr;flex:none}
.lang button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;min-width:48px;height:42px;padding:0 10px;border-radius:999px;font:700 15px/1 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent}
.lang button .flag{width:22px;height:15px;border-radius:3px;overflow:hidden;flex:none;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.lang button .flag svg{display:block;width:100%;height:100%}
.lang button[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
.lang button:focus-visible{outline:3px solid var(--gold);outline-offset:1px}
@media (max-width:520px){.hdr-t .full{display:none}.hdr-t .short{display:inline}.lang button{padding:0 8px;gap:5px;font-size:14px}.lang button .flag{width:20px;height:14px}}
@media (max-width:359px){.lang button{padding:0 6px}.lang button .code{font-size:13px}}

/* ---------- hero: the same frame on every page ---------- */
.hero{background:var(--hero);color:var(--hero-fg);position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;inset:auto 0 0 0;height:6px;background:linear-gradient(90deg,var(--c1),var(--c2),var(--c3));opacity:.9}
:root[data-theme="dark"] .hero::after{background:linear-gradient(90deg,#3A4A9A,#2D6A4F,#7A3A6C)}
.hero-in{max-width:var(--wide);margin:0 auto;padding:clamp(2rem,1rem + 4vw,4.5rem) var(--gut) clamp(2.25rem,1rem + 4vw,4.75rem);display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(1.75rem,1rem + 3vw,3.5rem);align-items:center}
.hero-txt{display:flex;flex-direction:column;gap:1rem;min-width:0}
.hero .eyebrow{color:var(--gold)}
.hero h1{font-size:var(--fs-h1);line-height:1.05;letter-spacing:-.02em;color:#fff;hyphens:manual}
:root[dir="rtl"] .hero h1{letter-spacing:0;line-height:1.35}
.hero .hsub{font-size:clamp(1.15rem,1rem + .6vw,1.45rem);line-height:1.45;color:var(--hero-fg);opacity:.95;max-width:34ch}
.hero .by{display:flex;align-items:center;gap:.8rem;margin-top:.35rem}
.hero .by img{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:top;border:2px solid rgba(255,255,255,.55);flex:none}
.hero .by p{font-size:1.02rem;line-height:1.45;color:var(--hero-muted)}
.hero .by strong{display:block;color:#fff;font-family:var(--f-display);font-size:1.1rem}
.hero-art{width:100%;max-width:26rem;justify-self:center;min-width:0}
@media (min-width:900px){
  .hero-in{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)}
  .hero-art{justify-self:end}
  :root[dir="rtl"] .hero-art{justify-self:start}
}

/* ---------- the strip of three parts ---------- */
.strip{background:var(--card);border-bottom:1px solid var(--line)}
.strip ol{list-style:none;margin:0 auto;padding:.75rem var(--gut);max-width:var(--wide);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.strip li{min-width:0}
.strip a,.strip .cur{display:flex;align-items:center;gap:.6rem;height:100%;min-height:56px;padding:.5rem .65rem;border-radius:12px;border:1px solid var(--line);text-decoration:none;color:var(--ink);font-size:1rem;line-height:1.25}
.strip .n{flex:none;display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;font-family:var(--f-display);font-weight:700;font-size:1rem;color:#fff;background:var(--pc)}
.strip .cur{background:var(--pc);border-color:var(--pc);color:#fff}
.strip .cur .n{background:#fff;color:var(--pc)}
:root[data-theme="dark"] .strip .cur{color:#111318} :root[data-theme="dark"] .strip .cur .n{background:#111318;color:var(--pc)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .strip .n{color:#111318}:root:not([data-theme="light"]) .strip .cur{color:#111318}:root:not([data-theme="light"]) .strip .cur .n{background:#111318}}
.strip .t{min-width:0}
@media (max-width:560px){.strip a,.strip .cur{flex-direction:column;align-items:flex-start;gap:.3rem;padding:.5rem}.strip .n{width:1.75rem;height:1.75rem;font-size:.95rem}}

/* ---------- sections and rhythm ---------- */
.sec{padding-block:clamp(2.5rem,1.5rem + 3.5vw,4.5rem)}
.sec + .sec{border-top:1px solid var(--line)}
.sec.tint{background:var(--soft)}
.in{max-width:calc(var(--measure) + 2 * var(--gut));margin:0 auto;padding-inline:var(--gut);display:flex;flex-direction:column;gap:1.25rem}
.in.wide{max-width:calc(var(--wide) + 2 * var(--gut))}
.in + .in{margin-top:2.5rem}
.in > .prose{max-width:var(--measure)}
.lead{font-size:clamp(1.25rem,1.1rem + .4vw,1.4rem);line-height:1.6}
.note{font-size:var(--fs-small);color:var(--muted);line-height:1.6}
.recall{font-size:1.15rem;color:var(--muted);border-inline-start:4px solid var(--gold);padding-inline-start:1rem}
.gap-s{margin-top:-.5rem}

/* "one line" (Khamis: "Whenever I say one line, I mean no break"): one line where it fits, balanced wrap on a phone or when zoomed.
   --n is the longest of the three languages in characters; the size shrinks a little before the line would overflow. */
.one{text-wrap:balance}
@media (min-width:64em){
  .one.one{white-space:nowrap;font-size:min(var(--fs,1em),calc(var(--box,var(--measure)) / (var(--n,40) * var(--cw,.52))))}
}

/* ---------- law heads: a number for every ordered item ---------- */
.law{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.4rem 1rem;align-items:center}
.law-n{grid-row:span 2;display:grid;place-items:center;width:clamp(3.4rem,2.6rem + 2vw,4.4rem);height:clamp(3.4rem,2.6rem + 2vw,4.4rem);border-radius:50%;background:var(--accent);color:var(--paper);font-family:var(--f-display);font-weight:700;font-size:clamp(1.9rem,1.4rem + 1.4vw,2.6rem);line-height:1}
.law .eyebrow{align-self:end}
.law h2{align-self:start}

/* ---------- highlights: one design for each kind, in every part ---------- */
.quote{font-family:var(--f-display);font-weight:700;font-size:var(--fs-pull);line-height:1.3;color:var(--accent);border-inline-start:5px solid var(--accent);padding-inline-start:1rem;--fs:var(--fs-pull);--cw:.6}
:root[dir="rtl"] .quote{line-height:1.6}
.quote.c{border:0;padding:0;text-align:center}
.danger{display:flex;gap:.75rem;align-items:flex-start;font-family:var(--f-display);font-weight:700;font-size:clamp(1.3rem,1.05rem + .9vw,1.7rem);line-height:1.3;color:var(--danger);background:var(--danger-bg);border-radius:var(--r);padding:1rem 1.1rem;--fs:clamp(1.3rem,1.05rem + .9vw,1.7rem)}
.danger .ic{flex:none;width:1.6em;height:1.6em;display:grid;place-items:center;border-radius:50%;background:var(--danger);color:var(--danger-bg);font-size:.8em;margin-top:-.05em}
.danger .ic svg{width:60%;height:60%}
.danger.in-card{font-size:1.15rem;padding:.7rem .85rem;margin-top:.6rem}
mark,.hl{background:linear-gradient(transparent 52%,var(--mark) 52%);color:inherit;padding:0 .1em;font-weight:600;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.key{font-style:normal;font-family:var(--f-display);font-weight:700;font-size:1.35em;color:var(--accent);background:linear-gradient(transparent 55%,var(--mark) 55%);padding:0 .12em}
.xt{display:flex;flex-direction:column;gap:.55rem;border:1px solid var(--line);background:var(--card);border-radius:var(--r);padding:1rem 1.1rem}
.xt .lbl{font-family:var(--f-display);font-weight:700;font-size:1rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
:root[dir="rtl"] .xt .lbl{letter-spacing:0;text-transform:none}
.xt p{display:flex;gap:.7rem;align-items:flex-start;font-family:var(--f-display);font-weight:700;font-size:clamp(1.2rem,1.05rem + .7vw,1.55rem);line-height:1.35}
.xt i{flex:none;font-style:normal;width:1.6em;height:1.6em;border-radius:50%;display:grid;place-items:center;font-size:.85em;margin-top:-.05em}
.xt .x{color:var(--muted)} .xt .x span{text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:color-mix(in srgb,var(--danger) 70%,transparent)}
.xt .x i{background:var(--danger-bg);color:var(--danger)}
.xt .t{color:var(--ink)} .xt .t i{background:var(--ok-bg);color:var(--ok)}
.sub{border-inline-start:4px solid var(--accent);background:var(--soft);border-radius:0 var(--r) var(--r) 0;padding:1rem 1.15rem;display:flex;flex-direction:column;gap:.5rem}
:root[dir="rtl"] .sub{border-radius:var(--r) 0 0 var(--r)}
.sub .lbl{font-family:var(--f-display);font-weight:700;font-size:1.1rem;color:var(--accent)}
.sub p{font-size:1.15rem;line-height:1.6}
.rule{font-family:var(--f-display);font-weight:700;font-size:clamp(1.8rem,1.2rem + 2vw,2.6rem);line-height:1.2;color:var(--leaf);text-wrap:balance}

/* ---------- facts (physics, research, the brain) ---------- */
.fact{border:1px solid var(--line);background:var(--card);border-radius:var(--r);padding:1.1rem 1.25rem;font-size:1.15rem;display:flex;flex-direction:column;gap:.55rem}
.fact b{font-family:var(--f-display);font-size:1rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700}

/* ---------- lists ---------- */
.num{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1rem;counter-reset:n}
.num > li{counter-increment:n;display:grid;grid-template-columns:2.6rem minmax(0,1fr);gap:.85rem;align-items:start}
.num > li::before{content:counter(n);display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:50%;background:var(--accent);color:var(--paper);font-family:var(--f-display);font-weight:700;font-size:1.15rem;line-height:1}
:root[lang="ar"] .num > li::before{content:counter(n,arabic-indic)}
.num.abc > li::before{content:counter(n,upper-alpha)}
:root[lang="ar"] .num.abc > li::before{content:counter(n,arabic-indic)}
.num.line > li{padding-bottom:1rem;border-bottom:1px solid var(--line)} .num.line > li:last-child{border-bottom:0;padding-bottom:0}
.num .stack{display:flex;flex-direction:column;gap:.45rem}
.num h3{padding-top:.2rem}
.num.ones{--box:calc(var(--wide) - 3.5rem);--cw:.48}
.num.steps > li::before{width:2.6rem;height:2.6rem}

/* ---------- cards ---------- */
.cards{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
@media (min-width:600px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:900px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
.card{background:var(--card);border:1px solid var(--line);border-top:4px solid var(--rust);border-radius:var(--r);padding:1rem 1.1rem;font-size:1.12rem;line-height:1.55;display:flex;flex-direction:column;gap:.35rem}
.card h3{font-size:1.2rem}
.paths{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
@media (min-width:820px){.paths{grid-template-columns:repeat(3,minmax(0,1fr))}}
.path{border-radius:var(--r);padding:1.3rem;display:flex;flex-direction:column;gap:.55rem;font-size:1.12rem;line-height:1.55}
.path h3{font-size:1.55rem}
.path .res{font-family:var(--f-display);font-weight:700;font-size:1rem;letter-spacing:.06em;margin-top:auto;padding-top:.4rem}
.p-use{background:var(--clay-bg)} .p-use h3,.p-use .res{color:var(--clay)}
.p-rot{background:var(--rust-bg)} .p-rot h3,.p-rot .res{color:var(--rust)}
.p-plant{background:var(--leaf-bg)} .p-plant h3,.p-plant .res{color:var(--leaf)}
.nofourth{font-family:var(--f-display);font-weight:700;font-size:clamp(1.25rem,1.05rem + .7vw,1.6rem);text-align:center;line-height:1.45}
.faq{border-inline-start:4px solid var(--leaf);padding-inline-start:1.25rem;display:flex;flex-direction:column;gap:.8rem}
.box{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:1.5rem;display:flex;flex-direction:column;gap:.9rem}

/* ---------- buttons and the line every box ends with ---------- */
.btns{display:flex;flex-wrap:wrap;gap:.75rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-family:var(--f-display);font-weight:700;font-size:1.1rem;line-height:1.25;min-height:52px;padding:.7rem 1.2rem;border-radius:12px;border:2px solid var(--accent);background:var(--accent);color:var(--paper);text-decoration:none;cursor:pointer;text-align:center}
.btn.ghost{background:transparent;color:var(--accent)}
.box-end{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;color:var(--ink);text-decoration:none;font-size:1.05rem;line-height:1.5;padding-top:.75rem;border-top:1px solid var(--line)}
.box-end b{display:inline-flex;align-items:center;min-height:48px;padding:.55rem 1.1rem;border-radius:12px;background:var(--accent);color:var(--paper);font-family:var(--f-display);font-weight:700;font-size:1.1rem}

/* ---------- forms (the two calculators) ---------- */
.calc{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:1.4rem;display:flex;flex-direction:column;gap:1.15rem}
.calc .row{display:flex;flex-wrap:wrap;gap:1rem}
.fld{display:flex;flex-direction:column;gap:.35rem;flex:1 1 12rem;min-width:0}
.calc label{font-size:1.05rem;line-height:1.5}
.calc input,.calc select{font:inherit;font-size:1.15rem;min-height:52px;padding:.55rem .7rem;border:1px solid var(--muted);border-radius:10px;background:var(--paper);color:var(--ink);width:100%}
.calc input[type=range]{padding:0;min-height:48px;accent-color:var(--rust);border:0;background:transparent}
.calc .out{font-size:1.2rem}
.calc .big{font-family:var(--f-display);font-size:clamp(1.8rem,1.3rem + 1.6vw,2.4rem);color:var(--rust);font-variant-numeric:tabular-nums;display:block;line-height:1.3}
.meter{height:14px;border-radius:99px;background:var(--rust-bg);overflow:hidden}
.meter span{display:block;height:100%;background:var(--leaf);transition:width .3s}

/* ---------- the audit table: a table on wide screens, a card per row on a phone ---------- */
.audit-wrap{border:1px solid var(--line);border-radius:var(--r);background:var(--card);overflow:hidden}
table.audit{border-collapse:collapse;width:100%;font-size:1.1rem}
.audit th,.audit td{padding:.8rem 1rem;text-align:start;border-bottom:1px solid var(--line);vertical-align:top}
.audit thead th{font-family:var(--f-display);font-size:1rem;letter-spacing:.06em;text-transform:uppercase}
.audit thead th:nth-child(2){color:var(--clay)} .audit thead th:nth-child(3){color:var(--rust)} .audit thead th:nth-child(4){color:var(--leaf)}
.audit tbody th{font-family:var(--f-display)}
.audit tr:last-child td,.audit tr:last-child th{border-bottom:0}
.audit caption{caption-side:bottom;text-align:start;padding:.8rem 1rem;font-size:1rem;color:var(--muted);line-height:1.55}
.audit caption b{display:block;color:var(--ink);font-family:var(--f-display)}
.audit .lb{display:none}
@media (max-width:640px){
  .audit thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .audit,.audit tbody,.audit tr,.audit th,.audit td,.audit caption{display:block;width:100%}
  .audit tbody tr{border-bottom:1px solid var(--line);padding:.4rem 0}
  .audit th,.audit td{border:0;padding-block:.3rem}
  .audit tbody th{font-size:1.25rem;color:var(--accent);padding-top:.7rem}
  .audit .lb{display:block;font-family:var(--f-display);font-weight:700;font-size:1rem}
  .audit td:nth-of-type(1) .lb{color:var(--clay)} .audit td:nth-of-type(2) .lb{color:var(--rust)} .audit td:nth-of-type(3) .lb{color:var(--leaf)}
}

/* ---------- diagrams: the family tree is the model for every summary diagram ---------- */
.fig{margin:0;display:flex;flex-direction:column;gap:.7rem}
.fig figcaption{font-size:1.02rem;line-height:1.5;color:var(--muted);text-align:center}
.tree{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:1.3rem 1rem;text-align:center;display:flex;flex-direction:column;align-items:stretch}
.tree .lvl{font-family:var(--f-display);font-size:1rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700;margin:.15rem 0 .5rem}
.tree .row{display:flex;gap:.6rem;justify-content:center;align-items:stretch}
.tree .node{border-radius:12px;padding:.7rem .65rem;font-family:var(--f-display);font-weight:700;font-size:clamp(1rem,.92rem + .35vw,1.15rem);line-height:1.3;min-width:0;flex:1 1 0;max-width:17rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem}
.tree .node small{font-family:var(--f-body);font-weight:400;font-size:1rem;line-height:1.35;opacity:.92}
.tree .n-a{background:var(--accent);color:var(--paper)}
.tree .n-b{background:#7A2E3A;color:#fff}
.tree .n-c{background:var(--soft);color:var(--ink);border:1px solid var(--line)}
.tree .n-use{background:var(--clay-bg);color:var(--clay)} .tree .n-rot{background:var(--rust-bg);color:var(--rust)} .tree .n-plant{background:var(--leaf-bg);color:var(--leaf)}
.tree .n-q{background:var(--ink);color:var(--paper);max-width:30rem;flex:0 1 30rem}
.tree .plus{font-size:1.6rem;font-weight:700;color:var(--accent);align-self:center;flex:none}
.tree .arrow{width:2px;height:1.6rem;background:var(--accent);margin:.5rem auto;position:relative}
.tree .arrow::after{content:"";position:absolute;bottom:-4px;left:-5px;border:6px solid transparent;border-top-color:var(--accent);border-bottom:0}
@media (max-width:420px){.tree{padding:1.1rem .6rem}.tree .row{gap:.4rem}.tree .node{padding:.6rem .4rem;font-size:1rem}}
.js-rv .tree.reveal .row,.js-rv .tree.reveal .arrow,.js-rv .tree.reveal .lvl{opacity:0;transform:translateY(10px);transition:opacity .6s ease,transform .6s ease}
.js-rv .tree.reveal.on .row,.js-rv .tree.reveal.on .arrow,.js-rv .tree.reveal.on .lvl{opacity:1;transform:none}
.js-rv .tree.reveal.on > :nth-child(2),.js-rv .tree.reveal.on > :nth-child(3){transition-delay:.25s}
.js-rv .tree.reveal.on > :nth-child(4),.js-rv .tree.reveal.on > :nth-child(5){transition-delay:.55s}
.js-rv .tree.reveal.on > :nth-child(6),.js-rv .tree.reveal.on > :nth-child(7){transition-delay:.85s}
.js-rv .tree.reveal.on > :nth-child(8),.js-rv .tree.reveal.on > :nth-child(9){transition-delay:1.15s}

/* "Picha kamili": three enemies, three strengths (the same in all three parts) */
.pk{background:var(--soft);border-radius:var(--r-lg);padding:1.2rem 1rem 1.3rem;font-size:1.1rem;line-height:1.45;display:flex;flex-direction:column}
.pk-t{font-family:var(--f-display);font-weight:700;font-size:1.5rem;line-height:1.25;margin:0 0 .4rem}
.pk-lead{margin:0 0 1rem}
.pk-p{display:block;border-radius:16px;border:3px solid var(--c);background:var(--card);padding:1rem 1.1rem;text-decoration:none;color:var(--ink)}
.pk-p.lit{background:var(--c);color:#fff}
:root[data-theme="dark"] .pk-p.lit{color:#111318}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pk-p.lit{color:#111318}}
.pk-n{display:block;font-family:var(--f-display);font-weight:700;font-size:1rem;letter-spacing:.05em;color:var(--c)}
.pk-p.lit .pk-n{color:inherit;opacity:.85}
.pk-h{display:block;font-family:var(--f-display);font-weight:700;font-size:1.3rem;line-height:1.25;margin:.1rem 0 .45rem}
.pk-m,.pk-w{display:block;padding-inline-start:1.7rem;position:relative}
.pk-m::before,.pk-w::before{position:absolute;inset-inline-start:0;top:0;font-weight:700}
.pk-m::before{content:"\2715";color:var(--danger)}
.pk-w{margin-top:.4rem;font-weight:600}
.pk-w::before{content:"\2713";color:var(--ok)}
.pk-p.lit .pk-m::before,.pk-p.lit .pk-w::before{color:inherit}
.pk-a{display:flex;align-items:center;gap:.6rem;margin:.55rem 0;padding-inline-start:.4rem;font-size:1.05rem;color:var(--muted)}
.pk-a::before{content:"\2193";font-size:1.6rem;font-weight:700;color:var(--danger);line-height:1}
.pk-loop{margin:1rem 0 0;padding:.8rem 1rem;border-radius:12px;border:2px dashed var(--danger);background:var(--card);font-size:1.05rem}
.pk-loop b{color:var(--danger)}
.pk-here{margin:.9rem 0 0;font-size:1.05rem;font-weight:600}
.js-rv .pk.reveal .pk-p{opacity:0;transform:translateY(16px);transition:opacity .7s ease,transform .7s ease}
.js-rv .pk.reveal.on .pk-p{opacity:1;transform:none}
.js-rv .pk.reveal.on .pk-p:nth-of-type(2){transition-delay:.5s} .js-rv .pk.reveal.on .pk-p:nth-of-type(3){transition-delay:1s}

/* "Nguvu tatu": three supports holding up one structure */
.nt{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:1rem;margin-top:1rem}
.nt svg{display:block;width:100%;height:auto;direction:ltr}
.nt .nt-t{font-family:var(--f-display);font-weight:700;font-size:1.15rem;text-align:center;margin-bottom:.3rem}
.nt text{font-family:var(--f-display);font-weight:700}
.nt .roof-t{fill:#fff;font-size:19px}
.nt .lab{fill:#fff;font-size:21px}
.nt .hint{fill:var(--ink);font-size:15px;font-family:var(--f-body);font-weight:400}
.nt .pil{transform-box:fill-box;transform-origin:50% 100%}
.js-rv .nt.reveal .pil{transform:scaleY(0);transition:transform .9s cubic-bezier(.3,1.2,.4,1)}
.js-rv .nt.reveal .roof{transform:translateY(-40px);opacity:0;transition:transform .8s cubic-bezier(.3,1.3,.4,1) 1.5s,opacity .5s 1.5s}
.js-rv .nt.reveal.on .pil{transform:none}
.js-rv .nt.reveal.on .p2{transition-delay:.35s} .js-rv .nt.reveal.on .p3{transition-delay:.7s}
.js-rv .nt.reveal.on .roof{transform:none;opacity:1}
.hero .nt{background:transparent;border:0;padding:0;margin:0}
.hero .nt .hint{fill:var(--hero-fg)}
.hero .nt .nt-t{color:var(--hero-fg)}

/* ---------- live pictures: the play/pause control is the same everywhere ---------- */
.live{position:relative}
.live-btn{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;padding:.35rem .9rem;margin-top:.7rem;border-radius:999px;border:1.5px solid currentColor;background:transparent;color:inherit;font:700 1rem/1 var(--f-display);cursor:pointer;opacity:.85}
.live-btn svg{width:14px;height:14px}
.live.rm *,.live.rm *::before,.live.rm *::after{transition-duration:0s!important;animation:none!important}

/* the market scale (Part 1) */
.mz{text-align:center;color:var(--hero-fg)}
.mz svg{display:block;width:100%;height:auto;direction:ltr}
.mz-life{transform-origin:160px 70px;animation:mz-life 5s ease-in-out infinite}
#mz-beam,#mz-l,#mz-r{transition:transform 1.1s cubic-bezier(.3,.8,.3,1)}
#mz-beam{transform-origin:160px 70px}
.mz-w{opacity:0}
.mz-w.on{opacity:1;animation:mz-drop .7s cubic-bezier(.3,1.4,.5,1)}
.mz-cap{font-family:var(--f-display);font-weight:700;font-size:21px;fill:#fff}
.mz-chips,.mt-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:.8rem}
.mz-chip,.mt-btn{min-height:52px;border-radius:12px;border:2px solid rgba(255,255,255,.85);background:transparent;color:#fff;font:inherit;font-family:var(--f-display);font-weight:700;font-size:1.05rem;line-height:1.2;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .5s,color .5s,border-color .5s;padding:.35rem .5rem}
.mz-chip.on,.mt-btn.off{background:var(--gold);border-color:var(--gold);color:#17191F}
.mz-say,.mt-say{display:block;min-height:3.1em;margin:.9rem 0 .2rem;font-size:1.1rem;line-height:1.45}
.mz-say b{color:var(--gold)}
.mz-count,.mt-pct{display:block;margin:0;font-family:var(--f-display);font-weight:700;font-size:1.3rem;color:var(--gold)}
.mz-again,.mt-again{margin-top:.6rem;min-height:48px;padding:.5rem 1.2rem;border-radius:10px;border:2px solid var(--gold);background:transparent;color:var(--gold);font:700 1.05rem/1 var(--f-display);cursor:pointer}
.mz-again[hidden],.mt-again[hidden]{display:none}
.paused *{animation-play-state:paused!important}
@keyframes mz-life{0%,100%{transform:rotate(-.7deg)}50%{transform:rotate(.7deg)}}
@keyframes mz-drop{from{transform:translateY(-46px);opacity:0}to{transform:translateY(0);opacity:1}}

/* the day's bundle ring (Part 2) */
.bando{display:flex;flex-direction:column;align-items:center;gap:.6rem;text-align:center}
.bando svg.ring{width:min(15rem,70vw);height:auto}
.svg-d{font-family:var(--f-display)} .svg-b{font-family:var(--f-body)}
#ring{transition:stroke-dashoffset 2.4s cubic-bezier(.4,0,.2,1)}
.melt{display:flex;align-items:center;justify-content:center;gap:.8rem}
.melt svg{width:64px;height:56px;flex:none}
.left{font-family:var(--f-display);font-size:1.6rem;font-weight:700;font-variant-numeric:tabular-nums;color:#fff}
.cap{font-size:1.05rem;line-height:1.5;color:var(--hero-fg);max-width:24rem}
#dot{animation:breathe 2.4s ease-in-out infinite}
#ice{transform-origin:32px 44px;transition:transform 1s linear}
#drip{animation:drip 2.2s ease-in infinite}
@keyframes breathe{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes drip{0%{transform:translateY(0);opacity:0}15%{opacity:.9}80%{transform:translateY(14px);opacity:.9}100%{transform:translateY(16px);opacity:0}}

/* the leaking clay pot (Part 3) */
.mt{text-align:center;color:var(--hero-fg)}
.mt-art{position:relative}
.mt svg{display:block;width:100%;height:auto;direction:ltr;overflow:visible}
.mt-lab{position:absolute;font-family:var(--f-display);font-weight:700;font-size:16px;line-height:1.1;transform:translateY(-50%);color:#fff;pointer-events:none;max-width:4.6rem}
.mt-lab.l{text-align:end} .mt-lab.r{text-align:start}
#mt-water{transform-origin:130px 252px;transition:transform 1.4s ease}
#mt-plant{transform-origin:282px 252px;transition:transform 1.6s ease}
.mt-pour{stroke-dasharray:8 7;animation:mt-pour 1s linear infinite}
.mt-drip{animation:mt-drip 1.5s ease-in infinite}
.mt-hole[data-k="1"] .mt-drip{animation-delay:-.4s}.mt-hole[data-k="2"] .mt-drip{animation-delay:-.8s}.mt-hole[data-k="3"] .mt-drip{animation-delay:-1.1s}
.mt-patch{opacity:0;transition:opacity .6s}
.mt-hole.off .mt-patch{opacity:1}.mt-hole.off .mt-drip{display:none}
.mt-btn b{display:block;font-size:.95rem}
@keyframes mt-pour{to{stroke-dashoffset:-15}}
@keyframes mt-drip{0%{transform:translate(0,0);opacity:0}15%{opacity:1}100%{transform:translate(var(--dx,0px),38px);opacity:0}}

/* ---------- series page cards ---------- */
.pcards{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
@media (min-width:760px){.pcards{grid-template-columns:repeat(3,minmax(0,1fr))}}
.pcard{display:flex;flex-direction:column;gap:.5rem;text-decoration:none;color:var(--ink);background:var(--card);border:1px solid var(--line);border-top:6px solid var(--pc);border-radius:18px;padding:1.2rem 1.1rem 1rem}
.pcard .pn{display:flex;align-items:center;gap:.55rem;font-family:var(--f-display);font-weight:700;font-size:1rem;color:var(--muted)}
.pcard .pn i{font-style:normal;display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:var(--pc);color:#fff}
:root[data-theme="dark"] .pcard .pn i{color:#111318}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pcard .pn i{color:#111318}}
.pcard .pt{font-family:var(--f-display);font-weight:700;font-size:1.4rem;line-height:1.2;text-wrap:balance}
.pcard .pl{font-size:1.1rem;line-height:1.5;flex:1}
.pcard .pgo{display:flex;align-items:center;justify-content:space-between;min-height:48px;font-family:var(--f-display);font-weight:700;font-size:1.05rem;color:var(--pc);border-top:1px solid var(--line);padding-top:.5rem}
.pcard .pgo i{font-style:normal;font-weight:400;color:var(--muted);font-size:1rem}
.arc{--box:calc(var(--wide) - 3.5rem)}

/* ---------- share, next, author, sources, footer ---------- */
.share{background:var(--card);border:2px solid var(--accent);border-radius:var(--r-lg);padding:1.5rem;display:flex;flex-direction:column;gap:.55rem}
.share h2{font-size:1.5rem}
.share p:last-of-type{font-weight:600;color:var(--accent)}
.sh-btns{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.6rem}
.sh-btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;font:700 1.02rem/1.2 var(--f-display);min-height:48px;padding:.6rem 1rem;border-radius:999px;border:2px solid var(--accent);background:transparent;color:var(--accent);text-decoration:none;cursor:pointer}
.sh-btn svg{width:1.15rem;height:1.15rem;flex:none}
.sh-btn.sh-whatsapp{background:#0F7A41;border-color:#0F7A41;color:#fff}
.next{background:var(--hero);color:var(--hero-fg);border-radius:var(--r-lg);padding:1.5rem;display:flex;flex-direction:column;gap:1rem}
.next p{font-size:1.15rem}
.next a{color:#fff;font-weight:600}
.next .btn{background:var(--gold);border-color:var(--gold);color:#17191F;align-self:flex-start}
.next .all{display:inline-flex;align-items:center;min-height:48px}
.sign{display:flex;gap:1rem;align-items:center}
.sign img{width:76px;height:76px;border-radius:50%;object-fit:cover;object-position:top;flex:none;border:3px solid var(--accent)}
.sign .by{font-size:1rem;color:var(--muted)}
.sign .nm{font-family:var(--f-display);font-weight:700;font-size:1.3rem}
.sign .rl{font-size:1.05rem;line-height:1.5}
.sign .ct{font-size:1.05rem;line-height:1.4;margin-top:.2rem;unicode-bidi:isolate}
.sign .ct a{display:inline-flex;align-items:center;min-height:48px}
:root[dir="rtl"] .sign .ct{text-align:right}
.credit{font-size:1.05rem;color:var(--muted)}
.sources{font-size:1rem;color:var(--muted);line-height:1.55;padding-inline-start:1.6rem;margin:0}
:root[lang="ar"] .sources{list-style-type:arabic-indic}
.sources li{margin-bottom:.45rem}
.ftr{border-top:1px solid var(--line);background:var(--card);margin-top:0}
.ftr .in{padding-block:1.5rem;gap:.5rem;font-size:1rem;color:var(--muted)}
.ftr a{display:inline-flex;align-items:center;min-height:48px}

/* ---------- Part 1's own pieces, in the shared language ---------- */
.ic{width:1.6rem;height:1.6rem;flex:none}
.shadows{position:relative;border-radius:var(--r-lg);overflow:hidden}
.shadows svg{display:block;width:100%;height:auto}
.shadows ul{list-style:none;margin:.8rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center}
.shadows li{background:var(--c1);color:#fff;font-family:var(--f-display);font-weight:700;font-size:1rem;padding:.2rem .7rem;border-radius:999px}
:root[data-theme="dark"] .shadows li{color:#111318}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .shadows li{color:#111318}}
.eyes{display:grid;grid-template-columns:minmax(0,1fr);gap:.9rem}
@media (min-width:600px){.eyes{grid-template-columns:repeat(2,minmax(0,1fr))}}
.eye{border-radius:var(--r);padding:1.1rem}
.eye h3{display:flex;align-items:center;gap:.5rem;margin:0 0 .45rem;font-size:1.15rem}
.eye p{font-size:1.1rem;line-height:1.5;font-style:italic}
.eye.lack{background:var(--clay-bg);color:var(--clay)}
.eye.lack p{color:var(--ink)}
.eye.plenty{background:var(--leaf-bg);color:var(--leaf);border:2px solid var(--leaf)}
.eye.plenty p{color:var(--ink)}
.exs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:.9rem}
@media (min-width:760px){.exs{grid-template-columns:repeat(2,minmax(0,1fr))}}
.exs li{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:1rem 1.1rem;display:flex;gap:.85rem;align-items:flex-start}
.exs .ic{width:2.4rem;height:2.4rem;color:var(--leaf);background:var(--leaf-bg);border-radius:12px;padding:.42rem}
.exs h3{font-size:1.12rem;line-height:1.35;margin:0 0 .25rem}
.exs h3 small{display:block;font-size:1rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-family:var(--f-display)}
:root[dir="rtl"] .exs h3 small{letter-spacing:0;text-transform:none}
.exs p{font-size:1.05rem;line-height:1.55}
.banner{background:var(--accent);color:var(--paper);border-radius:var(--r-lg);padding:1.4rem 1rem;text-align:center;font-family:var(--f-display);font-weight:700;font-size:clamp(1.3rem,.9rem + 2.4vw,2.5rem);line-height:1.2}
.banner span{color:var(--gold);display:inline-block}
:root[data-theme="dark"] .banner span{color:#7A5600}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .banner span{color:#6B4A00}}
.tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:.8rem}
@media (min-width:600px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tiles.three{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:760px){.tiles.three{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tiles li{display:flex;gap:.7rem;align-items:flex-start;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:.9rem 1rem;font-size:1.08rem;line-height:1.5}
.tiles .ic{color:var(--accent)}
.tiles.three li{flex-direction:column;align-items:center;text-align:center;font-family:var(--f-display);font-weight:700;background:var(--soft)}
.tiles.three .ic{width:2.2rem;height:2.2rem;color:var(--gold-ink)}
.art{display:block;width:100%;height:auto;border-radius:var(--r-lg)}

/* ---------- print ---------- */
@media print{
  .hdr,.strip,.live-btn,.consent-banner,.mz-chips,.mt-btns,.share .sh-btns,.next .btn{display:none!important}
  body{background:#fff;color:#111}
  .hero,.next,.banner,.law-n,.num > li::before,.tree .node,.pk-p.lit,.path,.card,.danger{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .mz-say,.mt-say,.mz-again,.mt-again{display:none!important}
  .sec{padding-block:1rem;break-inside:auto}
  .tree,.pk,.fact,.card,.path,.xt,.danger,.quote{break-inside:avoid}
}

/* ---------- motion preferences: the pictures still tell their story, in steps, with no sliding or zooming ---------- */
@media (prefers-reduced-motion:reduce){
  .mz-life,.mz-w.on,#dot,#drip,.mt-pour,.mt-drip{animation:none}
  #mz-beam,#mz-l,#mz-r,#mt-water,#mt-plant,#ring,#ice,.mz-chip,.mt-btn,.meter span{transition:none}
  .js-rv .tree.reveal .row,.js-rv .tree.reveal .arrow,.js-rv .tree.reveal .lvl,.js-rv .pk.reveal .pk-p,.js-rv .nt.reveal .pil,.js-rv .nt.reveal .roof{transition:opacity .4s linear!important;transform:none!important}
}

/* the privacy notice (consent.js) */
.consent-banner{position:fixed;left:0;right:0;bottom:0;z-index:999;background:#1F2430;color:#fff;border-top:1px solid #ffffff1f;box-shadow:0 -6px 24px #0003;padding:6px 10px 6px 16px;transform:translateY(110%);transition:transform .4s ease;font-family:var(--f-body)}
.consent-banner.visible{transform:translateY(0)}
.consent-banner-inner{max-width:var(--wide);margin:0 auto;display:flex;align-items:center;gap:8px}
.consent-banner-text{flex:1 1 auto;min-width:0;margin:0;font-size:1rem;line-height:1.5;color:#ffffffe0}
.consent-banner-text a{color:var(--gold)}
.consent-btn-close{background:transparent;color:#fff;border:1px solid #ffffff55;width:48px;height:48px;border-radius:50%;flex-shrink:0;font-size:16px;cursor:pointer}
h2.one{--fs:var(--fs-h2);--cw:.55}
@media print{.js-rv .reveal *{opacity:1!important;transform:none!important}}
.key{padding:0 .05em}
.live .live-btn svg{width:14px;height:14px;display:inline-block;flex:none}
@media (max-width:420px){.hdr-in{gap:6px;padding:0 10px}.lang{gap:2px;padding:2px}.lang button{padding:0 5px;gap:4px;min-width:48px;height:44px;font-size:13.5px}.lang button .flag{width:18px;height:12px}.hdr-t{font-size:1rem}}
:root[dir="rtl"]{font-size:110%}
:root[dir="rtl"] body *{letter-spacing:0!important;text-transform:none!important}
