/* MoH Agreement Globe — visual overhaul 2026-10-17 (VISUAL-OVERHAUL-DESIGN-2026-10-17.md)
   The :root block is the ONLY place a colour, a typeface or a layout size is written. Everything below
   uses var(--token); alpha variants come from color-mix(). No literal outside this block (tests enforce). */
:root{
  color-scheme:dark;   /* the browser's own scrollbars and controls dark, not white (visual check 2026-11-01) */
  --bg:#050811;                      /* page and Cesium background */
  --navy-800:#0b1222;
  --glass:rgba(8,12,24,.74);         /* floating panels */
  --glass-2:rgba(8,12,24,.56);
  --line:rgba(212,175,90,.16);       /* gold hairline */
  --line-2:rgba(120,140,180,.16);    /* neutral hairline */
  --gold:#d4af5a;  --gold-2:#f5ead0;  --gold-dim:rgba(212,175,90,.14);  --gold-bright:#ffd24a;
  --blue:#60a0d0;  --blue-2:#a9cfeb;  --blue-dim:rgba(96,160,208,.16);   /* emblem sky blue */
  --text:#e8edf6;  --muted:#8b99b5;   --muted-2:#76839e;
  --warn:#f0b429;                    /* overdue review only */
  --viz-ctx:#5b7a99;  --viz-3:#3a6592;   /* the Dashboard's charts: a row or column the heading does not name (4.2:1 on the card), and the darkest of the three blue steps of a mix (--blue-2, --blue, this; an ordinal ramp, checked 2026-11-20: charts.js) */
  --red:#e0625a;                     /* Expired: button, dot, labels, figure, globe (his manager's ask 2026-11-20; grey until then) */
  --reg-gcc:#c9a95f;  --reg-europe:#c9a95f;  --reg-na:#c9a95f;  --reg-sa:#c9a95f;  --reg-ca:#c9a95f;
  --reg-ea:#c9a95f;  --reg-africa:#c9a95f;  --reg-au:#c9a95f;  --reg-intl:#c9a95f;   /* one gold line for every region (2026-10-22, he picked "A  One gold line"; distinct colours were 2026-10-21) */
  --serif:'Playfair Display';  --sans:'Inter';
  --ar-serif:'Amiri';          --ar-sans:'IBM Plex Sans Arabic';
  --ar-panel:'Times New Roman';   /* Arabic in the right panel (Yousef 2026-11-01); a system face, nothing downloaded */
  --header-h:64px;  --rail-w:248px;  --panel-w:clamp(380px,30vw,460px);  --edge:22px;
  --hero-w:clamp(380px,30vw,500px);   /* the headline's width; since 2026-11-01 the sky and the Earth pass under it */
  --r-sm:6px;  --r-md:9px;  --r-lg:14px;
  --vignette:rgba(5,8,17,.55);       /* edge darkening over the globe */
  --track-s:.3px;  --track-m:1px;  --track-l:2.4px;  --track-xl:4px;   /* letter-spacing in four steps: text, small labels, wide labels, the headline's eyebrow (15 values until 2026-11-18) */
  --small:13px;  --read:16px;   /* the panel's small text and its summary, one step up for a meeting-room screen (12 and 15 until 2026-11-18) */
}
/* Amiri ships Arabic glyphs only: digits and Latin words inside Arabic headings fall through to Playfair */
body.lang-ar{--serif:var(--ar-serif),'Playfair Display';--sans:var(--ar-sans)}

