/* AlMubeen: a common reading surface. Screen-only rules preserve print editions. */
@font-face{font-family:Amiri;src:url('/fonts/Amiri-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Amiri;src:url('/fonts/Amiri-bold.ttf') format('truetype');font-weight:700;font-display:swap}
@media screen{
:root{--calm-bg:#f7f8f7;--calm-paper:#fff;--calm-ink:#253330;--calm-muted:#5d6c68;--calm-accent:#236b60;--calm-soft:#edf3f0;--calm-line:#dce4df;--green:#236b60;--green2:#2d786c;--gold:#726341;--gold2:#726341;--ivory:#f7f8f7;--white:#fff;--ink:#253330;--muted:#5d6c68;--paper:#fff;--line:#dce4df;--accent:#236b60;--accent2:#236b60;--soft:#edf3f0}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}html body{margin:0;background:var(--calm-bg);color:var(--calm-ink);font-family:Tahoma,Arial,sans-serif;line-height:1.85}html body:before{display:none}html body a{color:var(--calm-accent)}html body :is(button,input,textarea,select){font-family:inherit}html body :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #428e81;outline-offset:4px}html body :is(input,textarea,select){border:1px solid #bacbc3;border-radius:9px;background:#fff;color:var(--calm-ink)}html body :is(input[type=search],input[type=text],textarea,select){min-height:44px;padding:10px 13px}html body :is(h1,h2,h3,h4){color:var(--calm-ink);text-wrap:pretty}html body :is(p,li){overflow-wrap:break-word}html body [hidden]{display:none!important}
html body :is(.wrap,.reading-wrap){width:min(1120px,calc(100% - 56px));margin-inline:auto}html body :is(.site-header,.reading-header,.topbar,body>header){background:#ffffffed;color:var(--calm-ink);border-bottom:1px solid var(--calm-line);box-shadow:none;backdrop-filter:blur(14px)}html body :is(.site-header,.reading-header,body>header) nav{min-height:76px;height:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:14px}html body header a{text-decoration:none}html body :is(.brand,.reading-brand){font-size:17px;font-weight:700;color:var(--calm-ink)}html body :is(.brand small,.brand-name small){color:var(--calm-muted);font-size:12px;font-weight:400}html body :is(.brand-mark,.mark){width:38px;height:38px;border:1px solid var(--calm-line);background:var(--calm-soft);color:var(--calm-accent);border-radius:12px;box-shadow:none}html body :is(.navlinks,.nav-links,.top-actions,[data-topbar-actions]){gap:20px;align-items:center;flex-wrap:wrap}html body :is(.navlinks,.nav-links,[data-topbar-actions])>a{font-size:14px;font-weight:400}html body header :is(.btn,.pill){border:1px solid var(--calm-line);background:#fff;color:var(--calm-accent);border-radius:8px;padding:8px 14px;box-shadow:none}html body :is(.eyebrow,.kicker,.reading-kicker){color:var(--calm-muted);font:12px/1.8 Tahoma,Arial,sans-serif;letter-spacing:.03em}html body .btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--calm-line);border-radius:9px;padding:11px 20px;background:#fff;color:var(--calm-accent);text-decoration:none;box-shadow:none;transform:none}html body .btn.primary{background:var(--calm-accent);border-color:var(--calm-accent);color:#fff}html body :is(.card,.step,.batch-card,.atlas-detail,.encyclopedia-card){background:#fff;border:1px solid var(--calm-line);border-radius:12px;box-shadow:none}html body :is(.card,.step,.batch-card):hover{transform:none;box-shadow:none;border-color:#afc7ba}html body :is(.notice,.reader-engagement,.feedback){background:var(--calm-soft);color:var(--calm-ink);border:1px solid var(--calm-line);border-radius:10px}html body footer{background:transparent;color:var(--calm-muted);border-color:var(--calm-line);font-size:12px}
/* The entrance has three choices; the scholarly introduction remains available below. */
body[data-design-page=home]{background:#fbfcfa}body[data-design-page=home] a{text-decoration:none}body[data-design-page=home] header{position:sticky;top:0;z-index:30}body[data-design-page=home] .brand{display:flex;align-items:center;gap:10px}body[data-design-page=home] .brand-mark{display:grid;place-items:center}body[data-design-page=home] .brand-name{display:grid;line-height:1.5}body[data-design-page=home] .brand-name strong{font-size:15px}body[data-design-page=home] .navlinks{display:flex}body[data-design-page=home] .lang{max-width:135px;padding:7px 10px;font-size:13px}body[data-design-page=home] [data-en]{display:none}body[data-design-page=home]:not(.ar) [data-ar]{display:none}body[data-design-page=home]:not(.ar) [data-en]{display:revert}body[data-design-page=home] .home-intro{padding-block:78px 42px}body[data-design-page=home] .home-intro .eyebrow{margin:0 0 20px;font-size:13px}body[data-design-page=home] h1{font-family:Amiri,Georgia,serif;font-size:clamp(42px,5.8vw,70px);line-height:1.35;font-weight:400;margin:0 0 22px;max-width:850px;color:#263e36}body[data-design-page=home] .home-lead{font-size:17px;line-height:1.95;color:var(--calm-muted);max-width:650px;margin:0}body[data-design-page=home] .entry-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}body[data-design-page=home] .entry-point{display:flex;flex-direction:column;align-items:flex-start;padding:28px 30px 25px;border:1px solid var(--calm-line);border-radius:16px;background:#fff;color:var(--calm-ink);transition:border-color .18s,background .18s;min-width:0}body[data-design-page=home] .entry-point:first-child{background:#edf4ef;border-color:#d2e1d7}body[data-design-page=home] .entry-point:hover{border-color:#7ea996;background:#f0f6f2}body[data-design-page=home] .entry-index{font:12px/1.5 Arial,sans-serif;color:var(--calm-muted);margin-bottom:18px}body[data-design-page=home] .entry-point h2{font:400 35px/1.3 Amiri,Georgia,serif;margin:0 0 12px}body[data-design-page=home] .entry-point p{font-size:14px;line-height:1.95;color:var(--calm-muted);margin:0 0 26px;max-width:30ch}body[data-design-page=home] .entry-link{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;margin-top:auto;padding-top:20px;border-top:1px solid var(--calm-line);color:var(--calm-accent);font-size:14px}body[data-design-page=home] .home-quicklinks{display:flex;gap:28px;flex-wrap:wrap;padding-block:25px 54px;font-size:13px}body[data-design-page=home] .home-quicklinks a{text-decoration:underline;text-underline-offset:5px}body[data-design-page=home] .home-frameworks{padding-bottom:65px}body[data-design-page=home] .design-disclosure{border-top:1px solid var(--calm-line)}body[data-design-page=home] .design-disclosure:last-child{border-bottom:1px solid var(--calm-line)}body[data-design-page=home] .design-disclosure>summary{display:flex;align-items:center;gap:22px;padding:25px 0;cursor:pointer;list-style:none}body[data-design-page=home] summary::-webkit-details-marker{display:none}body[data-design-page=home] .disclosure-number{font:12px Arial,sans-serif;color:var(--calm-muted)}body[data-design-page=home] .design-disclosure strong{display:block;font-size:17px;font-weight:500;color:var(--calm-ink)}body[data-design-page=home] .design-disclosure small{display:block;color:var(--calm-muted);font-size:13px;margin-top:4px}body[data-design-page=home] .disclosure-plus{margin-inline-start:auto;font:25px Arial,sans-serif;color:var(--calm-accent)}body[data-design-page=home] .design-disclosure[open]>summary .disclosure-plus{transform:rotate(45deg)}body[data-design-page=home] .design-disclosure .wrap{width:100%;max-width:none}body[data-design-page=home] .design-disclosure section{padding:36px 30px;background:#f0f4f1;border-radius:12px;color:var(--calm-ink);margin-bottom:20px}body[data-design-page=home] .section-head{display:grid;grid-template-columns:1fr 1.15fr;gap:36px;margin-bottom:26px;align-items:start}body[data-design-page=home] .section-head h2{font:400 29px/1.6 Amiri,Georgia,serif;margin:8px 0;color:var(--calm-ink)}body[data-design-page=home] .section-head p{font-size:14px;line-height:1.95;margin:0;color:var(--calm-muted)}body[data-design-page=home] .framework-range{font-size:13px!important;color:var(--calm-muted)!important}body[data-design-page=home] .governing-path{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}body[data-design-page=home] .path-concept{display:flex;align-items:center;min-height:54px;padding:10px 14px;background:#fff;border:1px solid var(--calm-line);border-radius:8px;color:var(--calm-accent);font-size:14px;line-height:1.7}body[data-design-page=home] .path-concept:hover{border-color:#7ea996}body[data-design-page=home] .framework-bridge{padding:35px 30px;margin-top:-20px;background:linear-gradient(180deg,#f0f4f1,#fff 42%,#fff 58%,#f0f4f1);color:var(--calm-muted);font-size:14px;line-height:2}body[data-design-page=home] .framework-bridge p{font-size:14px;margin:0;max-width:850px}body[data-design-page=home] .governing-evidence{margin-top:20px;border-top:1px solid var(--calm-line);padding-top:15px;font-size:14px}body[data-design-page=home] .governing-evidence summary{cursor:pointer;min-height:44px;color:var(--calm-accent)}body[data-design-page=home] .governing-evidence ol{display:grid;grid-template-columns:1fr 1fr;gap:20px 32px;padding-inline-start:22px}body[data-design-page=home] .governing-evidence p{margin:8px 0}body[data-design-page=home] .governing-evidence [data-quran-rtl]{font:22px/1.9 Amiri,serif;color:var(--calm-ink)}body[data-design-page=home] .steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}body[data-design-page=home] .step{padding:20px;font-size:14px}body[data-design-page=home] .step>span,.card-num{color:var(--calm-muted);font-size:12px}body[data-design-page=home] .step h3{font-size:17px}body[data-design-page=home] .fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}body[data-design-page=home] .card{padding:22px}body[data-design-page=home] .card h3{font-size:17px}body[data-design-page=home] .card p,body[data-design-page=home] .topic-link{font-size:13px}body[data-design-page=home] .ijtihad-card{grid-column:1/-1}body[data-design-page=home] .about{display:grid;grid-template-columns:1fr 1.2fr;gap:35px}body[data-design-page=home] .quote{padding:20px;border-inline-start:2px solid #a2b4a5;font:24px/1.9 Amiri,serif}body[data-design-page=home] .about-copy h2{font:28px/1.7 Amiri,serif}body[data-design-page=home] .about-copy p{font-size:14px}body[data-design-page=home] footer{border-top:1px solid var(--calm-line);padding:25px 0}body[data-design-page=home] footer .wrap{display:flex;justify-content:space-between;gap:20px}
/* Catalogues: concise entries, search first, and the same book actions everywhere. */
html body .directory-heading{padding:55px 0 30px;max-width:760px}html body .directory-heading h1,html body .catalogue-title{font:400 46px/1.5 Amiri,serif;margin:0 0 12px}html body .directory-heading>p{color:var(--calm-muted);font-size:16px;margin:0}html body .catalogue-search{margin-block:28px 18px;max-width:850px}html body .catalogue-search label{display:block;font-size:13px;margin-bottom:8px;color:var(--calm-ink)}html body .catalogue-search input{width:100%;min-height:52px;font-size:15px;box-shadow:none}html body .catalogue-search-row{display:flex;gap:20px;align-items:center}html body .catalogue-search-row input{flex:1;min-width:0}html body .catalogue-search-row>a{white-space:nowrap;font-size:14px}html body .catalogue-search p{font-size:12px;color:var(--calm-muted);min-height:23px;margin:12px 0 0}html body .encyclopedia-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-bottom:65px}html body .encyclopedia-directory>.calm-collection{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:0;padding:26px 28px;min-width:0;max-width:none;background:#fff;color:var(--calm-ink);border:1px solid var(--calm-line);border-radius:13px}html body .calm-collection h2{font:400 27px/1.55 Amiri,serif;margin:0}html body .calm-collection p{font-size:14px;color:var(--calm-muted);margin:0;line-height:1.95}html body .calm-collection>a{font-size:13px;display:block;margin-top:8px;min-height:35px;align-content:center;text-decoration:underline;text-underline-offset:4px}html body .calm-collection>article{padding:10px 0 0;border-top:1px solid var(--calm-line);width:100%}html body .calm-collection h3{font-size:15px;margin:4px 0}html body .collection-index{font:12px/1.6 Arial,sans-serif;color:var(--calm-muted);margin-bottom:6px}html body .calm-book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-bottom:30px}html body .calm-book{display:flex;flex-direction:column;padding:24px;background:#fff;border:1px solid var(--calm-line);border-radius:12px;min-width:0}html body .calm-book .book-label{font-size:12px;color:var(--calm-muted);margin:0 0 13px}html body .calm-book h2{font:400 25px/1.6 Amiri,serif;margin:0 0 24px}html body .calm-book h2 a{color:var(--calm-ink);text-decoration:none}html body .calm-book nav{display:flex;gap:18px;flex-wrap:wrap;margin-top:auto;border-top:1px solid var(--calm-line);padding-top:15px;font-size:13px}html body .calm-book nav a{min-height:34px;align-content:center}html body .calm-more{display:block;margin:0 auto 55px;padding:12px 30px;background:#fff;color:var(--calm-accent);border:1px solid var(--calm-line);border-radius:9px;cursor:pointer}html body .calm-breadcrumb{font-size:13px;padding-top:25px;color:var(--calm-muted)}
/* Both reader families share a quiet header and a readable measure. */
html body .shell:has(.book-head){max-width:1120px;background:#fff;box-shadow:none;border-inline:1px solid var(--calm-line)}html body .book-head{background:#f0f5f1;color:var(--calm-ink);padding:30px 50px 36px;border-bottom:1px solid var(--calm-line)}html body .book-head :is(h1,h2,a){color:var(--calm-ink)}html body .book-head h1{max-width:840px;font:400 clamp(30px,3.4vw,42px)/1.6 Amiri,serif}html body .book-brand{padding-bottom:22px;border-bottom:1px solid #dae5dd;font:13px/1.8 Tahoma,Arial,sans-serif;margin-bottom:25px}html body .book-id,html body .series{color:var(--calm-muted);font-size:12px}html body .book-head .actions a{background:#fff;color:var(--calm-accent);border:1px solid #ccdcd1;border-radius:8px;font:13px/1.9 Tahoma,Arial,sans-serif;padding:9px 14px}html body .shell>.notice{background:#f7f8f7;border:1px solid var(--calm-line);margin:25px 50px 0;font:13px/1.95 Tahoma,Arial,sans-serif;padding:17px 20px}html body .toc{margin:24px 50px;background:#f8faf8;border:1px solid var(--calm-line);border-radius:9px;padding:18px 24px;font-family:Tahoma,Arial,sans-serif}html body .toc summary{font:15px/1.9 Tahoma,Arial,sans-serif}html body .shell>article{max-width:850px;margin-inline:auto;padding:30px 40px 65px;font:22px/2.05 Amiri,serif}html body .shell>article p{text-align:start}html body .shell>article h2{font-size:29px;color:var(--calm-ink);margin-top:2em}html body .shell>article h3{font-size:25px;color:var(--calm-ink)}html body .batch-index{padding:34px 45px}html body .batch-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}html body .batch-card{padding:24px}html body .batch-card h2{font:400 27px/1.6 Amiri,serif}html body .batch-card>span{font:12px Tahoma,Arial,sans-serif;color:var(--calm-muted)}html body .batch-card nav{font:13px/1.9 Tahoma,Arial,sans-serif;gap:15px;border-top:1px solid var(--calm-line);padding-top:16px}html body .batch-card nav a{min-height:36px;align-content:center}html body.reading-system{--ink:#253330;--paper:#f7f8f7;--muted:#5d6c68;--accent:#236b60;--line:#dce4df;color:var(--calm-ink);background:var(--calm-bg)}html body .reader-intro{padding-block:32px;gap:40px}html body .reader-intro h1{font:400 42px/1.6 Amiri,serif}html body .reader-summary{font:18px/1.95 Amiri,serif;color:var(--calm-muted)}html body .reader-layout{grid-template-columns:230px minmax(0,1fr);gap:40px}html body .reader-toc{font-size:13px}html body .reader-toc a{font-size:13px;line-height:1.9;border-radius:6px}html body .reading-prose{background:#fff;max-width:780px;padding:34px 42px;border:1px solid var(--calm-line);border-radius:12px;font-family:Amiri,serif;line-height:2.05;color:var(--calm-ink)}html body .reading-prose p{text-align:start}html body .reader-toolbar{background:#f0f4f1;border:1px solid var(--calm-line);padding:12px;border-radius:9px}html body .reading-system :is(button,.reading-button){border-radius:8px}html body .reading-system .reading-button{background:var(--calm-accent);color:#fff}html body .reader-engagement{padding:22px;background:#f0f4f1}html body .reader-engagement h2{font:25px/1.6 Amiri,serif}html body .atlas-row,html body .atlas-panel,html body .atlas-detail{border-color:var(--calm-line)}html body .atlas-hero{background:var(--calm-soft);color:var(--calm-ink)}
/* Dialogue and learning retain their existing controls and gain the same palette. */
html body[data-design-page=chat] .shell{background:var(--calm-bg);box-shadow:none}html body[data-design-page=chat] .app{max-width:1180px;margin:auto;grid-template-columns:270px minmax(0,1fr);gap:32px;padding:35px 28px}html body[data-design-page=chat] .side{background:transparent;border:0;box-shadow:none;padding:12px 0}html body[data-design-page=chat] .side h1{font:400 29px/1.7 Amiri,serif;color:var(--calm-ink)}html body[data-design-page=chat] .side>p{font-size:13px;line-height:1.95;color:var(--calm-muted)}html body[data-design-page=chat] .side h2{font-size:13px;font-weight:400;color:var(--calm-muted);margin-top:27px}html body[data-design-page=chat] .side .status{background:transparent;border:0;font-size:12px;color:var(--calm-muted)}html body[data-design-page=chat] .suggestion{background:#fff;color:var(--calm-ink);border:1px solid var(--calm-line);border-radius:9px;padding:12px;font-size:13px;line-height:1.9;text-align:start}html body[data-design-page=chat] .chat{background:#fff;border:1px solid var(--calm-line);border-radius:16px;box-shadow:none;min-height:620px}html body[data-design-page=chat] .welcome{max-width:600px;padding:42px 30px}html body[data-design-page=chat] .welcome h2{font:400 31px/1.65 Amiri,serif;color:var(--calm-ink)}html body[data-design-page=chat] .welcome p{font-size:15px;color:var(--calm-muted)}html body[data-design-page=chat] .welcome .seal{background:var(--calm-soft);color:var(--calm-accent);border:1px solid var(--calm-line);box-shadow:none;width:52px;height:52px;border-radius:15px}html body[data-design-page=chat] .welcome .verse{background:#f7f9f7;border:0;color:var(--calm-muted)}html body[data-design-page=chat] .composer-wrap{background:#fff;border-top:1px solid var(--calm-line);padding:20px}html body[data-design-page=chat] .composer{background:#f8faf8;border:1px solid #cad9d0;border-radius:12px;box-shadow:none}html body[data-design-page=chat] .composer textarea{border:0;background:transparent;font-size:16px;color:var(--calm-ink)}html body[data-design-page=chat] .send{background:var(--calm-accent);color:#fff;border:0;border-radius:9px}html body[data-design-page=chat] .message.user,html body[data-design-page=chat] .user .bubble{background:#eaf3ed;color:var(--calm-ink)}html body[data-design-page=chat] .chat-guidance{font-size:12px;margin-top:25px;color:var(--calm-muted)}html body[data-design-page=chat] .chat-guidance summary{cursor:pointer;min-height:44px}html body[data-design-page=chat] .principles{border:0;padding:12px 0}html body:is([data-design-page=professor],[data-design-page=academy]) .heading{padding-block:40px 25px}html body:is([data-design-page=professor],[data-design-page=academy]) :is(.card,.panel,.course>aside,.lesson-panel,.academy-card){background:#fff;border:1px solid var(--calm-line);border-radius:12px;box-shadow:none}html body[data-design-page=professor] .heading h1{font-size:36px;font-weight:400;color:var(--calm-ink)}html body[data-design-page=professor] .reading{font:23px/2 Amiri,serif;color:var(--calm-ink)}html body:is([data-design-page=professor],[data-design-page=academy]) :is(button,.primary){background:var(--calm-accent);border-color:var(--calm-accent);color:#fff;border-radius:8px}html body:is([data-design-page=professor],[data-design-page=academy]) :is(button.secondary,button[aria-selected=false]){background:#fff;color:var(--calm-accent);border-color:var(--calm-line)}
/* Context actions are one accessible disclosure beside a heading. */
html body .alm-title-actions{position:relative;display:inline-flex;vertical-align:middle;align-items:center;margin:0 8px;gap:0;font:13px/1.8 Tahoma,Arial,sans-serif}html body .alm-title-actions .alm-actions-toggle{display:inline-grid;place-items:center;padding:0;width:34px;height:34px;min-height:34px;border:1px solid var(--calm-line);border-radius:8px;background:#fff;color:var(--calm-muted);font:22px Arial,sans-serif;box-shadow:none;cursor:pointer}html body .alm-title-actions .alm-actions-panel{position:absolute;z-index:50;inset-inline-end:0;top:calc(100% + 8px);display:flex;align-items:center;gap:12px;padding:12px 15px;width:230px;max-width:calc(100vw - 40px);background:#fff;border:1px solid var(--calm-line);border-radius:10px;box-shadow:0 10px 30px #25333018;color:var(--calm-ink)}html body .alm-title-actions .alm-title-chat{font-size:13px;color:var(--calm-accent);min-height:38px;padding:0;line-height:1.7}html body .alm-title-actions .alm-title-review{flex-shrink:0}html body .alm-review-tip{background:#fff;color:var(--calm-ink);border-color:var(--calm-line);box-shadow:0 5px 18px #25333018}html body:not(.calm-review-visible) .alm-content-review{display:none}html body .calm-review-toggle{margin:10px 0;padding:9px 13px;border:1px solid var(--calm-line);border-radius:8px;background:#fff;color:var(--calm-accent);font:12px/1.8 Tahoma,Arial,sans-serif;cursor:pointer}html body .alm-concept-item>.path-concept{padding-inline-end:44px}html body .alm-concept-review{color:var(--calm-muted)}
@media(max-width:900px){html body :is(.wrap,.reading-wrap){width:calc(100% - 36px)}html body .calm-book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html body .reader-layout{grid-template-columns:190px minmax(0,1fr);gap:20px}html body .reading-prose{padding:25px}body[data-design-page=home] .home-intro{padding-top:55px}body[data-design-page=home] .entry-point{padding:23px}body[data-design-page=home] .governing-path{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-design-page=home] .steps,body[data-design-page=home] .fields{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-design-page=home] .section-head{grid-template-columns:1fr;gap:16px}html body[data-design-page=chat] .app{grid-template-columns:220px minmax(0,1fr);gap:20px;padding:25px 18px}}
@media(max-width:680px){html body :is(.wrap,.reading-wrap){width:calc(100% - 32px)}html body :is(.site-header,.reading-header,body>header) nav{flex-wrap:wrap;gap:12px;min-height:68px;padding-block:12px}html body :is(.navlinks,.nav-links,[data-topbar-actions],.top-actions){gap:14px}html body :is(.navlinks,.nav-links,[data-topbar-actions])>a{font-size:12px}html body .reading-header [data-topbar-actions]{justify-content:flex-start}body[data-design-page=home] header nav{align-items:center}body[data-design-page=home] .brand-name small{display:none}body[data-design-page=home] .navlinks{width:100%;justify-content:space-between}body[data-design-page=home] .navlinks>a{display:block}body[data-design-page=home] .lang{max-width:115px;min-height:36px;font-size:12px}body[data-design-page=home] .home-intro{padding-block:38px 26px}body[data-design-page=home] h1{font-size:43px;line-height:1.4;margin-bottom:17px}body[data-design-page=home] .home-lead{font-size:15px}body[data-design-page=home] .entry-points{grid-template-columns:1fr;gap:12px}body[data-design-page=home] .entry-point{display:grid;grid-template-columns:28px 1fr;gap:4px 14px;padding:22px}body[data-design-page=home] .entry-index{grid-column:1;grid-row:1;margin-top:10px}body[data-design-page=home] .entry-point h2{grid-column:2;margin:0 0 5px;font-size:31px}body[data-design-page=home] .entry-point p{grid-column:2;font-size:13px;margin:0 0 12px;max-width:none}body[data-design-page=home] .entry-link{grid-column:2;padding-top:12px;font-size:13px}body[data-design-page=home] .home-quicklinks{gap:12px 22px;padding-bottom:35px}body[data-design-page=home] .design-disclosure>summary{gap:14px;padding:22px 0}body[data-design-page=home] .design-disclosure strong{font-size:15px}body[data-design-page=home] .design-disclosure small{font-size:12px}body[data-design-page=home] .design-disclosure section{padding:24px 18px}body[data-design-page=home] .section-head h2{font-size:26px}body[data-design-page=home] .framework-bridge{padding:28px 18px}body[data-design-page=home] .governing-path{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-design-page=home] .path-concept{font-size:13px;padding:9px}body[data-design-page=home] .governing-evidence ol,body[data-design-page=home] .fields,body[data-design-page=home] .about{grid-template-columns:1fr}body[data-design-page=home] .steps{grid-template-columns:1fr}body[data-design-page=home] footer .wrap{flex-direction:column;gap:8px}html body .encyclopedia-directory,html body .calm-book-grid,html body .batch-grid{grid-template-columns:1fr}html body .directory-heading{padding-top:35px}html body .directory-heading h1,html body .catalogue-title{font-size:38px}html body .encyclopedia-directory>.calm-collection{padding:24px}html body .catalogue-search-row{flex-wrap:wrap;gap:12px}html body .catalogue-search-row input{flex-basis:100%}html body .reader-layout{grid-template-columns:1fr}html body .reader-toc{position:static;max-height:none}html body .reader-toc ol{max-height:40vh}html body .reader-intro{gap:20px}html body .reader-intro h1{font-size:34px}html body .reading-prose{padding:24px 19px;line-height:2}html body .book-head{padding:24px}html body .shell>.notice,html body .toc{margin-inline:20px}html body .shell>article{padding:24px;font-size:21px}html body .batch-index{padding:22px}html body[data-design-page=chat] .app{display:flex;flex-direction:column;padding:20px 16px}html body[data-design-page=chat] .side{display:block;order:2;padding:5px 0}html body[data-design-page=chat] .side>h1,html body[data-design-page=chat] .side>.eyebrow,html body[data-design-page=chat] .side>p,html body[data-design-page=chat] .side>.status{display:none}html body[data-design-page=chat] .suggestions{display:grid;grid-template-columns:1fr 1fr;gap:10px}html body[data-design-page=chat] .chat{min-height:540px;max-height:none}html body[data-design-page=chat] .welcome{padding:30px 22px}html body[data-design-page=chat] .welcome h2{font-size:28px}html body[data-design-page=chat] .composer-wrap{padding:14px}html body .alm-title-actions .alm-actions-panel{inset-inline-end:auto;inset-inline-start:0;width:210px}}
html body .book-secondary-actions{position:relative;font-size:13px}html body .book-secondary-actions summary{min-height:36px;align-content:center;cursor:pointer}html body .book-secondary-actions a{display:block;padding:8px 0}html body[data-design-page=chat] .app{width:100%;min-height:0}html body[data-design-page=chat] .chat{min-height:0;max-height:100%}html body[data-design-page=chat] .bubble{background:#edf4ef;border-color:var(--calm-line);color:var(--calm-ink)}html body[data-design-page=chat] .assistant .bubble{background:#fff}html body[data-design-page=academy] .resume{background:var(--calm-soft);color:var(--calm-ink);border-color:var(--calm-line)}html body[data-design-page=academy] .resume :is(h2,.muted,.kicker){color:var(--calm-ink)}html body[data-design-page=academy] .resume button{background:var(--calm-accent);color:#fff;border-color:var(--calm-accent)}body[data-design-page=home].ltr .entry-link>[aria-hidden]{transform:rotate(180deg)}
@media(max-width:680px){html body[data-design-page=chat]{height:auto;overflow:auto}html body[data-design-page=chat] .shell{height:auto;min-height:100dvh;grid-template-rows:72px auto}html body[data-design-page=chat] .app{height:auto}html body[data-design-page=chat] .chat{height:calc(100dvh - 135px);min-height:480px;max-height:780px}}
html body[data-design-page=directory] .brand>span{display:block;font:12px/1.8 Georgia,serif;direction:ltr;color:var(--calm-muted)}html body .calm-collection>a{background:transparent;border:0;border-radius:0;color:var(--calm-accent);box-shadow:none}html body[data-design-page=catalogue] main>.catalogue-title{padding-top:35px}
body[data-design-page=home] .home-intro h1{max-width:none}body[data-design-page=home] .home-intro h1>[data-ar]{white-space:nowrap;font-size:clamp(20px,5.4vw,62px)}
/* Original AlMubeen arch and open-book emblem, restored at a compact scale. */
html body .calm-brand-icon{width:36px;height:36px;flex-shrink:0;border-radius:9px}html body .calm-branded-link{display:inline-flex;align-items:center;gap:10px}html body :is(.brand-mark,.mark):has(img){background:transparent;border:0;box-shadow:none}html body .brand-mark img{display:block;width:40px;height:40px;border-radius:10px}
body[data-design-page=home] .home-intro{display:grid;grid-template-columns:minmax(0,1fr) 184px;align-items:center;gap:46px;padding-block:54px 40px}body[data-design-page=home] .home-intro-copy{min-width:0;container-type:inline-size}body[data-design-page=home] .home-intro h1>[data-ar]{font-size:clamp(20px,6.4cqi,62px)}
body[data-design-page=home] .home-brand-emblem{position:relative;display:grid;place-items:center;width:184px;min-height:248px;color:#174e40;text-align:center;isolation:isolate}body[data-design-page=home] .home-brand-emblem .arch{position:absolute;inset:0;border:1px solid #c6ad77;border-radius:94px 94px 15px 15px;background:#f1f5ed;z-index:-1}body[data-design-page=home] .home-brand-emblem .arch:after{content:"";position:absolute;inset:8px;border:1px solid #e0d6bb;border-radius:86px 86px 10px 10px}body[data-design-page=home] .home-brand-emblem .emblem{padding:23px 12px 19px;width:100%}body[data-design-page=home] .home-brand-emblem .diamond{width:5px;height:5px;margin:0 auto 12px;background:#b29355;transform:rotate(45deg)}body[data-design-page=home] .home-brand-emblem .emblem-ar{font:700 35px/1.15 Amiri,serif;color:#174e40}body[data-design-page=home] .home-brand-emblem .book{display:block;width:71px;height:auto;margin:12px auto 9px;color:#174e40}body[data-design-page=home] .home-brand-emblem .emblem-en{font:15px/1.3 Georgia,serif;direction:ltr;color:#174e40}body[data-design-page=home] .home-brand-emblem .gold-rule{height:1px;width:92px;background:#c6ad77;margin:10px auto}body[data-design-page=home] .home-brand-emblem [data-quran-rtl]{font:14px/1.6 Amiri,serif;white-space:nowrap;color:#345a4c}
@media(max-width:900px){body[data-design-page=home] .home-intro{gap:28px;grid-template-columns:minmax(0,1fr) 164px}body[data-design-page=home] .home-brand-emblem{width:164px;min-height:234px}body[data-design-page=home] .home-brand-emblem .emblem-ar{font-size:32px}}
@media(max-width:760px){body[data-design-page=home] .home-intro{grid-template-columns:1fr;gap:25px;padding-block:30px}body[data-design-page=home] .home-brand-emblem{order:-1;justify-self:start;width:142px;min-height:198px}body[data-design-page=home] .home-brand-emblem .emblem{padding:18px 8px 14px}body[data-design-page=home] .home-brand-emblem .emblem-ar{font-size:28px}body[data-design-page=home] .home-brand-emblem .diamond{margin-bottom:8px}body[data-design-page=home] .home-brand-emblem .book{width:56px;margin:8px auto}body[data-design-page=home] .home-brand-emblem .emblem-en{font-size:13px}body[data-design-page=home] .home-brand-emblem .gold-rule{margin:7px auto;width:78px}body[data-design-page=home] .home-brand-emblem [data-quran-rtl]{font-size:12px}body[data-design-page=home] .home-intro h1>[data-ar]{font-size:clamp(19px,6.4cqi,45px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}html body *{transition:none!important;animation:none!important}}
}
