@font-face{font-family:Thmanyah;src:url(assets/thmanyahsans-Regular.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Thmanyah;src:url(assets/thmanyahsans-Bold.woff2) format('woff2');font-weight:700;font-display:swap}
:root{--bg:#f7f5ef;--ink:#183f44;--muted:#586e6b;--green:#08675b;--line:#d8e2da;--paper:#fffefa;--gold:#eab947;--accent:#08675b;--tint:#e6f0e8}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Thmanyah,Arial,sans-serif;font-size:19px;line-height:1.9}button,input{font:inherit}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,a,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #197bb4;outline-offset:4px}[hidden]{display:none!important}.icon{width:23px;height:23px;flex-shrink:0;vertical-align:middle}p{margin:0 0 14px}h1,h2,h3{line-height:1.6}h1{font-size:clamp(32px,3.3vw,44px);letter-spacing:-.45px;margin:8px 0 12px}h2{font-size:28px;margin:30px 0 13px}h3{font-size:23px;margin:0}.eyebrow{font-size:14px;font-weight:700;color:var(--green);margin:0}.site-header{max-width:1180px;margin:auto;padding:20px 26px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-size:23px;font-weight:700;color:var(--ink)}.brand:hover{text-decoration:none}.brand img{width:48px;height:48px}.brand small{display:block;font-size:13px;line-height:1.4;font-weight:400;color:var(--muted)}.review-label{font-size:13px;white-space:nowrap;padding:4px 12px;border:1px solid #d9bc78;border-radius:24px;background:#fff2cd;color:#73551a}main{max-width:1180px;margin:auto;padding:28px 26px 65px}.site-footer{max-width:1180px;margin:auto;padding:22px 26px;border-top:1px solid var(--line);font-size:14px;color:var(--muted);display:flex;justify-content:space-between;gap:15px}.category-quran{--accent:#166d54;--tint:#e6f0e8}.category-hadith{--accent:#2e6090;--tint:#e8eff8}.category-fiqh{--accent:#87511e;--tint:#faf0de}.category-seerah{--accent:#80543e;--tint:#f5e9df}.category-aqeedah{--accent:#79518b;--tint:#f0e9f5}.category-ethics{--accent:#8b4e5a;--tint:#f7e8ed}
/* Compact library: questions and categories before lengthy introductory text. */
.library-intro{display:flex;justify-content:space-between;align-items:center;gap:25px;margin:0 0 23px}.library-intro h1{margin:3px 0 5px}.library-intro p:not(.eyebrow){font-size:18px;color:var(--muted);margin:0}.library-count{flex-shrink:0;border-inline-start:1px solid var(--line);padding-inline-start:26px;text-align:center}.library-count strong{font-size:39px;line-height:1.2;font-weight:700;color:var(--green);display:block}.library-count span{font-size:13px;color:var(--muted)}.search-area{margin-bottom:15px}.search-area label{display:block;font-size:16px;font-weight:700;margin-bottom:7px}.search-field{display:flex;align-items:center;gap:12px;background:var(--paper);border:1px solid #b8cfc2;border-radius:15px;padding:8px 16px;box-shadow:0 4px 16px #183f4405}.search-field>.icon{color:#728d7d}.search-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:18px;min-height:38px}.search-field:focus-within{outline:2px solid #267d67;outline-offset:2px}.search-field input:focus-visible{outline:none}.search-field input::placeholder{color:#73847f}.clear-search{border:0;border-radius:9px;padding:5px 11px;font-size:14px;background:#e8efe9;color:var(--green)}.category-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 23px}.category-filter{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:11px;padding:7px 10px;background:var(--paper);color:var(--ink);font-size:14px;line-height:1.6}.category-filter .icon{width:18px;height:18px;color:var(--accent)}.category-filter b{font-size:11px;color:var(--muted);font-weight:400;min-width:21px;background:#edf1eb;border-radius:7px;text-align:center;padding:0 4px}.category-filter:hover,.category-filter.active{color:var(--accent);background:var(--tint);border-color:var(--accent);text-decoration:none}.category-filter.active b{color:var(--accent);background:#fff8}.results-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 13px}.results-heading h2{font-size:23px;margin:0}.results-heading p{margin:0;font-size:14px;color:var(--muted)}.question-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.question-card{display:flex;flex-direction:column;align-items:flex-start;padding:23px;background:var(--paper);border:1px solid var(--line);border-radius:18px;min-width:0;transition:border-color .15s,box-shadow .15s;color:var(--ink)}.question-card:hover{border-color:var(--accent);box-shadow:0 8px 22px #123a300c;text-decoration:none}.card-category{display:flex;align-items:center;gap:7px;color:var(--accent);font-size:13px;background:var(--tint);padding:3px 9px;border-radius:8px;margin-bottom:12px}.card-category .icon{width:17px;height:17px}.question-card h3{font-size:23px;line-height:1.65;margin-bottom:9px}.question-card>p{font-size:17px;color:var(--muted);line-height:1.9;margin-bottom:18px}.card-read{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--accent);font-size:15px;font-weight:700;margin-top:auto;width:100%;padding-top:10px;border-top:1px solid var(--line)}.card-read .icon{width:19px;height:19px}.empty-results{padding:40px 20px;text-align:center;background:var(--paper);border:1px dashed #b9cfc2;border-radius:18px}.empty-results>.icon{width:38px;height:38px;color:var(--green)}.empty-results h2{font-size:26px;margin:12px 0 6px}.empty-results p{font-size:18px;color:var(--muted)}.reset-search{border:0;background:var(--green);color:white;border-radius:12px;padding:11px 18px;font-size:16px}.no-script-note{font-size:14px;color:var(--muted);margin-top:24px}
/* Reading keeps the question prominent, with optional category navigation. */
.breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--muted);margin-bottom:20px}.article-heading{max-width:910px;margin-bottom:24px}.article-heading h1{font-size:clamp(31px,3.1vw,42px);line-height:1.6;margin-bottom:0}.reading-position{font-weight:400;color:var(--muted)}.reading-grid{display:grid;grid-template-columns:minmax(0,1fr) 268px;gap:36px;align-items:start}.reading-body{min-width:0}.reading-aside{position:sticky;top:24px}.section-panel{border:1px solid var(--line);border-radius:17px;background:var(--paper);overflow:hidden}.section-link{display:grid;grid-template-columns:27px 1fr;column-gap:8px;align-items:center;padding:17px 17px 14px;background:var(--tint);color:var(--accent)}.section-link>.icon{grid-row:1/3}.section-link strong{font-size:17px}.section-link>span{font-size:13px}.section-menu summary{cursor:pointer;font-size:15px;font-weight:700;padding:14px 17px;line-height:1.7}.section-menu ol{margin:0;padding:0 17px 15px;list-style:none}.section-menu li+li{border-top:1px solid var(--line)}.section-menu li a{display:block;padding:11px 0;color:var(--muted);font-size:15px;line-height:1.8}.section-menu li a[aria-current=page]{color:var(--accent);font-weight:700}.all-sections-link{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;padding:14px 2px}.all-sections-link .icon{width:18px;height:18px}.answer{background:#e4f0e9;border-inline-start:4px solid var(--green);border-radius:17px;padding:21px 25px;margin:0 0 25px;font-size:22px;line-height:1.95}.answer>strong{display:block;font-size:14px;color:var(--green);margin-bottom:7px}.prose{font-size:20px;line-height:2.05}.prose p{margin:0 0 17px}.prose h2{font-size:27px;line-height:1.65;margin:29px 0 13px}.prose ul{padding-inline-start:25px}.prose li{margin-bottom:8px}.prose li::marker{color:var(--green)}.quran-text{font-size:1.45em;letter-spacing:normal;word-break:normal;overflow-wrap:normal}.notice{padding:17px 20px;border:1px solid #dfc78f;border-radius:15px;background:#fff3d8;color:#725521;font-size:17px;line-height:1.9;margin-bottom:21px}.callout{padding:20px 23px;border:1px solid #e3d6b8;border-radius:17px;background:#fffaee;margin:25px 0}.tip{padding:21px 25px;border-radius:17px;background:#eaf1f7;margin:25px 0}.callout h2,.tip h2{font-size:23px;margin:0 0 9px}.callout p,.tip p{margin:0}.quiz{padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:20px;margin-top:30px}.quiz h2{font-size:27px;margin:2px 0 12px}.quiz-question{font-size:22px;line-height:1.85;font-weight:700;margin-bottom:20px}.options{display:grid;grid-template-columns:1fr 1fr;gap:11px}.option{text-align:start;display:flex;align-items:start;gap:11px;border:1px solid #b9d9cb;background:#eaf4ee;color:#164d3d;border-radius:13px;line-height:1.8;padding:14px;font-size:18px}.option:nth-child(2){background:#eaf0fa;border-color:#c1d0e7;color:#264c7a}.option:nth-child(3){background:#fff1df;border-color:#e7ceb0;color:#75471d}.option:nth-child(4){background:#f2ebf7;border-color:#d5c4e4;color:#674279}.option b{font-size:13px;border:1px solid currentColor;border-radius:8px;width:25px;height:25px;margin-top:4px;display:grid;place-items:center;flex-shrink:0}.option[aria-pressed=true]{outline:3px solid currentColor;outline-offset:2px}.feedback{padding:15px 18px;margin:20px 0 0;border-radius:12px;background:#e5f2e9;font-size:18px;line-height:1.9}.feedback.wrong{background:#fff0e8;color:#7d381f}.quiz-explanation{font-size:16px;margin-top:20px;color:var(--muted)}.quiz-explanation summary{cursor:pointer;font-weight:700;color:var(--green)}.quiz-explanation p{margin:12px 0}.quiz-explanation ol{padding-inline-start:23px}.quiz-explanation li{margin-bottom:7px}.related-section{margin-top:33px}.related-section h2{font-size:25px;margin:2px 0 14px}.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.compact-card{padding:16px}.compact-card h3{font-size:18px;line-height:1.8;margin-bottom:16px}.compact-card .card-category{font-size:11px;gap:5px;padding:3px 6px;margin-bottom:10px}.compact-card .card-category .icon{width:14px;height:14px}.compact-card .card-read{font-size:12px}.article-navigation{margin-top:29px;border-top:1px solid var(--line);padding-top:25px}.next-question{display:grid;grid-template-columns:1fr auto;column-gap:15px;background:#e3eee6;border:1px solid #bdcfc0;border-radius:17px;padding:20px 23px;color:var(--ink)}.next-question:hover{text-decoration:none;border-color:var(--green)}.next-question>span{grid-column:1;font-size:14px;color:var(--green)}.next-question>strong{grid-column:1;font-size:23px;line-height:1.7;margin-top:6px}.next-question>.icon{grid-column:2;grid-row:1/3;align-self:center}.back-to-section{display:block;margin-top:13px;font-size:15px;text-align:center}
@media(max-width:1000px){.reading-grid{grid-template-columns:minmax(0,1fr) 235px;gap:24px}.related-grid{grid-template-columns:1fr}.compact-card{display:grid;grid-template-columns:1fr auto;gap:0 14px}.compact-card .card-category{grid-column:1/3;justify-self:start}.compact-card h3{margin:0;font-size:20px}.compact-card .card-read{align-self:end;border:0;padding:0;width:auto}.category-filter{font-size:13px;padding:7px 9px;gap:6px}}
@media(max-width:800px){.reading-grid{grid-template-columns:1fr;gap:20px}.reading-aside{order:-1;position:static}.section-panel{display:block}.section-link{display:flex;gap:9px;padding:11px 15px}.section-link>span{margin-inline-start:auto}.section-menu summary{padding:11px 15px}.section-menu ol{columns:2;column-gap:25px}.section-menu li{break-inside:avoid}.all-sections-link{display:none}.article-heading{margin-bottom:18px}.related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-card{display:flex}.compact-card h3{font-size:18px;margin-bottom:12px}.compact-card .card-read{width:100%;margin-top:auto}.options{grid-template-columns:1fr 1fr}}
@media(max-width:600px){body{font-size:18px}.site-header{padding:16px;gap:10px}.brand{font-size:19px;gap:9px}.brand img{width:42px;height:42px}.brand small{font-size:11px}.review-label{font-size:11px;padding:3px 8px}main{padding:20px 16px 48px}.library-intro{gap:12px;margin-bottom:18px}.library-intro h1{font-size:29px;line-height:1.5}.library-intro .eyebrow{font-size:12px}.library-intro p:not(.eyebrow){font-size:16px;line-height:1.8}.library-count{padding-inline-start:14px}.library-count strong{font-size:29px}.library-count span{font-size:10px;white-space:nowrap}.search-area label{font-size:14px}.search-field{padding:7px 12px;gap:9px}.search-field input{font-size:16px;min-height:36px}.search-field>.icon{width:20px;height:20px}.category-filters{gap:7px;margin-bottom:20px}.category-filter{padding:6px 8px;font-size:12px;gap:5px;border-radius:9px}.category-filter .icon{width:16px;height:16px}.category-filter b{font-size:10px;min-width:18px}.results-heading{align-items:baseline;gap:10px}.results-heading h2{font-size:20px}.results-heading p{font-size:12px;white-space:nowrap}.question-grid{grid-template-columns:1fr;gap:12px}.question-card{padding:19px;border-radius:16px}.question-card h3{font-size:22px}.question-card>p{font-size:17px;line-height:1.9}.card-category{font-size:12px;margin-bottom:10px}.card-read{font-size:14px}.breadcrumb{font-size:12px;gap:6px;margin-bottom:15px}.article-heading h1{font-size:29px;line-height:1.65}.article-heading .eyebrow{font-size:13px}.reading-position{display:block}.section-menu ol{columns:1}.answer{padding:18px;font-size:21px}.prose{font-size:19px;line-height:2.05}.prose h2{font-size:25px}.callout,.tip{padding:19px}.callout h2,.tip h2{font-size:22px}.notice{padding:15px 17px;font-size:16px}.quiz{padding:19px}.quiz h2{font-size:25px}.quiz-question{font-size:21px}.options{grid-template-columns:1fr}.option{font-size:18px}.quiz-explanation{font-size:16px}.related-grid{grid-template-columns:1fr}.compact-card{display:grid;grid-template-columns:1fr auto;gap:0 14px;padding:16px}.compact-card .card-category{grid-column:1/3}.compact-card h3{font-size:20px;margin:0}.compact-card .card-read{width:auto;margin:0;align-self:end;white-space:nowrap;font-size:12px}.next-question{padding:18px}.next-question>strong{font-size:22px}.next-question>span{font-size:13px}.site-footer{padding:20px 16px;flex-direction:column;gap:7px;font-size:13px}}
@media(max-width:380px){.brand{font-size:17px}.brand img{width:38px;height:38px}.review-label{font-size:10px}.library-intro h1{font-size:27px}.library-count{display:none}.compact-card{display:flex}.compact-card h3{margin-bottom:12px}.compact-card .card-read{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
@media print{.site-header,.site-footer,.reading-aside,.search-area,.category-filters,.quiz,.related-section,.article-navigation{display:none}body{background:white}.reading-grid{display:block}main{max-width:none;padding:0}.answer,.callout,.tip{break-inside:avoid}a{color:inherit}}

.library-pagination{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;margin:28px 0}.library-pagination a,.search-more{border:1px solid var(--line,#c9ded4);border-radius:12px;padding:12px 20px;background:var(--surface,#fff);color:var(--ink,#173e42);text-decoration:none;font:inherit}.search-more{display:block;margin:24px auto;cursor:pointer}.library-pagination[hidden]{display:none}

/* Quran text: unchanged KFGQPC Hafs 0.18. Only ornate brackets use Amiri Quran 1.003. */
@font-face {
  font-family: "QuranHafs";
  src: url("assets/UthmanicHafs1Ver18.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-FD3D, U+FD40-10FFFF;
}
@font-face {
  font-family: "QuranHafs";
  src: url("assets/AmiriQuran-1.003.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+FD3E-FD3F;
}
.quran-text {
  font-family: "QuranHafs", "Traditional Arabic", serif;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  font-feature-settings: normal;
  font-variant-ligatures: normal;
  letter-spacing: normal;
  line-height: 2.2;
  direction: rtl;
  unicode-bidi: isolate;
  word-break: normal;
  overflow-wrap: normal;
}

html[data-theme="dark"]{--bg:#101e2b;--paper:#192f3c;--surface:#192f3c;--ink:#eef5ef;--text:#eef5ef;--muted:#b6cbd3;--line:#36515b;--green:#86d5c2}html[data-theme="dark"] body{background:#101e2b;color:#eef5ef}html[data-theme="dark"] :is(.question-card,.answer,.quiz,.section-panel,.callout,.tip,.search-field,.option,.next-question){background:#192f3c;color:#eef5ef}html[data-theme="dark"] :is(h1,h2,h3,.brand,.option,.card-read){color:#eef5ef}