/* ===== SELF-HOSTED FONTS (app/vendor/fonts, hashes in MANIFEST.json) ===== */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(vendor/fonts/inter-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600 700;font-display:swap;src:url(vendor/fonts/playfair-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url(vendor/fonts/plexarabic-400-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(vendor/fonts/plexarabic-500-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url(vendor/fonts/plexarabic-600-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url(vendor/fonts/plexarabic-700-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url(vendor/fonts/plexarabic-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(vendor/fonts/plexarabic-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url(vendor/fonts/plexarabic-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url(vendor/fonts/plexarabic-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Amiri';font-style:normal;font-weight:400;font-display:swap;src:url(vendor/fonts/amiri-400-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'Amiri';font-style:normal;font-weight:700;font-display:swap;src:url(vendor/fonts/amiri-700-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html,body{width:100%;height:100%;overflow:hidden;font-family:var(--sans),'Segoe UI',sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}

/* ===== BUTTON FAMILY — one style for every button on the page ===== */
.btn{height:34px;padding:0 13px;border-radius:8px;border:1px solid color-mix(in srgb,var(--gold) 28%,transparent);background:var(--gold-dim);color:var(--gold);font:600 12px/1 var(--sans),sans-serif;letter-spacing:var(--track-s);display:inline-flex;align-items:center;gap:7px;white-space:nowrap;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.btn:hover{background:color-mix(in srgb,var(--gold) 22%,transparent);border-color:var(--gold)}
.btn.ghost{background:transparent;border-color:var(--line-2);color:var(--muted)}
#toolbar .btn.ghost{background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(12px)}   /* over the globe's ice (UX F16) */
.btn.ghost:hover{color:var(--text);border-color:color-mix(in srgb,var(--gold) 40%,transparent)}
.btn.solid{background:linear-gradient(180deg,color-mix(in srgb,var(--gold) 85%,white),var(--gold));border-color:color-mix(in srgb,var(--gold) 70%,white);color:var(--bg);box-shadow:0 4px 18px color-mix(in srgb,var(--gold) 28%,transparent)}
.btn.solid:hover{background:linear-gradient(180deg,color-mix(in srgb,var(--gold) 75%,white),color-mix(in srgb,var(--gold) 92%,white))}
.btn.icon{width:36px;padding:0;justify-content:center}
.btn svg,.ico{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.ico-xl{width:44px;height:44px;stroke-width:1.4}
.btn:disabled,.btn.busy{opacity:.5;cursor:default}
.btn.lang{padding:0 10px;gap:0}
.btn.lang b{padding:0 6px;color:var(--gold-2);font-weight:700}
.btn.lang span{padding:0 6px;color:var(--muted);font-family:var(--ar-sans),sans-serif;font-weight:600}
.btn.lang.ar-active b{color:var(--muted)}
.btn.lang.ar-active span{color:var(--gold-2)}
/* the active language on a raised plate in gold, the other dimmed (2026-11-23, the design notes Yousef pasted with "do this next", then "ok go ahead") */
.btn.lang b,.btn.lang span{border-radius:6px;padding:2px 8px}
.btn.lang b{background:#16263E;color:#D6B45A}.btn.lang span{color:#64748B;background:none}
.btn.lang.ar-active b{background:none;color:#64748B}.btn.lang.ar-active span{background:#16263E;color:#D6B45A}

/* ===== HEADER ===== */
#app-header{position:fixed;top:0;left:0;right:0;height:var(--header-h);display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:linear-gradient(180deg,color-mix(in srgb,var(--bg) 92%,transparent),color-mix(in srgb,var(--bg) 42%,transparent));backdrop-filter:blur(14px);border-bottom:1px solid var(--line);z-index:100}
.lock{display:flex;flex-direction:column;gap:4px}
/* the ministry's emblem beside its name (2026-11-20): the official colour emblem on its transparent background, without
   the lockup's black lettering, which cannot be read on the dark page; the gold words beside it are the site's own */
.lock.has-emblem{flex-direction:row;align-items:center;gap:12px}
.lk-words{display:flex;flex-direction:column;gap:4px}
.intro-emblem{display:block;height:96px;width:auto;margin:0 auto 18px}
.hub-actions{display:flex;align-items:center;gap:10px}
@media (max-width:600px){.intro-emblem{height:76px}}
.lk-ar{font:600 17px/1.1 var(--ar-sans),sans-serif;color:var(--gold);direction:rtl;text-align:left}
.lk-en{font:500 12px/1 var(--sans),sans-serif;letter-spacing:var(--track-l);text-transform:uppercase;color:var(--muted)}
.header-right{display:flex;align-items:center;gap:14px}

/* Arabic layout mirroring (sidebar, globe, panels) lives in the RTL LAYOUT section at the end of this file. */
body.lang-ar .region-btn{text-align:right}
body.lang-ar .region-count{margin-left:0;margin-right:auto}
/* <html dir="rtl"> already runs the header right-to-left: the lockup lands on the right by itself */
body.lang-ar .lk-ar{text-align:right}
body.lang-ar .header-right{flex-direction:row-reverse}
body.lang-ar #kuwait-clock{padding-right:0;padding-left:16px;border-right:none;border-left:1px solid var(--line);align-items:flex-start}

#kuwait-clock{display:flex;flex-direction:column;align-items:flex-end;gap:3px;padding-right:16px;border-right:1px solid var(--line)}
#clock-time{font-family:var(--sans),sans-serif;font-variant-numeric:tabular-nums;font-size:15px;font-weight:600;color:var(--gold);letter-spacing:var(--track-m);line-height:1}
#clock-label{font-size:12px;color:var(--muted-2);letter-spacing:var(--track-l);text-transform:uppercase;font-weight:500}

/* ===== TOOLBAR — floats beside the rail; wraps to two rows when the free width is short ===== */
#toolbar{position:fixed;top:calc(var(--header-h) + 16px);left:calc(var(--rail-w) + var(--edge));display:flex;flex-wrap:wrap;align-items:center;gap:10px;max-width:calc(100vw - var(--rail-w) - 2 * var(--edge));z-index:90}
body.panel-open #toolbar{max-width:calc(100vw - var(--rail-w) - var(--panel-w) - 2 * var(--edge))}
/* The partner buttons take the second row and Reset is the last control of the bar, in both languages: in Arabic the
   shorter words let the partner buttons into the first row and Reset stood alone on the second (polish pass
   2026-11-20; Reset ended the first row until the groups took their labels the same day and the row was full). Where
   the filters sit behind the Filters button, "#toolbar .seg{order:2}" and the buttons' "order:1" below win. */
#partner-seg{order:3}
#reset-btn{order:4}
.srch{display:flex;align-items:center;gap:9px;width:300px;height:36px;padding:0 12px;border-radius:var(--r-md);border:1px solid var(--line-2);background:var(--glass);backdrop-filter:blur(12px);color:var(--muted);cursor:text;transition:border-color .2s,box-shadow .2s,width .3s}
.srch:focus-within{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold-dim)}
.srch input{flex:1;min-width:0;height:100%;border:0;background:transparent;color:var(--text);font:400 12.5px var(--sans),sans-serif;outline:none}
.srch input::placeholder{color:var(--muted)}
body.panel-open .srch{width:200px}
.seg{display:flex;flex-wrap:wrap;max-width:100%;height:auto;min-height:36px;padding:3px;border-radius:var(--r-md);border:1px solid var(--line-2);background:var(--glass);backdrop-filter:blur(12px)}
.seg-opt{display:flex;align-items:center;gap:6px;min-height:28px;padding:0 11px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:500 12px var(--sans),sans-serif;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s}
.seg-opt:hover{color:var(--text)}
/* «نوع الشراكة»: a drop-down of the six categories, in the same box as the buttons beside it (2026-11-04) */
.type-pick{align-items:center;gap:8px;padding:3px 3px 3px 11px}
body.lang-ar .type-pick{padding:3px 11px 3px 3px}
/* Each group of filters names itself before its buttons: Status, Partner, Document type (Yousef 2026-11-20: a reader
   "who doesn't know ... it's a bit confusing when I just see all, and then country, hospitals"). All is the last button
   of each group in both languages (his "the all should be at the end"). */
.seg-label,.type-pick label{align-self:center;color:var(--muted);font:600 12px var(--sans),sans-serif;letter-spacing:var(--track-m);text-transform:uppercase;white-space:nowrap}
.seg-label{padding:0 6px 0 9px}
body.lang-ar .seg-label,body.lang-ar .type-pick label{letter-spacing:0;text-transform:none;font:600 13px var(--ar-sans),sans-serif}
.seg-n{margin-inline-start:2px;font-weight:500;font-variant-numeric:tabular-nums;opacity:.62}
.seg-n:empty{display:none}
.type-pick select{min-height:28px;padding:0 6px;border:0;border-radius:6px;background:color-mix(in srgb,var(--gold) 16%,transparent);color:var(--gold-2);font:500 12px var(--sans),sans-serif;cursor:pointer}
.type-pick select option{background:var(--bg);color:var(--text)}
.type-pick select optgroup{background:var(--bg);color:var(--gold-2);font-style:normal}
.type-pick select:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
/* Phones only (UX check 2026-10-28): the three button rows sit behind one Filters button; a gold count says how many are on */
#filters-toggle{display:none}
.filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--gold);color:var(--bg);font:700 12px/1 var(--sans),sans-serif}
.filter-count[hidden]{display:none}
.seg-opt[aria-pressed="true"]{background:color-mix(in srgb,var(--gold) 16%,transparent);color:var(--gold-2)}
.seg-opt:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--gold);outline-offset:2px}   /* every control (review 2026-10-20 item 11) */
.srch:focus-within{outline:2px solid var(--gold);outline-offset:2px}
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}
.dot.gold{background:var(--gold);box-shadow:0 0 6px color-mix(in srgb,var(--gold) 80%,transparent)}
.dot.blue{background:var(--blue);box-shadow:0 0 6px color-mix(in srgb,var(--blue) 80%,transparent)}
.dot.grey{background:var(--red);box-shadow:0 0 6px color-mix(in srgb,var(--red) 70%,transparent)}   /* Expired (2026-10-27) */
@media (max-width: 1600px) {
  body.panel-open #reset-btn .btn-label{display:none}
  body.panel-open #reset-btn{width:36px;padding:0;justify-content:center}
}

/* ===== TOUR OVERLAY ===== */
#tour-overlay{position:fixed;inset:0;z-index:120;background:radial-gradient(ellipse 70% 38% at 50% 62%,color-mix(in srgb,var(--bg) 78%,transparent) 0%,color-mix(in srgb,var(--bg) 52%,transparent) 55%,transparent 100%),radial-gradient(ellipse at center,transparent 40%,color-mix(in srgb,var(--bg) 55%,transparent) 100%);display:none;align-items:flex-end;justify-content:center;padding-bottom:120px;pointer-events:none;opacity:0;transition:opacity .8s ease}
#tour-overlay.active{display:flex;pointer-events:auto;opacity:1}
.tour-eyebrow{position:absolute;top:48%;left:50%;transform:translateX(-50%);font-size:12px;letter-spacing:var(--track-xl);color:var(--gold);font-weight:700;text-transform:uppercase;opacity:0;animation:tourEyebrow .8s ease forwards}
.tour-title{position:absolute;top:52%;left:50%;transform:translate(-50%,-50%);font-family:var(--serif),serif;font-size:clamp(32px,5vw,64px);font-weight:600;color:var(--gold-2);letter-spacing:-1.5px;text-align:center;max-width:80%;line-height:1.1;text-shadow:0 8px 40px rgba(0,0,0,.8);opacity:0;animation:tourTitle 1s ease .2s forwards}
.tour-stat{position:absolute;top:62%;left:50%;transform:translateX(-50%);font-size:15px;color:var(--muted);letter-spacing:var(--track-m);font-weight:400;opacity:0;animation:tourStat 1s ease .5s forwards;text-align:center}
.tour-stat strong{color:var(--gold);font-weight:700;font-size:18px}
.tour-countries{position:absolute;top:68%;left:50%;transform:translateX(-50%);display:flex;flex-wrap:wrap;justify-content:center;gap:8px 10px;max-width:75%;opacity:0;animation:tourStat 1s ease .8s forwards}
.tour-country-chip{padding:6px 14px;border-radius:20px;background:var(--gold-dim);border:1px solid color-mix(in srgb,var(--gold) 30%,transparent);color:var(--gold-2);font-size:13px;font-weight:500;letter-spacing:var(--track-s);font-family:var(--sans),sans-serif;white-space:nowrap;backdrop-filter:blur(8px)}
#tour-stop{position:absolute;bottom:60px;left:50%;transform:translateX(-50%);border-radius:17px;background:var(--glass);backdrop-filter:blur(10px);letter-spacing:var(--track-m);text-transform:uppercase;font-size:12px}

@keyframes tourEyebrow{0%{opacity:0;transform:translate(-50%,10px)}100%{opacity:1;transform:translate(-50%,0)}}
@keyframes tourTitle{0%{opacity:0;transform:translate(-50%,-40%)}100%{opacity:1;transform:translate(-50%,-50%)}}
@keyframes tourStat{0%{opacity:0;transform:translate(-50%,10px)}100%{opacity:1;transform:translate(-50%,0)}}
@keyframes tourFlow{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:none}}   /* phones: the texts in one column (UX F4) */

/* ===== TIME STRIP — compact pill centred in the free width; hidden during the tour and presentation ===== */
#time-strip{position:fixed;bottom:26px;left:calc(var(--rail-w) + var(--hero-w) + (100vw - var(--rail-w) - var(--hero-w)) / 2);transform:translateX(-50%);z-index:75;width:min(660px,calc(100vw - var(--rail-w) - var(--hero-w) - 2 * var(--edge)));height:54px;display:flex;align-items:center;gap:12px;padding:0 10px 0 8px;border-radius:27px;border:1px solid var(--line);background:var(--glass);backdrop-filter:blur(16px);box-shadow:0 8px 32px rgba(0,0,0,.4);opacity:0;transition:opacity .8s ease 1.4s,left .4s cubic-bezier(.4,0,.2,1)}
#time-strip.visible{opacity:1}
body.panel-open #time-strip{left:calc(var(--rail-w) + (100vw - var(--rail-w) - var(--panel-w)) / 2);width:min(660px,calc(100vw - var(--rail-w) - var(--panel-w) - 2 * var(--edge)))}
body.tour-active #time-strip,body.presentation-mode #time-strip{display:none}
body.tour-active #toolbar{display:none}   /* filters stay out of a running tour; End Tour is the way out */
#ts-play{width:36px;height:36px;border-radius:50%}
#ts-play .i-pause{display:none}
#ts-play.playing .i-play{display:none}
#ts-play.playing .i-pause{display:inline}
#ts-play.playing{background:color-mix(in srgb,var(--gold) 22%,transparent);border-color:var(--gold);color:var(--gold-2)}
.ts-year-block{display:flex;flex-direction:column;gap:2px;min-width:92px;flex-shrink:0}
.ts-year-label{font:600 12px var(--sans),sans-serif;letter-spacing:var(--track-m);text-transform:uppercase;color:var(--muted-2)}
.ts-year{font:600 15px/1.1 var(--serif),serif;color:var(--gold-2);letter-spacing:var(--track-s)}
.ts-track{flex:1;min-width:0;position:relative;padding-bottom:12px}
#ts-range{width:100%;height:4px;-webkit-appearance:none;appearance:none;background:linear-gradient(90deg,color-mix(in srgb,var(--gold) 25%,transparent),color-mix(in srgb,var(--gold) 90%,transparent));border-radius:2px;outline:none;cursor:pointer;display:block;margin:0}
#ts-range:focus-visible{outline:2px solid var(--gold);outline-offset:6px;border-radius:4px}   /* UX F20 */
#ts-range::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:var(--gold);border:2px solid var(--gold-2);cursor:pointer;box-shadow:0 0 10px color-mix(in srgb,var(--gold) 70%,transparent)}
#ts-range::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--gold);border:2px solid var(--gold-2);cursor:pointer}
.ts-bounds{position:absolute;left:0;right:0;top:12px;display:flex;justify-content:space-between;font:600 12px var(--sans),sans-serif;letter-spacing:var(--track-m);color:var(--muted-2)}
#ts-mode,#ts-reset{height:28px;border-radius:14px;font-size:12px;letter-spacing:var(--track-m);text-transform:uppercase;flex-shrink:0}
#ts-mode.exact-active{background:var(--blue-dim);border-color:var(--blue);color:var(--blue-2)}
#ts-reset[hidden]{display:inline-flex;visibility:hidden}   /* keeps its room: the track never changes length under a drag (UX F3) */
/* The year bar was too short to use (visual check 2026-11-01: 116 px on a laptop, 17 px on a phone; Yousef "All six"): the
   strip is wider, and the All Years button, whose room is always kept, is a round icon with its name as its tooltip. */
#ts-reset{width:28px;padding:0;justify-content:center}
#ts-reset .btn-label{display:none}

/* ===== VIGNETTE ===== */
#vignette{position:fixed;inset:0;pointer-events:none;z-index:50;background:radial-gradient(ellipse at 58% 48%,transparent 42%,var(--vignette) 100%)}

/* ===== HOVER TOOLTIP ===== */
#hover-tooltip{position:fixed;pointer-events:none;z-index:120;padding:10px 14px;background:color-mix(in srgb,var(--navy-800) 92%,transparent);backdrop-filter:blur(14px);border:1px solid color-mix(in srgb,var(--gold) 25%,transparent);border-radius:8px;box-shadow:0 8px 30px rgba(0,0,0,.5);transform:translate(16px,16px);opacity:0;transition:opacity .15s ease}
#hover-tooltip.visible{opacity:1}
#hover-tooltip.hidden{display:none}
.tt-country{font-family:var(--serif),serif;font-size:16px;font-weight:600;color:var(--gold-2);letter-spacing:var(--track-s);margin-bottom:3px;white-space:nowrap}
.tt-meta{font-size:12px;color:var(--muted);letter-spacing:var(--track-m)}
.tt-count{color:var(--gold);font-weight:700;font-size:13px}
.tt-label{text-transform:uppercase;letter-spacing:var(--track-m);font-size:12px}
#hover-tooltip.tt-plain .tt-meta{display:none}   /* a country that is not a partner: its name only (2026-10-28) */

/* ===== REGION SIDEBAR ===== */
#region-sidebar{position:fixed;top:var(--header-h);left:0;bottom:0;width:var(--rail-w);padding:22px 14px;background:linear-gradient(180deg,color-mix(in srgb,var(--bg) 86%,transparent),color-mix(in srgb,var(--navy-800) 72%,transparent));backdrop-filter:blur(16px);border-right:1px solid var(--line);z-index:80;overflow-y:auto}
#region-sidebar h3{font-size:12px;text-transform:uppercase;letter-spacing:var(--track-l);color:var(--gold);margin-bottom:14px;font-weight:600;font-family:var(--sans),sans-serif;padding:0 10px}
.region-btn{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;margin-bottom:3px;border-radius:var(--r-md);border:1px solid transparent;background:transparent;color:var(--muted);font-size:13px;font-family:inherit;text-align:left;cursor:pointer;transition:background .25s,border-color .25s,color .25s;font-weight:500;letter-spacing:var(--track-s)}
.region-btn[hidden]{display:none}
[data-region="GCC and Arab States"]{--rc:var(--reg-gcc)}
[data-region="Europe"]{--rc:var(--reg-europe)}
[data-region="North America"]{--rc:var(--reg-na)}
[data-region="South America"]{--rc:var(--reg-sa)}
[data-region="Central Asia"]{--rc:var(--reg-ca)}
[data-region="East Asia"]{--rc:var(--reg-ea)}
[data-region="Africa"]{--rc:var(--reg-africa)}
[data-region="Australia"]{--rc:var(--reg-au)}
[data-region="International Organizations"]{--rc:var(--reg-intl)}
.rswatch{width:9px;height:9px;border-radius:2px;flex-shrink:0;background:var(--rc,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--rc,var(--muted)) 55%,transparent)}
.region-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.region-count{margin-left:auto;flex-shrink:0;font-size:12px;font-weight:600;color:var(--muted);background:var(--line-2);border:1px solid var(--line-2);border-radius:10px;padding:1px 8px;font-variant-numeric:tabular-nums}
.region-btn:hover{background:color-mix(in srgb,var(--gold) 6%,transparent);color:var(--text)}
.region-btn.active{background:linear-gradient(90deg,color-mix(in srgb,var(--gold) 20%,transparent),color-mix(in srgb,var(--gold) 5%,transparent));border-color:color-mix(in srgb,var(--gold) 32%,transparent);color:var(--gold);font-weight:600}
.region-btn.active .region-count{color:var(--gold-2);background:var(--gold-dim);border-color:color-mix(in srgb,var(--gold) 30%,transparent)}

/* ===== GLOBE — full-bleed; every other element floats over it on glass ===== */
#cesiumContainer{position:fixed;top:var(--header-h);left:var(--rail-w);right:calc(-1 * var(--hero-w));bottom:0;background:var(--bg)}   /* no transition: the world view is sized from this box at once. Under the headline and past the far edge by its width (Yousef 2026-11-01: the black column was "blocking the star of the show"): the Earth stays centred in the free space, the column is live sky */
body.lang-ar #cesiumContainer{left:calc(-1 * var(--hero-w));right:var(--rail-w)}
body.panel-open #cesiumContainer{left:var(--rail-w);right:var(--panel-w)}   /* the panel takes the headline's place */
body.lang-ar.panel-open #cesiumContainer{left:var(--panel-w);right:var(--rail-w)}
body.panel-open #hero-overlay.visible{opacity:0;transform:translateY(-10px)}
body.tour-active #cesiumContainer{left:var(--rail-w)}
body.lang-ar.tour-active #cesiumContainer{left:0;right:var(--rail-w)}
body.presentation-mode #cesiumContainer{left:0;right:0;top:0}
.cesium-viewer-bottom,.cesium-viewer-animationContainer,.cesium-viewer-timelineContainer,.cesium-viewer-fullscreenContainer,.cesium-viewer-toolbar{display:none!important}
.cesium-widget-credits,.cesium-credit-lightbox-overlay{display:none!important}
#sky-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}   /* shooting stars over the globe's box, the globe cut out (setupShootingStars) */

/* ===== HERO — eyebrow, two-line title, the three figures in a row ===== */
#hero-overlay{position:fixed;top:calc(var(--header-h) + 16px + var(--toolbar-h,36px) + 42px);left:calc(var(--rail-w) + var(--edge));width:calc(var(--hero-w) - 2 * var(--edge));z-index:60;pointer-events:none;opacity:0;transform:translateY(-10px);transition:opacity 1.4s ease,transform 1.4s ease}
#hero-overlay.visible{opacity:1;transform:translateY(0)}
#hero-overlay{text-shadow:0 1px 2px var(--bg),0 0 16px var(--bg)}
/* A soft dark ground behind the headline: over a zoomed-in region its sentence and labels lay on bright desert and could
   not be read (showcase check 2026-11-18). Over the night sky of the opening view it does not show. */
#hero-overlay::before{content:"";position:absolute;z-index:-1;top:-60px;left:-110px;right:-110px;height:460px;pointer-events:none;background:radial-gradient(closest-side,color-mix(in srgb,var(--bg) 86%,transparent) 0%,color-mix(in srgb,var(--bg) 72%,transparent) 50%,color-mix(in srgb,var(--bg) 30%,transparent) 80%,transparent 100%)}   /* fades to clear inside its own box: no edge on the globe */   /* the Earth can pass under the headline now: a halo keeps it legible without the black column */
.hero-eyebrow{font:600 12px var(--sans),sans-serif;letter-spacing:var(--track-xl);text-transform:uppercase;color:var(--gold);margin-bottom:10px}
.hero-title{font:600 clamp(30px,2.8vw,40px)/1.08 var(--serif),serif;color:var(--gold-2);letter-spacing:-.4px;text-shadow:0 4px 30px rgba(0,0,0,.6)}
#hero-overlay.visible{bottom:76px;display:flex;flex-direction:column}
/* The number of countries stands beside the title, at the title's own height, apart from the status figures: it counts
   partners, they count agreements (2026-11-20). It drops under the title when the two do not fit side by side. */
.hero-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 22px}
#hero-overlay .hero-head .num.c{margin:0 0 5px;padding:0;padding-inline-start:22px;border:0;border-inline-start:1px solid color-mix(in srgb,var(--gold) 38%,transparent)}
/* What the globe is showing, in the status's own colour */
.hero-showing{display:inline-flex;align-self:flex-start;align-items:center;gap:8px;margin-top:14px;padding:5px 13px;border-radius:14px;border:1px solid var(--line-2);background:color-mix(in srgb,var(--bg) 55%,transparent);color:var(--text);font:700 12px/1.4 var(--sans),sans-serif;letter-spacing:var(--track-m);text-transform:uppercase;text-shadow:none}
.hero-showing i{flex:none;width:8px;height:8px;border-radius:50%;background:currentColor}
.hero-showing[data-status="all"] i{background:linear-gradient(90deg,var(--gold) 50%,var(--blue) 50%)}
.hero-showing[data-status="active"]{color:var(--gold);border-color:color-mix(in srgb,var(--gold) 55%,transparent);background:color-mix(in srgb,var(--gold) 14%,var(--bg))}
.hero-showing[data-status="progress"]{color:var(--blue-2);border-color:color-mix(in srgb,var(--blue) 60%,transparent);background:color-mix(in srgb,var(--blue) 16%,var(--bg))}
.hero-showing[data-status="expired"]{color:var(--red);border-color:color-mix(in srgb,var(--red) 55%,transparent);background:color-mix(in srgb,var(--red) 14%,var(--bg))}
body.lang-ar .hero-showing{letter-spacing:0;text-transform:none;font:700 14px/1.5 var(--ar-sans),sans-serif}
.nums{display:flex;margin-top:20px}
.num{padding-right:26px;margin-right:26px;border-right:1px solid var(--line)}
.num:last-child{border:none;margin:0;padding:0}
.num b{display:block;font:600 clamp(34px,4.5vw,60px)/1 var(--serif),serif;letter-spacing:-1.5px;text-shadow:0 4px 24px rgba(0,0,0,.6);font-variant-numeric:tabular-nums}
.num.g b{color:var(--gold)}
.num.b b{color:var(--blue)}
.num.c b{color:var(--gold-2)}
.num.x b{color:var(--red)}
.num[hidden]{display:none}
/* The chosen status's figure is lit and underlined in its colour; the other two keep their totals, dimmed. */
.nums .num{transition:opacity .35s ease}
.nums .num.is-off{opacity:.34}
.nums .num.is-on b{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:9px}
/* ===== COUNTRY ROWS — drop down under the active region in the left rail (2026-10-22; under the figures 2026-10-21) ===== */
.partner-legend{display:flex;flex-wrap:wrap;gap:6px 12px;margin:0 0 12px;padding:0 10px;font:500 12px var(--sans),sans-serif;color:var(--muted)}
.partner-legend>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.partner-legend>span[hidden]{display:none}
.rail-countries{display:grid;gap:1px;margin:0 0 8px;padding-left:18px}
.rail-countries[hidden]{display:none}
body.lang-ar .rail-countries{padding-left:0;padding-right:18px}
.rail-countries .partner-row .pn{white-space:normal;line-height:1.3}   /* the narrow rail: "Bosnia and Herzegovina" on two lines, not cut */
.partner-row{display:flex;align-items:center;gap:8px;min-width:0;padding:5px 8px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--text);font:500 13px var(--sans),sans-serif;text-align:start;cursor:pointer;transition:background .15s,color .15s}
.partner-row .pn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.partner-row .pc{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.partner-row:hover,.partner-row.hot{background:var(--gold-dim);color:var(--gold-2)}
.pdot{width:8px;height:8px;border-radius:50%;flex-shrink:0;background:var(--gold)}
.pdot.b{background:var(--blue)}   /* a filled blue circle, as Expired's red one (Yousef 2026-11-20); a hollow ring until then */
.pdot.gb{box-sizing:border-box;width:10px;height:10px;border:2px solid var(--blue)}   /* both: gold inside a blue rim, as its country on the map (2026-11-20); In Process stays a hollow ring, so status is never told by colour alone */
.pdot.x{background:var(--red)}
.num span{display:block;margin-top:7px;font:600 12px var(--sans),sans-serif;letter-spacing:var(--track-l);text-transform:uppercase;color:var(--muted)}
body:not(.lang-ar) .nums.tight .num:not(:last-child){padding-right:18px;margin-right:18px}   /* ORGANIZATIONS: the <=1100px spacing */
body:not(.lang-ar) .nums.tight .num span{letter-spacing:var(--track-l);white-space:nowrap}
/* The Expired total stands after In Process, set apart by a red hairline: history, not the live network (2026-11-20;
   after Countries until the number of countries moved beside the title the same day). */
.nums .num span{white-space:nowrap}
.num.b:has(+ .num.x:not([hidden])){border-right:none;margin-right:0;padding-right:0}
.num.b + .num.x{margin-left:22px;padding-left:22px;border-left:1px solid color-mix(in srgb,var(--red) 50%,transparent)}

/* ===== REVIEW NOTE — bottom corner; hidden with no review, while the panel is open, and during the tour ===== */

/* ===== DETAIL PANEL ===== */
#detail-panel{position:fixed;top:var(--header-h);right:0;bottom:0;width:var(--panel-w);background:linear-gradient(180deg,color-mix(in srgb,var(--navy-800) 97%,transparent),color-mix(in srgb,var(--bg) 97%,transparent));backdrop-filter:blur(20px);border-left:1px solid var(--line);z-index:95;overflow-y:auto;padding:24px;opacity:1;transition:transform .4s cubic-bezier(.4,0,.2,1),opacity .35s ease}
#detail-panel.hidden{transform:translateX(calc(var(--panel-w) + 20px));opacity:0;pointer-events:none}
#detail-close{position:absolute;top:14px;right:16px;width:32px;height:32px;border-radius:50%;border:1px solid color-mix(in srgb,var(--gold) 20%,transparent);background:color-mix(in srgb,var(--navy-800) 70%,transparent);color:var(--muted);font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;font-family:inherit}
#detail-close:hover{background:var(--gold-dim);color:var(--gold-2);border-color:var(--gold)}

/* dates grid: Approved · Effective · Expires (cells with no value are not rendered) */
.mou-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:6px;margin:4px 0 12px}   /* the three dates in one row where a date fits whole (visual check 2026-11-01); a narrow panel falls back to two */
.mou-details:empty{display:none}
.d{min-width:0;padding:8px 6px;border-radius:7px;background:var(--line-2);border:1px solid var(--line-2)}
.d span{display:block;font:600 12px var(--sans),sans-serif;letter-spacing:var(--track-m);text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.d b{display:block;font:600 12px var(--sans),sans-serif;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
.d b[dir="rtl"]{font-family:var(--ar-sans),sans-serif}
.d.is-words b{white-space:normal}   /* words in place of a date ("Renews automatically") wrap; a date never does */
.status-badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:12px;font-weight:700;letter-spacing:var(--track-m);text-transform:uppercase}
.status-active{background:var(--gold-dim);color:var(--gold-2);border:1px solid color-mix(in srgb,var(--gold) 40%,transparent)}
.status-inprogress{background:var(--blue-dim);color:var(--blue-2);border:1px solid color-mix(in srgb,var(--blue) 40%,transparent)}
.status-expired{background:color-mix(in srgb,var(--red) 16%,transparent);color:var(--text);border:1px solid color-mix(in srgb,var(--red) 55%,transparent)}
.doc-btn{display:inline-flex;align-items:center;gap:7px;margin-top:4px;padding:8px 14px;border-radius:var(--r-sm);border:1px solid color-mix(in srgb,var(--gold) 30%,transparent);background:var(--gold-dim);color:var(--gold);font-size:12px;font-weight:600;letter-spacing:var(--track-m);text-transform:uppercase;cursor:pointer;text-decoration:none;transition:all .25s;font-family:inherit}
.doc-btn:hover{background:color-mix(in srgb,var(--gold) 20%,transparent);border-color:var(--gold);transform:translateY(-1px)}
.doc-btn.disabled{cursor:not-allowed;pointer-events:none;background:transparent;color:var(--muted-2);border-color:var(--line-2);border-style:dashed}
/* The document in the panel (2026-11-01): an open agreement shows its PDF under its dates; Open full PDF below it. */
.doc-preview{position:relative;height:clamp(320px,56vh,600px);margin:2px 0 10px;border:1px solid var(--line-2);border-radius:var(--r-md);background:var(--bg);overflow:hidden}
.doc-preview-loading{position:absolute;inset:0;margin:0;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:12px}
.doc-preview-frame{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent}
.doc-fold{margin:2px 0 10px;border:1px solid var(--line-2);border-radius:var(--r-md);overflow:hidden;background:color-mix(in srgb,var(--navy-800) 60%,transparent)}
.doc-fold-head{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;border:0;background:transparent;color:var(--gold);font:600 12px var(--sans),sans-serif;letter-spacing:var(--track-m);text-transform:uppercase;cursor:pointer;text-align:start}
.doc-fold-head:hover{background:color-mix(in srgb,var(--gold) 6%,transparent)}
.doc-fold-caret{margin-inline-start:auto;display:inline-flex;color:var(--muted);transition:transform .25s}
.doc-fold.open .doc-fold-caret{transform:rotate(90deg);color:var(--gold)}
.doc-fold-body{display:none;padding:0 10px 10px}
.doc-fold.open .doc-fold-body{display:block}
.doc-fold .doc-preview{margin:0 0 10px}
/* Arabic in the right panel in Times New Roman (Yousef 2026-11-01): Arabic lines anywhere in it, and all of it in Arabic. */
#detail-panel [dir="rtl"],body.lang-ar #detail-panel,body.lang-ar #detail-panel *{font-family:var(--ar-panel),Times,var(--ar-serif),serif}

.country-header{font-family:var(--serif),serif;font-size:24px;font-weight:600;color:var(--gold-2);margin-bottom:6px;letter-spacing:-.3px}
.country-brief{font-size:var(--small);color:var(--muted);margin-bottom:18px;letter-spacing:var(--track-s);font-weight:500}
.country-actions{margin:-6px 0 16px}   /* the Zoom button under the brief (zoom on request, 2026-10-21) */
.pd-detail-head .country-actions{margin:12px 0 0}

/* ===== AGREEMENT ACCORDION ===== */
.mou-item{background:color-mix(in srgb,var(--navy-800) 50%,transparent);border:1px solid var(--line-2);border-radius:10px;margin-bottom:10px;overflow:hidden;transition:border-color .25s}
.mou-item:hover{border-color:color-mix(in srgb,var(--gold) 25%,transparent)}
.mou-item.open{border-color:color-mix(in srgb,var(--gold) 30%,transparent)}
.mou-item-header{display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:100%;padding:13px 14px;border:0;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer;user-select:none}   /* a button: the keyboard opens it (UX F6) */
.mou-item-header:hover{background:color-mix(in srgb,var(--gold) 5%,transparent)}
.mou-badge{flex-shrink:0;padding:3px 9px;border-radius:10px;font-size:12px;font-weight:700;letter-spacing:var(--track-m);text-transform:uppercase}
body.lang-ar .mou-badge{letter-spacing:0}
.mou-badge.is-mou{background:var(--gold-dim);color:var(--gold);border:1px solid color-mix(in srgb,var(--gold) 35%,transparent)}
.mou-badge.is-agreement{background:var(--blue-dim);color:var(--blue-2);border:1px solid color-mix(in srgb,var(--blue) 35%,transparent)}
.mou-badge.is-unknown{background:var(--line-2);color:var(--muted);border:1px solid var(--line-2)}
.mou-badge.is-other{background:transparent;color:var(--gold-2);border:1px solid color-mix(in srgb,var(--gold) 35%,transparent)}
.mou-badge.is-kind{background:var(--line-2);color:var(--text);border:1px solid var(--line-2)}
/* الفئة, نوع الجهة and الحالة under one another on the agreement's bar (2026-11-04) */
.mou-labels{display:flex;flex-direction:column;align-items:stretch;gap:4px;flex-shrink:0;max-width:124px;text-align:center}
.mou-labels .status-badge{font-size:12px;padding:3px 9px;letter-spacing:var(--track-m)}
/* The agreement's name on its bar, the main thing in the panel: bigger, centred and whole, never cut short with "..."
   (Yousef 2026-11-01: "the Title for the Agreement is Tiny and Not clear I want it to be bigger and centered", pointing
   at this bar: "thats the Main thing"; then "it should show the full title as well i dont want to see a title then ....
   at the end"). Arabic a size up, as Times New Roman's Arabic letters sit smaller. Never broken inside a word: a name
   whose longest word has no room beside the labels moves under them, across the bar (found 2026-11-17 on Mexico City's
   «Government of the Federal District (Mexico City), Secretariat of Health», which broke into "Gove / rnme / nt"). */
.mou-headline{flex:1 1 0;min-width:auto;font-size:16px;font-weight:600;line-height:1.4;color:var(--gold-2);text-align:center;text-wrap:balance;overflow-wrap:break-word}
.mou-headline[dir="rtl"]{font-family:var(--ar-sans),'Segoe UI',sans-serif;font-size:18px;line-height:1.55}
/* The arrow that opens an agreement: bigger and a brighter yellow, so a panel of several agreements shows at a glance
   that each bar opens (Yousef 2026-11-11: "the arrow is small i suggest make it a bit bigger and a brighter yellow"). */
.mou-caret{flex-shrink:0;display:flex;color:var(--gold-bright);transition:transform .2s ease}
.mou-caret .ico{width:20px;height:20px;stroke-width:2.6}
.mou-item.open .mou-caret{transform:rotate(90deg);color:var(--gold-bright)}
.mou-item-body{display:none;padding:0 14px 16px 14px;border-top:1px solid var(--line-2)}
.mou-item.open .mou-item-body{display:block}
/* The agreement's title, bigger and centred (Yousef 2026-11-01: "the Title for the Agreement is Tiny and Not clear I want
   it to be bigger and centered"); Arabic a size up, as Times New Roman's Arabic letters sit smaller. */
.mou-fullname{font-family:var(--serif),serif;font-size:18px;font-weight:600;color:var(--text);line-height:1.45;margin:14px 0 12px;text-align:center;text-wrap:balance}
.mou-fullname[dir="rtl"]{font-family:var(--ar-serif),serif;font-size:19px;line-height:1.7}
.mou-section{margin-bottom:14px}
.mou-section-label{font-size:var(--small);color:var(--gold);text-transform:uppercase;letter-spacing:var(--track-m);font-weight:700;margin-bottom:5px}
.mou-section-text{font-size:var(--read);color:var(--text);line-height:1.65;word-break:break-word}   /* was 13px (visual check 2026-11-01) */
.mou-section-text[dir="rtl"]{text-align:right;font-family:var(--ar-sans),'Segoe UI',sans-serif;font-size:16px;line-height:1.85}
.mou-section-text+.mou-section-text{margin-top:8px}   /* a cell in two languages: one paragraph each */
/* ===== INTRO SPLASH ===== */
#intro-splash{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:var(--bg);transition:opacity 1.2s ease;pointer-events:none}
#intro-splash.fade-out{opacity:0}
.intro-content{position:relative;text-align:center}
.hub-earth,.hub-veil{position:fixed;inset:0;z-index:-1;width:100%;height:100%}
.hub-earth{object-fit:cover}
.hub-veil{background:radial-gradient(ellipse at 50% 30%,rgba(5,8,17,.62) 0%,rgba(5,8,17,.82) 60%,rgba(5,8,17,.94) 100%)}
.intro-earth{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.intro-veil{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,rgba(5,8,17,.42) 0%,rgba(5,8,17,.74) 72%,rgba(5,8,17,.92) 100%)}
.intro-sector{margin-top:12px;font:600 15px/1.5 var(--sans),sans-serif;color:var(--gold);opacity:0;animation:fadeUp 1s ease 1.2s forwards}
.intro-title:lang(ar){font-family:var(--ar-serif),serif;letter-spacing:0;line-height:1.5}
.intro-sub:lang(ar),.intro-credit-label:lang(ar){font-family:var(--ar-sans),sans-serif;letter-spacing:0;text-transform:none;font-size:15px}
.intro-credit-label:lang(ar){font-size:13px}
.intro-credit:has(.intro-credit-label:lang(ar)){direction:rtl}   /* «إعداد» before the name, read from the right */
.intro-sector:lang(ar){font-family:var(--ar-sans),sans-serif;font-size:16px}
.intro-arabic{font-size:20px;color:var(--gold);margin-bottom:18px;direction:rtl;letter-spacing:var(--track-m);font-weight:500;opacity:0;animation:fadeUp 1s ease 0.3s forwards}
.intro-title{font-family:var(--serif),serif;font-size:48px;color:var(--gold-2);font-weight:600;letter-spacing:-1px;margin-bottom:14px;opacity:0;animation:fadeUp 1s ease 0.6s forwards}
.intro-sub{font-size:13px;color:var(--muted);letter-spacing:var(--track-xl);text-transform:uppercase;opacity:0;animation:fadeUp 1s ease 1s forwards}
.intro-credit{margin-top:56px;display:flex;flex-direction:row;justify-content:center;align-items:baseline;gap:8px;opacity:0;animation:fadeUp 1.2s ease 1.6s forwards}
.intro-credit-label{font-size:12px;letter-spacing:var(--track-l);text-transform:uppercase;color:var(--muted-2);font-weight:500}
.intro-credit-name{font-family:var(--ar-sans),'Segoe UI',sans-serif;font-size:13px;color:var(--muted);font-weight:500;direction:rtl}   /* a quiet line, not a headline (2026-11-20: "lower the size ... it's not a school project") */
/* The sign-in on the intro (2026-11-16): the box sits between the subtitle and the credit, on the plain intro */
/* Refined 2026-11-16 (his "use /ui-ux-pro-max for a better looking sign in box"): a heading, icons in the fields, a
   show-password button, a Caps Lock line, a loading state, a visible focus ring, 44px targets, the error on the fields */
#signin{margin:34px auto 0;width:min(360px,88vw);pointer-events:auto;opacity:0;animation:fadeUp 1s ease 1.3s forwards;transition:opacity 1.8s ease,transform 1.8s ease}
#signin.signed-in{opacity:0!important;transform:translateY(-10px)}
#signin-form{position:relative;display:grid;gap:14px;padding:22px 24px 18px;border-radius:16px;background:linear-gradient(180deg,rgba(14,20,38,.92),rgba(7,11,24,.92));border:1px solid rgba(212,175,90,.28);box-shadow:0 24px 60px rgba(0,0,0,.45),inset 0 1px 0 rgba(245,234,208,.06);text-align:right;font-family:var(--ar-sans),'Segoe UI',sans-serif}
#signin-form::before{content:"";position:absolute;top:-1px;left:24px;right:24px;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);opacity:.8}
.si-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:12px;border-bottom:1px solid rgba(245,234,208,.08);color:var(--gold-2)}
.si-title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600}
.si-title .ico{width:16px;height:16px;color:var(--gold)}
.si-lang{display:inline-flex;align-items:center;gap:2px;height:30px;padding:0 4px;border-radius:8px;border:1px solid rgba(245,234,208,.16);background:transparent;cursor:pointer;font-family:inherit}
.si-lang span{min-width:24px;padding:3px 6px;border-radius:6px;font-size:12px;color:var(--muted)}
#signin-form[lang=en] .si-lang span:first-child,#signin-form[lang=ar] .si-lang span:last-child{background:var(--gold);color:#1a1408;font-weight:600}
.si-lang:hover{border-color:rgba(245,234,208,.3)}.si-lang:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
#signin-form[dir=ltr]{text-align:left}
.si-field{display:grid;gap:6px}
.si-label{font-size:13px;color:var(--gold-2);font-weight:500}
.si-input{position:relative;display:flex;align-items:center;direction:ltr}
.si-input>.ico{position:absolute;left:13px;width:16px;height:16px;color:var(--muted);pointer-events:none;transition:color .2s}
.si-input input{width:100%;height:46px;border-radius:10px;border:1px solid rgba(245,234,208,.16);background:rgba(255,255,255,.035);color:var(--gold-2);padding:0 44px 0 40px;font-size:15px;font-family:inherit;transition:border-color .2s,box-shadow .2s,background .2s}
.si-input input:hover{border-color:rgba(245,234,208,.28)}
.si-input input:focus{outline:none;border-color:var(--gold);background:rgba(255,255,255,.055);box-shadow:0 0 0 3px rgba(212,175,90,.22)}
.si-input:focus-within>.ico{color:var(--gold)}
#signin-form.si-bad .si-input input{border-color:#e26d6d;box-shadow:0 0 0 3px rgba(226,109,109,.18)}
.si-eye{position:absolute;right:4px;width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer}
.si-eye:hover{color:var(--gold-2);background:rgba(255,255,255,.05)}.si-eye:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
.si-eye .ico{width:18px;height:18px}
.si-caps{font-size:12px;color:var(--gold);margin-top:-6px}
#signin-error{min-height:18px;font-size:13px;color:#f3a1a1;line-height:1.5}
#signin-error:empty{min-height:0}
#signin-go{position:relative;height:48px;border-radius:10px;border:0;background:linear-gradient(180deg,#e2c072,var(--gold));color:#1a1408;font-family:inherit;font-size:15px;font-weight:600;letter-spacing:var(--track-s);cursor:pointer;box-shadow:0 8px 20px rgba(212,175,90,.18);transition:filter .2s,transform .1s,box-shadow .2s}
#signin-go:hover{filter:brightness(1.06);box-shadow:0 10px 26px rgba(212,175,90,.28)}
#signin-go:active{transform:translateY(1px)}
#signin-go:focus-visible{outline:2px solid var(--gold-2);outline-offset:3px}
#signin-go:disabled{cursor:wait;filter:saturate(.7)}
.si-spin{display:none;position:absolute;left:16px;top:50%;width:16px;height:16px;margin-top:-8px;border:2px solid rgba(26,20,8,.35);border-top-color:#1a1408;border-radius:50%;animation:siSpin .8s linear infinite}
#signin-go.busy .si-spin{display:block}
.si-note{text-align:center;font-size:12px;letter-spacing:var(--track-m);color:var(--muted-2)}
@keyframes siSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){#signin{animation:none;opacity:1}.si-spin{animation-duration:2s}}
#intro-splash:has(#signin:not([hidden])) .intro-credit{margin-top:28px}

@keyframes fadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

/* ===== EMPTY STATE (Item #4) ===== */
#empty-state{position:fixed;top:50%;left:calc(var(--rail-w) + var(--hero-w) + (100vw - var(--rail-w) - var(--hero-w)) / 2);transform:translate(-50%,-50%);z-index:70;text-align:center;pointer-events:none;opacity:0;transition:opacity .4s ease;max-width:420px;padding:32px 40px;background:var(--glass);backdrop-filter:blur(16px);border:1px solid var(--line);border-radius:var(--r-lg)}
#empty-state.visible{opacity:1;pointer-events:auto}
.empty-icon{display:flex;justify-content:center;color:var(--gold);opacity:.6;margin-bottom:14px}
.empty-title{font-family:var(--serif),serif;font-size:22px;color:var(--gold-2);font-weight:600;margin-bottom:8px}
.empty-hint{font-size:13px;color:var(--muted);line-height:1.6}
.empty-hint kbd{display:inline-block;padding:1px 7px;border:1px solid color-mix(in srgb,var(--gold) 30%,transparent);border-radius:4px;background:var(--gold-dim);color:var(--gold);font-family:var(--sans),sans-serif;font-size:12px;font-weight:600;margin:0 2px}

/* ===== RESPONSIVE (Item #8) ===== */
/* Tokens drive the layout now — narrower screens just shrink the rails/panel,
   while clamp() handles every font size fluidly in between. */
@media (max-width: 1280px) {
  :root{--panel-w:clamp(320px,30vw,400px)}
}
@media (max-width: 1024px) {
  :root{--rail-w:200px;--panel-w:320px}
  .region-name{white-space:normal;line-height:1.25}   /* the 200 px rail: two lines, not "North Ameri…" (UX F19) */
  body.panel-open #time-strip{display:none}   /* no room beside the panel; it returns when the panel closes */
}
@media (max-width: 1100px) {
  #ts-mode{display:none}                      /* the slider gets the room; Cumulative stays the default */
  .ts-bounds{display:none}                    /* "1961" ran into "2026" on the short track (UX F22) */
  .num{padding-right:18px;margin-right:18px}
  .num span{letter-spacing:var(--track-l);white-space:nowrap}
}
/* Portrait tablets: no room for three columns, so the headline sits above the globe, as on phones; the rail stays */
@media (min-width: 769px) and (max-width: 900px) {
  #cesiumContainer{left:var(--rail-w);right:0;top:var(--globe-top,50vh)}
  body.lang-ar #cesiumContainer{left:0;right:var(--rail-w)}
  #hero-overlay{width:calc(100vw - var(--rail-w) - 2 * var(--edge))}
  #time-strip{left:calc(var(--rail-w) + (100vw - var(--rail-w)) / 2);width:min(660px,calc(100vw - var(--rail-w) - 2 * var(--edge)))}
  body.lang-ar #time-strip{right:calc(var(--rail-w) + (100vw - var(--rail-w)) / 2)}
  #hero-overlay.visible{bottom:auto}
}
/* A country open: the regions rail steps aside while its panel is open, at every width beyond phones (Yousef 2026-11-20,
   his manager: the regions "to disappear, and the side where I picked the Gustave Rousseau thing ... stays"; from 769
   to 1000 px only, earlier the same day, for item 26's clipped names). It comes back when the panel closes. Every offset
   reads --rail-w, so the one token moves them all. */
@media (min-width: 769px) {
  body.panel-open{--rail-w:0px}
  body.panel-open #region-sidebar{display:none}
}
/* ===== MOBILE SIDEBAR TOGGLE ===== */
#sidebar-toggle{display:none}
@media (max-width: 768px) {
  #sidebar-toggle{display:flex;align-items:center;justify-content:center;position:fixed;top:calc(var(--header-h) + 10px);left:12px;z-index:120;width:36px;height:36px;border-radius:8px;border:1px solid color-mix(in srgb,var(--gold) 30%,transparent);background:color-mix(in srgb,var(--bg) 90%,transparent);color:var(--gold);cursor:pointer;transition:background .2s}
  #sidebar-toggle:hover{background:var(--gold-dim)}
  #sidebar-toggle .ico{width:18px;height:18px}
  #region-sidebar{transform:translateX(-100%);transition:transform .3s ease;z-index:110}   /* above its backdrop (108): taps reach the regions (UX F1) */
  #region-sidebar{padding-top:66px}   /* the heading clears the ☰ button that sits over the drawer's top corner */
  #region-sidebar.open{transform:translateX(0)}
  #sidebar-backdrop{display:none;position:fixed;inset:0;z-index:108;background:rgba(0,0,0,.4)}
  #sidebar-backdrop.open{display:block}
  #app-header{padding:0 14px}
  .lk-ar{font-size:15px;white-space:nowrap}
  .lk-en{display:none}
  #kuwait-clock,#present-toggle{display:none}
  .header-right{gap:8px}
  #toolbar,body.panel-open #toolbar{left:58px;right:16px;max-width:none;top:calc(var(--header-h) + 10px)}
  .srch,body.panel-open .srch{width:100%}
  #time-strip,body.panel-open #time-strip{left:50%;width:92vw;transform:translateX(-50%);height:50px;gap:8px}
  .ts-year-block{min-width:66px}
  .ts-year-label{display:none}   /* the year itself stays; the bar gets the room */
  #ts-mode{display:none}
  #cesiumContainer,body.lang-ar #cesiumContainer,body.panel-open #cesiumContainer,body.lang-ar.panel-open #cesiumContainer{left:0;right:0;top:var(--globe-top,50vh)}   /* below the headline (syncLayout) */
  /* an open country: the globe takes the top half, the sheet the bottom half; every toolbar action lets it go anyway (UX F2) */
  body.panel-open #cesiumContainer,body.lang-ar.panel-open #cesiumContainer{top:var(--header-h);bottom:50%}
  body.panel-open #toolbar{display:none}
  #hero-overlay,body.lang-ar #hero-overlay{left:16px;right:16px;width:auto}
  #daynight-toggle .btn-label,#export-pdf-btn .btn-label,#home-toggle .btn-label{display:none}   /* icons only: the Arabic title keeps its room */
  .ts-bounds{display:none}   /* the year bar is too narrow for its end years */
  #hero-overlay.visible{bottom:auto}   /* icon only on phones; the header is full */
  .hero-title{font-size:24px}
  .num b{font-size:30px}
  .num{padding-right:16px;margin-right:16px}
  .num span{font-size:12px;letter-spacing:var(--track-l)}
  #detail-panel{width:100%;border-left:none;border-top:1px solid var(--line);top:auto;bottom:0;height:50%}
  #detail-panel.hidden{transform:translateY(100%)}
  /* the tour's texts in one centred column; End Tour stays on top of the chips (UX F4) */
  #tour-overlay.active{flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:0 16px 120px}
  .tour-eyebrow,.tour-title,.tour-stat,.tour-countries{position:static;transform:none;max-width:100%;animation-name:tourFlow}
  .tour-title{font-size:30px}
  .tour-countries{max-height:30vh;overflow:hidden}
  #tour-stop{z-index:1}
}
/* Every touch screen, whatever its width: 44 px targets (UX F14; they lived in the phone block only) */
@media (pointer: coarse) {
  .btn,.seg-opt,#ts-play,#detail-close,#sidebar-toggle,.region-btn{min-height:44px;min-width:44px}
  .btn{height:44px}
  .seg{height:auto}
  .srch{height:44px}
  .srch input{font-size:16px}   /* 16px stops phones zooming into the field */
  .type-pick select{min-height:44px;font-size:16px}
  #ts-play,#ts-reset{width:44px;height:44px}
  #detail-close{width:44px;height:44px}
  #ts-range{height:44px;background-size:100% 4px;background-repeat:no-repeat;background-position:center}
  .doc-btn{min-height:44px;align-items:center}
}

/* ===== PRESENTATION MODE — calm full-bleed second-screen view ===== */
body.presentation-mode #region-sidebar,
body.presentation-mode #toolbar,
body.presentation-mode #hero-overlay,
body.presentation-mode #time-slider,
body.presentation-mode #sidebar-toggle,
body.presentation-mode #lang-toggle,
body.presentation-mode #export-pdf-btn,
body.presentation-mode #vignette{display:none!important}

/* Solid enough to read over a country's land: it faded to clear, and with a country open the lockup and the clock lay
   on the map (showcase check 2026-11-18). */
body.presentation-mode #app-header{background:linear-gradient(180deg,color-mix(in srgb,var(--bg) 94%,transparent),color-mix(in srgb,var(--bg) 78%,transparent));border-bottom-color:transparent;backdrop-filter:blur(14px)}

/* Country directory — glass panel over the left of the globe */
#present-directory{position:fixed;top:var(--header-h);left:0;bottom:0;width:340px;display:none;flex-direction:column;background:linear-gradient(180deg,color-mix(in srgb,var(--navy-800) 92%,transparent),color-mix(in srgb,var(--bg) 94%,transparent));backdrop-filter:blur(22px);border-right:1px solid var(--line);box-shadow:24px 0 60px rgba(0,0,0,.45);z-index:85;transition:width .4s cubic-bezier(.4,0,.2,1)}
body.presentation-mode #present-directory{display:flex}
#present-directory.detail-open{width:clamp(420px,40vw,640px)}
.pd-header{padding:24px 24px 18px;border-bottom:1px solid var(--line);flex-shrink:0}
.pd-eyebrow{font-size:12px;letter-spacing:var(--track-l);white-space:nowrap;text-transform:uppercase;color:var(--gold);font-weight:700}   /* one line in the directory (it broke in two at --track-xl; 2026-11-20) */
.pd-title{font-family:var(--serif),serif;font-size:24px;color:var(--gold-2);font-weight:600;letter-spacing:-.3px;margin-top:7px}
.pd-sub{font-size:12px;color:var(--muted);margin-top:6px;letter-spacing:var(--track-s);font-weight:500}
#pd-search{width:100%;height:38px;margin-top:15px;padding:0 14px;border-radius:var(--r-md);border:1px solid var(--line-2);background:color-mix(in srgb,var(--navy-800) 70%,transparent);color:var(--text);font-size:13.5px;font-family:inherit;outline:none;transition:border-color .2s,box-shadow .2s}
#pd-search::placeholder{color:var(--muted-2)}
#pd-search:focus{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold-dim)}

/* Expanded country view — bigger, presentation-legible */
.pd-detail-head{padding:4px 6px 14px;margin-bottom:10px;border-bottom:1px solid var(--line)}
.pd-detail-country{font-family:var(--serif),serif;font-size:27px;font-weight:600;color:var(--gold-2);letter-spacing:-.3px;line-height:1.2}
.pd-detail-country[dir="rtl"]{font-family:var(--ar-serif),serif}
.pd-detail-brief{font-size:12.5px;color:var(--muted);margin-top:7px;letter-spacing:var(--track-s);font-weight:500}
body.presentation-mode .pd-detail .mou-headline{font-size:19px}
body.presentation-mode .pd-detail .mou-headline[dir="rtl"]{font-size:21px}
body.presentation-mode .pd-detail .mou-badge{font-size:12px;padding:4px 10px}
body.presentation-mode .pd-detail .mou-item-header{padding:15px 15px}
body.presentation-mode .pd-detail .mou-fullname{font-size:21px;line-height:1.5}
body.presentation-mode .pd-detail .mou-section-label{font-size:12px;letter-spacing:var(--track-m)}
body.presentation-mode .pd-detail .mou-section-text{font-size:17px;line-height:1.8}
body.presentation-mode .pd-detail .d b{font-size:13.5px}
body.presentation-mode .pd-detail .d span{font-size:12px}
body.presentation-mode .pd-detail .status-badge{font-size:12px;padding:4px 12px}
body.presentation-mode .pd-detail .doc-btn{font-size:13px;padding:10px 18px}
.pd-list{flex:1;overflow-y:auto;padding:12px}
.pd-group{margin-bottom:3px}
.pd-country{display:flex;align-items:center;gap:11px;width:100%;padding:12px 13px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text);font-family:inherit;font-size:14.5px;cursor:pointer;transition:background .2s,border-color .2s;text-align:left}
.pd-country:hover{background:color-mix(in srgb,var(--gold) 6%,transparent);border-color:var(--line)}
.pd-group.open .pd-country{background:var(--gold-dim);border-color:color-mix(in srgb,var(--gold) 32%,transparent)}
.pd-dot{width:9px;height:9px;border-radius:50%;background:var(--gold);box-shadow:0 0 9px color-mix(in srgb,var(--gold) 65%,transparent);flex-shrink:0}
.pd-name{flex:1;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:var(--track-s)}
.pd-name[dir="rtl"]{font-family:var(--ar-sans),'Segoe UI',sans-serif}
body.lang-ar .pd-country{text-align:right}   /* the name beside its dot, as the regions rail: it stood at the far side by its count (showcase check 2026-11-18) */
.pd-count{flex-shrink:0;font-size:12px;color:var(--gold-2);background:var(--gold-dim);border:1px solid color-mix(in srgb,var(--gold) 28%,transparent);border-radius:11px;padding:1px 9px;font-weight:700;font-variant-numeric:tabular-nums}
.pd-detail{display:none;padding:6px 4px 12px}
.pd-group.open .pd-detail{display:block;animation:pdReveal .35s ease}
@keyframes pdReveal{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}

#present-hint{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:78;display:none;align-items:center;gap:6px;padding:9px 18px;border-radius:22px;background:var(--glass);backdrop-filter:blur(12px);border:1px solid color-mix(in srgb,var(--gold) 25%,transparent);color:var(--muted);font-size:12px;letter-spacing:var(--track-m);font-weight:500;pointer-events:none}
#present-hint kbd{display:inline-block;padding:1px 7px;border:1px solid color-mix(in srgb,var(--gold) 35%,transparent);border-radius:4px;background:var(--gold-dim);color:var(--gold-2);font-family:var(--sans),sans-serif;font-size:12px;font-weight:600}
body.presentation-mode #present-hint{display:flex;animation:presentHintFade 5s ease forwards}
@keyframes presentHintFade{0%{opacity:0}10%{opacity:1}82%{opacity:1}100%{opacity:0}}

/* ===== RTL LAYOUT (Arabic) — mirrors the LTR layout with the same tokens, so the
   1280/1024/768 breakpoints hold in both directions. ===== */
body.lang-ar #region-sidebar{right:0;left:auto;border-left:1px solid var(--line);border-right:none}
body.lang-ar #toolbar{left:auto;right:calc(var(--rail-w) + var(--edge))}
body.lang-ar #vignette{background:radial-gradient(ellipse at 42% 48%,transparent 42%,var(--vignette) 100%)}
body.lang-ar #hero-overlay{left:auto;right:calc(var(--rail-w) + var(--edge));direction:rtl;text-align:right}
body.lang-ar .hero-eyebrow{letter-spacing:0;font-size:13px}
body.lang-ar .hero-title{font-size:clamp(34px,3.2vw,46px);line-height:1.25;letter-spacing:0}
body.lang-ar .num{padding:0 0 0 26px;margin:0 0 0 26px;border-right:none;border-left:1px solid var(--line)}
body.lang-ar .num:last-child{border:none;margin:0;padding:0}
body.lang-ar .num.b:has(+ .num.x:not([hidden])){border-left:none;margin-left:0;padding-left:0}
body.lang-ar .num.b + .num.x{margin:0 22px 0 0;padding:0 22px 0 0;border-left:none;border-right:1px solid color-mix(in srgb,var(--red) 50%,transparent)}
body.lang-ar .num span{letter-spacing:0;font-size:12px;text-transform:none}
body.lang-ar #time-strip{left:auto;right:calc(var(--rail-w) + var(--hero-w) + (100vw - var(--rail-w) - var(--hero-w)) / 2);transform:translateX(50%);padding:0 8px 0 10px}
body.lang-ar.panel-open #time-strip{right:calc(var(--rail-w) + (100vw - var(--rail-w) - var(--panel-w)) / 2)}
body.lang-ar .ts-year-label,body.lang-ar #ts-mode,body.lang-ar #ts-reset{letter-spacing:0;text-transform:none;font-size:12px}
body.lang-ar .ts-year{font-size:17px}
body.lang-ar #empty-state{left:calc((100vw - var(--rail-w) - var(--hero-w)) / 2)}
body.lang-ar #detail-panel{left:0;right:auto;border-right:1px solid var(--line);border-left:none;direction:rtl;text-align:right}
body.lang-ar #detail-close{right:auto;left:16px}
.country-brief,.pd-detail-brief,.pd-sub{unicode-bidi:plaintext}
body.lang-ar #detail-panel.hidden{transform:translateX(calc(-1 * (var(--panel-w) + 20px)))}
@media (max-width: 768px) {
  body.lang-ar #sidebar-toggle{left:auto;right:12px}
  body.lang-ar #region-sidebar{transform:translateX(100%)}
  body.lang-ar #region-sidebar.open{transform:translateX(0)}
  body.lang-ar #toolbar{left:16px;right:58px}
  body.lang-ar #time-strip,body.lang-ar.panel-open #time-strip{left:50%;right:auto;transform:translateX(-50%)}
  body.lang-ar #hero-overlay{left:16px;right:16px}
  body.lang-ar #empty-state{left:50%}
  body.lang-ar #detail-panel{border-right:none;border-top:1px solid var(--line)}
  body.lang-ar #detail-panel.hidden{transform:translateY(100%)}
}

/* ===== UX CHECK 2026-10-22 — after the RTL section so these win over its general rules ===== */
@media (max-width: 900px) {
  /* the tour hides the headline, so the globe takes the screen below the header (UX F5) */
  body.tour-active #cesiumContainer,body.lang-ar.tour-active #cesiumContainer{top:var(--header-h)}
  /* the no-match card in the middle of the globe, not of the desktop's three columns (UX F7) */
  #empty-state,body.lang-ar #empty-state{top:calc(var(--globe-top,50vh) + (100vh - var(--globe-top,50vh) - 76px) / 2);width:min(420px,calc(100vw - 32px));max-width:none;padding:24px}
}
@media (min-width: 769px) and (max-width: 900px) {
  #empty-state{left:calc(var(--rail-w) + (100vw - var(--rail-w)) / 2)}
  body.lang-ar #empty-state{left:calc((100vw - var(--rail-w)) / 2)}
  #empty-state,body.lang-ar #empty-state{width:min(420px,calc(100vw - var(--rail-w) - 32px))}   /* not shrunk to the room right of its centre */
  body.lang-ar #time-strip{right:calc(var(--rail-w) + (100vw - var(--rail-w)) / 2)}   /* was 168 px off-screen (UX F9) */
  #kuwait-clock{display:none}   /* the header holds the lockup on one line (UX F21) */
  .lk-en{white-space:nowrap}
}
@media (max-width: 768px) {
  body.tour-active #cesiumContainer,body.lang-ar.tour-active #cesiumContainer{left:0;right:0}   /* no rail on phones (UX F5) */
  #empty-state{left:50%}
  /* the three button rows pushed the globe behind the year bar (UX check 2026-10-28): one Filters button shows them */
  #filters-toggle{display:inline-flex}
  body:not(.filters-open) #status-seg,body:not(.filters-open) #type-seg,body:not(.filters-open) #partner-seg{display:none}
  #filters-toggle,#reset-btn{order:1;padding:0 10px}   /* one row even with the count showing */
  #reset-btn .btn-label{display:none}   /* icon only, like Export and Night; its title names it */
  #toolbar .seg{order:2}
}
/* The Filters button beyond phones (audit 2026-11-18, Yousef: "do the filter bar next"). On a small laptop the three
   button rows wrapped to three and four rows over the top of the map, and beside an open panel on a narrower window they
   became a block over half of it. So wherever the bar cannot hold them in the rows it has, they sit behind the one
   Filters button, as on phones: at 1100 px and under always, and up to 1600 px while a country's panel is open. */
@media (max-width: 1100px) {
  #filters-toggle{display:inline-flex}
  body:not(.filters-open) #status-seg,body:not(.filters-open) #type-seg,body:not(.filters-open) #partner-seg{display:none}
  #filters-toggle,#reset-btn{order:1;padding:0 10px}
  #reset-btn .btn-label{display:none}
  #toolbar .seg{order:2}
}
@media (max-width: 1600px) {
  body.panel-open #filters-toggle{display:inline-flex}
  body.panel-open:not(.filters-open) #status-seg,body.panel-open:not(.filters-open) #type-seg,body.panel-open:not(.filters-open) #partner-seg{display:none}
  body.panel-open #filters-toggle,body.panel-open #reset-btn{order:1;padding:0 10px}
  body.panel-open #toolbar .seg{order:2}
}
.type-pick label{flex-shrink:0}
.type-pick select{min-width:0;max-width:100%;flex:0 1 auto}   /* the list ran out under the panel on a narrow bar */
/* A portrait tablet with a country open: the headline is hidden, so the map takes its place under the header */
@media (min-width: 769px) and (max-width: 900px) {
  body.panel-open #cesiumContainer,body.lang-ar.panel-open #cesiumContainer{top:var(--header-h)}
}

/* ===== POLISH RUN 2026-11-18 (Yousef: "do another visual polish run for text look and transition and flow", "Fix all six") ===== */
/* Arabic letters join: spacing between them pulls a word apart («الشرا كات» read as two words). Tracking is for Latin
   capitals only, so every Arabic page and every right-to-left line has none. */
body.lang-ar *,[dir="rtl"],[dir="rtl"] *{letter-spacing:0!important}
body.lang-ar .lk-en,body.lang-ar #clock-label{letter-spacing:var(--track-l)!important}   /* the two lines that stay English on the Arabic page keep theirs */
body.lang-ar #clock-time{letter-spacing:var(--track-m)!important}
/* The date boxes and the document button take the panel's small size with its meta line and section labels */
.d span,.d b,.doc-btn{font-size:var(--small)}
/* The filter rows come back with a short fade when a panel closes or Filters is pressed, in place of appearing at once */
@keyframes segIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
#status-seg,#type-seg,#partner-seg{animation:segIn .25s ease both}

/* ===== ACCESSIBILITY (review 2026-10-20, UI/UX Pro Max audit) ===== */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* What you chose is solid; everything else stays quiet (Yousef 2026-11-04, on the mock-up: "i mean start it"). A chosen
   filter's tint was 1.3:1 against the page; solid gold is 9.6:1 and blue 7.1:1, with dark text and a heavier weight. "All" is
   the resting state and keeps its tint. A status keeps its own colour when chosen: Active gold, In Process blue, Expired red (grey until 2026-11-20). */
.seg-opt[aria-pressed="true"]:not([data-value="all"]){background:var(--gold);color:var(--bg);font-weight:600}
#status-seg .seg-opt[data-value="In Progress"][aria-pressed="true"]{background:var(--blue)}
#status-seg .seg-opt[data-value="Expired / Archived"][aria-pressed="true"]{background:var(--red)}
.seg-opt[aria-pressed="true"]:not([data-value="all"]) .dot{background:var(--bg);box-shadow:none}
.seg-opt[aria-pressed="true"]:not([data-value="all"]):focus-visible{outline-color:var(--bg)}
.type-pick select:not(:has(option[value="all"]:checked)){background:var(--gold);color:var(--bg);font-weight:600}
.region-btn.active:not([data-region="all"]){background:var(--gold);border-color:var(--gold);color:var(--bg)}
.region-btn.active:not([data-region="all"]) .region-count{color:var(--bg);background:transparent;border-color:var(--bg)}
.region-btn.active:not([data-region="all"]) .rswatch{background:var(--bg);box-shadow:none}
.partner-row.chosen,.partner-row.chosen:hover{background:var(--gold);color:var(--bg);font-weight:600}
.partner-row.chosen .pc{color:var(--bg)}
.partner-row.chosen .dot{background:var(--bg);box-shadow:none}
/* Partner buildings (2026-11-04): pressing a building fades to its two real photos, whole, as large as the screen allows */
.site-card{position:fixed;inset:var(--header-h) 0 0 0;z-index:200;display:flex;flex-direction:column;gap:8px;padding:12px 14px;box-sizing:border-box;background:var(--navy-800);color:var(--text);opacity:0;pointer-events:none;transition:opacity .35s ease}
.site-card.on{opacity:1;pointer-events:auto;transition:opacity .6s ease}
@media (max-width:768px){.site-card{inset:0}}
/* Only the Back button lives here since 2026-11-11: the partner's name moved into the words' own column, large. */
.site-card-head{position:absolute;top:12px;inset-inline-end:14px;z-index:1}
/* What the hospital is and what it specializes in (Yousef 2026-11-05): beside the photos, above them on an upright phone */
.site-body{flex:1;min-height:0;display:flex;gap:18px}
.site-about{flex:none;align-self:center;max-height:100%;box-sizing:border-box;width:clamp(230px,24vw,340px);overflow-y:auto;font:400 15px/1.65 var(--sans),sans-serif;color:var(--text)}
.site-about p{margin:0}
.site-about h3{margin:14px 0 8px;font:600 13px var(--sans),sans-serif;color:var(--gold-2)}
/* The specialties as icons (Yousef 2026-11-05: "we can replace it with icons here so it looks nicer"; no nudity): each file is drawn in gold through a mask */
.site-spec{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
.site-spec li{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.25}
.site-icon{flex:none;width:28px;height:28px;background:var(--gold);-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
@media (max-width:768px) and (orientation:portrait){.site-body{flex-direction:column;gap:10px}.site-about{align-self:stretch;width:auto;max-height:36%;font-size:14px;line-height:1.55}.site-about h3{margin-top:8px}.site-spec{gap:8px}.site-spec li{gap:8px;font-size:13px}.site-icon{width:24px;height:24px}}
/* While the camera is close to a building, the page's floating text steps aside */
#toolbar,#time-strip{transition:opacity .35s ease}
body.site-close #toolbar,body.site-close #time-strip,body.site-close #hero-overlay{opacity:0!important;pointer-events:none!important;transition:opacity .35s ease}
/* Gold like every other button; it was the one solid blue button on the site (showcase check 2026-11-18) */
#site-back{min-height:40px;padding:0 16px;border:1px solid color-mix(in srgb,var(--gold) 45%,transparent);border-radius:8px;background:color-mix(in srgb,var(--bg) 82%,var(--gold) 18%);color:var(--gold);font:600 13px var(--sans),sans-serif;cursor:pointer;transition:background .2s,border-color .2s}
#site-back:hover{background:color-mix(in srgb,var(--bg) 70%,var(--gold) 30%);border-color:var(--gold)}
#site-back:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* The photos fill the free space in their own shapes: --a is a photo's width over its height, --a1 and --a2 the two photos'.
   Side by side they share one height; one above the other, one width. Both follow the screen as it grows and shrinks. */
.site-photos{flex:1;min-width:0;min-height:0;container-type:size;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;--site-cap:56px}
.site-photo{flex:none;margin:0;width:min(100cqw,calc((100cqh - 12px - 2 * var(--site-cap)) / (1 / var(--a1) + 1 / var(--a2))))}
.site-photos.is-row{flex-direction:row}
.site-photos.is-row .site-photo{width:calc(min(calc((100cqw - 12px) / (var(--a1) + var(--a2))),calc(100cqh - var(--site-cap))) * var(--a))}
.site-photo img{display:block;width:100%;height:auto;aspect-ratio:var(--a);border-radius:10px}
.site-photo figcaption{box-sizing:border-box;height:var(--site-cap);padding:6px 2px 0;font:400 12px/1.35 var(--sans),sans-serif;color:var(--text)}
.site-photo figcaption b{font-weight:600}
/* Every card since 2026-11-11: the words sit above the pictures, in two columns, and the pictures take the rest of the
   card (Yousef, on Kuwait's one-photo card: "i want the text on the left of the picture to be above so it flows better and
   to have better spacing and font use", then "yes thats good and do the same to france"). is-single sizes a lone photo. */
.site-body.is-top{flex-direction:column;align-items:center;gap:20px}
.site-body.is-top .site-about{align-self:center;width:min(100%,1060px);max-height:none;overflow:visible;box-sizing:border-box;padding:6px 6px 0;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:48px;row-gap:20px;align-items:start}
/* The name leads the card: the page's display face, large, on the same edge as the words under it, with the address and a
   short gold rule (Yousef 2026-11-11, on Gustave Roussy's card: "the title of the hospital should be bigger and placment
   of text should be better positioned"). One type scale down the card: 32, 18, 16, 14, 12. */
.site-heading{grid-column:1 / -1;min-width:0}
.site-heading::after{content:"";display:block;width:48px;height:2px;margin-top:14px;border-radius:2px;background:var(--gold)}
.site-name{margin:0;font:600 clamp(24px,2.4vw,32px)/1.2 var(--serif),serif;color:var(--gold-2);text-wrap:balance;overflow-wrap:anywhere}
.site-addr{display:block;margin-top:6px;font:400 14px/1.4 var(--sans),sans-serif;color:var(--muted);text-align:left}
[dir="rtl"] .site-addr{text-align:right}
[dir="rtl"] .site-name{line-height:1.45}
@media (max-width:1300px){.site-heading{padding-inline-end:96px}}                 /* the Back button's corner */
.site-body.is-top .site-lead p{font-size:18px;line-height:1.65;max-width:66ch}       /* a readable line, however wide the column */
.site-about .site-signed{margin-top:14px;font:600 12px/1.4 var(--sans),sans-serif;letter-spacing:var(--track-m);text-transform:uppercase;color:var(--gold)}
.site-body.is-top .site-about h3{margin:4px 0 14px;font:600 12px/1.4 var(--sans),sans-serif;letter-spacing:var(--track-m);text-transform:uppercase;color:var(--gold)}
.site-body.is-top .site-lead .site-signed{font-size:13px;line-height:1.4}        /* a label under the words, not a second paragraph */
[dir="rtl"] .site-about .site-signed,[dir="rtl"] .site-body.is-top .site-about h3{letter-spacing:0;font-size:14px}   /* spacing would break Arabic's joined letters */
[dir="rtl"] .site-body.is-top .site-lead .site-signed{font-size:15px}
.site-body.is-top .site-spec{gap:14px 26px}
.site-body.is-top .site-spec li{gap:12px;font-size:16px;line-height:1.35}
.site-body.is-top .site-icon{width:26px;height:26px}
.site-body.is-top .site-photos{width:100%}
.site-body.is-single .site-photo,.site-body.is-single .site-photos.is-row .site-photo{width:min(100cqw,calc((100cqh - var(--site-cap)) * var(--a)))}
.site-body.is-top .site-photo figcaption{text-align:center}
@media (max-width:768px){.site-body.is-top{gap:12px}.site-body.is-top .site-about{grid-template-columns:1fr;row-gap:12px;max-height:46%;overflow-y:auto;padding-top:2px}.site-body.is-top .site-lead p{font-size:16px;line-height:1.6}.site-body.is-top .site-spec li{font-size:14px}.site-heading::after{margin-top:10px}}
@media (prefers-reduced-motion: reduce){.site-card,.site-card.on{transition:none}}
.mou-item.open{border-color:var(--gold)}
.mou-item:not(.open) .mou-headline{color:var(--muted)}
.mou-item:not(.open) .mou-item-header:hover .mou-headline{color:var(--text)}

/* ===== Gustave Roussy as the standard (Yousef 2026-11-14, his manager's comments) ===== */
/* A partner button the picked country has no agreement of fades out and cannot be pressed */
.seg-opt{transition:background .2s,color .2s,opacity .3s ease}
.seg-opt:disabled{opacity:.28;cursor:not-allowed}
.seg-opt:disabled:hover{color:var(--muted)}
/* Zoom to country and Open all side by side; the arrow turns with the state */
.country-actions{display:flex;flex-wrap:wrap;gap:8px}
.toggle-all .ico{width:16px;height:16px;stroke-width:2.4;transform:rotate(90deg);transition:transform .25s ease}
.toggle-all[aria-expanded="true"] .ico{transform:rotate(-90deg)}
/* The row's arrow: bigger, in a round target that answers the pointer ("this one is too small") */
.mou-caret{width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:color-mix(in srgb,var(--gold-bright) 10%,transparent);transition:transform .25s ease,background .2s}
.mou-caret .ico{width:24px;height:24px;stroke-width:2.6}
.mou-item-header:hover .mou-caret{background:color-mix(in srgb,var(--gold-bright) 20%,transparent)}
/* The three labels, from an independent look (2026-11-14, his "a bit worse"): the status the one filled label but soft
   (a tinted fill, bright text), the category a quiet outline, the partner's kind plain readable text. No green, no teal. */
.mou-labels{gap:5px;max-width:128px}
.mou-badge,.status-badge{line-height:1.25}
.mou-labels .status-badge{border-width:1px;border-style:solid}
.mou-labels .status-active{background:color-mix(in srgb,var(--gold) 24%,transparent);color:var(--gold-2);border-color:var(--gold)}
.mou-labels .status-inprogress{background:color-mix(in srgb,var(--blue) 24%,transparent);color:var(--blue-2);border-color:var(--blue)}
.mou-labels .status-expired{background:color-mix(in srgb,var(--red) 20%,transparent);color:var(--text);border-color:var(--red)}
.mou-labels .mou-badge.is-mou,.mou-labels .mou-badge.is-other{background:transparent;color:var(--gold-2);border:1px solid color-mix(in srgb,var(--gold) 40%,transparent)}
.mou-labels .mou-badge.is-agreement{background:transparent;color:var(--blue-2);border:1px solid color-mix(in srgb,var(--blue) 40%,transparent)}
.mou-labels .mou-badge.is-kind{background:transparent;color:var(--text);border-color:transparent;font-weight:500;letter-spacing:var(--track-s);padding:1px 4px;opacity:.85}
body.lang-ar .mou-labels .mou-badge,body.lang-ar .mou-labels .status-badge{letter-spacing:0}
/* An agreement opens with a short fade and slide */
@media (prefers-reduced-motion: no-preference){
  .mou-item.open .mou-item-body{animation:mou-open .28s ease-out}
  @keyframes mou-open{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
}
/* Closing fades out too (2026-11-14, "when you open and close ... fades"); the arrow turns back at once */
@media (prefers-reduced-motion: no-preference){
  .mou-item.closing .mou-item-body{animation:mou-close .2s ease-in forwards}
  @keyframes mou-close{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-6px)}}
}
.mou-item.closing .mou-caret{transform:none}
/* The grey date labels get a touch: a warm gold-grey, like the gold section labels above them (2026-11-14) */
.d span{color:color-mix(in srgb,var(--gold) 62%,var(--muted))}
/* The partner's kind keeps its own pill (Yousef 2026-11-14: "Didn't the hospital have its own Circle KPI?"): a neutral
   filled pill, so the three read as category (gold outline), kind (neutral fill), status (gold tint) */
.mou-labels .mou-badge.is-kind{background:color-mix(in srgb,var(--text) 9%,transparent);color:var(--text);border:1px solid color-mix(in srgb,var(--muted) 50%,transparent);font-weight:600;letter-spacing:var(--track-m);padding:3px 9px;opacity:1}
body.lang-ar .mou-labels .mou-badge.is-kind{letter-spacing:0}

/* ===== THE SYSTEM AROUND THE GLOBE (2026-11-20, system.js): the front page after sign-in and the three pages beside
   the globe: Dashboard, In Process, Procedures. Same tokens as the globe: gold Active, blue In Process, red Expired. */
#hub,#sys-view{position:fixed;inset:0;z-index:10000;overflow-y:auto;color:var(--text);font-family:var(--sans),sans-serif;
  background:radial-gradient(120% 80% at 50% 0%,color-mix(in srgb,var(--navy-800) 92%,var(--gold) 8%),var(--bg) 70%)}
#hub{display:flex;flex-direction:column}
#hub[hidden],#sys-view[hidden]{display:none}
#hub[dir="rtl"],#sys-view[dir="rtl"]{font-family:var(--ar-sans),sans-serif}
.hub-top{display:flex;align-items:center;justify-content:space-between;padding:18px 28px;border-bottom:1px solid var(--line)}
.hub-top .lk-ar{font:600 16px var(--ar-sans),sans-serif;color:var(--gold)}
.hub-top .lk-en{font:600 12px var(--sans),sans-serif;letter-spacing:var(--track-l);text-transform:uppercase;color:var(--muted)}
.hub-main{flex:1;display:flex;flex-direction:column;justify-content:center;width:100%;max-width:1180px;box-sizing:border-box;margin:0 auto;padding:clamp(20px,3.5vh,44px) 28px 20px;text-align:center}
.hub-eyebrow{font:700 12px var(--sans),sans-serif;letter-spacing:var(--track-xl);text-transform:uppercase;color:var(--gold)}
#hub[dir="rtl"] .hub-eyebrow{letter-spacing:0;font:700 15px var(--ar-sans),sans-serif}
/* the sector's name, in two balanced lines; under it the office, then what the system is */
.hub-title{max-width:980px;margin:12px auto 10px;font:600 clamp(26px,3.3vw,44px)/1.18 var(--serif),serif;color:var(--gold-2);text-wrap:balance}
#hub[dir="rtl"] .hub-title{font-family:var(--ar-serif),serif;line-height:1.45}
.hub-office{margin:0 0 6px;font:600 18px/1.4 var(--sans),sans-serif;color:var(--text)}
#hub[dir="rtl"] .hub-office{font-family:var(--ar-sans),sans-serif}
.hub-sub{max-width:820px;margin:0 auto;font-size:var(--read);line-height:1.6;color:var(--muted)}
#hub:focus{outline:none}
.hub-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:clamp(20px,4vh,40px);text-align:start}
.hub-tile{position:relative;display:flex;flex-direction:column;gap:9px;min-height:196px;padding:20px 18px 16px;border-radius:var(--r-lg);
  border:1px solid var(--line);background:var(--glass);color:var(--text);font:inherit;text-align:start;cursor:pointer;
  backdrop-filter:blur(14px);transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.hub-tile:hover,.hub-tile:focus-visible{transform:translateY(-4px);border-color:color-mix(in srgb,var(--gold) 60%,transparent);
  box-shadow:0 14px 40px color-mix(in srgb,var(--bg) 70%,transparent),0 0 0 1px color-mix(in srgb,var(--gold) 30%,transparent);outline:none}
.hub-tile.is-globe{border-color:color-mix(in srgb,var(--gold) 45%,transparent);background:linear-gradient(160deg,color-mix(in srgb,var(--gold) 12%,var(--glass)),var(--glass))}
.ht-title{margin-top:4px;font:600 19px/1.3 var(--serif),serif;color:var(--gold-2)}
#hub[dir="rtl"] .ht-title{font:700 19px/1.5 var(--ar-sans),sans-serif}
.ht-k{font:700 15px var(--sans),sans-serif;color:var(--gold);font-variant-numeric:tabular-nums;min-height:20px}
#hub[dir="rtl"] .ht-k{font-family:var(--ar-sans),sans-serif}
.ht-desc{font-size:14px;line-height:1.55;color:var(--muted)}
.ht-open{display:inline-flex;align-items:center;gap:6px;margin-top:auto;font-weight:600;font-size:13px;color:var(--gold)}
.ht-open .ico{width:16px;height:16px}
#hub[dir="rtl"] .ht-open .ico{transform:scaleX(-1)}
/* the ministry's own signing photos: one row of one height, each photo whole and as wide as its own shape */
.hub-foot{padding:14px 28px 22px;text-align:center;font-size:13px;color:var(--muted)}
.hub-name{color:var(--gold);font-family:var(--ar-sans),sans-serif;font-weight:600}
@media (max-width:1100px){.hub-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-tile{min-height:190px}}
@media (max-width:600px){.hub-tiles{grid-template-columns:1fr}.hub-top{padding:14px 16px}.hub-main{padding:24px 16px}}

/* The bar over each page, and the pages' common type */
.sys-bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:16px;padding:14px 28px;border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(14px)}
.sys-bar h1{flex:1;margin:0;font:600 22px var(--serif),serif;color:var(--gold-2)}
#sys-view[dir="rtl"] .sys-bar h1{font:700 21px var(--ar-sans),sans-serif}
#sys-view[dir="rtl"] #sys-home .ico{transform:scaleX(-1)}
#sys-body{max-width:1240px;margin:0 auto;padding:26px 28px 56px}
.sys-wait{color:var(--muted)}
@media (max-width:600px){.sys-bar{padding:12px 16px}#sys-body{padding:18px 16px 40px}}

/* Dashboard */
.kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.kpi{display:flex;flex-direction:column;gap:4px;padding:18px 18px 16px;border-radius:var(--r-lg);border:1px solid var(--line);background:var(--glass)}
.kpi b{font:600 clamp(34px,3.4vw,46px)/1 var(--serif),serif;font-variant-numeric:tabular-nums}
.kpi.g b{color:var(--gold)}
.kpi.b b{color:var(--blue)}
.kpi.c b{color:var(--gold-2)}
.kpi.y b{color:var(--text)}
.kpi.x b{color:var(--red)}
.kpi.x{border-color:color-mix(in srgb,var(--red) 35%,transparent)}
.kpi-l{margin-top:6px;font-weight:700;font-size:14px;color:var(--text)}
.kpi-n{font-size:14px;color:var(--muted)}
.viz{margin-top:16px;padding:20px 22px;border-radius:var(--r-lg);border:1px solid var(--line);background:var(--glass)}
.viz h2{margin:0;font:700 18px/1.35 var(--sans),sans-serif;color:var(--gold-2)}
#sys-view[dir="rtl"] .viz h2{font-family:var(--ar-sans),sans-serif}
.viz-sub{margin:4px 0 14px;font-size:14px;color:var(--muted)}
.viz-cap{margin:10px 0 0;font-size:14px;color:var(--muted)}
.viz-src{margin:8px 0 0;font-size:14px;color:var(--muted-2)}
.dash-asof{margin:0 0 12px;font-size:14px;color:var(--muted)}
.viz-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
/* The charts, in the house forms (charts.js). A chart takes the focus as one thing and the arrow keys walk its marks. */
.chart{outline:none}
.chart:focus-visible{outline:2px solid var(--gold);outline-offset:4px;border-radius:6px}
.dash .chart{animation:vizIn .5s ease-out both}
@keyframes vizIn{from{opacity:0}to{opacity:1}}
/* years: zero-based columns, time left to right in both languages, the year the heading names in gold */
svg.years{display:block;max-width:100%;height:auto;direction:ltr}
svg.years .base{stroke:var(--line-2)}
svg.years .hit{fill:transparent}
svg.years .col{fill:var(--viz-ctx)}
svg.years .is-lit .col{fill:var(--gold)}
svg.years g.is-on .col{fill:var(--blue-2)}
svg.years g.is-lit.is-on .col{fill:var(--gold-bright)}
svg.years text{font:500 14.5px var(--sans),sans-serif;fill:var(--muted)}   /* a little above the 14 px floor: a chart a pixel wider than its box must not take its labels under it */
svg.years .col-v{font-weight:700;fill:var(--gold-2)}
/* a ranking: a thin stem from zero to a dot, the value at the end of its row; the first row is the one the heading names */
.lolli{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.lolli li{display:grid;grid-template-columns:minmax(120px,38%) 1fr auto;align-items:center;gap:12px;min-height:30px;padding:0 6px;border-radius:6px;font-size:14px}
.lolli li.is-on{background:color-mix(in srgb,var(--text) 7%,transparent)}
.lolli-name{color:var(--text)}
.lolli li.is-top .lolli-name{font-weight:700;color:var(--gold-2)}
.lolli-line{display:flex;align-items:center;height:16px;padding-inline-end:7px;background:linear-gradient(var(--line-2),var(--line-2)) center / 100% 1px no-repeat}
.lolli-stem{position:relative;display:block;inline-size:var(--w);min-inline-size:1px;height:3px;border-radius:2px;background:var(--viz-ctx)}
.lolli-stem::after{content:"";position:absolute;inset-inline-end:-7px;top:50%;width:14px;height:14px;margin-top:-7px;box-sizing:border-box;border-radius:50%;background:var(--viz-ctx);border:2px solid var(--navy-800)}
.lolli li.is-top .lolli-stem,.lolli li.is-top .lolli-stem::after{background:var(--gold)}
.lolli-v{min-width:70px;text-align:end;font-weight:700;font-variant-numeric:tabular-nums;color:var(--text)}
.lolli-v small{margin-inline-start:8px;font-weight:400;font-size:14px;color:var(--muted)}
/* a mix: 100 squares, the part the heading names in gold, the rest one blue in three steps. After the gold the steps run
   dark to light: gold and the lightest blue are alike in lightness (0.77 and 0.84), and side by side they were one grey
   in a greyscale print; now each part differs from its neighbour by 0.16 or more. The key names every part with its share. */
.waffle{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px}
.waffle .chart{inline-size:190px;flex:none}
.waffle rect.is-on{stroke:var(--text);stroke-width:2}
.wf-0{fill:var(--gold);background:var(--gold)}
.wf-1{fill:var(--viz-3);background:var(--viz-3)}
.wf-2{fill:var(--blue);background:var(--blue)}
.wf-3{fill:var(--blue-2);background:var(--blue-2)}
.key{list-style:none;margin:0;padding:0;display:grid;gap:9px;font-size:14px}
.key li{display:grid;grid-template-columns:14px minmax(96px,auto) 48px auto;align-items:center;gap:10px}
.key i{width:14px;height:14px;border-radius:3px}
.key li:first-child span:first-of-type{font-weight:700;color:var(--gold-2)}
.key b{font-weight:700;font-variant-numeric:tabular-nums;text-align:end}
.key-sub{color:var(--muted);font-variant-numeric:tabular-nums}
/* every chart's table: the same numbers without hovering */
.table-view{margin-top:10px;font-size:14px}
.table-view summary{width:fit-content;padding:4px 0;color:var(--muted);cursor:pointer}
.table-view summary:hover,.table-view summary:focus-visible{color:var(--gold-2);outline:none}
.table-view .tbl{margin-top:8px;max-width:560px}
.table-view td.n{text-align:right;font-variant-numeric:tabular-nums}
.table-view .tbl thead th{font-size:14px}
/* the readout: the value first, what it is second */
.viz-tip{position:fixed;z-index:20;transform:translate(-50%,-100%);display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:8px;border:1px solid var(--line);background:var(--navy-800);box-shadow:0 8px 24px color-mix(in srgb,var(--bg) 70%,transparent);font-size:14px;line-height:1.4;white-space:nowrap;pointer-events:none}
.viz-tip[hidden]{display:none}
.viz-tip.under{transform:translate(-50%,0)}
.viz-tip strong{align-self:flex-start;font-size:16px;font-weight:700;color:var(--gold-2);unicode-bidi:plaintext}
.viz-tip span{color:var(--muted)}
.recent{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.recent li{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:14px;padding:10px 12px;border-radius:var(--r-md);background:color-mix(in srgb,var(--text) 4%,transparent)}
.rc-date{grid-row:1 / 3;align-self:center;font-weight:700;color:var(--gold);font-variant-numeric:tabular-nums}
.rc-who{font-weight:600;color:var(--text)}
.rc-what{font-size:14px;color:var(--muted)}
/* Five KPI cards in even rows (code review 2026-11-21, his "Yes, fix all"): at 801-1100px three and two, each row
   filling the width; at 800px and below two a row, the fifth across both, not alone at half width. */
@media (max-width:1100px){.kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.kpis>*{grid-column:span 2}.kpis>:nth-child(n+4):nth-last-child(-n+2){grid-column:span 3}}
@media (max-width:800px){.viz-row{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpis>*,.kpis>:nth-child(n+4):nth-last-child(-n+2){grid-column:auto}.kpis>:last-child:nth-child(odd){grid-column:1 / -1}}
@media (prefers-reduced-motion:reduce){.hub-tile{transition:none}}   /* the charts only fade in, which is not motion */

/* Procedures and definitions */
.proc{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:start}
.proc-nav{position:sticky;top:84px;display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:var(--r-lg);border:1px solid var(--line);background:var(--glass)}
.proc-nav a{padding:8px 10px;border-radius:var(--r-sm);color:var(--text);font-size:14px;line-height:1.4;text-decoration:none}
.proc-nav a:hover,.proc-nav a:focus-visible{background:var(--gold-dim);color:var(--gold-2);outline:none}
.proc-lead{margin:0 0 6px;font-size:var(--read);color:var(--muted)}
.proc-sec{padding:22px 0;border-bottom:1px solid var(--line);scroll-margin-top:80px}
.proc-sec h2{margin:0 0 12px;font:600 24px/1.3 var(--serif),serif;color:var(--gold-2)}
#sys-view[dir="rtl"] .proc-sec h2{font:700 22px/1.5 var(--ar-sans),sans-serif}
.proc-sec>p{max-width:78ch;font-size:var(--read);line-height:1.7}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.facts div{padding:14px 16px;border-radius:var(--r-md);border:1px solid var(--line-2);background:var(--glass)}
.facts dt{font-weight:700;font-size:14px;color:var(--gold)}
.facts dd{margin:6px 0 0;font-size:14px;line-height:1.6}
.steps{list-style:none;margin:16px 0;padding:0;display:grid;gap:10px}
.steps li{padding:14px 16px;border-radius:var(--r-md);border:1px solid var(--line-2);border-inline-start:3px solid var(--gold);background:var(--glass)}
.steps h3{margin:0 0 6px;font:700 16px var(--sans),sans-serif;color:var(--gold-2)}
#sys-view[dir="rtl"] .steps h3{font-family:var(--ar-sans),sans-serif}
.steps p{margin:0;font-size:14px;line-height:1.65}
.tbl{overflow-x:auto;border-radius:var(--r-md);border:1px solid var(--line-2)}
.tbl table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.6}
.tbl th,.tbl td{padding:10px 14px;text-align:start;vertical-align:top;border-bottom:1px solid var(--line-2)}
.tbl thead th{font-size:13px;color:var(--gold);background:color-mix(in srgb,var(--gold) 6%,transparent)}
.tbl tbody th{width:28%;font-weight:700;color:var(--gold-2)}
.tag{display:inline-block;margin-inline-start:6px;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.tag.good{background:color-mix(in srgb,var(--gold) 16%,transparent);color:var(--gold)}
.tag.caution{background:color-mix(in srgb,var(--warn) 16%,transparent);color:var(--warn)}
.checks-n,.todo{max-width:78ch;padding-inline-start:22px;font-size:var(--read);line-height:1.7}
.todo{list-style:none;padding-inline-start:0}
.todo li::before{content:"";display:inline-block;width:13px;height:13px;margin-inline-end:10px;border:2px solid var(--gold);border-radius:3px;vertical-align:-2px}
@media (max-width:900px){.proc{grid-template-columns:1fr}.proc-nav{position:static;flex-direction:row;flex-wrap:wrap}.facts{grid-template-columns:1fr}}

/* While the front page or a page beside the globe is open, the globe's own layers keep out of the way */
body.on-system #app-header,body.on-system #toolbar,body.on-system #hero-overlay,body.on-system #time-strip{visibility:hidden}

/* ---- 2026-11-21 (Yousef: "add a 2-second transition fade in", "when it loops back, give a fade", "some shadow boxes
   maybe on the KPI cards", "increase the size of the logo", and of Procedures "you took the color theme too literal and
   you made it very hard to read") ---- */
#hub.hub-enter{animation:hubIn 3.5s ease-in-out both}
@keyframes hubIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){#hub.hub-enter{animation:none}}
.intro-earth,.hub-earth{transition:opacity 1s ease}
.intro-earth.dip,.hub-earth.dip{opacity:0}
.kpi,.hub-tile{box-shadow:0 16px 36px rgba(0,0,0,.5),0 2px 6px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.06)}
.kpi{background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025));border-color:rgba(245,234,208,.16);box-shadow:0 18px 40px rgba(0,0,0,.6),0 0 0 1px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.1)}
.intro-emblem{height:132px}
@media (max-width:600px){.intro-emblem{height:96px}}
/* Procedures: a light sheet to read from, navy ink on cream, gold only as a thin accent */
.proc-body{padding:32px 40px 24px;border-radius:var(--r-lg);background:#f6f2e7;color:#1c2740;box-shadow:0 18px 50px rgba(0,0,0,.5)}
.proc-body .proc-lead{color:#55617a;font-size:17px}
.proc-body .proc-sec{padding:26px 0;border-bottom-color:#ddd5c0}
.proc-body .proc-sec:last-child{border-bottom:none}
.proc-body .proc-sec h2{margin-bottom:14px;color:#12294e;font-size:27px}
.proc-body .proc-sec>p,.proc-body .checks-n,.proc-body .todo{max-width:70ch;font-size:17px;line-height:1.85;color:#1c2740}
.proc-body b{color:#12294e}
.proc-body .facts div,.proc-body .steps li{background:#fff;border-color:#e2dac6;box-shadow:0 1px 3px rgba(18,41,78,.08)}
.proc-body .steps li{border-inline-start:3px solid #b8892b}
.proc-body .facts dt,.proc-body .steps h3{color:#12294e;font-size:17px}
.proc-body .facts dd,.proc-body .steps p{font-size:16px;line-height:1.75;color:#33405a}
.proc-body .tbl{border-color:#e2dac6;background:#fff}
.proc-body .tbl table{font-size:16px;line-height:1.7;color:#1c2740}
.proc-body .tbl th,.proc-body .tbl td{padding:12px 16px;border-bottom-color:#ece5d3}
.proc-body .tbl thead th{font-size:14px;color:#12294e;background:#efe8d6}
.proc-body .tbl tbody th{color:#12294e}
.proc-body .tag.good{background:#efe3c2;color:#6b4e0e}
.proc-body .tag.caution{background:#f6dfc9;color:#8a4a12}
.proc-body .todo li::before{border-color:#b8892b}
@media (max-width:600px){.proc-body{padding:20px 16px}}
.intro-content{transition:opacity 1.8s ease}
#intro-splash.leaving .intro-content{opacity:0}
/* the building's card keeps clear of the open side panel, so both show (2026-11-21); phones keep the full card */
@media (min-width:769px){body.panel-open .site-card{inset-inline-end:var(--panel-w)}}
/* The country panel, read from across a meeting room (Yousef 2026-11-21: "picture me, I'm in a meeting and I'm trying to
   read this ... and it's far away", "there's no hierarchy, there's no consistency", "something that will help pop it
   up, like contrast"). Three sizes only: titles 22-30, reading text 20, labels 15-16. Brighter ink on a lifted card,
   one spacing step (20 px) between blocks. It replaces the Presentation sizes of the same morning; phones keep theirs. */
@media (min-width:1280px){:root{--panel-w:clamp(460px,35vw,580px)}}
@media (min-width:769px){
  #detail-panel .country-header{font-size:30px;line-height:1.25}
  #detail-panel .country-brief{font-size:16px;color:color-mix(in srgb,var(--text) 78%,var(--muted));margin-bottom:20px}
  #detail-panel .mou-item{margin-bottom:14px;border-radius:12px}
  #detail-panel .mou-item.open{background:#101b33;box-shadow:0 18px 40px rgba(0,0,0,.5)}
  #detail-panel .mou-item-header{padding:16px 20px;gap:14px}
  #detail-panel .mou-headline{font-size:22px;font-weight:700;line-height:1.4}
  #detail-panel .mou-headline[dir="rtl"]{font-size:23px;line-height:1.55}
  #detail-panel .mou-item.open .mou-headline{color:#fff6dc}
  #detail-panel .mou-item:not(.open) .mou-headline{color:color-mix(in srgb,var(--text) 80%,var(--muted))}
  #detail-panel .mou-labels{max-width:150px;gap:6px}
  #detail-panel .mou-badge,#detail-panel .mou-labels .status-badge,#detail-panel .mou-labels .mou-badge.is-kind{font-size:14px;padding:5px 12px}
  #detail-panel .mou-item-body{padding:0 20px 20px}
  #detail-panel .mou-fullname,#detail-panel .mou-fullname[dir="rtl"]{margin:20px 0;font-size:22px;line-height:1.6;color:#fff}
  #detail-panel .mou-section-label{margin:20px 0 8px;font-size:16px;color:var(--gold-bright)}
  #detail-panel .mou-fullname+.mou-section-label{margin-top:0}
  #detail-panel .mou-section-text{font-size:20px;line-height:1.75;color:#f6f3ea;text-align:justify;hyphens:auto}
  /* one edge for everything in the panel (2026-11-21, his "There's no proper alignment"): the titles start where the text
     starts, and the summary runs to both edges */
  #detail-panel .mou-headline,#detail-panel .mou-fullname,#detail-panel .mou-fullname[dir="rtl"]{text-align:start;text-wrap:pretty}
  #detail-panel .mou-section-text[dir="rtl"]{text-align:justify}
  #detail-panel .mou-section-text[dir="rtl"]{font-size:20px;line-height:1.95}
  #detail-panel .d{padding:12px 12px;border-radius:10px;background:rgba(255,255,255,.07);border-color:color-mix(in srgb,var(--gold) 28%,transparent)}
  #detail-panel .d span{margin-bottom:6px;font-size:15px;color:var(--gold)}
  #detail-panel .d b{font-size:18px;font-weight:700;color:#fff;white-space:normal;line-height:1.35}
  #detail-panel .doc-btn{font-size:15px;padding:10px 18px}
}
body.lang-ar #detail-panel .mou-section-label,body.lang-ar #detail-panel .d span{letter-spacing:0}
/* depth under the photos (his "the pictures would benefit from having a box shadow") */
.site-photo img{box-shadow:0 18px 40px rgba(0,0,0,.55),0 3px 10px rgba(0,0,0,.4)}
.site-photo figcaption{font-size:14px}
/* five choices on the front page; the Gallery (2026-11-21) */
.hub-main{max-width:1340px}
.gal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 22px}
@media (max-width:1000px){.gal{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.gal{grid-template-columns:1fr}}
.gal-shot{margin:0;min-width:0}
.gal-frame{position:relative;aspect-ratio:3/2;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#0b1222;box-shadow:0 18px 40px rgba(0,0,0,.55),0 3px 10px rgba(0,0,0,.4)}
.gal-frame::before{content:"";position:absolute;inset:-24px;background:var(--img) center/cover;filter:blur(22px) brightness(.55)}
.gal-frame img{position:relative;display:block;width:100%;height:100%;object-fit:contain}
.gal-shot figcaption{margin-top:12px;text-align:center}
.gal-shot span{display:block;font-size:18px;font-weight:700;line-height:1.4;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gal-shot small{display:block;margin-top:2px;font-size:15px;color:var(--muted)}
/* the Journey inside a page (2026-11-21) */
#sys-body:has(.flow){max-width:1720px;padding-top:14px;padding-bottom:16px}
.flow{display:block;width:100%;height:calc(100vh - 104px);min-height:560px;border:0;border-radius:14px;background:#f4efe3;box-shadow:0 18px 50px rgba(0,0,0,.5)}
.proc-tabs{display:flex;gap:8px;margin-bottom:12px}
#sys-tools .proc-tabs{margin:0}
.proc-tabs+.flow{height:calc(100vh - 152px)}
#sys-body>.flow:first-child{height:calc(100vh - 110px)}
/* the bar over Procedures: Home and the language button with slate edges, the view switch one pill with two halves, gold
   only on the view that is on (2026-11-23, the depth, colour and layout notes Yousef pasted, then "do what i stated so i can see") */
.sys-bar #sys-home,.sys-bar #sys-lang{border-color:#1E324D;background:#0A1626}
.sys-bar #sys-home{color:#DCE3EC}
#sys-tools .proc-tabs{gap:0;padding:3px;border-radius:999px;background:#0A1626;border:1px solid #1E324D}
#sys-tools .proc-tabs .btn{height:30px;border:0;border-radius:999px;background:none;color:#8FA3BF}
#sys-tools .proc-tabs .btn:hover{color:#F4F6F9}
#sys-tools .proc-tabs .btn.is-on{background:#D6B45A;color:#0A1626;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
/* the Gemini look (2026-11-23, the Gemini design notes Yousef pasted, then "just show me how it looks that was recommended from gemini") */
#sys-tools .proc-tabs{background:rgba(15,31,52,.72);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-color:rgba(255,255,255,.08)}
#sys-tools .proc-tabs .btn.is-on{background:linear-gradient(135deg,#E8CD82 0%,#CFA84B 55%,#B28931 100%);color:#020D18;font-weight:700;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 4px 16px rgba(214,180,90,.28)}
.proc-body{background:#F5F0E6;color:#122032}
.proc-body .proc-sec{border-bottom-color:#DCD3C1}
.proc-body .proc-sec>p,.proc-body .checks-n,.proc-body .todo,.proc-body .tbl table{color:#122032}
.proc-body .facts div,.proc-body .steps li,.proc-body .tbl{background:#FAF6EE;border-color:#DCD3C1}
.proc-body .tbl th,.proc-body .tbl td{border-bottom-color:#DCD3C1}
.proc-body .tbl thead th{background:#EBE4D5}
/* the top bar on Procedures: a breadcrumb title, one height and one roundness for its controls, a gold-touched hairline,
   and the Guide's frame gone, so the page sits on one canvas (2026-11-23, the notes on the step bar, header and top bar Yousef pasted, then "just do what i wrote so i can check") */
.sys-bar:has(.proc-tabs){background:rgba(4,12,22,.85);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid transparent;border-image:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.08) 25%,rgba(214,180,90,.22) 50%,rgba(255,255,255,.08) 75%,transparent 100%) 1;gap:14px}
#sys-view .sys-bar:has(.proc-tabs) h1,#sys-view[dir="rtl"] .sys-bar:has(.proc-tabs) h1{background:none;-webkit-text-fill-color:#DCE3EC;color:#DCE3EC;font:600 .95rem/1.4 var(--ar-sans),var(--sans),sans-serif;padding:0;margin:0;display:flex;align-items:center;gap:14px}
.sys-bar:has(.proc-tabs) h1::before{content:"";flex:none;width:1px;height:18px;background:rgba(255,255,255,.12)}
.sys-bar:has(.proc-tabs) #sys-home,.sys-bar:has(.proc-tabs) #sys-lang{height:38px;border-radius:999px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.09)}
.sys-bar:has(.proc-tabs) #sys-lang{padding:3px;gap:2px}
.sys-bar:has(.proc-tabs) #sys-lang b,.sys-bar:has(.proc-tabs) #sys-lang span{display:inline-grid;place-items:center;min-width:34px;height:30px;padding:0 8px;border-radius:999px}
#sys-tools .proc-tabs{height:38px;padding:3px;gap:2px;border-radius:999px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.09)}
#sys-tools .proc-tabs .btn{height:30px;padding:0 16px}
#sys-tools .proc-tabs .btn.is-on{background:linear-gradient(135deg,#E7CC83 0%,#CFA64A 55%,#B0862E 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 2px 12px rgba(214,180,90,.22)}
#sys-body>.flow{border-radius:0;box-shadow:none;background:transparent}
.proc-tabs .btn.is-on{background:var(--gold);color:#1a1408;border-color:var(--gold)}
/* the word under each headline figure, large enough to read from a seat (Yousef 2026-11-21: "it's a bit too small") */
@media (min-width:769px){
  #hero-overlay .num span{margin-top:9px;font-size:15px;letter-spacing:var(--track-m);color:color-mix(in srgb,var(--text) 78%,var(--muted))}
  body.lang-ar #hero-overlay .num span{font-size:20px;font-weight:700}
}

/* ---- Front page, six cards (Yousef 2026-11-21, his example: "3 top, 3 bottom", the logo in the middle) ---- */
.hub-top{justify-content:flex-end;border-bottom:0}
.hub-logo{display:block;width:auto;height:clamp(104px,15vh,150px);margin:0 auto clamp(6px,1.2vh,14px);filter:drop-shadow(0 6px 18px rgba(0,0,0,.45))}
.hub-main{max-width:1240px;padding-top:0}
.hub-title{margin-top:4px}
.hub-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media (min-width:1101px){.hub-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
.hub-tile{flex-direction:row;align-items:stretch;gap:18px;min-height:180px;padding:22px 22px 18px}
.ht-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;text-align:start}
.ht-art{flex:none;width:clamp(96px,9vw,132px);display:grid;place-items:center;padding-inline-start:18px;border-inline-start:1px solid var(--line)}
.ht-art img{display:block;max-width:100%;max-height:120px;height:auto;filter:drop-shadow(0 10px 18px rgba(0,0,0,.5))}
.ht-art.ph .ico{width:56px;height:56px;color:var(--gold);opacity:.55;stroke-width:1.2}
.ht-title{margin-top:0;font-size:21px}
#hub[dir="rtl"] .ht-title{font-size:21px}
.ht-k{display:flex;align-items:baseline;gap:8px;min-height:34px}
.ht-k b{font:700 32px/1 var(--sans),sans-serif;color:var(--text);font-variant-numeric:tabular-nums}
.ht-k span{font-size:15px;color:var(--gold)}
#hub[dir="rtl"] .ht-k span{font-size:16px}
.hub-tile.is-soon{cursor:default}
.hub-tile.is-soon:hover{transform:none;border-color:var(--line)}
.hub-tile.is-soon .ht-k span{color:var(--muted)}
@media (max-width:1100px){.hub-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.hub-tiles{grid-template-columns:1fr}.ht-art{width:84px}.hub-logo{height:92px}}

/* ---- Front page, the designer's eight fixes (Yousef 2026-11-21: "apply all eight") ---- */
/* 1. wider page, so the card text has room */
.hub-main{max-width:1440px}
.hub-tile{gap:20px;min-height:0;padding:22px 24px 20px}
.ht-art{width:clamp(110px,8vw,140px);margin-block:8px;padding-inline-start:20px}
.ht-art img{max-height:136px}
/* 2. sizes for a meeting room, nothing under 14px, no letter-spacing on Arabic */
.ht-desc{font-size:15px;line-height:1.5}
#hub[dir="rtl"] .ht-desc{font-size:16px;line-height:1.7}
.ht-open{font-size:15px}
#hub[dir="rtl"] .ht-open{font-size:16px}
.ht-title{font-size:22px;line-height:1.25}
#hub[dir="rtl"] .ht-title{font-size:23px;line-height:1.4}
.ht-k b{font-size:36px}
.hub-foot{font-size:14px}
#hub .btn{font-size:14px;height:38px;padding:0 15px}
#hub[dir="rtl"] .btn{letter-spacing:0}
/* 3. a larger logo, so its writing can be read */
.hub-logo{height:clamp(120px,17vh,184px)}
@media (max-width:1100px){.hub-logo{height:104px}}
/* 4. room under the title */
.hub-title{margin-bottom:14px}
.hub-office{margin-bottom:8px}
.hub-sub{margin-bottom:clamp(20px,3vh,34px)}
/* 6. Open at the foot of every card */
.ht-open{padding-top:10px}
/* 7. at 1024, still three on top and three below, the picture above the words */
@media (min-width:901px) and (max-width:1100px){
 .hub-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
 .hub-tile{flex-direction:column-reverse;padding:16px 18px}
 .ht-art{width:auto;height:76px;margin:0;padding:0 0 10px;border-inline-start:0;border-bottom:1px solid var(--line)}
 .ht-art img{max-height:66px}
}
/* 8. no empty line under "Being prepared" */
.hub-tile.is-soon .ht-k{min-height:0}
/* 1 (his fallback): at a wide screen each card title keeps to one line, so the numbers in a row line up */
@media (min-width:1500px){.ht-title{white-space:nowrap}.ht-art{width:120px}}

/* ---- 2026-11-21, his round after the six cards ---- */
/* the front page fits one screen: the buttons float over the top, the logo and cards higher, tighter gaps */
.hub-top{position:absolute;top:0;inset-inline:0;z-index:2;padding:16px 24px}
.hub-main{justify-content:flex-start;padding-top:clamp(18px,3.2vh,40px);padding-bottom:8px}
.hub-logo{height:clamp(96px,13vh,150px);margin-bottom:clamp(4px,1vh,10px)}
.hub-title{margin:2px auto 8px}
.hub-office{margin-bottom:4px}
.hub-sub{margin-bottom:0}
.hub-tiles{margin-top:clamp(16px,2.6vh,30px);gap:16px}
.hub-tile{padding:18px 22px 16px}
.ht-art img{max-height:118px}
.hub-foot{padding:10px 28px 14px}
/* the header: the official logo with its writing to the left of the emblem */
.lock.has-logo{display:flex;align-items:center}
.lk-logo{display:block;height:50px;width:auto}
@media (max-width:600px){.lk-logo{height:40px}}
/* the globe's figures: a clear divider, not a hairline; the word centred under its number */
.num{border-right-width:2px;border-right-color:color-mix(in srgb,var(--gold) 45%,transparent)}
body.lang-ar .num{border-left-width:2px;border-left-color:color-mix(in srgb,var(--gold) 45%,transparent)}
body.lang-ar .num:last-child,.num:last-child{border:none}
#hero-overlay .hero-head .num.c{border-inline-start-width:2px;border-inline-start-color:color-mix(in srgb,var(--gold) 55%,transparent)}
.num.b + .num.x{border-left-width:2px}
body.lang-ar .num.b + .num.x{border-right-width:2px}
.num{text-align:center}
/* numbers in a face whose digits sit on one line (Playfair's old-style figures dropped the 4 and raised the 6) */
.num b,.kpi b{font-family:var(--sans),sans-serif;font-weight:700;letter-spacing:-.5px;font-variant-numeric:lining-nums tabular-nums}

/* ---- 2026-11-21, his: the glow round a card, a thicker divider, Open under the picture ---- */
@property --glow-a{syntax:"<angle>";inherits:false;initial-value:0deg}
.hub-tile::after{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:2px;pointer-events:none;opacity:0;
  background:conic-gradient(from var(--glow-a),transparent 0deg,transparent 220deg,color-mix(in srgb,var(--gold) 60%,transparent) 290deg,#f6dc9a 330deg,transparent 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  transition:opacity .35s ease}
button.hub-tile:hover::after,button.hub-tile:focus-visible::after{opacity:1;animation:glowRun 2.6s linear infinite}
button.hub-tile:hover,button.hub-tile:focus-visible{box-shadow:0 16px 36px rgba(0,0,0,.5),0 0 26px color-mix(in srgb,var(--gold) 22%,transparent)}
@keyframes glowRun{to{--glow-a:360deg}}
@media (prefers-reduced-motion:reduce){button.hub-tile:hover::after,button.hub-tile:focus-visible::after{animation:none;--glow-a:300deg}}
.ht-art{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-inline-start:2px solid color-mix(in srgb,var(--gold) 38%,transparent)}
.ht-art .ht-open{margin-top:0;padding-top:0}
@media (min-width:901px) and (max-width:1100px){.ht-art{border-inline-start:0;border-bottom:2px solid color-mix(in srgb,var(--gold) 38%,transparent);height:auto;flex-direction:row}}
/* the globe's title centred and a step larger (Yousef 2026-11-21) */
.hero-title{text-align:center;font-size:clamp(34px,3.1vw,46px)}
body.lang-ar .hero-title{font-size:clamp(38px,3.5vw,52px)}
/* each agreement in the panel: its status colour on its edge, and the status word filled */
.mou-item{border-inline-start-width:4px}
.mou-item.status-active{border-inline-start-color:var(--gold)}
.mou-item.status-inprogress{border-inline-start-color:var(--blue)}
.mou-item.status-expired{border-inline-start-color:var(--red)}
.mou-labels .status-badge.status-active{background:var(--gold);color:#1a1405;border-color:var(--gold)}
.mou-labels .status-badge.status-inprogress{background:var(--blue);color:#06121e;border-color:var(--blue)}
.mou-labels .status-badge.status-expired{background:var(--red);color:#1f0705;border-color:var(--red)}
/* the running glow, seen: the border stays quiet while a bright arc goes round it */
.hub-tile::after{inset:-2px;padding:3px;background:conic-gradient(from var(--glow-a),transparent 0deg,transparent 200deg,color-mix(in srgb,var(--gold) 55%,transparent) 260deg,#fff1c4 320deg,var(--gold) 340deg,transparent 360deg)}
button.hub-tile:hover,button.hub-tile:focus-visible{border-color:var(--line)}

/* ---- Phone and tablet rules restated last (code review 2026-11-21: the blocks after them had cancelled them) ---- */
@media (min-width:901px) and (max-width:1100px){
 .hub-tile{padding:16px 18px}
 .ht-art img{max-height:66px}
}
@media (max-width:1100px){.hub-logo{height:96px}}
@media (max-width:768px){
 .hero-title,body.lang-ar .hero-title{font-size:26px;line-height:1.25}
}
@media (max-width:600px){
 .hub-top{padding:12px 16px}
 .hub-main{padding:64px 16px 16px}
 .hub-logo{height:80px}
 .ht-art{width:84px}
 .ht-art img{max-height:72px}
}

/* ---- 2026-11-21, his: the logo above the regions, the rail for a big screen, the panel's titles and dates ---- */
.rail-logo{display:block;width:100%;max-width:230px;height:auto;margin:0 auto 22px;padding:0 6px;box-sizing:border-box}
@media (min-width:769px){#app-header .lock.has-logo{visibility:hidden}}   /* shown once, in the rail */
@media (max-width:768px){.rail-logo{display:none}}
@media (min-width:1280px){:root{--rail-w:290px}}
#region-sidebar h3{font-size:16px;margin-bottom:16px}
body.lang-ar #region-sidebar h3{font-size:18px}
.region-btn{font-size:17px;padding:12px 12px;margin-bottom:4px}
body.lang-ar .region-btn{font-size:18px}
.region-count{font-size:14px;padding-inline:9px}
.partner-legend{font-size:14px;gap:8px 14px}
body.lang-ar .partner-legend{font-size:15px}
.partner-row{font-size:16px;padding:7px 9px}
body.lang-ar .partner-row{font-size:17px}
.partner-row .pc{font-size:14px}
@media (min-width:769px){
  /* the country: centred, in its own gold, underlined */
  #detail-panel .country-header{text-align:center;color:var(--gold);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--gold) 70%,transparent);text-decoration-thickness:2px;text-underline-offset:12px;margin-bottom:14px}
  #detail-panel .country-brief{text-align:center}
  /* what the paper is, between whom: centred */
  #detail-panel .mou-fullname,#detail-panel .mou-fullname[dir="rtl"]{text-align:center;text-wrap:balance}
  /* "Summary" and the other section words: larger, in the page's gold */
  #detail-panel .mou-section-label{font-size:19px;color:var(--gold);letter-spacing:0}
  /* the dates: centred, a clean face with even figures */
  #detail-panel .mou-details{gap:10px}
  #detail-panel .d{text-align:center;padding:14px 10px}
  #detail-panel .d span{font:600 15px var(--sans),sans-serif;letter-spacing:.2px;text-transform:none}
  body.lang-ar #detail-panel .d span{font:600 16px var(--ar-sans),sans-serif}
  #detail-panel .d b{font:600 19px var(--sans),sans-serif;font-variant-numeric:lining-nums tabular-nums;letter-spacing:.3px}
  #detail-panel .d b[dir="rtl"]{font-family:var(--ar-sans),sans-serif}
}
.region-name{white-space:normal;line-height:1.3}   /* a long region name on two lines, not cut (2026-11-21) */
/* The agreement's heading centred like the country and the full name above and below it, its badges centred when they
   stand on a row of their own; the summary runs to both edges only on a wide panel. On a narrow one two or three words
   filled a line and the spaces between them stretched ("A … cooperation"). Yousef 2026-11-21: "why isn't the Kuwait
   University centered? And then why is there like A and then a huge space between", then "Do it here". */
@media (min-width:769px){
  #detail-panel .mou-headline{text-align:center;text-wrap:balance}
  #detail-panel .mou-labels{margin-inline:auto}
}
@media (min-width:769px) and (max-width:1279px){
  #detail-panel .mou-section-text,#detail-panel .mou-section-text[dir="rtl"]{text-align:start;hyphens:manual}
}
/* A date box is never narrower than its longest word at the panel's 19px: "02/11/2009" is 108px in Arabic's face and
   116px in Inter, "automatically" 128px. At 800px the grid was 211px, two boxes of 79px inside, and the date ran into
   the next box (in English at 1440px too). The panel's width follows the window (--panel-w), so the dates do too:
   stacked on a narrow panel, two in a row from 1280px with a third across both, three in a row from 1600px, where the
   grid is at least 446px. Yousef 2026-11-21: "Fix the date boxes in Arabic". */
@media (min-width:769px){
  #detail-panel .mou-details{grid-template-columns:1fr}
  #detail-panel .d{padding-inline:6px}
  #detail-panel .d:only-child{grid-column:1/-1}
}
@media (min-width:1280px){
  #detail-panel .mou-details{grid-template-columns:1fr 1fr}
  #detail-panel .d:nth-child(3):last-child{grid-column:1/-1}
}
@media (min-width:1600px){
  #detail-panel .mou-details{grid-template-columns:repeat(3,1fr)}
  #detail-panel .d:nth-child(3):last-child{grid-column:auto}
}
/* The document's bar is a plain label: the viewer always shows in an open agreement, nothing folds it (Yousef 2026-11-21:
   "There shouldn't be an arrow next to the document thing"). The look of the old bar, without the pointer and the arrow. */
.doc-fold-label{display:flex;align-items:center;gap:8px;padding:10px 12px;color:var(--gold);font:600 12px var(--sans),sans-serif;letter-spacing:var(--track-m);text-transform:uppercase}
/* The smaller items of the review (2026-11-21, Yousef: "fix the smaller items too"): a long gallery title takes two lines
   before it is cut ("Healthcare UK (Department for Business ..." was cut on one); the charts' readout wraps inside a
   phone's width instead of running off it. */
.gal-shot span{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.viz-tip{white-space:normal;max-width:min(320px,calc(100vw - 24px))}
/* The front page's six cards, 2026-11-22 (Yousef: his six names, "center all the titles so it's equal", "Center the 46
   countries", no line of writing under them): the title, and the map's figure, centred in the card's text column */
.ht-text{justify-content:center;align-items:center;text-align:center}
.ht-k{justify-content:center}
/* A designer's pass the same day (his "Make the card pictures the same size and text needs a designer to look at it"):
   each picture fitted whole into one 112 px square, so the six weigh the same; the title one size per language, its lines
   balanced (no word left alone on a line), the serif a touch tighter; the map's figure set on the same baseline as its word */
.ht-art img{width:112px;height:112px;max-width:none;max-height:none;object-fit:contain}
.ht-text{gap:10px}
.ht-title{font:600 22px/1.22 var(--serif),serif;letter-spacing:-.005em;text-wrap:balance;max-width:21ch}
#hub[dir="rtl"] .ht-title{font:700 22px/1.45 var(--ar-sans),sans-serif;letter-spacing:0;max-width:18ch}
.ht-k{min-height:0}
.ht-k b{font-size:34px}
@media (max-width:600px){.ht-art img{width:76px;height:76px}.ht-title,#hub[dir="rtl"] .ht-title{font-size:19px}}
/* ---- 2026-11-22, his next round (his "lower them a bit centered", the title "needs a gold border ... it looks grayed
   out. Same thing with the writing under it", and the 1024 fold) ---- */
/* the heading: gold that reads as gold on the dark earth (the pale cream read grey under the veil), lifted off the
   picture by a soft shadow, and a gold rule under it, a short line each side of a small diamond */
.hub-title{background:linear-gradient(180deg,#fbeec4 0%,#e8c977 55%,#c99a3e 100%);-webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;filter:drop-shadow(0 2px 10px rgba(0,0,0,.55))}
.hub-rule{display:flex;align-items:center;justify-content:center;gap:12px;margin:2px auto 14px}
.hub-rule::before,.hub-rule::after{content:"";width:clamp(60px,9vw,130px);height:1px}
.hub-rule::before{background:linear-gradient(90deg,transparent,var(--gold))}
.hub-rule::after{background:linear-gradient(90deg,var(--gold),transparent)}
.hub-rule i{width:7px;height:7px;transform:rotate(45deg);background:var(--gold);box-shadow:0 0 10px color-mix(in srgb,var(--gold) 60%,transparent)}
/* the two lines under it: ivory and a light steel, not grey, with the same lift */
.hub-office{color:var(--gold-2);text-shadow:0 1px 8px rgba(0,0,0,.6)}
.hub-sub{color:#c3cde0;text-shadow:0 1px 8px rgba(0,0,0,.6)}
/* the six cards lower, centred in the room between the heading and the foot (they keep at least the old gap) */
.hub-sub{margin-bottom:clamp(16px,2.6vh,30px)}
.hub-tiles{margin-top:auto;margin-bottom:auto}
/* at 1024 the picture beside the title, as on a desktop, now the cards hold a title only: shorter cards, all six on one screen */
@media (min-width:901px) and (max-width:1100px){
 .hub-tile{flex-direction:row;padding:16px 18px}
 .ht-art{width:108px;height:auto;margin:0;padding:0;padding-inline-start:14px;border-bottom:0;border-inline-start:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
 .ht-art img{width:80px;height:80px}
 .ht-open{padding-top:0}
 .ht-title,#hub[dir="rtl"] .ht-title{font-size:19px}
}
/* the designer's call on "Open" (2026-11-22, his "either we remove the open thing ... and then we can make the icon bigger"):
   the whole card is the button (it lifts and turns gold under the pointer, with a focus ring), so the word only repeated
   it; it goes, and each picture takes the room: 132 px, at 1024 96 px. The Outcomes card, not yet open, reads as resting:
   its picture and title a step quieter, no lift */
.ht-art{width:clamp(130px,10vw,160px)}
.ht-art img{width:132px;height:132px}
.hub-tile.is-soon .ht-art img{opacity:.55;filter:grayscale(.35) drop-shadow(0 10px 18px rgba(0,0,0,.5))}
.hub-tile.is-soon .ht-title{color:color-mix(in srgb,var(--gold-2) 62%,var(--muted))}
@media (min-width:901px) and (max-width:1100px){.ht-art{width:112px}.ht-art img{width:96px;height:96px}}
@media (max-width:600px){.ht-art{width:96px}.ht-art img{width:84px;height:84px}}
/* opening a page from the front page: the front page's own fade, the same 3.5 s, the page coming in over it (system.js) */
#sys-view.sys-enter{animation:hubIn 3.5s ease-in-out both}
@media (prefers-reduced-motion:reduce){#sys-view.sys-enter{animation:none}}
/* a card's way in (system.js flyCard): its picture and title in the centre of the screen over the earth, as the globe's
   logo and words are, then the page fades in through them */
.card-fly{position:fixed;inset:0;z-index:10003;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;pointer-events:none}
.card-fly img{width:clamp(200px,22vw,300px);height:clamp(200px,22vw,300px);object-fit:contain;filter:drop-shadow(0 18px 40px rgba(0,0,0,.6))}
.card-fly-title{max-width:22ch;text-align:center;font:600 clamp(28px,3vw,42px)/1.2 var(--serif),serif;text-wrap:balance;
  background:linear-gradient(180deg,#fbeec4 0%,#e8c977 55%,#c99a3e 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;filter:drop-shadow(0 2px 10px rgba(0,0,0,.55))}
.card-fly[dir="rtl"] .card-fly-title{font-family:var(--ar-serif),serif;line-height:1.5}
.card-fly-rule{display:flex;align-items:center;gap:12px}
.card-fly-rule::before,.card-fly-rule::after{content:"";width:clamp(60px,8vw,120px);height:1px}
.card-fly-rule::before{background:linear-gradient(90deg,transparent,var(--gold))}
.card-fly-rule::after{background:linear-gradient(90deg,var(--gold),transparent)}
.card-fly-rule i{width:7px;height:7px;transform:rotate(45deg);background:var(--gold)}
/* the gold lettering is painted inside the text's own box, and the Arabic serif's final letters reach past it, so the
   last letter's tail was cut off (2026-11-22, his "the last letter is clipped off", «صور مراسم التوقيع»): room for the
   gold beyond the letters on every side */
.hub-title,.card-fly-title{padding:.12em .35em .18em;box-sizing:content-box}
/* the gallery's words in the front page's lettering (2026-11-22, his "the same kind of artistic fonts ... I don't like
   this grayed out font color ... the dates look grayed out"): each partner in the gold serif, the date in warm light
   gold, not grey */
.gal-shot span{font:600 20px/1.35 var(--serif),serif;padding:.08em .3em .14em;
  background:linear-gradient(180deg,#fbeec4 0%,#e8c977 55%,#c99a3e 100%);-webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent}
#sys-view[dir="rtl"] .gal-shot span{font:700 22px/1.6 var(--ar-serif),serif}
.gal-shot small{margin-top:4px;font:500 15px var(--sans),sans-serif;color:#d9bd7c;font-variant-numeric:tabular-nums;letter-spacing:.02em}
#sys-view[dir="rtl"] .gal-shot small{font-family:var(--ar-sans),sans-serif;letter-spacing:0}
/* the front page as one balanced block (2026-11-22, his "all of them moved up together a little bit. And the title of the
   sector to move down just a little bit"): the logo, heading and cards centred together in the screen, a set gap between
   heading and cards, in place of the cards pushed into the space below */
.hub-main{justify-content:flex-start;padding-top:clamp(56px,7vh,84px)}   /* the top is set by system.js placeHub: the cards in the screen's middle */
.hub-tiles{margin-top:clamp(26px,4.2vh,48px);margin-bottom:0}
/* one title style for the whole site (2026-11-22, his "the font that you used when I click on any of them to be the
   standard for all the fonts, like for the titles ... the golden font"): the gold serif of the card's way in, Playfair in
   English and the Arabic serif in Arabic, on every title on the dark pages; the reading tab's navy titles on ivory stay
   navy, gold would not read on the paper */
.ht-title,.sys-bar h1,.viz h2,.proc-sec h2,.steps h3{background:linear-gradient(180deg,#fbeec4 0%,#e8c977 55%,#c99a3e 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;padding:.08em .3em .14em;margin-inline:-.3em}
.ht-title{font-family:var(--serif),serif}
#hub[dir="rtl"] .ht-title{font-family:var(--ar-serif),serif;font-weight:700;font-size:27px;line-height:1.5}
.sys-bar h1{font:600 24px/1.3 var(--serif),serif}
#sys-view[dir="rtl"] .sys-bar h1{font:700 24px/1.5 var(--ar-serif),serif}
.viz h2{font:600 21px/1.35 var(--serif),serif}
#sys-view[dir="rtl"] .viz h2{font:700 21px/1.6 var(--ar-serif),serif}
#sys-view[dir="rtl"] .proc-sec h2{font:700 24px/1.6 var(--ar-serif),serif}
.steps h3{font:600 18px/1.35 var(--serif),serif}
#sys-view[dir="rtl"] .steps h3{font:700 18px/1.6 var(--ar-serif),serif}
.proc-body .proc-sec h2,.proc-body .steps h3{background:none;color:#12294e;-webkit-text-fill-color:#12294e}
/* the logo a little larger (2026-11-22, his "if you increase it a little bit in size and center it, it will look better"):
   150 px at most before, 176 now; centred over the heading as before, placeHub keeps the whole block balanced */
.hub-logo{height:clamp(110px,15vh,176px)}
/* Outcomes of International Instruments (2026-11-22, system.js renderOutcomes): a band per year, newest first, the year
   in the gold serif with a gold rule; three result cards to a row, each with its photo over a soft copy of itself */
.oc{max-width:1320px;margin:0 auto}
.oc-year{margin-bottom:34px}
.oc-y{display:flex;align-items:center;gap:16px;margin:0 0 16px;font:600 34px/1.2 var(--serif),serif}
.oc-y bdi{background:linear-gradient(180deg,#fbeec4 0%,#e8c977 55%,#c99a3e 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;padding:.05em .25em .12em}
.oc-y::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--gold),transparent)}
#sys-view[dir="rtl"] .oc-y::after{background:linear-gradient(-90deg,var(--gold),transparent)}
.oc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media (max-width:1000px){.oc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.oc-grid{grid-template-columns:1fr}}
.oc-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--glass);overflow:hidden;box-shadow:0 16px 36px rgba(0,0,0,.5)}
.oc-photo{position:relative;aspect-ratio:16/9;overflow:hidden;background:#0b1222}
.oc-photo::before{content:"";position:absolute;inset:-24px;background:var(--img) center/cover;filter:blur(22px) brightness(.55)}
.oc-photo img{position:relative;display:block;width:100%;height:100%;object-fit:contain}
.oc-body{display:flex;flex-direction:column;gap:6px;padding:16px 18px 18px;flex:1}
.oc-country{margin:0;font:600 22px/1.3 var(--serif),serif;background:linear-gradient(180deg,#fbeec4 0%,#e8c977 55%,#c99a3e 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;padding:.05em .3em .12em;margin-inline:-.3em;align-self:flex-start}
#sys-view[dir="rtl"] .oc-country{font:700 24px/1.55 var(--ar-serif),serif}
.oc-partner{margin:0;font-size:14px;color:#c3cde0}
.oc-fig{margin:6px 0 2px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.oc-fig b{font:700 34px/1 var(--sans),sans-serif;color:var(--text);font-variant-numeric:tabular-nums}
.oc-fig span{font-size:15px;color:var(--gold)}
.oc-text{margin:0;font-size:15px;line-height:1.55;color:var(--text)}
#sys-view[dir="rtl"] .oc-text{font-size:16px;line-height:1.75}
.oc-meta{margin:auto 0 0;padding-top:10px;font-size:13px;color:#d9bd7c}
.oc-meta a{color:var(--gold);text-decoration:underline;text-underline-offset:3px}
/* the outcomes as a timeline (the same day, after the first look: one card per year left the page half empty): a gold
   line down the side with each year on it, and each result a wide card, its photo beside the words */
.oc{max-width:1240px}
.oc-year{display:grid;grid-template-columns:150px minmax(0,1fr);gap:0 28px;margin:0;position:relative}
.oc-year::before{content:"";position:absolute;inset-block:0;inset-inline-start:150px;width:1px;background:linear-gradient(180deg,var(--gold),color-mix(in srgb,var(--gold) 25%,transparent))}
.oc-y{display:block;margin:6px 0 0;padding-inline-end:22px;text-align:end;position:relative}
.oc-y::after{content:"";position:absolute;top:22px;inset-inline-end:-6px;width:11px;height:11px;transform:rotate(45deg);background:var(--gold);box-shadow:0 0 12px color-mix(in srgb,var(--gold) 60%,transparent)}
#sys-view[dir="rtl"] .oc-y::after{background:var(--gold)}
.oc-grid{grid-template-columns:minmax(0,1fr);gap:18px;padding:0 0 30px 14px}
#sys-view[dir="rtl"] .oc-grid{padding:0 14px 30px 0}
.oc-card{flex-direction:row;min-height:230px}
.oc-photo{flex:0 0 42%;aspect-ratio:auto}
.oc-body{padding:20px 24px}
@media (max-width:800px){.oc-year{grid-template-columns:minmax(0,1fr)}.oc-year::before{display:none}.oc-y{text-align:start}.oc-y::after{display:none}.oc-card{flex-direction:column}.oc-photo{aspect-ratio:16/9}.oc-grid{padding:0 0 24px}}
/* the gallery in year bands (2026-11-22): the year heading of the Outcomes page over the same even grid */
.gal-years{max-width:1320px}
.gal-year{margin-bottom:34px}
.gal-y{display:flex!important;align-items:center;gap:16px;text-align:start!important;padding:0!important;margin:0 0 16px!important}
.gal-y::after{position:static!important;flex:1;width:auto!important;height:1px!important;transform:none!important;box-shadow:none!important;background:linear-gradient(90deg,var(--gold),transparent)!important}
#sys-view[dir="rtl"] .gal-y::after{background:linear-gradient(-90deg,var(--gold),transparent)!important}
/* one card per signing (system.js renderGallery, 2026-11-22): the card is a button, a gold count on the photo, and it
   lifts under the pointer like the front-page cards */
.gal-set{display:block;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:center;cursor:pointer}
.gal-set .gal-frame{transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.gal-set:hover .gal-frame,.gal-set:focus-visible .gal-frame{transform:translateY(-4px);border-color:color-mix(in srgb,var(--gold) 60%,transparent);box-shadow:0 22px 44px rgba(0,0,0,.6)}
.gal-set:focus-visible{outline:none}
.gal-count{position:absolute;inset-block-end:10px;inset-inline-end:10px;padding:5px 11px;border-radius:999px;background:rgba(5,8,17,.82);border:1px solid color-mix(in srgb,var(--gold) 55%,transparent);color:var(--gold-2);font:600 13px var(--sans),sans-serif;backdrop-filter:blur(6px)}
#sys-view[dir="rtl"] .gal-count{font-family:var(--ar-sans),sans-serif}
.gal-cap{display:block;margin-top:12px}
.gal-cap span{display:block;font:600 20px/1.35 var(--serif),serif;background:linear-gradient(180deg,#fbeec4 0%,#e8c977 55%,#c99a3e 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;padding:.08em .3em .14em}
#sys-view[dir="rtl"] .gal-cap span{font:700 22px/1.6 var(--ar-serif),serif}
.gal-cap small{display:block;margin-top:4px;font:500 15px var(--sans),sans-serif;color:#d9bd7c;font-variant-numeric:tabular-nums}
/* the viewer: the signing's photos over a dark veil, its name in the gold serif, arrows and thumbnails */
.gal-view{position:fixed;inset:0;z-index:10010;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:14px;padding:22px 80px;background:rgba(3,5,12,.94);backdrop-filter:blur(10px);animation:hubIn .35s ease-out both}
.gal-view.is-leaving{opacity:0;transition:opacity .25s ease}
.gv-top{display:flex;align-items:center;gap:16px}
.gv-title{flex:1;margin:0;font:600 26px/1.3 var(--serif),serif;background:linear-gradient(180deg,#fbeec4 0%,#e8c977 55%,#c99a3e 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;padding:.06em .3em .12em}
.gal-view[dir="rtl"] .gv-title{font:700 28px/1.55 var(--ar-serif),serif}
.gv-n{color:#d9bd7c;font:500 15px var(--sans),sans-serif}
.gv-close{font-size:16px}
.gv-fig{margin:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.gv-fig img{max-width:100%;max-height:100%;min-height:0;object-fit:contain;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.7)}
.gv-fig figcaption{color:var(--gold-2);font-size:16px}
.gv-arrow{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;border:1px solid color-mix(in srgb,var(--gold) 45%,transparent);background:rgba(11,18,34,.8);color:var(--gold-2);font:400 32px/1 var(--serif),serif;cursor:pointer}
.gv-arrow:hover,.gv-arrow:focus-visible{border-color:var(--gold);background:color-mix(in srgb,var(--gold) 18%,rgba(11,18,34,.9))}
.gv-prev{inset-inline-start:16px}.gv-next{inset-inline-end:16px}
.gv-thumbs{display:flex;justify-content:center;gap:10px}
.gv-thumb{width:96px;height:64px;padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;background:#0b1222;cursor:pointer;opacity:.6}
.gv-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.gv-thumb.is-on{border-color:var(--gold);opacity:1}
.gv-thumb:hover,.gv-thumb:focus-visible{opacity:1}
@media (max-width:700px){.gal-view{padding:16px}.gv-arrow{width:42px;height:42px;font-size:26px}}
@media (prefers-reduced-motion:reduce){.gal-view{animation:none}}
/* the photo names in the older font, kept gold (2026-11-22, his "For the photos ... we need to use the older font, but
   keep the gold"): the page's own sans (Inter, IBM Plex Sans Arabic), bold, as before the gold serif, with the gold
   gradient; the count badge keeps plain light gold, not the gradient */
.gal-cap span,.gal-shot .gal-cap span,.gv-title{font:700 18px/1.45 var(--sans),sans-serif}
#sys-view[dir="rtl"] .gal-cap span{font:700 19px/1.6 var(--ar-sans),sans-serif}
.gv-title{font-size:22px}
.gal-view[dir="rtl"] .gv-title{font:700 23px/1.55 var(--ar-sans),sans-serif}
.gal-count,.gal-shot .gal-count{background:rgba(5,8,17,.82);-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:var(--gold-2);color:var(--gold-2);padding:5px 11px;display:inline-block}
/* each signing as an album in a gold frame (2026-11-22, his "a golden frame ... and a title on top, like centered"): the
   name centred over the frame in the photo names' font, kept gold, the date under it, every photo side by side */
.ga-list{display:flex;flex-direction:column;gap:26px}
.ga{position:relative;padding:22px 24px 24px;border-radius:var(--r-lg);border:1px solid color-mix(in srgb,var(--gold) 55%,transparent);
  background:linear-gradient(160deg,color-mix(in srgb,var(--gold) 9%,var(--glass)),var(--glass));
  box-shadow:0 18px 40px rgba(0,0,0,.5),inset 0 0 0 4px rgba(5,8,17,.6),inset 0 0 0 5px color-mix(in srgb,var(--gold) 22%,transparent)}
.ga-title{margin:0;text-align:center;font:700 22px/1.45 var(--sans),sans-serif;background:linear-gradient(180deg,#fbeec4 0%,#e8c977 55%,#c99a3e 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;padding:.06em .3em .12em}
#sys-view[dir="rtl"] .ga-title{font:700 23px/1.6 var(--ar-sans),sans-serif}
.ga-date{margin:2px 0 16px;text-align:center;font:500 15px var(--sans),sans-serif;color:#d9bd7c;font-variant-numeric:tabular-nums}
.ga-photos{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:14px;justify-content:center}
.ga-photos[style*="--n:1"]{grid-template-columns:minmax(0,640px)}
.ga-photos[style*="--n:2"]{grid-template-columns:repeat(2,minmax(0,520px))}
.ga-shot{display:block;padding:0;border:0;background:none;cursor:zoom-in}
.ga-shot .gal-frame{display:block;transition:transform .25s ease,border-color .25s ease}
.ga-shot:hover .gal-frame,.ga-shot:focus-visible .gal-frame{transform:translateY(-3px);border-color:color-mix(in srgb,var(--gold) 60%,transparent)}
.ga-shot:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:12px}
@media (max-width:800px){.ga-photos,.ga-photos[style*="--n:2"]{grid-template-columns:repeat(2,minmax(0,1fr))}.ga-photos[style*="--n:1"]{grid-template-columns:minmax(0,1fr)}}
/* with only signing photos left most albums hold one photo: two frames to a row, an album of two or more across both */
.ga-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.ga:has(.ga-photos:not([style*="--n:1"])){grid-column:1/-1}
.ga-photos[style*="--n:1"]{grid-template-columns:minmax(0,1fr)}
.ga-title{text-wrap:balance;min-height:2.9em;display:flex;align-items:center;justify-content:center}
@media (max-width:900px){.ga-list{grid-template-columns:minmax(0,1fr)}}
/* every photo whole, at its own shape, all at one height (2026-11-22, his "Why did you decide to distort the image and
   not scale it ... to match all of them ... you've cropped it out"): no fixed 3:2 box, no blurred side bands; each
   photo's width follows its own proportions (--r, width / height), and a row wraps when it is full */
.ga-photos,.ga-photos[style]{display:flex!important;flex-wrap:wrap;justify-content:center;gap:16px}
.ga-shot{flex:0 0 auto;height:var(--gh,340px);aspect-ratio:var(--r);max-width:100%;border-radius:10px;overflow:hidden;
  border:1px solid color-mix(in srgb,var(--gold) 35%,transparent);box-shadow:0 14px 32px rgba(0,0,0,.55);transition:transform .25s ease,border-color .25s ease}
.ga-shot img{display:block;width:100%;height:100%;object-fit:contain}
.ga-shot:hover,.ga-shot:focus-visible{transform:translateY(-3px);border-color:color-mix(in srgb,var(--gold) 70%,transparent)}
.ga-list{--gh:300px}
.ga:has(.ga-photos:not([style*="--n:1"])){--gh:360px}
@media (max-width:900px){.ga-list{--gh:240px}.ga:has(.ga-photos:not([style*="--n:1"])){--gh:240px}}
@media (max-width:600px){.ga-shot{height:auto;width:100%}}
/* one frame for every photo (2026-11-22, his "Every single picture should have the same size" and "it needs to look like
   it's uniform"): every photo sits in the same 3:2 frame, the width of a one-photo album, in every album. A photo within
   5% of 3:2 fills it (a hair trimmed at most); any other shape is shown whole on a plain navy mount, centred, never
   stretched. Under each frame its own description, centred, in the album title's gold (his "the text explaining the
   photos ... should be there") */
.ga-photos,.ga-photos[style]{container-type:inline-size;display:flex!important;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:24px 24px}
.ga-fig{--fw:100cqw;flex:0 0 auto;width:var(--fw);max-width:100%;margin:0;display:flex;flex-direction:column;align-items:stretch}
.ga:has(.ga-photos:not([style*="--n:1"])) .ga-fig{--fw:calc((100cqw - 74px) / 2)}
.ga-shot{width:100%;height:auto;aspect-ratio:3/2;max-width:100%;border-radius:10px;overflow:hidden;
  border:1px solid color-mix(in srgb,var(--gold) 35%,transparent);
  background:radial-gradient(120% 90% at 50% 45%,#0f1a33 0%,#0a1226 60%,#070d1c 100%);
  box-shadow:0 14px 32px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.03)}
.ga-shot img{display:block;width:100%;height:100%;object-fit:contain;object-position:50% 50%}
.ga-shot[data-fit="fill"] img{object-fit:cover}
.ga-shot[data-fit="mat"] img{filter:drop-shadow(0 6px 16px rgba(0,0,0,.6))}
.ga-cap{margin:12px 0 0;text-align:center;text-wrap:balance;font:700 16px/1.55 var(--sans),sans-serif;padding:.1em .4em .2em;
  background:linear-gradient(180deg,#fbeec4 0%,#e8c977 55%,#c99a3e 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
#sys-view[dir="rtl"] .ga-cap{font:700 17px/1.75 var(--ar-sans),sans-serif}
@media (max-width:900px){.ga:has(.ga-photos:not([style*="--n:1"])) .ga-fig{--fw:100cqw}}
/* every photo fills its frame (2026-11-22, his "if you cut the top, which is not needed in some of them, you can then
   expand it, make it bigger so it fits"): scaled up, never stretched, the unneeded ceiling or wall trimmed; each tall
   or wide photo keeps its people in view by its own focus point (gallery.json "focus") */
.ga-shot img,.ga-shot[data-fit] img{object-fit:cover;object-position:var(--fp,50% 50%);filter:none}
/* an album alone on its row sits in the middle (2026-11-22, his "for the ones that are alone in the year ... center
   it"): the albums flow in centred rows, two to a row, an album of two photos across the whole row */
.ga-list{display:flex!important;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:24px}
.ga-list>.ga{flex:0 0 calc(50% - 12px);min-width:0;box-sizing:border-box}
.ga-list>.ga.ga-multi{flex-basis:100%}
@media (max-width:900px){.ga-list>.ga{flex-basis:100%}}

/* Outcomes, redone (2026-11-22, his "the text needs a do-over", "no gold font, but like a color hierarchy that makes sense"):
   no gold lettering; one tone ladder on navy, strongest to quietest: the figure #ffffff, the headline #eef2f8, the body
   #b6c3d8, the country label #9fb6d6 over its partner #8593ad, the period and source #7d8aa4. Gold stays only as the
   timeline line, its markers and the source link's underline. Every card one shape: the photo a fixed band at the start,
   filled (cover), the words in the same order and the same block heights. Scoped to .oc-tl: the gallery shares .oc. */
.oc-tl{max-width:1200px}
.oc-tl .oc-year{grid-template-columns:120px minmax(0,1fr);gap:0 26px}
.oc-tl .oc-year::before{inset-inline-start:120px;background:linear-gradient(180deg,color-mix(in srgb,var(--gold) 70%,transparent),color-mix(in srgb,var(--gold) 18%,transparent))}
.oc-tl .oc-y{margin:14px 0 0;padding-inline-end:22px;font:600 26px/1 var(--sans),sans-serif;letter-spacing:.5px;color:#e8edf6;font-variant-numeric:tabular-nums}
#sys-view[dir="rtl"] .oc-tl .oc-y{font:600 26px/1 var(--sans),sans-serif}
.oc-tl .oc-y bdi{background:none;-webkit-background-clip:border-box;background-clip:border-box;color:inherit;-webkit-text-fill-color:currentColor;padding:0}
.oc-tl .oc-y::after{top:8px;width:9px;height:9px;inset-inline-end:-5px;box-shadow:0 0 0 4px #050811,0 0 10px color-mix(in srgb,var(--gold) 45%,transparent)}
.oc-tl .oc-grid{gap:16px;padding-block-end:28px}
.oc-tl .oc-card{flex-direction:row;height:auto;min-height:288px;border:1px solid rgba(140,160,200,.16);border-radius:var(--r-lg);
  background:linear-gradient(180deg,rgba(17,25,44,.92),rgba(10,16,30,.92));box-shadow:0 14px 32px rgba(0,0,0,.42)}
.oc-tl .oc-photo{position:relative;flex:0 0 360px;align-self:stretch;aspect-ratio:auto;background:#0b1222}
.oc-tl .oc-photo::before{content:none}
.oc-tl .oc-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.oc-tl .oc-body{gap:0;padding:22px 28px 18px;min-width:0}
.oc-tl .oc-label{margin:0 0 10px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font:600 12px/1.4 var(--sans),sans-serif;letter-spacing:var(--track-m);text-transform:uppercase}
#sys-view .oc-tl .oc-country{margin:0;padding:0;font:inherit;color:#9fb6d6;background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor}
.oc-tl .oc-partner{margin:0;font:500 12px/1.4 var(--sans),sans-serif;letter-spacing:.3px;text-transform:none;color:#8593ad}
.oc-tl .oc-partner::before{content:"";display:inline-block;width:3px;height:3px;border-radius:50%;background:#5d6a85;vertical-align:middle;margin-inline-end:10px}
.oc-tl .oc-fig{margin:0 0 8px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.oc-tl .oc-fig b{font:700 38px/1 var(--sans),sans-serif;color:#ffffff;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.oc-tl .oc-fig span{font:500 15px/1.3 var(--sans),sans-serif;color:#c3cee0}
.oc-tl .oc-head{margin:0 0 8px;font:600 18px/1.35 var(--sans),sans-serif;color:#eef2f8;letter-spacing:0}
.oc-tl .oc-text{margin:0 0 14px;font:400 14.5px/1.6 var(--sans),sans-serif;color:#b6c3d8}
.oc-tl .oc-meta{margin:auto 0 0;padding-top:12px;border-top:1px solid rgba(140,160,200,.12);display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;font:400 12.5px/1.4 var(--sans),sans-serif;color:#7d8aa4}
.oc-tl .oc-meta a{color:#b6c3d8;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--gold) 70%,transparent);text-underline-offset:3px}
.oc-tl .oc-meta a:hover{color:#eef2f8;text-decoration-color:var(--gold)}
#sys-view[dir="rtl"] .oc-tl .oc-label,#sys-view[dir="rtl"] .oc-tl .oc-partner{font-family:var(--ar-sans),sans-serif;letter-spacing:0}
#sys-view[dir="rtl"] .oc-tl .oc-label{font-size:14px}
#sys-view[dir="rtl"] .oc-tl .oc-country{font:700 14px/1.5 var(--ar-sans),sans-serif;letter-spacing:0;margin:0;padding:0}
#sys-view[dir="rtl"] .oc-tl .oc-partner{font-size:13.5px}
#sys-view[dir="rtl"] .oc-tl .oc-fig b{font-family:var(--ar-sans),sans-serif;letter-spacing:0}
#sys-view[dir="rtl"] .oc-tl .oc-fig span{font:500 16px/1.4 var(--ar-sans),sans-serif}
#sys-view[dir="rtl"] .oc-tl .oc-head{font:600 19px/1.5 var(--ar-sans),sans-serif}
#sys-view[dir="rtl"] .oc-tl .oc-text{font:400 15px/1.8 var(--ar-sans),sans-serif}
#sys-view[dir="rtl"] .oc-tl .oc-meta{font:400 13px/1.5 var(--ar-sans),sans-serif}
@media (max-width:1100px){.oc-tl .oc-photo{flex-basis:290px}.oc-tl .oc-card{min-height:336px}}
@media (max-width:800px){.oc-tl .oc-year{grid-template-columns:minmax(0,1fr)}.oc-tl .oc-card{flex-direction:column;height:auto}.oc-tl .oc-photo{flex:none;aspect-ratio:16/9}}
/* the two wide partner photos keep their hospital's sign in the frame */
.oc-tl .oc-photo img[src$="uk-kings.jpg"]{object-position:88% center}
.oc-tl .oc-photo img[src$="canada-princess-margaret.jpg"]{object-position:62% center}
/* the figure a calmer size, so it leads without shouting, and a word figure reads as one phrase with its unit (2026-11-22,
   his "it says first and then a small word next to it. Why is the numbers huge?") */
.oc-tl .oc-fig{align-items:baseline;gap:8px}
.oc-tl .oc-fig b{font-size:28px}
.oc-tl .oc-fig span{font-size:16px;color:#dbe3f0}
#sys-view[dir="rtl"] .oc-tl .oc-fig span{font-size:17px}

/* International Instruments in Progress (2026-11-22, his "This should show what we are working on in progress, not a
   definition"; rebuilt the same day to the plan he approved, "Yes, build it"; renderInProgress in system.js). Scoped to
   .ipw. Five sizes of type only: 40 the headline, 22 the section headings and the station figures, 18 a card's name, 16
   reading text, 14 labels (16 for reading text after the UI/UX check of 2026-11-22, his "Yes, apply them"); serif for the headline and section headings, sans for the rest; no gold lettering. One spacing
   scale: 8, 16, 24, 40, 64. The site's own colours for the four steps: grey, two blues, gold for ready to sign. */
.ipw{--ip-fig:#ffffff;--ip-head:#eef2f8;--ip-body:#b9c6d9;--ip-label:#8d9db7;--ip-quiet:#7f8fab;
  --ip-card:#0c1527;--ip-card-2:#101b31;--ip-rule:rgba(150,172,210,.15);--ip-rule-2:rgba(150,172,210,.28);
  --st-draft:#97a6c4;--st-sent:#8fb8f2;--st-recv:#4a86e0;--st-ready:#f1b553;--st-none:#5c6a85;
  --ip-ease:cubic-bezier(.2,.7,.2,1);
  max-width:1360px;margin:0 auto;color:var(--ip-body);font-family:var(--sans),'Segoe UI',sans-serif;font-size:16px;line-height:1.6}
#sys-view[dir="rtl"] .ipw{font-family:var(--ar-sans),sans-serif;line-height:1.75}
.ipw [data-stage="draft"]{--st:var(--st-draft)}.ipw [data-stage="sent"]{--st:var(--st-sent)}
.ipw [data-stage="recv"]{--st:var(--st-recv)}.ipw [data-stage="ready"]{--st:var(--st-ready)}.ipw [data-stage="none"]{--st:var(--st-none)}
.ipw :focus-visible{outline:2px solid var(--ip-head);outline-offset:2px}

/* the headline: the figure and what it is, in one serif line; the register's date under it */
.ipw-head{padding:24px 0 40px}
.ipw-lead{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px;margin:0;font:600 40px/1.2 var(--serif),serif;color:var(--ip-head)}
#sys-view[dir="rtl"] .ipw-lead{font:700 40px/1.35 var(--ar-serif),serif}
.ipw-lead b{font:700 40px/1 var(--sans),sans-serif;color:var(--ip-fig);font-variant-numeric:tabular-nums;min-width:1.3ch}
.ipw-asof{margin:8px 0 0;font-size:14px;color:var(--ip-quiet)}

/* a section: its heading (serif, 22), a line under it, then its content 24 below */
.ipw-part{padding-bottom:64px}
.ipw-sechead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}
.ipw-h{margin:0;font:600 22px/1.3 var(--serif),serif;color:var(--ip-head)}
#sys-view[dir="rtl"] .ipw-h{font:700 22px/1.5 var(--ar-serif),serif}
.ipw-lede{margin:8px 0 0;font-size:16px;color:var(--ip-body)}
.ipw-cap{margin:16px 0 0;font-size:14px;color:var(--ip-quiet)}
.ipw-all{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border:1px solid var(--ip-rule-2);border-radius:20px;
  background:transparent;color:var(--ip-body);font:500 14px/1 inherit;font-family:inherit;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}
.ipw-all b{font-weight:700;color:var(--ip-head);font-variant-numeric:tabular-nums}
.ipw-all:hover{border-color:var(--ip-head);color:var(--ip-head)}
.ipw-all[aria-pressed="true"]{background:var(--ip-head);border-color:var(--ip-head);color:var(--bg)}
.ipw-all[aria-pressed="true"] b{color:var(--bg)}

/* the road: a rail with a mark for each step over four stations, and the papers travelling to them; beside it, off the
   road, the papers whose stage is not recorded */
.ipw-roadbox{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,1fr);gap:24px;align-items:end}
.ipw-track{position:relative;height:24px;margin:0 0 16px}
.ipw-rail{position:absolute;inset-inline:0;top:11px;height:2px;border-radius:1px;background:var(--ip-rule-2);transform-origin:left}
[dir=rtl] .ipw-rail{transform-origin:right}
.ipw-mark{position:absolute;top:4px;inset-inline-start:var(--at);width:16px;height:16px;margin-inline-start:-8px;border-radius:50%;
  background:var(--bg);border:2px solid var(--st);box-sizing:border-box}
.ipw-mark[data-stage="ready"]{top:1px;width:22px;height:22px;margin-inline-start:-11px;background:color-mix(in srgb,var(--st) 25%,var(--bg))}
.ipw-dots{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.ipw-dot{position:absolute;inset:0;--tx:var(--to);transform:translateX(var(--tx))}
[dir=rtl] .ipw-dot{--tx:calc(var(--to) * -1)}
.ipw-dot i{position:absolute;top:9px;inset-inline-start:0;width:6px;height:6px;margin-inline-start:-3px;border-radius:50%;background:var(--st);opacity:0}
.ipw-road{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.ipw-st{display:flex}
.ipw-sbtn{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;min-height:100%;padding:16px;
  border:1px solid var(--ip-rule);border-radius:12px;background:var(--ip-card);color:var(--ip-body);font:inherit;text-align:start;cursor:pointer;
  transition:border-color .2s,background-color .2s,transform .2s var(--ip-ease)}
.ipw-sbtn::after{content:"";position:absolute;inset-inline:16px;top:0;height:2px;border-radius:0 0 2px 2px;background:var(--st)}
.ipw-sbtn:hover{border-color:var(--ip-rule-2);background:var(--ip-card-2);transform:translateY(-2px)}
.ipw-sbtn[aria-pressed="true"]{background:color-mix(in srgb,var(--st) 11%,var(--ip-card));border-color:color-mix(in srgb,var(--st) 70%,transparent)}
.ipw-unset{border-style:dashed;height:auto;align-self:stretch}
.ipw-unset::after{display:none}
.ipw-sbtn b{font:700 22px/1.2 var(--sans),sans-serif;color:var(--ip-fig);font-variant-numeric:tabular-nums}
.ipw-sn{position:absolute;inset-inline-end:16px;top:16px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;
  border:1px solid var(--st);color:var(--st);font:700 14px/1 var(--sans),sans-serif}
.ipw-sl{font-weight:600;font-size:16px;color:var(--ip-head)}
.ipw-sd{font-size:14px;line-height:1.45;color:var(--ip-label)}

/* the moving icon at each station (still for reduced motion) */
.ipw-ico{display:block;width:40px;height:40px;margin-bottom:8px}
.ipw-ico svg{width:100%;height:100%;overflow:visible}
.ipw-ico .ic-paper{fill:color-mix(in srgb,var(--st) 16%,transparent);stroke:var(--st);stroke-width:2;stroke-linejoin:round}
.ipw-ico .ic-line{fill:none;stroke:var(--st);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ipw-ico .ic-pen{fill:var(--st)}
.ipw-ico .ic-seal{fill:color-mix(in srgb,var(--st) 30%,transparent);stroke:var(--st);stroke-width:2}
.ipw-ico .ic-dash{fill:none;stroke:var(--st);stroke-width:2;stroke-dasharray:4 4}

/* the two rankings, side by side, one source line under both */
.ipw-ins{padding-bottom:64px}
.ipw-ins-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.ipw-ins .viz{margin:0;display:flex;flex-direction:column}
.ipw-ins .viz h2{font:600 17px/1.45 var(--sans),sans-serif;color:var(--ip-head);background:none;-webkit-text-fill-color:var(--ip-head);padding:0;margin:0}
#sys-view[dir="rtl"] .ipw-ins .viz h2{font:600 17px/1.65 var(--ar-sans),sans-serif}
.ipw-ins .viz-sub,.ipw-ins .viz-cap{font-size:14px}
.ipw-ins .viz-src{margin:16px 0 0;font-size:14px;color:var(--ip-quiet)}
.ipw-ins .lolli-line{clip-path:inset(0 0 0 0);transition:clip-path .6s var(--ip-ease)}
.ipw-ins:not(.is-in) .lolli-line{clip-path:inset(0 100% 0 0)}
[dir=rtl] .ipw-ins:not(.is-in) .lolli-line{clip-path:inset(0 0 0 100%)}
.ipw-ins .lolli li:nth-child(2) .lolli-line{transition-delay:.04s}.ipw-ins .lolli li:nth-child(3) .lolli-line{transition-delay:.08s}
.ipw-ins .lolli li:nth-child(4) .lolli-line{transition-delay:.12s}.ipw-ins .lolli li:nth-child(n+5) .lolli-line{transition-delay:.16s}

/* the papers: a filter bar that stays in view under the page's bar, then the cards */
.ipw-papers .ipw-h{margin-bottom:16px}
.ipw-filters{position:sticky;top:var(--ip-top,68px);z-index:1;margin:0 -16px 24px;padding:16px;border-bottom:1px solid var(--ip-rule);
  background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.ipw-countries{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ipw-flabel{margin-inline-end:8px;font-weight:600;font-size:14px;color:var(--ip-label)}
.ipw-chip{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 16px;border:1px solid var(--ip-rule);border-radius:18px;
  background:transparent;color:var(--ip-body);font-family:inherit;font-weight:500;font-size:14px;line-height:1;cursor:pointer;transition:border-color .2s,background-color .2s,color .2s}
.ipw-chip b{font-weight:600;font-size:14px;color:var(--ip-quiet);font-variant-numeric:tabular-nums}
.ipw-chip:hover{border-color:var(--ip-rule-2);color:var(--ip-head)}
.ipw-chip[aria-pressed="true"]{background:var(--ip-head);border-color:var(--ip-head);color:var(--bg)}
.ipw-chip[aria-pressed="true"] b{color:color-mix(in srgb,var(--bg) 70%,transparent)}
.ipw-chip.is-extra{display:none}
.ipw.more-countries .ipw-chip.is-extra{display:inline-flex}
.ipw-toggle{border-style:dashed;color:var(--ip-label)}
.ipw-fline{display:flex;align-items:center;gap:16px;margin-top:8px;min-height:32px}
.ipw-stagepill{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 8px 0 16px;border:1px solid color-mix(in srgb,var(--st,var(--ip-head)) 70%,transparent);
  border-radius:16px;background:color-mix(in srgb,var(--st,var(--ip-head)) 14%,transparent);color:var(--ip-head);font:600 14px/1 inherit;font-family:inherit;cursor:pointer}
[dir=rtl] .ipw-stagepill{padding:0 16px 0 8px}
.ipw-stagepill[hidden]{display:none}
.ipw-stagepill .ico{width:14px;height:14px}
.ipw-count{margin:0;font-size:14px;color:var(--ip-label)}

/* the cards: one shape on a grid; name first, then country and kind, the four steps, the title, what it is for, its aims */
.ipw-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.ipw-card{display:flex;flex-direction:column;gap:16px;min-width:0;padding:24px 24px 16px;border:1px solid var(--ip-rule);border-radius:16px;
  background:linear-gradient(180deg,var(--ip-card-2),var(--ip-card) 46%);transition:border-color .2s}
.ipw-card:hover{border-color:var(--ip-rule-2)}
.ipw-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-height:calc(2 * 18px * 1.4 + 30px)}
#sys-view[dir="rtl"] .ipw-top{min-height:calc(2 * 18px * 1.6 + 32px)}
.ipw-who{min-width:0}
.ipw-who h3{margin:0;font:600 18px/1.4 var(--sans),sans-serif;color:var(--ip-head);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#sys-view[dir="rtl"] .ipw-who h3,.ipw-who h3[dir="rtl"]{font:600 18px/1.6 var(--ar-sans),sans-serif}
.ipw-place{margin:4px 0 0;font-size:14px;color:var(--ip-label)}
.ipw-kind{flex:none;max-width:46%;padding:4px 8px;border:1px solid var(--ip-rule-2);border-radius:6px;font-size:14px;line-height:1.35;color:var(--ip-body);text-align:center}

.ipw-stage{padding:16px;border-radius:12px;background:color-mix(in srgb,var(--st) 7%,transparent);border:1px solid color-mix(in srgb,var(--st) 22%,transparent)}
.ipw-where{margin:0 0 16px;font-weight:600;font-size:14px;line-height:1.4;color:var(--ip-head)}
.ipw-stage[data-stage="none"] .ipw-where{color:var(--ip-label);font-weight:500}
.ipw-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0;list-style:none}
.ipw-steps li{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.ipw-steps li+li::before{content:"";position:absolute;top:6px;inset-inline-end:50%;width:100%;height:2px;background:var(--ip-rule-2)}
.ipw-steps li.is-done+li::before{background:var(--st)}
.ipw-steps i{position:relative;z-index:1;width:10px;height:10px;margin-top:1px;border-radius:50%;border:2px solid var(--ip-rule-2);background:var(--ip-card)}
.ipw-steps .is-done i{background:var(--st);border-color:var(--st)}
.ipw-steps .is-now i{width:14px;height:14px;margin-top:-1px;background:var(--st);border-color:var(--st);box-shadow:0 0 0 4px color-mix(in srgb,var(--st) 24%,transparent)}
.ipw-steps span{font-size:14px;line-height:1.3;color:var(--ip-quiet)}
.ipw-steps .is-done span{color:var(--ip-label)}
.ipw-steps .is-now span{font-weight:700;color:var(--ip-head)}
.ipw-steps.is-unset i{border-style:dashed;border-color:var(--st-none)}
.ipw-steps.is-unset li+li::before{background:repeating-linear-gradient(90deg,var(--st-none) 0 4px,transparent 4px 8px)}

.ipw-title{margin:0;font-size:16px;line-height:1.6;color:var(--ip-head);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(3 * 1.6em)}
#sys-view[dir="rtl"] .ipw-title{line-height:1.75;min-height:calc(3 * 1.75em)}
.ipw-sec h4{margin:0 0 8px;font-weight:600;font-size:14px;line-height:1.4;color:var(--ip-label)}
.ipw-note{font-weight:400;color:var(--ip-quiet)}
.ipw-sum{margin:0;font-size:16px;line-height:1.6;color:var(--ip-body);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(2 * 1.6em)}
#sys-view[dir="rtl"] .ipw-sum{line-height:1.8;min-height:calc(2 * 1.8em)}
.ipw-card.is-open .ipw-sum,.ipw-card.is-open .ipw-title{display:block;-webkit-line-clamp:unset;overflow:visible}
.ipw-aims{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;font-family:var(--ar-sans),sans-serif}
.ipw-aims li{max-width:100%;box-sizing:border-box;padding:4px 8px;border-radius:6px;background:color-mix(in srgb,var(--ip-head) 6%,transparent);border:1px solid var(--ip-rule);font-size:14px;line-height:1.5;color:var(--ip-body)}
.ipw-aims li.is-extra,.ipw-aims li[hidden]{display:none}
.ipw-aims .ipw-plus{background:none;border-style:dashed;color:var(--ip-label);font-family:var(--sans),sans-serif}
#sys-view[dir="rtl"] .ipw-aims .ipw-plus{font-family:var(--ar-sans),sans-serif}
.ipw-card:not(.is-open) .ipw-aims{min-height:calc(2 * (14px * 1.5 + 10px) + 8px);align-content:flex-start}
.ipw-card:not(.is-open) .ipw-empty{min-height:calc(2 * (14px * 1.5 + 10px) + 8px)}
.ipw-empty{margin:0;font-size:14px;color:var(--ip-quiet)}
.ipw-more{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:32px;margin-top:-8px;padding:0 2px;border:0;background:none;
  color:var(--ip-head);font-family:inherit;font-weight:600;font-size:14px;line-height:1;cursor:pointer;text-decoration:underline;text-decoration-color:var(--ip-rule-2);text-underline-offset:4px}
.ipw-more .ico{transform:rotate(90deg);transition:transform .2s ease}
.ipw-card.is-open .ipw-more .ico{transform:rotate(-90deg)}
.ipw-more:hover{text-decoration-color:var(--ip-head)}
.ipw-more.is-idle{visibility:hidden}

.ipw-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:auto;padding-top:16px;border-top:1px solid var(--ip-rule)}
.ipw-meta{display:flex;flex-direction:column;gap:4px;margin:0;font-size:14px;line-height:1.4;color:var(--ip-quiet)}
.ipw-id{font-weight:600;color:var(--ip-label);font-variant-numeric:tabular-nums}
.ipw-globe{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border:1px solid var(--ip-rule-2);border-radius:10px;
  background:transparent;color:var(--ip-head);font-family:inherit;font-weight:600;font-size:14px;line-height:1;cursor:pointer;transition:border-color .2s,background-color .2s}
.ipw-globe .ico{width:16px;height:16px}
.ipw-globe:hover{border-color:color-mix(in srgb,var(--gold) 70%,transparent);background:color-mix(in srgb,var(--gold) 8%,transparent)}
.ipw-none{grid-column:1/-1;padding:40px 0;text-align:center;color:var(--ip-label)}

/* motion (UI/UX check 2026-11-22, his "Yes, apply them"): 300-700 ms each, a 30 ms stagger, transform and opacity only.
   The rail draws in, the papers travel to their stations and fade into the mark, the stations rise; each icon plays once
   as the page opens and again when its station is hovered (system.js), never on a loop. Nothing moves until the page
   is in view (.is-go); the figures stay hidden until then, so no station reads 0. */
.ipw-lead b,.ipw-roadbox b{transition:opacity .3s ease-out}
.ipw:not(.is-go) .ipw-lead b,.ipw:not(.is-go) .ipw-roadbox b{opacity:0}
@media (prefers-reduced-motion:no-preference){
 .ipw-rail{animation:ipRail .5s var(--ip-ease) both}
 .ipw-mark{animation:ipMark .3s var(--ip-ease) both}
 .ipw-mark:nth-of-type(2){animation-delay:.15s}.ipw-mark:nth-of-type(3){animation-delay:.25s}.ipw-mark:nth-of-type(4){animation-delay:.35s}.ipw-mark:nth-of-type(5){animation-delay:.45s}
 .ipw-dot{animation:ipTravel .7s var(--ip-ease) both;animation-delay:calc(.3s + var(--d))}
 .ipw-dot i{animation:ipDot .7s ease-out both;animation-delay:calc(.3s + var(--d))}
 .ipw-st{animation:ipRise .45s var(--ip-ease) both}
 .ipw-st:nth-child(2){animation-delay:.06s}.ipw-st:nth-child(3){animation-delay:.12s}.ipw-st:nth-child(4){animation-delay:.18s}
 .ipw-unset{animation:ipRise .45s var(--ip-ease) .24s both}
 .ipw-ico .ic-write,.ipw-ico .ic-sign{stroke-dasharray:40;animation:icWrite .7s ease-out .5s both}
 .ipw-ico .ic-pen-move{animation:icPen .7s ease-out .5s both;transform-origin:35px 32px}
 .ipw-ico .ic-fly{animation:icFly .6s ease-out .5s both}
 .ipw-ico .ic-trail{animation:icTrail .6s ease-out .5s both}
 .ipw-ico .ic-drop{animation:icDrop .6s ease-out .5s both}
 .ipw-ico .ic-tick{stroke-dasharray:12;animation:icTick .5s ease-out .9s both}
}
.ipw:not(.is-go) .ipw-rail,.ipw:not(.is-go) .ipw-mark,.ipw:not(.is-go) .ipw-dot,.ipw:not(.is-go) .ipw-dot i,.ipw:not(.is-go) .ipw-st,
.ipw:not(.is-go) .ipw-unset,.ipw:not(.is-go) .ipw-ico *{animation-play-state:paused}
@keyframes ipRail{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes ipMark{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
@keyframes ipTravel{from{transform:translateX(0)}to{transform:translateX(var(--tx))}}
@keyframes ipDot{0%{opacity:0}15%,80%{opacity:1}100%{opacity:0}}
@keyframes ipRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes icWrite{from{stroke-dashoffset:40}to{stroke-dashoffset:0}}
@keyframes icPen{from{transform:translate(-6px,-14px)}to{transform:none}}
@keyframes icFly{from{transform:translate(-4px,4px);opacity:.4}to{transform:none;opacity:1}}
@keyframes icTrail{from{opacity:0;transform:translateX(4px)}to{opacity:1;transform:none}}
@keyframes icDrop{from{transform:translateY(-6px);opacity:0}to{transform:none;opacity:1}}
@keyframes icTick{from{stroke-dashoffset:12}to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.ipw *{transition:none!important}}

@media (max-width:1180px){.ipw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ipw-roadbox{grid-template-columns:minmax(0,1fr)}.ipw-unset{flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap}.ipw-unset .ipw-ico{margin:0}}
@media (max-width:760px){.ipw-grid,.ipw-ins-row{grid-template-columns:minmax(0,1fr)}.ipw-road{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ipw-track{display:none}.ipw-lead,.ipw-lead b,#sys-view[dir="rtl"] .ipw-lead{font-size:30px}.ipw-sechead{flex-direction:column;align-items:flex-start}}
