/* Islam by Numbers: shared kit v10
   Design tokens, base type, hero, buttons, chapter bar, Qur'an and hadith cards,
   quiz, learning tools (objectives, glossary, sources, progress bar) and glossary words.
   Load before each chapter's own styles:
   <link rel="stylesheet" href="/discover/bynumbers/shared/bynumbers.css?v=10"> */
:root{--navy:#06142a;--blue:#142c59;--gold:#d7b46a;--light:#f8f5ed;--ink:#17223b;--muted:#66728a;--line:#e8e2d6}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--light);line-height:1.65}
a{color:inherit}
button{font:inherit;cursor:pointer}
.wrap{width:min(1140px,calc(100% - 40px));margin:auto}
.hero{background:radial-gradient(circle at 80% 16%,#244578,#0c2042 49%,#06142a 85%);color:white;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;inset:0;opacity:.1;background-image:repeating-linear-gradient(45deg,transparent 0,transparent 42px,#dec186 43px,transparent 44px),repeating-linear-gradient(-45deg,transparent 0,transparent 42px,#dec186 43px,transparent 44px);pointer-events:none}
.eyebrow{color:var(--gold);letter-spacing:.2em;font-size:11px;font-weight:800;text-transform:uppercase}
.hero h1{font-family:Georgia,serif;font-size:clamp(42px,7vw,78px);font-weight:500;line-height:1.08;letter-spacing:-.045em;margin:12px 0 19px}
.hero p{color:#d8dfeb;font-size:clamp(16px,2vw,20px);max-width:630px;margin:0 auto 28px}
.actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.btn{display:inline-block;border-radius:7px;padding:12px 20px;text-decoration:none;font-size:13px;font-weight:750;border:1px solid var(--gold);background:var(--gold);color:#101e36}
.btn.alt{background:transparent;color:#f4e0b4}
.section{padding:78px 0}
.center{text-align:center}
.section h2{font-family:Georgia,serif;font-weight:500;letter-spacing:-.025em;font-size:clamp(32px,4vw,49px);line-height:1.16;margin:9px 0 17px}
.intro{max-width:730px;margin:0 auto;color:var(--muted)}
.quiz{background:#f0ebe0}
.quiz-box{background:white;border:1px solid #e1d7c7;border-radius:16px;padding:35px;max-width:760px;margin:32px auto 0}
.progress{font-size:12px;letter-spacing:.1em;color:#886a3d;font-weight:750}
.question{font:normal 27px Georgia,serif;margin:14px 0 25px}
.options{display:grid;gap:10px}
.option{width:100%;text-align:left;padding:13px 17px;background:#f8f7f4;border:1px solid #dfddd6;border-radius:8px;color:#17223b}
.option:hover,.option:focus{border-color:#ad8a47}
.option.correct{border-color:#43855f;background:#e9f5ed}
.option.wrong{border-color:#b85c5c;background:#fae8e8}
.feedback{min-height:48px;margin:17px 0 4px;color:#40506a;font-size:14px}
.fade{color:#667184;font-size:13px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:480px){.hero h1{font-size:43px}.quiz-box{padding:23px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.qref{color:#21477b;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.qref:after{content:" ▾";font-size:.8em;text-decoration:none;display:inline-block}
.qref[aria-expanded="true"]:after{content:" ▴"}
.vcard[hidden]{display:none!important}
.vcard .vclose{flex:0 0 auto;width:36px;height:36px;border-radius:50%;border:1px solid #cddde6;background:#fff;color:#5f707b;cursor:pointer;display:grid;place-items:center;padding:0;margin-left:8px;font-size:22px;line-height:1}
.vcard .vclose:hover{background:#eaf6fb;color:#0f6288}
.vcard .ref+.vclose{margin-left:auto}
.vcard{--q-blue:#0f6288;--q-gold:#c8a85b;--q-gold-ink:#6b5520;--q-line:#dfeaf0;--q-muted:#5f707b;--q-tint:#eaf6fb;display:block;margin:14px 0 4px;background:#fff;border:1px solid var(--q-line);border-radius:18px;padding:20px 22px;font-family:"DM Sans",system-ui,sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:1.65;color:#18252d;text-align:left;transition:border-color .2s,box-shadow .2s}
.vcard.playing{border-color:var(--q-gold);box-shadow:0 0 0 3px rgba(200,168,91,.25)}
.vcard .ayah-top{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.vcard .num{display:inline-grid;place-items:center;min-width:34px;height:34px;padding:0 6px;border:2px solid var(--q-gold);border-radius:50%;font-size:13px;font-weight:700;color:var(--q-gold-ink)}
.vcard .ref{font-size:13px;color:var(--q-muted)}
.vcard .ayah-play{margin-left:auto;width:36px;height:36px;border-radius:50%;border:1px solid #cddde6;background:#fff;color:var(--q-blue);cursor:pointer;display:grid;place-items:center;padding:0}
.vcard .ayah-play:hover{background:var(--q-tint)}
.vcard .ayah-play svg{width:14px;height:14px}
.vcard .t-ar{font-family:"Amiri Quran","Amiri",serif;font-size:clamp(26px,3.6vw,32px);line-height:2.1;text-align:right;color:#101a20;margin:4px 0 0;direction:rtl}
.vcard .t-tr{font-size:17px;line-height:1.7;margin:10px 0 0;color:#2a3a44}
.vcard .vfoot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 14px;margin-top:12px;padding-top:10px;border-top:1px solid var(--q-line);font-size:12.5px;color:var(--q-muted)}
.vcard .vfoot a{color:#1f86b3;font-weight:600;text-decoration:none}
.vcard .vfoot a:hover{text-decoration:underline}
.vcard .vmsg{margin:0;color:var(--q-muted);font-size:14px}
@media(max-width:560px){.vcard{padding:16px}}
.hlink{color:#21477b;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.hlink:after{content:" ▾";font-size:.8em;text-decoration:none;display:inline-block}
.hlink[aria-expanded="true"]:after{content:" ▴"}
.hlink{color:var(--gold)}
.hcard .num{border-radius:999px;padding:0 13px;font-size:15px;letter-spacing:0}
.hcard .narr{margin:8px 0 0;font-size:13.5px;color:var(--q-muted);font-style:italic}
.hcard .t-ar{font-size:clamp(23px,3.2vw,29px)}
.hcard .t-tr{margin-top:8px}
:root{--chapter-nav-height:62px}
html{scroll-padding-top:calc(var(--chapter-nav-height) + 14px)}
section[id]{scroll-margin-top:calc(var(--chapter-nav-height) + 14px)}
.chapter-nav{position:sticky;top:0;z-index:800;background:rgba(255,255,255,.98);border-bottom:1px solid #e8e2d6;box-shadow:0 6px 22px rgba(6,20,42,.09);-webkit-backdrop-filter:blur(13px);backdrop-filter:blur(13px)}
.chapter-nav-inner{width:min(1140px,calc(100% - 40px));margin:auto;min-height:var(--chapter-nav-height);display:flex;align-items:center;gap:20px}
.chapter-back{flex:0 0 auto;display:flex;align-items:center;gap:9px;text-decoration:none;background:#102a51;color:#fff;font-weight:750;border-radius:999px;padding:10px 15px;font-size:13px;white-space:nowrap}
.chapter-back:hover{background:#21477b}
.chapter-back span:first-child{font-size:18px;line-height:1}
.back-short{display:none}
.chapter-desktop-links{display:flex;gap:clamp(10px,1.5vw,25px);align-items:center;justify-content:flex-end;flex:1}
.chapter-desktop-links a{color:#273c59;font-size:13px;font-weight:750;text-decoration:none;white-space:nowrap;padding:12px 0;border-bottom:3px solid transparent}
.chapter-desktop-links a:hover,.chapter-desktop-links a:focus-visible,.chapter-desktop-links a[aria-current="location"]{color:#174d84;border-bottom-color:#d7b46a}
.chapter-mobile-menu{display:none;position:relative;margin:0}
.chapter-nav a:focus-visible,.chapter-mobile-menu summary:focus-visible{outline:3px solid #bd8c2f;outline-offset:3px}
@media(max-width:960px){:root{--chapter-nav-height:60px}.chapter-nav-inner{width:calc(100% - 28px);gap:10px;justify-content:space-between}.chapter-desktop-links{display:none}.chapter-mobile-menu{display:block;flex:1;min-width:0}.chapter-mobile-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#17365d;font-weight:750;font-size:14px;border:1px solid #d9e1e8;background:#fff;padding:10px 14px;border-radius:12px;min-height:42px}.chapter-mobile-menu summary::-webkit-details-marker{display:none}.chapter-mobile-menu[open] summary span{transform:rotate(180deg)}.chapter-mobile-links{position:absolute;right:0;top:calc(100% + 8px);width:min(330px,calc(100vw - 28px));background:#fff;border:1px solid #d9e1e8;border-radius:15px;box-shadow:0 16px 32px rgba(6,20,42,.2);padding:9px;display:grid;grid-template-columns:1fr 1fr;gap:6px;max-height:calc(100dvh - 95px);overflow-y:auto}.chapter-mobile-links a{text-decoration:none;font-size:13px;font-weight:700;color:#17365d;background:#f2f6fa;border-radius:9px;padding:12px 10px}.chapter-mobile-links a:hover,.chapter-mobile-links a:focus-visible{background:#e6edf5}}
@media(max-width:480px){.chapter-back{padding:10px 12px}.back-full{display:none}.back-short{display:inline}.chapter-mobile-links{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.read-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:100003;pointer-events:none}
.read-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#c99e55,#e8c58c)}
.totop{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:46px;height:46px;border-radius:50%;border:0;background:#142c59;color:#fff;font-size:20px;cursor:pointer;box-shadow:0 8px 22px rgba(6,20,42,.3);z-index:9000;display:grid;place-items:center;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .2s,transform .2s}
.totop.show{opacity:1;transform:none;pointer-events:auto}
.totop:focus-visible{outline:3px solid #d7b46a;outline-offset:2px}
.glance{padding:34px 0 6px}
.glance-in{display:grid;grid-template-columns:1.25fr 1fr;gap:20px}
.glance-box{background:#fff;border:1px solid #e1d7c7;border-radius:16px;padding:26px 28px}
.glance-box h2{font:500 clamp(24px,2.6vw,32px)/1.2 Georgia,serif;letter-spacing:-.02em;margin:8px 0 14px}
.objectives{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.objectives li{padding-left:32px;position:relative}
.objectives li:before{content:"\2713";position:absolute;left:0;top:1px;width:22px;height:22px;border-radius:50%;background:#e9f1ea;color:#2d6264;display:grid;place-items:center;font-size:13px;font-weight:800}
.glance-box.dark{background:linear-gradient(135deg,#06142a,#142c59);color:#e8eef7;border-color:#06142a}
.glance-box.dark .eyebrow{color:#d7b46a}
.gfacts{list-style:none;margin:10px 0 16px;padding:0;display:grid;gap:10px}
.gfacts li{display:grid;grid-template-columns:88px 1fr;gap:10px;font-size:15px;border-bottom:1px solid rgba(255,255,255,.14);padding-bottom:9px}
.gfacts b{color:#d7b46a;font-size:11px;letter-spacing:.1em;text-transform:uppercase;padding-top:3px}
@media(max-width:860px){.glance-in{grid-template-columns:1fr}.glance-box{padding:22px 20px}}
.gsearch{flex:1 1 260px;max-width:420px;padding:11px 14px;border:1px solid #d4cdbd;border-radius:8px;background:#fff;font:inherit;color:#17223b}
.gsearch:focus{outline:2px solid #d7b46a;outline-offset:1px}
.gloss-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 18px}
.gloss{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.gl{background:#fff;border:1px solid #e4dfd2;border-radius:11px;padding:14px 16px}
.gl dt{font-weight:800;color:#142c59;display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.gl dt span{font:400 22px 'Amiri',serif;color:#2d6264;direction:rtl}
.gl dd{margin:6px 0 0;font-size:15px;color:#40506a}
.gl[hidden]{display:none}
.gloss-empty{grid-column:1/-1;text-align:center;color:var(--muted);padding:18px}
@media(max-width:700px){.gloss{grid-template-columns:1fr}}
.src-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.src-card{background:#fff;border:1px solid #e4dfd2;border-top:3px solid #d7b46a;border-radius:12px;padding:22px 22px 18px}
.src-card .eyebrow{font-size:11px}
.src-card h3{font:500 20px Georgia,serif;margin:6px 0 8px}
.src-list{margin:8px 0 0;padding-left:20px;font-size:15px}
.src-list li{margin:7px 0}
.src-note{font-size:14px;color:#66728a;margin:20px 0 0;max-width:880px}
@media(max-width:860px){.src-grid{grid-template-columns:1fr}}
@media print{.read-progress,.totop{display:none!important}}
:root{--chapter-header-bottom:0px}
.chapter-nav{position:relative;top:auto;z-index:99999;width:100%;}
.chapter-nav.is-fixed{position:fixed;top:var(--chapter-header-bottom);left:0;right:0;z-index:99999}
.chapter-nav-anchor{height:0}
.chapter-nav-anchor.is-active{height:var(--chapter-nav-height)}
.chapter-mobile-links{z-index:100000}
html{scroll-padding-top:calc(var(--chapter-header-bottom) + var(--chapter-nav-height) + 18px)}
section[id]{scroll-margin-top:calc(var(--chapter-header-bottom) + var(--chapter-nav-height) + 18px)}
@media(max-width:960px){.chapter-nav-inner{min-height:56px}.chapter-back{min-height:42px}.chapter-mobile-menu summary{min-height:42px}}
:root{--chapter-nav-height:62px;--chapter-header-bottom:0px}
.chapter-nav,
.chapter-nav.is-fixed{
  height:var(--chapter-nav-height)!important;
  min-height:var(--chapter-nav-height)!important;
  max-height:var(--chapter-nav-height)!important;
  padding:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  background:#fff;
}
.chapter-nav-inner{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  padding-top:0!important;
  padding-bottom:0!important;
  box-sizing:border-box;
}
.chapter-nav-anchor.is-active{height:var(--chapter-nav-height)!important}
.chapter-nav.is-fixed{position:fixed!important;top:var(--chapter-header-bottom)!important;left:0;right:0}
.chapter-desktop-links{height:100%}
.chapter-desktop-links a{height:100%;display:inline-flex;align-items:center;box-sizing:border-box}
@media(max-width:960px){:root{--chapter-nav-height:60px}.chapter-mobile-menu{align-self:center}.chapter-mobile-links{max-height:calc(100dvh - var(--chapter-header-bottom) - 75px)}}
.chapter-nav-inner{width:min(1450px,calc(100% - 36px));max-width:1450px;min-height:62px;height:62px;gap:15px;}
.chapter-nav{height:62px;min-height:62px;max-height:62px;}
.chapter-back{padding:9px 13px;font-size:12.5px;}
.chapter-desktop-links{gap:clamp(9px,1.05vw,17px);justify-content:center;min-width:0;}
.chapter-desktop-links a{font-size:12px;}
.chapter-next{flex:0 0 auto;display:inline-flex;align-items:center;gap:11px;border:1px solid #c8d9e7;background:#eef6fa;color:#173d64;padding:6px 11px 6px 14px;border-radius:12px;text-decoration:none;white-space:nowrap;min-height:46px;line-height:1.2;}
.chapter-next:hover{background:#dbeefa;border-color:#95bfd9;}
.chapter-next .next-label{font-size:9px;letter-spacing:.08em;font-weight:750;color:#5c7384;display:flex;flex-direction:column;gap:3px;}
.chapter-next strong{font-size:12px;letter-spacing:0;color:#173d64;}
.chapter-next .next-arrow{font-size:23px;font-weight:600;line-height:1;}
.chapter-nav a:focus-visible{outline:3px solid #bd8c2f;outline-offset:2px;}
@media(max-width:1200px) and (min-width:961px){.chapter-nav-inner{gap:8px;width:calc(100% - 26px)}.chapter-desktop-links{gap:9px}.chapter-desktop-links a{font-size:11px}.chapter-back{padding:9px 10px}.chapter-next{padding:5px 8px}}
@media(max-width:960px){:root{--chapter-nav-height:100px}.chapter-nav{height:100px;min-height:100px;max-height:100px}.chapter-nav-inner{height:100px;min-height:100px;width:calc(100% - 22px);display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:48px 43px;gap:4px 10px;align-content:center}.chapter-back{grid-column:1;grid-row:1;justify-self:start}.chapter-mobile-menu{grid-column:2;grid-row:1;min-width:0}.chapter-next{grid-column:1 / -1;grid-row:2;justify-content:center;min-height:39px;padding:4px 12px;width:100%}.chapter-next .next-label{flex-direction:row;align-items:baseline;gap:9px}.chapter-next strong{font-size:13px}.chapter-mobile-links{z-index:100001}}
@media(max-width:480px){.chapter-next .next-label{font-size:9px}.chapter-next strong{font-size:12px}.chapter-back{padding:9px 11px;font-size:12px}}
.chapter-explore-short{display:none}
@media(max-width:960px){:root{--chapter-nav-height:54px}.chapter-nav{height:54px!important;min-height:54px!important;max-height:54px!important}.chapter-nav-inner{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:7px!important;width:calc(100% - 18px)!important;height:54px!important;min-height:0!important;max-height:54px!important;padding:0!important}.chapter-back{flex:0 0 auto!important;min-height:38px!important;height:38px!important;padding:7px 10px!important;font-size:12px!important;gap:5px!important}.chapter-mobile-menu{flex:1 1 auto!important;min-width:0!important;margin:0!important}.chapter-mobile-menu summary{height:38px!important;min-height:38px!important;padding:6px 9px!important;gap:5px!important;font-size:12px!important;white-space:nowrap!important}.chapter-explore-long{display:none!important}.chapter-explore-short{display:inline!important}.chapter-next{flex:0 1 auto!important;min-width:0!important;width:auto!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:5px 9px!important;gap:5px!important;border-radius:9px!important;justify-content:center!important}.chapter-next .next-label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:0!important;font-size:0!important;letter-spacing:0!important}.chapter-next strong{font-size:11px!important;white-space:nowrap!important}.chapter-next .next-arrow{font-size:17px!important}.chapter-mobile-links{top:calc(100% + 6px)!important}}
@media(max-width:390px){.chapter-nav-inner{gap:5px!important;width:calc(100% - 12px)!important}.chapter-back{padding:6px 8px!important;font-size:11px!important}.chapter-mobile-menu summary{padding:6px!important;font-size:11px!important}.chapter-next{padding:5px 6px!important}.chapter-next strong{font-size:10px!important}}
@media(max-width:960px){.chapter-mobile-menu[open] summary span{transform:none!important}.chapter-mobile-menu[open] summary span:last-child{transform:rotate(180deg)!important}.chapter-mobile-menu{position:static!important}.chapter-mobile-menu summary{direction:ltr!important;transform:none!important}.chapter-mobile-menu summary span{display:inline-block;transform:none}.chapter-mobile-links{   position:absolute!important;   top:calc(100% + 5px)!important;   left:12px!important;   right:12px!important;   width:auto!important;   max-width:none!important;   min-width:0!important;   box-sizing:border-box!important;   grid-template-columns:repeat(2,minmax(0,1fr))!important;   max-height:min(60dvh,420px)!important;   overflow-y:auto!important;   z-index:100002!important; }.chapter-nav{overflow:visible!important}.chapter-nav-inner{overflow:visible!important}.chapter-mobile-links a{min-width:0;white-space:normal}}
.quiz-box .btn{font-family:inherit}
.gterm{font:inherit;color:inherit;background:none;border:0;border-bottom:1.5px dotted var(--gold);border-radius:0;padding:0;margin:0;text-align:inherit;cursor:help}
.gterm:hover,.gterm[aria-expanded="true"]{background:rgba(215,180,106,.22)}
.gterm:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.gpop{position:absolute;z-index:100010;width:min(320px,calc(100vw - 24px));background:#fff;color:var(--ink);border:1px solid #d9caa9;border-top:3px solid var(--gold);border-radius:12px;padding:14px 38px 12px 16px;box-shadow:0 18px 40px rgba(6,20,42,.25);font:400 14.5px/1.55 ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;text-align:left}
.gpop[hidden]{display:none}
.gpop .gp-h{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.gpop b{font:500 18px Georgia,serif;color:var(--blue)}
.gpop .gp-ar{font:400 22px 'Amiri',serif;color:#21477b;direction:rtl}
.gpop p{margin:6px 0 8px;color:#40506a}
.gpop a{font-weight:700;font-size:13px;color:#21477b}
.gpop .gp-x{position:absolute;top:6px;right:8px;border:0;background:none;font-size:20px;line-height:1;color:#66728a;cursor:pointer}
@media print{.gterm{border-bottom:0}.gpop{display:none}}
.vid{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:radial-gradient(circle at 70% 30%,#244578,#06142a 70%);margin:18px 0 4px}
.vid video{position:absolute;inset:0;width:100%;height:100%;background:transparent;object-fit:contain}
.vid video[hidden]{display:none}
.vid-soon{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#fff;text-align:center;padding:20px}
.vid-soon[hidden]{display:none}
.vid-ar{font:700 clamp(2rem,6vw,3.6rem) 'Amiri',serif;color:#dec186;line-height:1.4}
.vid-play{width:76px;height:76px;border-radius:50%;background:var(--gold);color:#101e36;display:grid;place-items:center;opacity:.55;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.vid-play svg{width:30px;height:30px}
.vid-label{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:#dec186}
.poemx{margin-top:18px}
.poemx-tools{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.poemx-tools button,.poemx-more{border:1px solid #c8b690;background:#fff;color:#21477b;border-radius:7px;padding:9px 14px;font:inherit;font-weight:700;cursor:pointer}
.poemx-tools button[aria-pressed="true"]{background:#142c59;color:#fff;border-color:#142c59}
.poemx-foot{text-align:center;margin:6px 0 0}
.pv{display:grid;grid-template-columns:30px 1fr;gap:4px 12px;background:#f8f6ef;border:1px solid #e5dfd4;border-left:4px solid var(--gold);border-radius:10px;padding:14px 16px;margin:0 0 10px}
.pv-n{font-weight:800;color:#8a6426;font-size:13px;padding-top:8px}
.pv-ar{display:flex;flex-wrap:wrap;justify-content:center;gap:0 2.4em;font:400 clamp(1.4rem,3vw,1.85rem)/2 'Amiri',serif;color:#101a20;text-align:center}
.pv-tr{display:none;text-align:center;font-style:italic;color:#7a6a45;margin-top:2px}
.pv-tr span{display:inline-block;margin:0 .7em}
.pv-en{display:none;text-align:center;color:#40506a;margin-top:6px}
.poemx.show-tr .pv-tr{display:block}.poemx.show-en .pv-en{display:block}
.poemx.collapsed .pv-more{display:none}
@media(max-width:560px){.pv{grid-template-columns:24px 1fr;padding:12px}.pv-tr span{display:block;margin:0}}
@media print{.poemx.collapsed .pv-more{display:grid}.poemx-tools,.poemx-foot{display:none}}
.feature-grid>.vcard,.timeline>.vcard,.creed-grid>.vcard,.mem-rows>.vcard,.src-grid>.vcard{grid-column:1/-1}
.aline{display:flex;align-items:center;justify-content:space-between;gap:14px}
.aline>.arabic,.aline>.m-ar{flex:1 1 auto;min-width:0}
.scripture-feature .aline,.quote-panel .aline[style]{justify-content:center}
.aplay{flex:0 0 auto;display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid #d9caa9;background:#fff;color:#21477b;cursor:pointer;padding:0;line-height:1}
.aplay svg{width:13px;height:13px}.aplay:hover{background:#f3ecdb}.aplay:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.aplay.playing{background:var(--gold);color:#101e36;border-color:var(--gold)}
.quote-panel .aplay,.section.dark .aplay{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.4)}
.quote-panel .aplay.playing,.section.dark .aplay.playing{background:var(--gold);color:#101e36}
.m-line{display:flex;align-items:center;justify-content:space-between;gap:14px}.m-line>.m-ar{flex:1 1 auto;min-width:0}
.aplay-err{display:block;font-size:13px;color:#8a4b32;margin:6px 0 0}.aplay-err a{font-weight:700}
@media(max-width:560px){.aplay{width:34px;height:34px}.aline,.m-line{gap:10px}}
.vcard .t-ar{text-align:right;text-justify:auto}
/* poem player: audio that follows the text */
.kp{margin-top:18px}
.kp-stage{background:linear-gradient(135deg,#06142a 0%,#142c59 100%);color:#fff;border-bottom:3px solid #d7b46a;border-radius:14px;padding:22px 24px;text-align:center;min-height:240px;display:flex;flex-direction:column;justify-content:center}
.kp-meta{font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#d7b46a;margin-bottom:10px}
.kp-ar{font:400 clamp(1.7rem,4.4vw,2.6rem)/1.9 'Amiri',serif;color:#f4e0b4}
.kp-tr{display:none;font-style:italic;color:#c4d2e4;margin-top:6px}
.kp-en{display:none;color:#fff;font-size:1.05rem;margin-top:8px}
.kp-note{display:none;color:#b9c8dc;font-size:.88rem;margin-top:12px;border-top:1px solid rgba(255,255,255,.18);padding-top:10px}
.kp.show-tr .kp-tr{display:block}.kp.show-en .kp-en{display:block}.kp.show-note .kp-note{display:block}
.kp-bar{display:flex;align-items:center;gap:10px;margin:14px 0 4px}
.kp-bar button{flex:0 0 auto;width:42px;height:42px;border-radius:50%;border:1px solid #c8b690;background:#fff;color:#21477b;font-size:22px;line-height:1;cursor:pointer;padding:0;display:grid;place-items:center}
.kp-bar .kp-play{width:54px;height:54px;background:#d7b46a;border-color:#d7b46a;color:#101e36}.kp-bar .kp-play svg{width:20px;height:20px}
.kp-bar button[disabled]{opacity:.4;cursor:not-allowed}
.kp-seek{flex:1 1 auto;min-width:0;accent-color:#142c59}
.kp-time{flex:0 0 auto;font-size:13px;color:#66728a;font-variant-numeric:tabular-nums;min-width:5.5em;text-align:right}
.kp-speed{flex:0 0 auto;border:1px solid #c8b690;border-radius:7px;background:#fff;color:#21477b;padding:8px 6px;font:inherit;font-size:13px}
.kp-status{margin:4px 0 0;font-size:13px;color:#8a6426;min-height:1.2em}
.kp-tools{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}
.kp-tools button,.kp-more{border:1px solid #c8b690;background:#fff;color:#21477b;border-radius:7px;padding:9px 14px;font:inherit;font-weight:700;cursor:pointer}
.kp-tools button[aria-pressed="true"]{background:#142c59;color:#fff;border-color:#142c59}
.kp-jump{flex:1 1 200px;min-width:0;border:1px solid #c8b690;border-radius:7px;background:#fff;color:#21477b;padding:9px 10px;font:inherit;font-weight:600;font-size:14px}
.kp-print{flex:0 0 auto;border:1px solid #c8b690;background:#fff;color:#21477b;border-radius:7px;padding:9px 14px;font-weight:700;text-decoration:none}
.kp-print:hover{background:#f3ecdb}
@media(max-width:560px){.kp-stage{padding:18px 14px;min-height:210px}.kp-bar{gap:6px;flex-wrap:wrap}.kp-seek{order:5;flex:1 0 100%}.kp-time{order:6;flex:1 0 100%;text-align:left}}
@media print{.kp-bar,.kp-tools{display:none}}
.kp-credit{margin:8px 0 0;font-size:13.5px;color:#40506a;font-weight:600}
