@font-face{font-family:"Hafs";src:url("/assets/fonts/uthmanic_hafs_v20.woff2") format("woff2");font-display:block}
@font-face{font-family:"Aref Ruqaa";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/aref-ruqaa-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:"Aref Ruqaa";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/aref-ruqaa-400-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Aref Ruqaa";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/aref-ruqaa-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:"Aref Ruqaa";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/aref-ruqaa-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:"Aref Ruqaa";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/aref-ruqaa-700-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Aref Ruqaa";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/aref-ruqaa-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:"Cairo";font-style:normal;font-weight:400 700;font-display:swap;src:url("/assets/fonts/cairo-wght-200-1000-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:"Cairo";font-style:normal;font-weight:400 700;font-display:swap;src:url("/assets/fonts/cairo-wght-200-1000-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Cairo";font-style:normal;font-weight:400 700;font-display:swap;src:url("/assets/fonts/cairo-wght-200-1000-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:"Scheherazade New";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/scheherazade-new-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:"Scheherazade New";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/scheherazade-new-400-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Scheherazade New";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/scheherazade-new-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:"Scheherazade New";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/scheherazade-new-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:"Scheherazade New";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/scheherazade-new-500-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Scheherazade New";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/scheherazade-new-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:"Scheherazade New";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/scheherazade-new-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:"Scheherazade New";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/scheherazade-new-600-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Scheherazade New";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/scheherazade-new-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:"Scheherazade New";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/scheherazade-new-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:"Scheherazade New";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/scheherazade-new-700-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Scheherazade New";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/scheherazade-new-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}
:root{
  --ink:#1E2430;--ink2:#5B6270;--line:#E4E1DA;--paper:#FFFDF8;--gold:#8A5A1E;--ring:#2E3E8F;
  --rest:drop-shadow(0 1px 1px rgba(20,24,32,.12)) drop-shadow(-3px 5px 5px rgba(20,24,32,.10)) drop-shadow(-9px 16px 14px rgba(20,24,32,.13));
  --lift:drop-shadow(0 1px 1px rgba(20,24,32,.10)) drop-shadow(-5px 10px 8px rgba(20,24,32,.10)) drop-shadow(-15px 30px 22px rgba(20,24,32,.15));
  --sheet:0 1px 1px rgba(20,24,32,.10),0 4px 10px rgba(20,24,32,.08),-10px 22px 40px -10px rgba(20,24,32,.22);
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  --s:1;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;height:100%;background:#fff;color:var(--ink);font-family:"Scheherazade New",Cairo,serif;-webkit-text-size-adjust:100%}
html,body{overflow:hidden}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--ring);outline-offset:3px}
.paper{--ring:#1E2430}
h2[tabindex="-1"]:focus{outline:none}
button{font-family:inherit}

/* ---------- desk ---------- */
#desk{position:fixed;inset:0;overflow:hidden;background:radial-gradient(130% 115% at 60% 38%,#FFFFFF 0%,#FFFFFF 58%,#F2F1ED 100%)}
.win{position:absolute;inset:-12%;pointer-events:none;background:
  linear-gradient(90deg,transparent 0 31%,rgba(30,40,60,.045) 31% 34.5%,transparent 34.5% 66%,rgba(30,40,60,.04) 66% 69.5%,transparent 69.5%),
  linear-gradient(0deg,transparent 0 42%,rgba(30,40,60,.04) 42% 45.5%,transparent 45.5%);
  filter:blur(8px);transform:skewX(-14deg) rotate(-3deg);animation:drift 60s ease-in-out infinite alternate}
@keyframes drift{from{translate:-5vw 0}to{translate:6vw 2vh}}
.badge{position:fixed;left:14px;bottom:12px;z-index:6;background:#fff;color:var(--ink2);border:1px solid var(--line);font:600 13.2px/1.4 "Scheherazade New",Cairo,serif;padding:2px 10px;border-radius:99px;rotate:-2deg;box-shadow:0 2px 6px rgba(20,24,32,.10)}

.scene{position:absolute;left:50%;top:50%;width:1280px;height:740px;margin:-370px 0 0 -640px;transform:scale(var(--s))}
.slot{--ms:1;position:absolute;left:calc(var(--x)*1px);top:calc(var(--y)*1px);width:calc(var(--w)*1px);height:calc(var(--h)*1px);transition:scale .4s ease}
.scene.dim .slot:not(.cur){scale:.985}
.js:not(.js-fail) .slot:not(.placed)>*{opacity:0}
.slot>*{filter:var(--rest)}

/* ---------- objects (shared) ---------- */
.obj{appearance:none;border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;text-align:start;display:block;position:relative;width:100%;height:100%;cursor:pointer;rotate:var(--rot,0deg);filter:var(--rest);transition:translate .28s cubic-bezier(.3,.8,.3,1),scale .28s,rotate .28s,filter .28s;-webkit-tap-highlight-color:transparent}
@media (hover:hover){.obj:hover{translate:0 -4px;scale:1.015;rotate:calc(var(--rot,0deg)*.5);filter:var(--lift)}.obj:hover .tag{translate:0 -2px}}
.obj:focus-visible{translate:0 -4px;scale:1.015;filter:var(--lift);outline:3px solid var(--ring);outline-offset:10px;border-radius:8px}
.obj.away{visibility:hidden}
.bd{position:absolute;left:0;top:0;width:calc(var(--w)*1px);height:calc(var(--h)*1px);display:block}
.bd>*,.en>*{position:absolute;display:block}
.flyer{position:fixed!important;left:0;top:0;z-index:2;margin:0;pointer-events:none;rotate:none!important;translate:none!important;scale:none!important;transition:none!important;cursor:default;will-change:transform}
.tag{position:absolute;z-index:3;background:#fff;border:1px solid var(--line);color:var(--ink);font:400 20px/1 "Aref Ruqaa",serif;padding:6px 15px 9px;border-radius:3px;rotate:var(--tr,-3deg);box-shadow:0 1px 1px rgba(20,24,32,.08),-3px 6px 10px rgba(20,24,32,.12);white-space:nowrap;transition:translate .28s}
.flyer .tag{opacity:0}
.tag::before{content:"";position:absolute;top:-6px;left:50%;width:30px;height:10px;margin-left:-15px;background:var(--tape,#E8B04A);opacity:.88;rotate:-4deg}
.js:not(.js-fail) .scene:not(.ready) .tag{opacity:0}
.scene.ready .tag{animation:tagin .7s cubic-bezier(.3,1.5,.5,1) both}
.scene.ready .o-articles .tag{animation-delay:.08s}.scene.ready .o-books .tag{animation-delay:.16s}.scene.ready .o-courses .tag{animation-delay:.24s}.scene.ready .o-qa .tag{animation-delay:.32s}.scene.ready .o-projects .tag{animation-delay:.4s}
@keyframes tagin{from{opacity:0;rotate:calc(var(--tr,-3deg) + 12deg);scale:.9}to{opacity:1}}

/* 1. business card */
.o-about .tag{right:20px;bottom:-20px;--tape:#C9A24A}
.bc-back{left:0;top:0;width:360px;height:206px;border-radius:10px;background:var(--grain),linear-gradient(135deg,#27345C,#1F2A44 60%,#19223A);rotate:7deg;translate:-16px 12px;box-shadow:0 1px 1px rgba(20,24,32,.2),-4px 6px 10px rgba(20,24,32,.16);display:grid;place-items:center}
.bc-ring{display:grid;place-items:center;width:92px;height:92px;border-radius:50%;border:1.5px solid #C9A24A;font:700 56px/1 "Aref Ruqaa",Cairo;color:#C9A24A;font-style:normal;box-shadow:inset 0 0 0 5px #1F2A44,inset 0 0 0 6px rgba(201,162,74,.5)}
.bc-face{left:0;top:0;width:360px;height:206px;border-radius:9px;background:var(--grain),linear-gradient(160deg,#fff,#FFFDF8 40%,#FBF6EA);border:1px solid #E9E3D4;box-shadow:inset 0 1px 0 #fff;overflow:hidden}
.bc-face>*{position:absolute;display:block}
.bc-av{right:20px;top:18px;width:56px;height:56px;border-radius:50%;background:#E8EDF7;border:1.5px solid #1F2A44;display:grid!important;place-items:center;font:700 32px/1 "Aref Ruqaa",Cairo;color:#1F2A44}
.bc-t{right:86px;top:24px;font:600 14.9px/1.5 "Scheherazade New",Cairo,serif;color:var(--gold);width:240px}
.bc-t::after{content:"";display:block;width:44px;height:2px;background:#C9A24A;margin-top:5px}
.bc-n{right:16px;left:16px;top:98px}
.bc-av svg{width:38px;height:38px}
.bc-ring svg{width:60px;height:60px}
.bc-n img{display:block;width:100%;height:auto}
.bc-now{right:20px;bottom:17px;display:flex!important;align-items:center;gap:8px;font:600 14.3px/1.5 "Scheherazade New",Cairo,serif;color:#17573C}
.bc-ic{left:16px;top:20px;display:flex!important;gap:6px}
.bc-ic svg{width:26px;height:26px;padding:5px;border-radius:50%;border:1px solid #D9D3C3;color:var(--ink2);background:#fff}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#12A06A;animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(18,160,106,.55)}70%,100%{box-shadow:0 0 0 9px rgba(18,160,106,0)}}

/* 2. verse card */
.verse-card{position:relative;width:100%;height:100%;rotate:1.5deg;background:var(--grain),#FFFDF6;border:1px solid #EAE3D2;border-radius:3px;display:grid;place-items:center;padding:16px 20px;color:var(--ink);text-align:center}
.verse-card::before{content:"";position:absolute;inset:7px;border:1px solid #C9A24A;border-radius:2px;pointer-events:none}
.vc-in{display:block}
.verse-card .ayah{font-family:"Hafs","Scheherazade New",serif;font-size:26px;line-height:1.95;color:var(--ink)}
.verse-card .ayah-ref{display:block;font:600 14.3px/1.6 "Scheherazade New",Cairo,serif;color:#6B4A17}

/* 3. notebook: an article draft in handwriting */
.o-articles .bd{translate:calc(95px*var(--ms,1)) 0}
.o-articles .tag{right:121px;top:-16px;bottom:auto;--tape:#B23A2E}
.nb-cv{left:0;top:0;width:190px;height:290px;border-radius:7px 3px 3px 7px;background:var(--grain),linear-gradient(140deg,#33605A,#1E3F3A);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.nb-stk{left:8px;top:7px;width:182px;height:276px;border-radius:3px 0 0 3px;background:#E9E3D4;box-shadow:0 1px 0 #D8D0BD,0 2px 0 #F6F2E8}
.nb-r,.nb-l{top:9px;width:181px;height:270px;overflow:hidden;color:#26365E;background:repeating-linear-gradient(180deg,transparent 0 20px,rgba(96,140,180,.28) 20px 21px) 0 13px/100% 252px no-repeat,var(--grain),#FFFDF6}
.nb-r{left:0;border-radius:0 3px 3px 0}
.nb-l{left:9px;border-radius:3px 0 0 3px;transform-origin:100% 50%;transform:perspective(900px) rotateY(0deg);transition:transform .35s cubic-bezier(.3,.8,.3,1)}
.nb-r::before,.nb-l::before{content:"";position:absolute;top:0;bottom:0;right:24px;width:1px;background:rgba(190,70,58,.42)}
.nb-r::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(60,50,30,.17),transparent 16%)}
.nb-l::after{content:"";position:absolute;inset:0;background:linear-gradient(270deg,rgba(60,50,30,.17),transparent 16%)}
.nb-ink{position:absolute;left:0;top:0;display:block;overflow:visible}
.nb-ink use{opacity:.8}
.nb-ul,.nb-red{fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.nb-ul{stroke:#26365E;opacity:.75}
.nb-red{stroke:#B23A2E;opacity:.85}
.nb-t{position:absolute;right:30px;top:13px;display:block;font:400 21px/21px "Aref Ruqaa",serif;color:#1E2C52;text-align:right;white-space:nowrap}
.nb-gut{opacity:0;left:178px;top:9px;width:24px;height:270px;background:linear-gradient(90deg,transparent,rgba(50,40,25,.16) 44%,rgba(50,40,25,.28) 50%,rgba(50,40,25,.16) 56%,transparent)}
.nb-rb{left:178px;top:236px;width:10px;height:70px;background:linear-gradient(90deg,#8C2820,#B83C30 45%,#8C2820);clip-path:polygon(0 0,100% 0,100% 100%,50% 88%,0 100%);box-shadow:0 1px 2px rgba(0,0,0,.2)}
/* closed: the front cover (a leaf hinged on the spine, right edge in Arabic binding) lies over the pages; it swings to the right when opened */
.nb-fc{left:190px;top:0;width:190px;height:290px;transform-origin:0 50%;transform-style:preserve-3d;transform:perspective(1200px) rotateY(-180deg)}
.nb-fc span{position:absolute;display:block}
.nb-fi,.nb-fo{left:0;top:0;width:190px;height:290px;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.nb-fi{border-radius:3px 7px 7px 3px;background:var(--grain),linear-gradient(140deg,#33605A,#1E3F3A);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.nb-fi .nb-stk{left:0;border-radius:0 3px 3px 0}
.nb-fo{transform:rotateY(180deg);border-radius:7px 3px 3px 7px;background:linear-gradient(90deg,transparent 175px,rgba(0,0,0,.24) 175px 176px,rgba(255,255,255,.07) 176px 178px,rgba(0,0,0,.14) 178px),var(--grain),linear-gradient(140deg,#3B6B64,#1E3F3A);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.nb-fo::before{content:"";position:absolute;left:12px;top:12px;right:26px;bottom:12px;border:1px solid rgba(0,0,0,.26);border-radius:3px;box-shadow:0 1px 0 rgba(255,255,255,.07),inset 0 1px 0 rgba(255,255,255,.07)}
.nb-fc .nb-lb{left:34px;top:62px;width:108px;height:60px;border-radius:3px;background:var(--grain),#F7F1E1;box-shadow:0 1px 1px rgba(0,0,0,.3),0 2px 5px rgba(0,0,0,.18);display:grid;place-items:center}
.nb-lb::before{content:"";position:absolute;inset:5px;border:1px solid rgba(178,58,46,.4);border-radius:2px}
.nb-lb b{font:400 25px/1 "Aref Ruqaa",serif;color:#1E2C52;padding-bottom:4px}
.nb-el{left:22px;top:-3px;width:8px;height:296px;border-radius:2px;background:linear-gradient(90deg,#6A1C16,#A1342A 45%,#6A1C16);box-shadow:0 1px 2px rgba(0,0,0,.35)}

/* pen / glasses / cup */
.s-pen .pen{display:block;rotate:-17deg}
.glasses{display:block;rotate:-8deg}
.steam path{animation:steam 4.8s ease-out infinite}
.steam path:nth-child(2){animation-delay:1.5s}.steam path:nth-child(3){animation-delay:3s}
@keyframes steam{0%{opacity:0;transform:translateY(8px)}25%{opacity:.5}100%{opacity:0;transform:translateY(-14px)}}
.scene:not(.ready) .steam path{animation:none}
.cup{display:block}

/* 4. hardcover book (spine on the right) */
.o-books .tag{right:-6px;bottom:-24px;--tape:#9E2A2B}
.o-books .bd{perspective:1100px;perspective-origin:100% 50%}
.bk2{left:34px;top:20px;width:224px;height:314px;rotate:5deg;border-radius:3px 6px 6px 3px;background:var(--grain),linear-gradient(100deg,#B5523B,#A94632 60%,#97392A);box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.bk2>*{position:absolute;display:block}
.bk2-pg{left:-5px;top:3px;bottom:-5px;width:5px;background:repeating-linear-gradient(90deg,#F4EEDF 0 1px,#E3DAC6 1px 2px)}
.bk2-gl{inset:12px 22px 12px 12px;border:1.5px solid #D9B26A;opacity:.7;border-radius:2px}
.bk-el{left:0;top:5px;width:7px;height:315px;background:repeating-linear-gradient(90deg,#F4EEDF 0 1px,#E3DAC6 1px 2px);border-radius:2px 0 0 2px}
.bk-eb{left:3px;top:313px;width:222px;height:7px;background:repeating-linear-gradient(180deg,#F4EEDF 0 1px,#E3DAC6 1px 2px);border-radius:0 0 2px 2px}
.bk-tp{left:7px;top:0;width:224px;height:314px;background:var(--grain),#F7F1E3;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--ink);text-align:center;border-radius:2px}
.bk-tp b{font:700 30px/1.3 "Aref Ruqaa",Cairo}.bk-tp small{font:600 13.2px/1.4 "Scheherazade New",Cairo,serif;color:var(--ink2)}
.tp-r{display:block;width:90px;height:4px;border-top:1px solid #8A5A1E;border-bottom:1px solid #8A5A1E}
.bk-cv{left:7px;top:0;width:224px;height:314px;transform-origin:100% 50%;transform-style:preserve-3d;transform:rotateY(0deg);transition:transform .4s cubic-bezier(.3,.8,.3,1)}
@media (hover:hover){.obj:hover .bk-cv{transform:rotateY(13deg)}}
.bk-cv>*{position:absolute;inset:0;display:block;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.bk-front{border-radius:3px 6px 6px 3px;background:var(--grain),radial-gradient(120% 90% at 30% 20%,rgba(255,255,255,.10),transparent 60%),linear-gradient(100deg,#1B5245,#1E5A4C 45%,#236152);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),inset 3px 0 5px rgba(255,255,255,.07)}
.bk-front>*{position:absolute;display:block}
.bk-front{background:#141414}
.bk-front .bk-img{inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;border-radius:inherit}
.bk-front::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(120% 90% at 30% 18%,rgba(255,255,255,.09),transparent 60%);box-shadow:inset 0 0 0 1px rgba(0,0,0,.28),inset 3px 0 5px rgba(255,255,255,.06)}
.bk-tp .tp-sub{font:600 14.3px/1.5 "Scheherazade New",Cairo,serif;color:var(--ink);margin-top:-4px}
.bk-hinge{right:14px;top:0;bottom:0;width:3px;background:rgba(0,0,0,.34);box-shadow:1px 0 0 rgba(255,255,255,.14),-2px 0 3px rgba(0,0,0,.2)}
.bk-fr{inset:16px 30px 16px 16px;border:1.5px solid #C9A24A;border-radius:2px}
.bk-fr2{inset:21px 35px 21px 21px;border:1px solid rgba(201,162,74,.7);border-radius:1px}
.bk-s{left:21px;right:35px;top:42px;text-align:center;font:600 13.8px/1.5 "Scheherazade New",Cairo,serif;color:#EBD08A}
.bk-t{left:21px;right:35px;top:100px;text-align:center;font:700 38px/1.3 "Aref Ruqaa",Cairo,sans-serif;color:#F0D78F;text-shadow:0 1px 0 rgba(0,0,0,.35)}
.bk-orn{left:50%;margin-left:-37px;top:200px;width:60px;height:2px;background:#C9A24A;box-shadow:0 5px 0 -0.5px rgba(201,162,74,.6)}
.bk-a{left:21px;right:35px;bottom:38px;text-align:center;font:600 14.3px/1.5 "Scheherazade New",Cairo,serif;color:#EBD08A}
.bk-in{transform:rotateY(180deg);border-radius:6px 3px 3px 6px;background:var(--grain),
  repeating-radial-gradient(ellipse at 28% 38%,#EADDC0 0 5px,#B5523B 5px 8px,#1E5A4C 8px 11px,#EADDC0 11px 17px),
  repeating-radial-gradient(ellipse at 78% 74%,#EADDC0 0 6px,#2E3E8F 6px 8px,#EADDC0 8px 15px);
  background-blend-mode:normal,multiply,normal}

/* 5. tablet showing a video player */
.o-courses .tag{right:20px;bottom:-22px;--tape:#E0483E}
.tb-bz{left:0;top:0;width:390px;height:270px;border-radius:24px;background:linear-gradient(135deg,#34373F,#23252B 40%,#1B1D22);box-shadow:inset 0 0 0 1px rgba(255,255,255,.10),inset 0 2px 0 rgba(255,255,255,.12),0 1px 0 rgba(255,255,255,.5)}
.tb-cam{left:196px;top:5px;width:6px;height:6px;border-radius:50%;background:#0A0B0E;box-shadow:inset 0 0 0 1px #3A3F4A}
.tb-scr{left:14px;top:14px;width:362px;height:242px;border-radius:9px;background:#10151C;overflow:hidden;color:#E7ECF2}
.tb-scr>*{position:absolute;display:block}
.pl-th{left:0;top:0;width:362px;height:150px;background:linear-gradient(120deg,#BFE8D6,#8BD7C9 55%,#4FC3C7)}
.pl-th>*{position:absolute;display:block}
.pl-th .pl-img~.pl-play{left:66%}
.pl-th .pl-img{left:0;top:0;width:100%;height:100%;object-fit:cover;object-position:50% 35%}
.pl-ttl{right:18px;top:16px;width:210px;font:700 19px/1.4 "Aref Ruqaa",Cairo,sans-serif;color:#0B2E2D}
.pl-play{left:50%;top:50%;margin:-8px 0 0 -26px;width:52px;height:52px;border-radius:50%;background:#fff;color:#10151C;display:grid!important;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.pl-play svg{width:22px;height:22px;margin-left:3px}
@media (hover:hover){.obj:hover .pl-play{box-shadow:0 0 0 7px rgba(255,255,255,.4),0 2px 8px rgba(0,0,0,.25)}}
.pl-bar{left:14px;right:14px;top:164px;height:5px;border-radius:3px;background:#3B4350}
.pl-bar i{position:absolute;right:0;top:0;bottom:0;width:23%;background:#E0483E;border-radius:3px}
.pl-time{right:14px;top:172px;font:600 12.1px/1.4 "Scheherazade New",Cairo,serif;color:#C9D1DB}
.pl-list{right:14px;left:14px;top:192px}
.pl-row{display:flex!important;align-items:center;gap:7px;height:22px;font:600 12.7px/1 "Scheherazade New",Cairo,serif;color:#C9D1DB}
.pl-row.on{color:#fff}
.pl-row svg{width:11px;height:11px;flex:none}
.pl-row u{flex:1;height:3px;border-radius:2px;background:#2B3340;margin-inline-start:8px}
.pl-row.on u{background:#3F5A66}
.pl-glare{left:-30%;top:-10%;width:60%;height:120%;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.16) 48%,rgba(255,255,255,.04) 70%,transparent);transform:translateX(-10%) skewX(-12deg);pointer-events:none}
.tb-scr::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.13),rgba(255,255,255,0) 38%);pointer-events:none}

/* 6. airmail envelopes */
/* Q&A: a phone lying on the desk with a WhatsApp-style chat (question above, answer below) */
.ph-body{inset:0;border-radius:30px;background:linear-gradient(145deg,#3A3D44,#202227 45%,#141519);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),inset 0 2px 0 rgba(255,255,255,.10),0 1px 2px rgba(20,24,32,.3)}
.ph-scr{left:8px;top:8px;width:184px;height:334px;border-radius:23px;overflow:hidden;background:#EFEAE2;display:flex!important;flex-direction:column}
.ph-scr::before{content:"";position:absolute;left:50%;top:4px;width:44px;height:11px;margin-left:-22px;border-radius:8px;background:#0B0C0E;z-index:2}
.ph-scr::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.20),rgba(255,255,255,0) 38%);pointer-events:none}
.ph-sb{height:19px;flex:none;display:flex;justify-content:space-between;align-items:center;padding:2px 16px 0;background:#008069;color:#fff;font:700 8.8px/1 "Scheherazade New",Cairo,serif}
.ph-bat{width:14px;height:7px;border:1px solid rgba(255,255,255,.9);border-radius:2px;background:linear-gradient(90deg,#fff 70%,transparent 70%) content-box;padding:1px}
.ph-hd{height:36px;flex:none;display:flex;align-items:center;gap:6px;padding:0 8px;background:#008069;color:#fff}
.ph-back{width:15px;height:15px;flex:none}
.ph-av{width:24px;height:24px;flex:none}
.ph-nm{font:700 12.1px/1.25 "Scheherazade New",Cairo,serif;display:flex;flex-direction:column}
.ph-nm small{font:500 8.2px/1.3 "Scheherazade New",Cairo,serif;opacity:.85}
.ph-chat{flex:1;min-height:0;display:flex;flex-direction:column;gap:7px;padding:8px 9px;background-color:#EFEAE2;background-image:radial-gradient(rgba(84,101,111,.07) 1px,transparent 1.5px);background-size:9px 9px}
.ph-day{align-self:center;background:#fff;color:#54656F;font:600 8.2px/1 "Scheherazade New",Cairo,serif;padding:4px 8px;border-radius:6px;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.ph-msg{position:relative;max-width:82%;padding:5px 8px 15px;border-radius:7px;font:500 10.6px/1.65 "Scheherazade New",Cairo,serif;color:#111B21;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.ph-msg.in{align-self:flex-start;background:#fff;border-start-start-radius:0}
.ph-msg.out{align-self:flex-end;background:#D9FDD3;border-start-end-radius:0}
.ph-msg::before{content:"";position:absolute;top:0;width:7px;height:9px}
.ph-msg.in::before{right:-6px;background:#fff;clip-path:polygon(0 0,100% 0,0 100%)}
.ph-msg.out::before{left:-6px;background:#D9FDD3;clip-path:polygon(0 0,100% 0,100% 100%)}
.ph-msg time{position:absolute;left:7px;bottom:3px;display:flex;align-items:center;gap:2px;font:500 7.5px/1 "Scheherazade New",Cairo,serif;color:#667781}
.ph-msg time svg{width:11px;height:7px;color:#53BDEB}
.ph-in{height:36px;flex:none;display:flex;align-items:center;gap:5px;padding:0 6px 4px;background:#EFEAE2}
.ph-box{flex:1;height:25px;border-radius:13px;background:#fff;color:#8696A0;font:500 9.4px/25px "Scheherazade New",Cairo,serif;padding:0 10px;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.ph-mic{width:25px;height:25px;flex:none;border-radius:50%;background:#00A884;display:grid;place-items:center}
.ph-mic svg{width:14px;height:14px}
.o-qa .tag{right:12px;bottom:-22px;--tape:#2E3E8F}

/* 7. clipboard */
.o-projects .tag{left:-8px;bottom:-22px;--tape:#B98A5A}
.cb-board{left:0;top:18px;width:250px;height:282px;border-radius:10px;background:var(--grain),repeating-linear-gradient(94deg,rgba(90,52,20,.0) 0 6px,rgba(90,52,20,.07) 6px 7px,rgba(255,255,255,.05) 7px 12px),linear-gradient(135deg,#C79765,#B98A5A 50%,#A97B4C);box-shadow:inset 0 0 0 1px rgba(60,35,12,.25),inset 0 2px 0 rgba(255,255,255,.22)}
.cb-paper{left:20px;top:50px;width:210px;height:236px;background:var(--grain),#FFFEFB;border-radius:2px;box-shadow:0 1px 2px rgba(20,24,32,.28);padding:36px 14px 0;color:var(--ink)}
.cb-paper>*{position:absolute}
.cb-h{display:block;right:14px;left:14px;top:30px;font:700 15.5px/1.4 Cairo;color:var(--ink);border-bottom:2px solid var(--ink);padding-bottom:3px}
.cb-r{display:block;right:14px;left:14px}
.cb-r:nth-of-type(1){top:64px}.cb-r:nth-of-type(2){top:93px}.cb-r:nth-of-type(3){top:122px}.cb-r:nth-of-type(4){top:151px}
.cb-r .cb-n{display:flex;align-items:center;gap:7px;font:600 13.8px/1.5 "Scheherazade New",Cairo,serif;color:var(--ink)}
.cb-r .cb-n::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--c);flex:none}
.cb-r i{display:block;height:3px;border-radius:2px;background:#E3E6EC;margin-top:4px;overflow:hidden}
.cb-r u{display:block;height:100%;width:var(--p);background:var(--c);float:right}
.cb-clip{left:76px;top:0;width:98px;height:56px;border-radius:7px 7px 14px 14px;background:linear-gradient(180deg,#F2F3F6,#B8BDC8 45%,#8D939F);box-shadow:inset 0 0 0 1px rgba(40,44,54,.35),inset 0 2px 0 #fff,0 2px 3px rgba(20,24,32,.3)}
.cb-clip::after{content:"";position:absolute;left:14px;right:14px;top:30px;height:12px;border-radius:6px;background:linear-gradient(180deg,#6F7581,#9AA0AC);box-shadow:inset 0 2px 3px rgba(0,0,0,.35)}
.cb-rv{position:absolute;left:46px;top:8px;width:7px;height:7px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#7C828E)}

/* ---------- stage / dialogs ---------- */
#stage{position:fixed;inset:0;z-index:20;pointer-events:none}
#stage.on{pointer-events:auto}
#veil{position:absolute;inset:0;background:rgba(250,250,248,.80);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;z-index:1}
.dlg{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:safe center;gap:20px;padding:66px 22px 28px;overflow:auto;overflow-x:hidden}
.close{position:fixed;top:16px;left:16px;z-index:40;display:flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:0;border-radius:99px;background:#1E2430;color:#fff;font:600 15px/1.4 Cairo;cursor:pointer;box-shadow:0 3px 10px rgba(20,24,32,.25);--ring:#2E3E8F}
.close:hover{background:#2D3546}
.close svg{stroke:currentColor}
.dh{border-radius:6px;padding:8px 30px 10px;text-align:center;box-shadow:var(--sheet);background:#fff;border:1px solid var(--line);flex:none}
.dh h2{font:700 28px/1.35 "Aref Ruqaa",Cairo,sans-serif;margin:0}
.dh p{margin:0;font-size:15.4px;color:var(--ink2)}
.grid4{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;width:min(1000px,100%);flex:none}

/* articles: newspaper front page */
.npage{position:relative;width:min(960px,100%);flex:none;background:var(--grain),#F3EFE6;border-radius:3px;box-shadow:var(--sheet);color:var(--ink);padding:22px 36px 26px}
.np-uh{position:relative}
.np-mast{text-align:center;padding-bottom:8px;border-bottom:3px solid #111;position:relative}
.np-mast::after{content:"";position:absolute;left:0;right:0;bottom:-7px;border-bottom:1px solid #111}
.np-mast h2{font:700 54px/1.2 "Aref Ruqaa",Cairo,sans-serif;margin:0;color:#111}
.np-mast .np-s{margin:0;font:600 16.5px/1.5 "Scheherazade New",Cairo,serif;color:var(--ink2)}
.np-drule{display:flex;justify-content:space-between;margin-top:14px;padding-bottom:10px;font:600 13.8px/1.4 "Scheherazade New",Cairo,serif;color:var(--ink2);border-bottom:1px solid #CFC9B8}
/* articles index: one row per article, built only from database fields (title, link, minutes, optional tag/date/summary) */
.np-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:14px 0 12px;border-bottom:1px solid #CFC9B8}
.np-tools[hidden]{display:none}
.np-q{position:relative;flex:1 1 240px;max-width:360px}
.np-q svg{position:absolute;inset-inline-start:13px;top:50%;translate:0 -50%;color:var(--ink2);pointer-events:none}
.np-q input{width:100%;box-sizing:border-box;font:500 16px/1.4 Cairo,sans-serif;color:var(--ink);background:#FBF8F1;border:1px solid #CFC9B8;border-radius:99px;padding:8px 14px 9px;padding-inline-start:40px}
.np-q input::placeholder{color:#6B7079}
.np-q input:focus{outline:2px solid var(--ring);outline-offset:1px}
.np-tags{display:flex;flex-wrap:wrap;gap:6px}
.np-tags button{font:600 14.3px/1.4 "Scheherazade New",Cairo,serif;color:var(--ink);background:transparent;border:1px solid #CFC9B8;border-radius:99px;padding:3px 12px 5px;cursor:pointer}
.np-tags button b{font:600 12.5px/1 Cairo,sans-serif;color:var(--ink2);margin-inline-start:6px}
.np-tags button:hover{border-color:var(--ink2)}
.np-tags button[aria-pressed=true]{background:#111;color:#fff;border-color:#111}
.np-tags button[aria-pressed=true] b{color:#CFC9B8}
.np-res{margin:10px 0 0;font:600 14.3px/1.5 "Scheherazade New",Cairo,serif;color:var(--ink2)}
.np-res:empty{display:none}
.np-idx{list-style:none;margin:2px 0 0;padding:0}
.ix{position:relative;display:flex;gap:14px;padding:12px 0 11px;border-bottom:1px solid #DDD7C8}
.ix[hidden]{display:none}
.ix-n{flex:none;width:34px;font:700 23px/1.35 "Aref Ruqaa",serif;color:#B23A2E;text-align:center}
.ix-b{flex:1;min-width:0}
.ix-r{display:flex;align-items:flex-end;gap:8px;margin:0}
.ix-t{flex:0 1 auto;font:700 19px/1.6 Cairo,sans-serif;color:var(--ink);text-decoration:none}
.ix-t:hover{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.ix-t::after{content:"";position:absolute;inset:0}
.ix-s{display:flex;align-items:baseline;gap:8px;margin:2px 0 0;font:500 15.5px/1.7 "Scheherazade New",Cairo,serif;color:var(--ink2)}
.ix-s>span+span::before{content:"·";margin-inline-end:8px;color:#B4AFA1}
.ix-tag{flex:none;font:700 13px/1.6 Cairo,sans-serif;color:#B23A2E}
.ix-d{flex:none;font-size:14.3px}
.ix-x{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np-pg{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;padding-top:18px}
.np-pg[hidden]{display:none}
.np-pg button{min-width:38px;height:38px;font:600 15px/1 Cairo,sans-serif;color:var(--ink);background:transparent;border:1px solid #CFC9B8;border-radius:99px;padding:0 11px;cursor:pointer}
.np-pg button:hover:not(:disabled){border-color:var(--ink2)}
.np-pg button[aria-current=page]{background:#111;color:#fff;border-color:#111}
.np-pg button:disabled{opacity:.35;cursor:default}
.np-pg .gap{color:var(--ink2);padding:0 2px}
.rows{list-style:none;margin:0;padding:0}

/* المرئيات (courses): بطاقات مقاطع يوتيوب */
.vp{width:min(1040px,100%);flex:none;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--sheet);padding:18px 22px 24px}
.vp-h{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.vp-ic{width:44px;height:44px;border-radius:12px;background:#10151C;color:#fff;display:grid;place-items:center;flex:none}
.vp-h h2{font:700 26px/1.3 "Aref Ruqaa",Cairo;margin:0}.vp-h p{margin:0;font-size:15.4px;color:var(--ink2)}
.vp .grid4{width:100%}
.vd{position:relative;list-style:none;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 1px rgba(20,24,32,.08),-4px 8px 14px -6px rgba(20,24,32,.18)}
.vd-a{display:flex;flex-direction:column;height:100%;border-radius:11px;overflow:hidden;color:inherit;text-decoration:none;--ring:#1E2430}
.vd-th{position:relative;aspect-ratio:16/9;background:linear-gradient(120deg,#DDE3EA,#C7CFDA);flex:none}
.vd-th img{display:block;width:100%;height:100%;object-fit:cover}
.vd-play{position:absolute;inset:0;margin:auto;width:44px;height:44px;border-radius:50%;background:#fff;color:#10151C;display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.22);opacity:0;transform:scale(.85);transition:opacity .18s ease,transform .18s ease}
.vd-play svg{margin-left:3px}
.vd-yt{position:absolute;left:8px;bottom:8px;display:flex;align-items:center;gap:5px;background:rgba(16,21,28,.9);color:#fff;font:600 12.7px/1.6 "Scheherazade New",Cairo,serif;padding:0 8px;border-radius:5px}
.vd-b{padding:12px 14px 14px;display:flex;flex-direction:column;gap:4px;flex:1}
.vd h3{font:700 16.5px/1.5 Cairo;margin:0;text-wrap:balance}
.vd-l{margin:0;font-size:14.9px;line-height:1.7;color:#3E4354}
.vd-ch{margin:auto 0 0;padding-top:6px;font-size:13.9px;line-height:1.6;color:var(--ink2)}
.vd-a:hover .vd-play,.vd-a:focus-visible .vd-play{opacity:1;transform:none}
.vd-a:hover h3{text-decoration:underline;text-underline-offset:4px}
.bkdet dl{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:0;font-size:14.9px}
.bkdet dt{font-weight:600;color:#3E4354}.bkdet dd{margin:0;font-weight:700}

/* qa: letter paper */
.letter{--mg:56px;position:relative;width:min(720px,100%);flex:none;background:var(--grain),linear-gradient(90deg,transparent calc(100% - var(--mg)),rgba(214,120,110,.55) calc(100% - var(--mg)),rgba(214,120,110,.55) calc(100% - var(--mg) + 1px),transparent calc(100% - var(--mg) + 1px)),#FFFEFB;border-radius:3px;box-shadow:var(--sheet);overflow:hidden}
.lt-in{padding:34px calc(var(--mg) + 14px) 30px 34px;max-height:calc(100svh - 130px);overflow:auto}
.lt-in h2{font:700 28px/1.4 "Aref Ruqaa",Cairo;margin:0}
.folds{opacity:0;position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 32.6%,rgba(20,24,32,.10) 33.3%,rgba(255,255,255,.6) 33.9%,transparent 35.5%,transparent 65.2%,rgba(20,24,32,.10) 66.6%,rgba(255,255,255,.6) 67.2%,transparent 68.8%)}
.lt-in .np-drule{margin-top:10px}
.qs{list-style:none;margin:0;padding:0}
.qr{border-bottom:1px solid #D5DCE8}
.qb{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;column-gap:12px;align-items:start;width:100%;text-align:start;background:none;border:0;padding:14px 0 13px;font:700 16.5px/1.75 Cairo,sans-serif;color:var(--ink);cursor:pointer}
.qn{font:700 22px/29px "Aref Ruqaa",serif;color:#B23A2E;text-align:center}
.qt{min-width:0}
.qb::after{content:"";justify-self:center;width:8px;height:8px;margin-top:8px;border:solid #8A8F9C;border-width:0 2px 2px 0;rotate:45deg;transition:rotate .25s ease,margin .25s ease}
.qb[aria-expanded=true]::after{rotate:225deg;margin-top:13px}
@media (hover:hover){.qb:hover .qt{color:var(--ring)}.qb:hover::after{border-color:var(--ring)}}
.qa{display:grid;grid-template-rows:0fr;transition:grid-template-rows .35s ease}
.qa>div{overflow:hidden}
.qb[aria-expanded=true]+.qa{grid-template-rows:1fr}
/* a folded answer also leaves the accessibility tree and the Tab order (only while JS works; the delay lets the fold finish first) */
.js:not(.js-fail) .qa{visibility:hidden;transition:grid-template-rows .35s ease,visibility 0s .35s}
.js:not(.js-fail) .qb[aria-expanded=true]+.qa{visibility:visible;transition:grid-template-rows .35s ease,visibility 0s 0s}
.qa p{margin:0;margin-inline-start:46px;padding:0 0 10px;padding-inline-start:16px;border-inline-start:2px solid #D7BF8F;font:400 18.5px/1.9 "Scheherazade New",serif;color:#2B3040}
.qa p:last-child{padding-bottom:0;margin-bottom:18px}
.qb .ayah,.qa .ayah{font-weight:400;font-size:19px;line-height:1.9;color:var(--ink)}
.qb .ayah-ref,.qa .ayah-ref{font:600 13px/1.6 "Scheherazade New",Cairo,serif;color:#6B4A17;white-space:nowrap}

/* books: shelf */
.shelf{width:min(980px,100%);flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:28px;align-items:end;padding:0 12px;perspective:1300px}
.bk{appearance:none;border:0;background:none;padding:0;cursor:pointer;position:relative;justify-self:center;height:min(280px,34svh);aspect-ratio:.73;--ring:#2E3E8F}
.bk .pgs{position:absolute;left:0;top:4px;bottom:0;right:4px;background:linear-gradient(0deg,transparent 0 6px,transparent 6px),#F4EEDF;border-radius:2px;box-shadow:-5px 6px 10px rgba(20,24,32,.22)}
.bk .pgs::before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:repeating-linear-gradient(90deg,#F4EEDF 0 1px,#E3DAC6 1px 2px)}
.bk .pgs::after{content:"";position:absolute;left:0;right:0;bottom:0;height:7px;background:repeating-linear-gradient(180deg,#F4EEDF 0 1px,#E3DAC6 1px 2px)}
.bkc{display:block;position:absolute;left:7px;top:0;right:0;bottom:7px;background:var(--grain),linear-gradient(100deg,var(--c2),var(--c) 45%,var(--c));color:#F6E7B8;border-radius:3px 6px 6px 3px;padding:14% 14% 10% 8%;text-align:center;transform-origin:100% 50%;transition:transform .35s cubic-bezier(.3,.8,.3,1);box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);overflow:hidden}
.bkc>*{display:block}
.bkc-img{padding:0;background:#14110d}.bkc-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bkdet .bd-sub{margin:0 0 6px;font:600 16px/1.6 "Scheherazade New",Cairo,serif;color:var(--ink2)}.nojs-books .nb-sub{font-weight:600}
.bkc-h{position:absolute!important;right:6.5%;top:0;bottom:0;width:3px;background:rgba(0,0,0,.34);box-shadow:1px 0 0 rgba(255,255,255,.14)}
.bkc-f{position:absolute!important;inset:5.5% 11% 5.5% 5.5%;border:1.5px solid #C9A24A;border-radius:2px;opacity:.9}
.bkc small{font:600 13.2px/1.5 "Scheherazade New",Cairo,serif;position:relative;margin-top:10%}
.bkc b{font:700 clamp(18px,2.6svh,26px)/1.4 "Aref Ruqaa",Cairo,sans-serif;margin-top:16%;position:relative;color:#F6E7B8}
@media (hover:hover){.bk:hover .bkc{transform:rotateY(22deg)}}
.bk:focus-visible .bkc{transform:rotateY(22deg)}
.bk[aria-expanded=true]{translate:0 -8px}
.shelf-board{grid-column:1/-1;display:block;height:16px;margin:0 -14px;border-radius:3px;background:linear-gradient(180deg,#DDBA8D,#C99D6B 30%,#B98A5A);box-shadow:0 1px 0 rgba(255,255,255,.5) inset,-8px 12px 16px -4px rgba(20,24,32,.25)}
.cap{align-self:start;display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:12px}
.cap b{font:700 15.5px/1.5 Cairo;color:var(--ink);text-wrap:balance}
.cap em{font:600 13.8px/1.5 "Scheherazade New",Cairo,serif;font-style:normal;color:#8A3A1E}
.bkdet{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease;width:min(720px,100%);flex:none}
.bkdet.open{grid-template-rows:1fr}
.bkdet>div{overflow:hidden;min-height:0}
.bkdet-in{background:#fff;border:1px solid var(--line);border-radius:6px;padding:16px 24px;box-shadow:var(--sheet);margin-bottom:12px}
.bkdet h3{font:700 22px/1.4 "Aref Ruqaa",Cairo;margin:0 0 4px}
.bd-d{margin:0 0 8px;font-size:16px;line-height:1.8;color:#2B3040}

/* projects: sheets */
.sheet{position:relative;list-style:none;background:var(--grain),repeating-linear-gradient(180deg,transparent 0 27px,#E6EAF1 27px 28px),#FFFEFB;border-radius:3px;color:var(--ink);rotate:var(--r,0deg);box-shadow:var(--sheet);overflow:hidden}
.sheet::before{content:"";display:block;height:14px;background:var(--c)}
.sheet::after{content:"";position:absolute;left:50%;top:22px;margin-left:-6px;width:12px;height:12px;border-radius:50%;background:#EEF0F4;box-shadow:inset 0 1px 2px rgba(20,24,32,.3)}
.paperzone{grid-template-columns:repeat(3,minmax(0,1fr));width:min(940px,100%);gap:24px}
.sb{padding:34px 18px 22px}
.sheet h3{font:700 17px/1.5 Cairo;margin:0 0 8px}
.sheet p{font-size:14.9px;line-height:1.75;margin:0;color:#2B3040}

/* about: the back of the card */
.flipwrap{perspective:2200px;flex:none}
.flipcard{position:relative;width:var(--W,780px);height:calc(var(--W,780px)*.5722);transform-style:preserve-3d;transform:rotateY(180deg)}
.face{position:absolute;inset:0;backface-visibility:hidden;border-radius:12px;box-shadow:var(--sheet);overflow:hidden}
.front{background:var(--grain),#FFFDF8}
.back{transform:rotateY(180deg);overflow:auto;background:var(--grain),linear-gradient(135deg,#27345C,#1F2A44 60%,#19223A);color:#F2EEE3;--ring:#FFD27A}
.back::before{content:"";position:absolute;inset:12px;border:1px solid rgba(201,162,74,.55);border-radius:6px;pointer-events:none}
.front .obj{position:absolute;left:0;top:0;width:360px;height:206px;transform-origin:0 0;transform:scale(var(--k,1));rotate:none;filter:none;pointer-events:none;cursor:default}
.front .bc-back,.front .tag{display:none}
.front .bc-face{border:0;border-radius:0;box-shadow:none}
.ab-grid{position:relative;display:grid;grid-template-columns:1.15fr 1fr;gap:28px;padding:28px 40px 24px}
.ab-grid h2{font:700 38px/1.3 "Aref Ruqaa",serif;margin:0 0 6px;color:#fff}
.ab-grid h3{font:700 15px/1.5 Cairo;color:#E3C06A;margin:0 0 8px}
.pl-ttl small{display:block;font-size:.72em;opacity:.85;margin-top:4px}
.ab-bio{margin:0 0 16px;font-size:16px;line-height:1.85;color:#E9E5DA}
.tl{list-style:none;margin:0;padding:0 18px 0 0;position:relative}
.tl::before{content:"";position:absolute;right:5px;top:8px;bottom:8px;width:2px;background:rgba(255,255,255,.28)}
.tl li{position:relative;padding:0 14px 9px 0;display:flex;flex-direction:column}
.pt{position:absolute;right:-18px;top:6px;width:12px;height:12px;border-radius:50%;background:#C9A24A;box-shadow:0 0 0 3px #1F2A44}
.tl b{font-size:16px;color:#fff}.tl span{font-size:14.3px;color:#C9CFDC}
.tl-x{margin-bottom:14px}.tl-x li{padding-bottom:7px}.tl-x b{font-weight:600;line-height:1.6}
.tl-x .pt{background:#E3C06A;width:10px;height:10px;right:-17px;top:7px}
.pills{list-style:none;margin:0 0 14px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pill{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:99px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.32);color:#fff;text-decoration:none;font:600 14.9px/1.4 "Scheherazade New",Cairo,serif}
.pill svg{width:18px;height:18px;flex:none}
.pills.ct{grid-template-columns:repeat(3,1fr)}.pills .pw{grid-column:1/-1}
.pill .pv{unicode-bidi:isolate;letter-spacing:.2px}
.pill:hover{background:rgba(255,255,255,.2)}

/* ---------- sharing (v52): the «شارك» button on each item, its menu, the arrival mark ---------- */
.shr{position:relative;z-index:1;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:34px;padding:0 12px 0 14px;font:600 14.3px/1 Cairo,sans-serif;color:var(--ink2);background:transparent;border:1px solid #CFC9B8;border-radius:99px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.shr svg{flex:none}
.shr:hover,.shr[aria-expanded=true]{color:var(--ink);border-color:var(--ink2)}
.shr[aria-expanded=true],.shr:active{background:rgba(30,36,48,.07)}
.shr:active{translate:0 1px}
.shr.ic{width:34px;padding:0}
.shr[data-done]{color:#2F6B3A;border-color:#2F6B3A}
.shr.ic[data-done]::after{content:attr(data-done);position:absolute;top:50%;left:calc(100% + 7px);translate:0 -50%;white-space:nowrap;font:600 12.5px/1 Cairo,sans-serif;color:#fff;background:var(--ink);padding:5px 9px 6px;border-radius:4px;pointer-events:none}
.shr-f{display:flex;justify-content:flex-end}
.qa .shr-f{padding:4px 4px 0;margin-bottom:16px}
.qa .shr{visibility:hidden;transition:visibility 0s .35s}.qb[aria-expanded=true]+.qa .shr{visibility:visible;transition-delay:0s}
.bkdet .shr-f{margin-top:12px}
.bkdet .shr{visibility:hidden;transition:visibility 0s .4s}.bkdet.open .shr{visibility:visible;transition-delay:0s}
.ix>.shr{align-self:center}
.vd>.shr{position:absolute;top:8px;left:8px;color:#10151C;background:rgba(255,255,255,.94);border-color:transparent;box-shadow:0 1px 4px rgba(0,0,0,.28)}
.vd>.shr:hover,.vd>.shr[aria-expanded=true]{background:#fff;border-color:transparent}
.shm{position:fixed;z-index:50;width:300px;padding:6px 8px 8px;background:var(--grain),#FFFEFB;border:1px solid #DDD7C8;border-radius:10px;box-shadow:0 1px 1px rgba(20,24,32,.10),0 12px 32px -8px rgba(20,24,32,.30);color:var(--ink);animation:shm .16s cubic-bezier(.3,.8,.3,1)}
@keyframes shm{from{opacity:0;translate:0 -4px;scale:.97}}
.shm-h{display:flex;align-items:center;gap:8px;margin:0 0 4px;padding:6px 6px 8px;border-bottom:1px solid #E6E0D2;font:600 14.3px/1.5 "Scheherazade New",Cairo,serif;color:var(--ink2)}
.shm-h svg{flex:none}.shm-h>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shm-h .ayah{font-size:16px;color:var(--ink)}
.shm [role=menuitem]{display:flex;align-items:center;gap:12px;width:100%;min-height:40px;padding:0 8px;border:0;border-radius:6px;background:none;font:600 15px/1.3 Cairo,sans-serif;color:var(--ink);text-decoration:none;text-align:start;cursor:pointer}
.shm [role=menuitem] svg{flex:none;color:var(--ink2)}
.shm [role=menuitem]:hover,.shm [role=menuitem]:focus-visible{background:#F1ECE0}
.shm [role=menuitem]:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}
.shm-g{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:4px 0 6px}
.shm-g [role=menuitem]{flex-direction:column;justify-content:center;gap:6px;padding:8px 0 7px;font-size:12.5px}
.shm-g svg{box-sizing:content-box;width:20px;height:20px;padding:9px;border:1px solid #D9D3C3;border-radius:50%;background:#fff}
.shm [role=separator]{height:1px;margin:2px 6px 4px;background:#E6E0D2}
.shm .shm-x{display:none}
.shm-bg{position:fixed;inset:0;z-index:49;background:rgba(20,24,32,.32)}
.shm.shm-s{inset:auto 0 0;width:auto;max-width:520px;margin:0 auto;padding:10px 14px calc(14px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0;animation-name:shs}
@keyframes shs{from{translate:0 100%}}
.shm.shm-s [role=menuitem]{min-height:48px;font-size:16px}
.shm.shm-s .shm-g [role=menuitem]{font-size:13.5px}
.shm.shm-s .shm-g svg{width:22px;height:22px;padding:11px}
.shm.shm-s .shm-x{display:flex;justify-content:center;margin-top:8px;border:1px solid #CFC9B8;border-radius:99px}
.hl{background:linear-gradient(transparent 56%,rgba(240,200,80,.5) 56% 92%,transparent 92%) no-repeat 100% 0/100% 100%;-webkit-box-decoration-break:clone;box-decoration-break:clone;animation:hl .8s .5s cubic-bezier(.3,.8,.3,1) backwards}
@keyframes hl{from{background-size:0 100%}}

/* ---------- item page (v52): one shared item on its own page; plain HTML, works without JS ---------- */
html.ip,html.ip body{height:auto;overflow:visible}
html.ip body{min-height:100svh;background:radial-gradient(130% 115% at 60% 38%,#FFFFFF 0%,#FFFFFF 58%,#F2F1ED 100%) fixed}
.ip-h{display:flex;flex-direction:column;align-items:center;gap:6px;padding:32px 16px 4px;text-align:center}
.ip-home{display:block;border-radius:4px}.ip-home img{display:block;width:min(300px,70vw);height:auto}
.ip-h p{margin:0;font:600 15.4px/1.5 "Scheherazade New",Cairo,serif;color:var(--ink2)}
.ip-m{display:flex;flex-direction:column;align-items:center;gap:22px;padding:22px 22px 48px}
.ip-m .lt-in{max-height:none;overflow:visible}
.ip-q{margin:14px 0 16px;font:700 20px/1.85 Cairo,sans-serif;color:var(--ink)}
.ip-a p{margin:0;padding:0 0 10px;padding-inline-start:16px;border-inline-start:2px solid #D7BF8F;font:400 19px/1.9 "Scheherazade New",serif;color:#2B3040}
.ip-q .ayah,.ip-a .ayah{font-weight:400;font-size:21px;line-height:1.9;color:var(--ink)}
.ip-q .ayah-ref,.ip-a .ayah-ref{font:600 13.5px/1.6 "Scheherazade New",Cairo,serif;color:#6B4A17;white-space:nowrap}
.ip-k{margin:0;font:600 14.3px/1.5 "Scheherazade New",Cairo,serif;color:var(--ink2)}
.ip-bk{width:min(720px,100%);display:grid;grid-template-columns:170px minmax(0,1fr);gap:26px;align-items:start;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:var(--sheet);padding:24px 26px}
.ip-cv{display:block;width:100%;height:auto;border-radius:3px 6px 6px 3px;box-shadow:-5px 6px 12px rgba(20,24,32,.25)}
.ip-bk h1{font:700 27px/1.4 "Aref Ruqaa",Cairo;margin:4px 0 2px}
.ip-sub{margin:0 0 10px;font:600 17px/1.6 "Scheherazade New",Cairo,serif;color:var(--ink2)}
.ip-bk dl{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:0;font-size:15.4px}.ip-bk dt{font-weight:600;color:#3E4354}.ip-bk dd{margin:0;font-weight:700}
.ip-vd{width:min(720px,100%);background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--sheet);overflow:hidden}
.ip-vd .vd-a{border-radius:0}.ip-vd .vd-play{opacity:1;transform:none;width:64px;height:64px}
.ip-vb{padding:16px 24px 22px}
.ip-vb h1{font:700 22px/1.5 Cairo;margin:4px 0 0;text-wrap:balance}
.ip-go{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:14px;padding:0 18px;border-radius:99px;background:#10151C;color:#fff;font:600 15px/1.4 Cairo,sans-serif;text-decoration:none}
.ip-n{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.ip-l{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;font:600 15px/1.4 Cairo,sans-serif;color:var(--ink);text-decoration:none;background:#fff;border:1px solid #CFC9B8;border-radius:99px}
.ip-l:hover{border-color:var(--ink2)}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .win,.steam path,.dot,.scene.ready .tag{animation:none!important}
  .js:not(.js-fail) .scene:not(.ready) .tag{opacity:1}
  .obj,.slot,.qa,.qb::after,.bkdet,.bk,.bkc,.tag,.nb-l,.bk-cv,.vd-play{transition:none!important}
  .hl,.shm{animation:none!important}
}

/* ---------- mobile ---------- */
@media (max-width:960px){
  html,body{height:auto;overflow-x:clip;overflow-y:auto}
  html.lock,html.lock body{overflow:hidden}
  #desk{position:relative;inset:auto;min-height:100svh;overflow:clip}
  .scene{position:relative;left:auto;top:auto;width:auto;height:auto;margin:0;transform:none;display:flex;flex-direction:column;align-items:center;gap:46px;padding:26px 16px 90px}
  .slot{position:relative;left:auto;top:auto;width:calc(var(--w)*var(--ms)*1px);height:calc(var(--h)*var(--ms)*1px);translate:none!important;flex:none}
  .s-about{order:1}.s-verse{order:2}.s-articles{order:3}.s-books{order:4}.s-courses{order:5}.s-qa{order:6}.s-projects{order:7}
  .s-verse{width:min(88vw,380px);height:auto}
  .s-pen,.s-cup,.s-glasses{display:none}
  .obj{width:calc(var(--w)*var(--ms)*1px);height:calc(var(--h)*var(--ms)*1px)}
  .bd{transform:scale(var(--ms));transform-origin:0 0}
  .tag{font-size:17px;padding:5px 12px 7px}
  .s-books{margin-left:-24px}
  .verse-card{position:relative;height:auto;padding:20px 18px 16px;rotate:-1deg}
  .verse-card .ayah{font-size:27px;line-height:2}
  .win{animation:none}
  /* dialogs as full sheets */
  .dlg{background:#FBFAF7;padding:64px 16px 40px;justify-content:flex-start;gap:18px}
  .npage{padding:18px 18px 22px}
  .np-mast h2{font-size:42px}
  .np-tools{padding:12px 0 10px}.np-q{flex-basis:100%;max-width:none}
  .ix{gap:10px;padding:11px 0 10px}.ix-n{width:24px;font-size:20px}
  .ix-b{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px}.ix-r,.ix-s{display:contents}
  .ix-t{flex:1 0 100%;font-size:17px;line-height:1.6}
  .ix-tag{font-size:12.5px}.ix-d{font-size:13.5px}
  .ix-s>.ix-x::before{content:none}
  .ix-x{flex:1 0 100%;font:500 14.9px/1.7 "Scheherazade New",Cairo,serif}
  .vp{padding:14px 14px 18px}
  .grid4{grid-template-columns:1fr 1fr;gap:14px;width:100%}
  .vd h3{font-size:15px}.vd-l{font-size:13.8px}.vd-ch{font-size:13px}.vd-b{padding:10px 10px 12px}.vd-play{width:38px;height:38px}
  .sheet{min-height:0}
  .grid4.paperzone:has(.sheet){grid-template-columns:1fr}
  .letter{width:100%;--mg:30px}
  .lt-in{max-height:none;overflow:visible;padding:30px calc(var(--mg) + 10px) 26px 18px}
  .qb{grid-template-columns:24px minmax(0,1fr) 14px;column-gap:8px;padding:12px 0 11px;font-size:15.5px}
  .qn{font-size:19px;line-height:27px}
  .qa p{margin-inline-start:0;padding-inline-start:12px;font-size:17.5px}
  .shelf{grid-template-columns:1fr 1fr;row-gap:0;column-gap:16px;padding:0}
  .bk{height:auto;width:min(100%,170px);aspect-ratio:.73;margin-top:18px}
  .shelf-board,.cap{display:none}
  .shelf>.bkdet{grid-column:1/-1;width:100%}.shelf>.bkdet .bkdet-in{margin:16px 0 2px}
  .shr{height:44px;padding:0 16px 0 18px;font-size:15px}.shr.ic{width:44px;padding:0}.vd>.shr{width:40px;height:40px;top:6px;left:6px}
  .ip-h{padding-top:24px}.ip-m{padding:18px 16px 40px;gap:18px}
  .ip-q{font-size:18px}.ip-a p{font-size:17.5px}
  .ip-bk{grid-template-columns:1fr;gap:16px;padding:20px 18px}.ip-cv{width:150px;justify-self:center}.ip-bk h1{font-size:24px}
  .ip-vb{padding:14px 16px 18px}.ip-vb h1{font-size:19px}
  .bk::after{content:attr(aria-label);display:none}
  .flipwrap{perspective:none;width:100%}
  .flipcard{width:100%;height:auto;transform:none!important;transform-style:flat}
  .front{display:none}
  .back{position:relative;inset:auto;transform:none;overflow:visible}
  .ab-grid{grid-template-columns:1fr;padding:26px 22px}
  .close{top:12px;left:12px}
}

/* ===================================================================
   additions for the real site (everything above is r5 as designed)
   =================================================================== */
.ayah{font-family:"Hafs","Scheherazade New",serif}
a.obj,a.close{text-decoration:none}
.obj{color:inherit}

/* ---------- section / article / 404 pages: the sheet shown as a full page on the white desk ---------- */
#stage.static{pointer-events:auto}
a.close{color:#fff}
a.close:hover{background:#2D3546}
.secnav{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 8px;flex:none;width:min(1000px,100%);margin-top:6px}
.secnav a{color:var(--ink);text-decoration:none;font:600 14.9px/1.4 "Scheherazade New",Cairo,serif;padding:5px 13px 6px;border:1px solid var(--line);border-radius:99px;background:#fff}
.secnav a:hover{border-color:var(--ink2)}
.secnav a[aria-current=page]{background:var(--ink);color:#fff;border-color:var(--ink)}

.plink{display:inline-block;margin-inline-start:8px;color:#1F3A8A;font:600 14.3px/1.6 "Scheherazade New",Cairo,serif}
.sb .plink{margin:6px 0 0}
.bkdet .plink{margin:0}

/* ---------- no JavaScript: everything stays readable ---------- */
html:not(.js) .qa,html.js-fail .qa{grid-template-rows:1fr}
html:not(.js) .qb::after,html:not(.js) .bkdet,html.js-fail .qb::after,html.js-fail .bkdet{display:none}
html:not(.js) .qb,html:not(.js) .bk,html.js-fail .qb,html.js-fail .bk{cursor:default}
html.js-fail .shr,html.js-fail .shm,html.js-fail .shm-bg{display:none}
.nojs-books{list-style:none;margin:0;padding:18px 24px;width:min(720px,100%);flex:none;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:var(--sheet)}
.nojs-books li{padding:10px 0;border-bottom:1px solid var(--line)}
.nojs-books li:last-child{border-bottom:0}
.nojs-books h3{font:700 19px/1.5 "Aref Ruqaa",Cairo;margin:0 0 2px}
.nojs-books p{margin:0 0 4px;font-size:16px;line-height:1.8;color:#2B3040}
.nojs-books .nb-m{font-size:14.3px;color:var(--ink2)}
.js:not(.js-fail) .nojs-books{display:none}

/* about card: width never wider than the viewport before app.js has measured it */
@media (min-width:761px){.flipcard{width:var(--W,min(780px,calc(100vw - 44px)))}}

/* ---------- article page: newspaper ---------- */
.apage{width:min(960px,100%)}
.np-brand{display:block;font:700 54px/1.2 "Aref Ruqaa",Cairo,sans-serif;color:#111;text-decoration:none;margin:0}
.np-brand:hover{text-decoration:underline}
.np-drule time{color:inherit}
.a-head{padding:18px 0 14px;border-bottom:1px solid #111}
.a-t{font:700 40px/1.4 "Aref Ruqaa",Cairo,sans-serif;margin:0 0 8px;color:#111}
.a-sum{margin:0 0 10px;font:600 17.6px/1.9 "Scheherazade New",Cairo,serif;color:#2B3040}
.tags{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tags li{font:600 13.8px/1.5 "Scheherazade New",Cairo,serif;color:var(--ink);border:1px solid #BDB6A2;border-radius:99px;padding:1px 12px 2px;background:rgba(255,255,255,.5)}
.a-body{padding-top:18px;font:400 18.7px/2 "Scheherazade New",Cairo,serif;color:var(--ink);column-width:21rem;column-gap:2.4rem;column-rule:1px solid #CFC9B8}
.a-body p{margin:0 0 1em}
.a-body h2{font:700 24px/1.5 "Aref Ruqaa",Cairo,sans-serif;margin:1.1em 0 .4em;color:#111;break-after:avoid}
.a-body h3{font:700 19px/1.6 Cairo;margin:1.2em 0 .3em;break-after:avoid}
.a-body .a-li{padding-inline-start:1.3rem;text-indent:-1.3rem}
.a-body .a-eq{text-align:center;font:700 20px/1.8 "Aref Ruqaa",Cairo,sans-serif;margin:.4em 0 1em;padding:.35em 0;border-block:1px solid #CFC9B8;break-inside:avoid}
.a-body ul,.a-body ol{padding-inline-start:1.4rem;margin:0 0 1em}
.a-body li{margin-bottom:.3em}
.a-body a{color:#1F3A8A}
.a-body blockquote{margin:1.2em 0;padding:.2em 1em;border-inline-start:3px solid #C9A24A;background:rgba(255,255,255,.5);break-inside:avoid}
.a-body blockquote p:last-child{margin-bottom:0}
.a-body blockquote.verse{text-align:center;border:0;border-block:1px solid #C9A24A;background:none;padding:.8rem .4rem;line-height:2.4}
.a-body .ayah{font-size:23px;line-height:2.2;color:var(--ink)}
.a-body .ayah-ref{display:block;font:600 14.3px/1.6 "Scheherazade New",Cairo,serif;color:#6B4A17}
.sample-note{font-size:15.4px;color:var(--ink2);border-inline-start:3px solid #CFC9B8;padding-inline-start:10px}
.fn{font-size:.7em;line-height:0}
.fn a{text-decoration:none;padding:0 .15em}
.footnotes{column-span:all;margin-top:2rem;padding-top:1rem;border-top:1px solid #111;font-size:16.5px;line-height:1.8;color:var(--ink2)}
.footnotes ol{padding-inline-start:1.4rem;margin:0}
.fn-back{text-decoration:none}
.pager{display:flex;gap:16px;margin-top:22px;padding-top:14px;border-top:3px double #111}
.pager a{flex:0 1 48%;color:var(--ink);text-decoration:none;font:700 17.6px/1.6 "Scheherazade New",Cairo,serif;border:1px solid #BDB6A2;border-radius:4px;padding:10px 14px;background:rgba(255,255,255,.5)}
.pager a:hover{border-color:var(--ink)}
.pager a small{display:block;font:600 13.8px/1.5 "Scheherazade New",Cairo,serif;color:var(--ink2)}
.pager .next{margin-inline-start:auto}
.a-foot{text-align:center;margin:16px 0 0;font:600 15.4px/1.6 "Scheherazade New",Cairo,serif}
.a-foot a{color:#1F3A8A}

/* ---------- 404: a scrap of paper on the desk ---------- */
.scrap{position:relative;width:min(440px,100%);flex:none;background:var(--grain),#FFFEFB;border-radius:3px;box-shadow:var(--sheet);padding:38px 32px 32px;text-align:center;rotate:-1.5deg}
.scrap::before{content:"";position:absolute;top:-8px;left:50%;width:84px;height:18px;margin-left:-42px;background:#E8B04A;opacity:.88;rotate:-3deg}
.nf-k{margin:0;font:700 72px/1.1 "Aref Ruqaa",Cairo,sans-serif;color:#9E2A2B}
.scrap h1{font:700 30px/1.5 "Aref Ruqaa",Cairo,sans-serif;margin:0 0 6px}
.scrap p:not(.nf-k){margin:0 0 18px;font-size:16.5px;line-height:1.9;color:#2B3040}
.nf-btn{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border-radius:99px;background:var(--ink);color:#fff;text-decoration:none;font:600 15px/1.4 Cairo}
.nf-btn:hover{background:#2D3546}

@media (max-width:760px){
  .np-brand{font-size:42px}
  .a-t{font-size:30px}
  .a-body{column-width:auto;column-count:1;column-rule:0;font-size:18.2px}
  .pager{flex-direction:column}
  .pager a{flex:none}
  .pager .next{margin-inline-start:0}
  .apage{padding:18px 18px 22px}
  .scrap{padding:34px 22px 26px}
  .nojs-books{padding:14px 16px}
}

@media print{
  #desk,.close,.badge,.secnav{display:none!important}
  html,body{overflow:visible;height:auto;background:#fff}
  #stage{position:static}
  .dlg{position:static;overflow:visible;padding:0}
}
