/* Seerah site stylesheet: the four prototype files merged in their original order
   (styles → design-overrides → soft-cgi → section-cgi), so the look is identical.
   Site additions (inner pages, Urdu right-to-left, messages) are in site-extra at the end. */

/* ===== styles.css ===== */
:root{--ink:#172428;--deep:#101b20;--deep-2:#15262a;--cream:#f2eee5;--paper:#faf8f3;--gold:#c9a96b;--muted:#8a9995;--line:rgba(219,205,171,.18);--serif:"Playfair Display",Georgia,serif;--sans:"DM Sans",Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:15px;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}.wrap{width:min(1180px,calc(100% - 64px));margin:0 auto}.skip-link{position:absolute;z-index:30;left:16px;top:-60px;padding:12px 18px;background:var(--gold);color:var(--deep)}.skip-link:focus{top:12px}.site-header{height:82px;padding:0 max(32px,calc((100vw - 1320px)/2));display:flex;justify-content:space-between;align-items:center;background:#111c20;color:#f7f3e8;position:relative;z-index:10;border-bottom:1px solid rgba(255,255,255,.08)}.brand{display:flex;gap:12px;align-items:center}.brand-mark{width:37px;height:37px;border:1px solid rgba(201,169,107,.55);border-radius:50%;display:grid;place-items:center;color:var(--gold);font-family:serif;font-size:22px}.brand strong,.brand small{display:block}.brand strong{font-size:10px;letter-spacing:.2em;font-weight:600}.brand small{font-size:9px;letter-spacing:.12em;color:#a2aaa4;margin-top:4px}.site-nav{display:flex;align-items:center;gap:36px;font-size:11px;color:#d7d7cf}.site-nav>a:not(.nav-cta){transition:color .2s}.site-nav>a:hover{color:var(--gold)}.nav-cta{padding:12px 16px;border:1px solid rgba(201,169,107,.6);color:#ead7ae;font-size:10px;letter-spacing:.04em}.nav-cta span{margin-left:16px}.menu-toggle{display:none}.hero{position:relative;min-height:690px;height:min(78vw,760px);max-height:840px;background:var(--deep);color:#f8f3e9;overflow:hidden}.hero-image,.hero-shade{position:absolute;inset:0}.hero-image{background-image:url("../img/madinah-hero.87171c61d5a4.webp");background-size:cover;background-position:center 56%;transform:scale(1.005)}.hero-shade{background:linear-gradient(90deg,rgba(10,21,27,.89) 0%,rgba(10,21,27,.72) 37%,rgba(10,21,27,.22) 72%,rgba(10,21,27,.06) 100%),linear-gradient(0deg,rgba(9,16,19,.48),transparent 35%)}.hero-content{position:relative;z-index:1;padding-top:145px}.eyebrow,.section-label{font-size:9px;letter-spacing:.2em;color:var(--gold);font-weight:600}.eyebrow{display:flex;align-items:center;gap:11px}.eyebrow-line{width:27px;height:1px;background:var(--gold)}h1,h2,h3,p{margin-top:0}h1{font:500 clamp(52px,6.2vw,82px)/1.06 var(--serif);letter-spacing:-.035em;margin:26px 0 22px;max-width:650px}h1 em,h2 em{font-weight:500;color:#ddc58e}.hero-copy{max-width:440px;color:rgba(246,242,230,.76);font-size:14px;line-height:1.85;margin-bottom:30px}.hero-actions{display:flex;align-items:center;gap:28px}.button{display:inline-flex;align-items:center;gap:28px;padding:15px 19px;font-size:10px;letter-spacing:.04em}.button-gold{background:#c9a96b;color:#172428}.button-gold span{font-size:15px}.text-link{font-size:10px;color:#eee6d5}.text-link span{color:var(--gold);margin-left:10px}.hero-note{margin-top:76px;font-size:8px;letter-spacing:.17em;color:rgba(233,229,216,.66);display:flex;align-items:center;gap:9px}.note-dot,.tree-pulse{width:6px;height:6px;background:#d0af72;border-radius:50%;box-shadow:0 0 12px #d0af72}.hero-location{position:absolute;right:max(32px,calc((100vw - 1320px)/2));bottom:72px;display:flex;gap:13px;align-items:center;color:#eee8d9;font-size:9px;letter-spacing:.14em;line-height:1.7}.hero-location small{color:#cfbea0;font-size:7px;letter-spacing:.11em}.location-rule{height:1px;width:36px;background:var(--gold)}.scroll-cue{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:11px;color:rgba(240,233,218,.54);font-size:7px;letter-spacing:.2em}.scroll-cue span{height:29px;width:1px;background:linear-gradient(var(--gold),transparent)}.section{padding:112px 0}.intro{background:var(--paper)}.intro-grid{display:grid;grid-template-columns:150px 1fr 240px;gap:28px;align-items:start}.section-label{padding-top:8px;color:#9d8351}.section-label span{color:#c6b68f;margin:0 5px}.kicker{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#9c8356;margin-bottom:21px}.intro h2,.section-heading h2,.family h2,.sources h2{font:500 clamp(37px,4vw,52px)/1.2 var(--serif);letter-spacing:-.03em;margin:0 0 22px}.intro h2 em,.sources h2 em{color:#9c8356}.intro-body{max-width:620px;color:#66716c;font-size:13px;line-height:1.9;margin-bottom:28px}.intro-meta{display:flex;align-items:center;gap:14px;font-size:8px;letter-spacing:.15em;color:#748079}.intro-meta i{width:3px;height:3px;background:#bd9a60;border-radius:50%}.intro-aside{border-left:1px solid #d8d1c2;padding:9px 0 0 24px;margin-top:42px}.ornament{color:#b89a63;font-size:20px;margin-bottom:13px}.intro-aside p{font:italic 16px/1.55 var(--serif);color:#48514b;margin-bottom:14px}.intro-aside span{font-size:7px;letter-spacing:.14em;color:#968560}.journey{background:#172428;color:#ede9df;position:relative;overflow:hidden}.journey:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 92% 4%,rgba(56,86,76,.19),transparent 34%),radial-gradient(ellipse at 4% 98%,rgba(135,112,65,.1),transparent 40%);pointer-events:none}.journey>.wrap{position:relative}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:50px}.section-heading h2{margin:20px 0 0;color:#f4f0e6}.section-heading>p{max-width:310px;color:#9ca8a1;font-size:12px;line-height:1.8;margin:0 3% 5px 0}.journey-tools{height:47px;display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.journey-rail{height:1px;width:calc(100% - 232px);background:linear-gradient(90deg,rgba(201,169,107,.5),rgba(201,169,107,.04))}.search-box{width:205px;display:flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid rgba(255,255,255,.12);color:#bfad86}.search-box>span{font-size:19px;line-height:12px}.search-box input{background:transparent;border:0;outline:0;color:#eee;width:100%;font:10px var(--sans)}.search-box input::placeholder{color:#98a29b}.search-box kbd{font-size:9px;color:#7f8e87;border:1px solid #3b4a48;padding:2px 5px}.chapter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.chapter-card{background:#1d3032;border:1px solid rgba(213,198,160,.12);padding:14px;min-width:0;transition:transform .25s,border-color .25s}.chapter-card:hover{transform:translateY(-4px);border-color:rgba(201,169,107,.5)}.chapter-top{display:flex;justify-content:space-between;align-items:center;color:#b8a87f;font-size:7px;letter-spacing:.14em;margin:2px 3px 13px}.chapter-icon{font-size:14px;color:#c9a96b}.chapter-art{height:135px;position:relative;display:flex;align-items:end;padding:13px;overflow:hidden;background:#283b3b}.chapter-art:before,.chapter-art:after{content:"";position:absolute;inset:0}.chapter-art:after{background:linear-gradient(0deg,rgba(11,22,24,.7),transparent 70%)}.chapter-art span{position:relative;z-index:1;font-size:8px;letter-spacing:.2em;color:rgba(246,238,216,.9)}.art-desert{background:radial-gradient(ellipse at 70% 110%,#bb9461 0 11%,transparent 11.5%),linear-gradient(160deg,transparent 0 50%,#263838 51%),linear-gradient(12deg,#765d45,#bd9566 50%,#364344)}.art-cave{background:radial-gradient(ellipse at 50% 130%,#c6a36a 0 14%,transparent 14.5%),linear-gradient(140deg,#0c171b,#3a4340 50%,#152124)}.art-cave:before{background:radial-gradient(ellipse at 60% 90%,rgba(230,185,105,.75),transparent 32%)}.art-makkah{background:linear-gradient(155deg,#6a786c,#172526 55%,#b09b72)}.art-makkah:before{background:linear-gradient(0deg,transparent 45%,rgba(197,166,106,.24)),repeating-linear-gradient(90deg,transparent 0 26px,rgba(224,200,149,.08) 27px 28px)}.art-madinah{background:radial-gradient(ellipse at 75% 42%,rgba(213,178,112,.68),transparent 21%),linear-gradient(145deg,#152a2d,#607566 54%,#b29a6c)}.art-city{background:linear-gradient(145deg,#172426 12%,#536958 49%,#bd9d6c)}.art-city:before{background:repeating-linear-gradient(90deg,transparent 0 28px,rgba(231,211,170,.14) 29px 30px)}.art-light{background:radial-gradient(ellipse at 55% 30%,rgba(221,193,133,.68),transparent 20%),linear-gradient(155deg,#293d3a,#172426 75%)}.chapter-card h3{font:500 21px/1.25 var(--serif);color:#f4efe3;margin:17px 2px 9px}.chapter-card p{min-height:45px;color:#a5b0a9;font-size:10px;line-height:1.7;margin:0 2px 14px}.card-link{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.1);padding:13px 2px 2px;color:#d7c18e;font-size:9px}.card-link span{font-size:13px}.no-results{grid-column:1/-1;padding:28px 4px;color:#cfbea0;font-size:12px}.family{background:#101b20;color:#e9e5da;position:relative;overflow:hidden}.family-glow{position:absolute;width:720px;height:720px;right:-280px;top:90px;border-radius:50%;background:radial-gradient(circle,rgba(53,84,74,.24),transparent 68%);pointer-events:none}.family-wrap{position:relative}.family-heading{align-items:start;margin-bottom:48px}.family-heading h2{color:#f5f1e7;margin-top:19px}.family-heading h2 em{color:#d3bd8c}.family-heading>p{margin-top:40px;color:#a1aaa2;max-width:320px}.tree-toolbar{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;color:#bcac82;font-size:8px;letter-spacing:.16em}.tree-toolbar>div{display:flex;align-items:center;gap:10px}.tree-separator{color:#5f6b65}.tree-toggle{border:1px solid rgba(214,192,142,.25);background:transparent;color:#dfd3b4;padding:8px 11px;font:9px var(--sans);cursor:pointer}.tree-toggle span{padding-left:11px;color:var(--gold);font-size:14px}.tree-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(290px,.85fr);gap:22px;margin-top:24px;align-items:start}.lineage-panel{background:linear-gradient(140deg,#17282b,#142326);border:1px solid rgba(220,204,161,.16);padding:24px 28px 22px}.lineage-heading{display:flex;justify-content:space-between;color:#d0b97f;font-size:8px;letter-spacing:.16em;margin-bottom:22px}.lineage-heading span+span{color:#8e9a91;font-size:7px}.lineage-list{position:relative;padding:0 0 0 4px}.lineage-list:before{content:"";position:absolute;top:8px;bottom:7px;left:42px;width:1px;background:linear-gradient(var(--gold),rgba(201,169,107,.18))}.lineage-node{position:relative;display:grid;grid-template-columns:35px 1fr 130px;align-items:center;min-height:29px;padding:0 0 0 0}.lineage-node:before{content:"";position:absolute;left:34px;width:17px;height:1px;background:rgba(201,169,107,.5)}.node-index{font-size:7px;color:#77877d;letter-spacing:.08em}.node-name{position:relative;font:13px var(--serif);color:#e7e4db;padding-left:23px}.node-name:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:5px;height:5px;border-radius:50%;border:1px solid #c7a567;background:#17282b}.node-note{text-align:right;color:#89958d;font-size:8px;letter-spacing:.03em}.lineage-node.featured .node-name,.lineage-node.terminal .node-name{color:#e2c987}.lineage-node.featured .node-name:before,.lineage-node.terminal .node-name:before{background:#c9a96b;box-shadow:0 0 8px rgba(201,169,107,.5)}.lineage-node.terminal{padding-bottom:2px}.lineage-caveat{display:flex;gap:10px;border-top:1px solid var(--line);padding:14px 0 12px;margin-top:15px;color:#9ea89e}.lineage-caveat>span{display:grid;place-items:center;flex:0 0 15px;height:15px;border:1px solid #ac9162;border-radius:50%;color:#d4bc88;font:9px var(--serif)}.lineage-caveat p{margin:0;font-size:9px;line-height:1.65}.source-chip{display:flex;justify-content:space-between;border:1px solid rgba(201,169,107,.22);padding:11px 12px;color:#d3bb83;font-size:7px;letter-spacing:.13em}.source-chip span{font-size:12px}.family-side{display:grid;gap:12px}.family-card{background:#17272a;border:1px solid rgba(220,204,161,.13);padding:20px 21px 17px;position:relative}.family-card-head{display:flex;align-items:center;gap:10px;color:#bca978;font-size:8px;letter-spacing:.16em;margin-bottom:17px}.family-symbol{color:#d1b77e;font-size:14px}.family-card h3{font:500 21px/1.15 var(--serif);color:#f1ebdc;margin:0 0 11px}.family-card h3 small{font-size:15px;color:#d7c597}.family-card p{color:#a7b0a7;font-size:9px;line-height:1.7;margin-bottom:12px}.family-ref,.inline-ref{font-size:7px;letter-spacing:.12em;color:#cbb27c}.inline-ref span{margin-left:8px;font-size:11px}.family-footnote{margin:15px 0 0;color:#87958b;font-size:8px;letter-spacing:.03em}.sources{background:#f3f0e8}.sources-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:80px}.sources h2{margin-top:20px}.source-list{border-top:1px solid #d8d2c3}.source-list>a{display:grid;grid-template-columns:32px 1fr 20px;gap:14px;align-items:center;padding:20px 0;border-bottom:1px solid #d8d2c3}.source-list>a>span:first-child{color:#a18959;font-size:9px}.source-list strong,.source-list small{display:block}.source-list strong{font:500 14px var(--serif);color:#243338}.source-list small{font-size:9px;color:#79837c;margin-top:5px}.source-list b{font-size:14px;color:#9a8051;font-weight:400}.closing{background:#dcd3c0;color:#233236;position:relative;overflow:hidden;text-align:center;padding:68px 0 58px}.closing-pattern{position:absolute;inset:0;opacity:.14;background-image:linear-gradient(30deg,transparent 48%,#93845f 49%,#93845f 50%,transparent 51%),linear-gradient(150deg,transparent 48%,#93845f 49%,#93845f 50%,transparent 51%);background-size:44px 76px}.closing-inner{position:relative}.closing-star{color:#927749;font-size:22px}.closing p{font:italic 22px/1.5 var(--serif);max-width:650px;margin:17px auto 12px}.closing-inner>span:nth-of-type(2){font-size:8px;letter-spacing:.16em;color:#7c715a}.back-top{display:block;margin-top:31px;font-size:7px;letter-spacing:.17em;color:#77725f}.site-footer{background:#101b20;color:#d9d5c8;padding:26px 0}.footer-inner{display:flex;align-items:center;justify-content:space-between}.footer-inner p{margin:0;color:#919d95;font-size:9px}.footer-inner>span{font-size:7px;letter-spacing:.15em;color:#728078}
@media(max-width:900px){.site-nav{gap:19px}.intro-grid{grid-template-columns:90px 1fr}.intro-aside{grid-column:2;margin:5px 0 0;max-width:400px}.tree-layout{grid-template-columns:1fr}.family-side{grid-template-columns:repeat(3,1fr)}.family-card{padding:18px 16px}.family-card h3{font-size:18px}.family-card h3 small{font-size:13px}.family-card p{font-size:8px}.sources-grid{gap:38px}}
@media(max-width:640px){.wrap{width:calc(100% - 40px)}.site-header{height:70px;padding:0 20px}.menu-toggle{display:flex;width:38px;height:38px;background:transparent;border:1px solid rgba(201,169,107,.35);flex-direction:column;justify-content:center;gap:5px;align-items:center}.menu-toggle span{width:15px;height:1px;background:#e2d6bc}.site-nav{display:none;position:absolute;left:0;right:0;top:70px;padding:19px 20px 23px;background:#111c20;border-bottom:1px solid var(--line);align-items:stretch;gap:18px;flex-direction:column}.site-nav.is-open{display:flex}.nav-cta{text-align:center}.hero{height:680px;min-height:0;max-height:none}.hero-image{background-position:60% center}.hero-shade{background:linear-gradient(90deg,rgba(10,21,27,.88),rgba(10,21,27,.5) 70%,rgba(10,21,27,.28)),linear-gradient(0deg,rgba(9,16,19,.5),transparent 35%)}.hero-content{padding-top:118px}.hero h1{font-size:56px}.hero-copy{max-width:340px;font-size:13px}.hero-actions{align-items:flex-start;flex-direction:column;gap:17px}.hero-note{margin-top:52px;max-width:260px;line-height:1.7}.hero-location{right:20px;bottom:50px}.section{padding:76px 0}.intro-grid{display:block}.intro .section-label{margin-bottom:37px}.intro h2,.section-heading h2,.family h2,.sources h2{font-size:39px}.intro-aside{margin-top:34px;padding-left:17px}.intro-meta{flex-wrap:wrap;gap:10px;font-size:7px}.section-heading{display:block;margin-bottom:34px}.section-heading>p{margin:20px 0 0}.journey-tools{margin-bottom:14px}.journey-rail{width:0}.search-box{width:100%}.chapter-grid{grid-template-columns:1fr;gap:12px}.chapter-card{padding:13px}.chapter-art{height:155px}.chapter-card p{min-height:0}.family-heading>p{margin-top:22px}.tree-toolbar{font-size:7px;gap:10px}.tree-toolbar>div{gap:6px}.tree-toggle{white-space:nowrap;font-size:8px;padding:8px}.lineage-panel{padding:18px 15px}.lineage-heading{font-size:7px}.lineage-heading span+span{font-size:6px}.lineage-list:before{left:35px}.lineage-node{grid-template-columns:28px 1fr 80px;min-height:28px}.lineage-node:before{left:27px;width:16px}.node-name{font-size:12px;padding-left:22px}.node-note{font-size:7px}.family-side{grid-template-columns:1fr}.family-card{padding:19px}.family-card h3{font-size:22px}.family-card h3 small{font-size:15px}.family-card p{font-size:9px}.sources-grid{display:block}.sources-grid>.source-list{margin-top:33px}.source-list>a{grid-template-columns:24px 1fr 15px;gap:10px}.source-list strong{font-size:12px}.source-list small{font-size:8px;line-height:1.5}.closing{padding:55px 0 45px}.closing p{font-size:19px}.footer-inner{flex-wrap:wrap;gap:18px}.footer-inner p{order:3;width:100%;line-height:1.6}.footer-inner>span{font-size:6px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}

.lineage-panel.is-collapsed .lineage-node:not(:first-child){display:none}
.urdu-sub{font:14px/1.8 "Noto Nastaliq Urdu",serif;color:#aa9162;margin-top:5px}.section-heading .urdu-sub{margin-top:8px}.hero-trust{display:flex;gap:20px;flex-wrap:wrap;margin-top:56px;color:rgba(245,239,222,.74);font-size:8px;letter-spacing:.06em}.hero-trust b{color:#d7bb7d;margin-right:6px}.language-link{color:#d9c18d!important;font-family:serif;font-size:13px!important}.eras,.chapters,.quran,.courses,.battles,.letters,.miracles,.companions,.places,.character,.resources,.community{background:#f4f1e9;color:var(--ink)}.section-heading h2{color:#1d302f}.section-heading>p{color:#6f7b74}.section-heading{margin-bottom:43px}.eras{background:linear-gradient(145deg,#f6f3eb,#e9e5d9)}.era-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.era-card{display:block;min-height:292px;padding:20px 17px 16px;position:relative;background:linear-gradient(155deg,#fffdf7,#e9e4d6);border:1px solid rgba(131,111,70,.22);box-shadow:0 14px 34px rgba(35,48,40,.07);transition:transform .25s,border-color .25s}.era-card:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 100% 0,rgba(191,164,105,.18),transparent 53%);pointer-events:none}.era-card:hover,.course-card:hover,.event-card:hover,.resource-grid>a:hover{transform:translateY(-4px);border-color:#ad9259}.era-n{position:absolute;right:15px;top:10px;color:rgba(163,137,84,.2);font:50px var(--serif)}.era-date{display:block;color:#9a8151;font-size:8px;letter-spacing:.12em;margin-bottom:34px}.era-card h3{position:relative;font:500 19px/1.25 var(--serif);margin:0;color:#263a37}.era-card .urdu-sub{position:relative;font-size:12px}.era-card p{position:relative;min-height:76px;margin:13px 0;color:#68756d;font-size:9px;line-height:1.7}.era-links{position:relative;display:flex;justify-content:space-between;gap:6px;padding-top:12px;border-top:1px solid #d9d2c0;color:#465d52;font-size:8px}.era-links span{color:#987d4c}.family{background:#10221f}.family .section-heading h2,.family .family-heading h2{color:#f1eee3}.family .section-heading>p{color:#aab5ac}.family .section-label{color:#c5a869}.family .urdu-sub{color:#d1ba83}.family-side .family-card{background:#172b27}.lineage-panel{background:linear-gradient(145deg,#1a302b,#142621)}.lineage-caveat{border-top:1px solid var(--line)}.family-ref{display:block}.chapters{background:#132320;color:#eee9dc}.chapters .section-heading h2{color:#f1eee3}.chapters .section-heading>p{color:#a7b0a7}.chapters .section-label{color:#c5a869}.chapters .urdu-sub{color:#c9b27d}.chapters .chapter-card{background:linear-gradient(145deg,#1b312c,#1b2925);border-color:rgba(206,187,138,.2)}.chapters .chapter-card h3{color:#f4efe3}.chapters .chapter-card p{color:#bdc4b9}.chapters .card-link{color:#d7c18e}.chapter-card{display:block}.chapter-card[hidden]{display:none}.section-footer-link{display:flex;justify-content:center;margin-top:27px}.button-outline{border:1px solid rgba(167,139,82,.55);color:#6e5c37;padding:13px 17px;font-size:9px;letter-spacing:.04em}.button-outline span{margin-left:15px}.sourced{background:#e9e5d8}.sourced-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:70px;align-items:start}.sourced h2,.community h2{font:500 clamp(38px,4vw,51px)/1.15 var(--serif);color:#253a36;margin:18px 0 8px}.sourced h2 em{color:#9e8250}.sourced>p,.sourced-grid>div:first-child>p,.community-grid>div>p{font-size:11px;line-height:1.8;color:#65716a;max-width:440px;margin:22px 0}.sourced .urdu-sub{color:#9a8151}.source-check{border-left:2px solid #c4a665;padding-left:15px}.sourced-actions{display:flex;gap:22px;flex-wrap:wrap;margin-top:25px}.sourced-actions a{color:#826b40;font-size:9px;border-bottom:1px solid #bfaa7d;padding-bottom:6px}.source-cards{display:grid;gap:11px}.source-cards article{padding:19px 21px;background:#faf8f1;border:1px solid #dcd5c4;box-shadow:0 10px 22px rgba(26,43,35,.045)}.source-cards article>span:first-child{color:#a18752;font-size:7px;letter-spacing:.15em}.source-cards h3{font:500 20px var(--serif);margin:10px 0 0;color:#253a36}.source-cards .urdu-sub{font-size:12px;color:#9c8353}.source-cards p{color:#6b766f;font-size:9px;line-height:1.7;margin:8px 0 0}.quran{background:#f8f6f0}.verse-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.verse-card{padding:22px 19px;background:linear-gradient(150deg,#fffefa,#eeeadf);border:1px solid #e0dac9;box-shadow:0 10px 25px rgba(31,47,39,.045);min-height:180px;display:flex;flex-direction:column;transition:transform .2s}.verse-card:hover{transform:translateY(-3px)}.verse-card>span{font:20px/1.9 serif;color:#52755f;text-align:right}.verse-card p{font:italic 13px/1.7 var(--serif);color:#3f4b45;margin:12px 0}.verse-card small{font-size:7px;color:#987c4d;letter-spacing:.1em;margin-top:auto}.verse-feature{grid-row:span 2;justify-content:center;background:linear-gradient(145deg,#16362f,#21483b);color:#f0ebde}.verse-feature>span{font-size:27px;color:#dfc688}.verse-feature p{font-size:17px;color:#f0ebde}.verse-feature .verse-urdu{font:13px/2 "Noto Nastaliq Urdu",serif;color:#d5c69e}.verse-feature small{color:#dfc688}.hadith{background:#10221f;color:#ede9dd}.hadith .section-heading h2{color:#f4f0e4}.hadith .section-heading>p{color:#aab5ad}.hadith .section-label{color:#c8ae73}.hadith .urdu-sub{color:#d0ba85}.hadith-types{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.hadith-types article{padding:21px;background:#1b302a;border:1px solid rgba(207,190,148,.18);display:grid;grid-template-columns:53px 1fr;align-items:center;column-gap:12px}.hadith-types b{grid-row:span 2;color:#dfc88e;font:24px "Noto Nastaliq Urdu",serif}.hadith-types span{font:18px var(--serif);color:#f1eddf}.hadith-types small{font-size:8px;color:#aeb9ae;margin-top:5px}.hadith-explainer{display:grid;grid-template-columns:.85fr 1.15fr;gap:35px;margin:25px 0 42px;align-items:center}.hadith-explainer>p{color:#aab4aa;font-size:10px;line-height:1.9}.hadith-day{padding:24px;background:linear-gradient(140deg,#203a32,#1a2d28);border:1px solid rgba(210,192,149,.24)}.hadith-day>span{font-size:7px;letter-spacing:.15em;color:#d0b77e}.hadith-day b{display:block;text-align:right;margin-top:16px;color:#e2d1a5;font:20px/2 serif}.hadith-day p{color:#e5e3d8;font:italic 12px/1.75 var(--serif);margin:12px 0}.hadith-day small{font-size:8px;color:#d6bf85}.hadith-day a{color:inherit}.subsection-title{font:500 27px var(--serif);color:#f1eddf;margin:0 0 16px}.subsection-title span{font:14px "Noto Nastaliq Urdu",serif;color:#c8b37e;margin-left:9px}.books-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.books-grid article{background:#1a2d28;padding:18px;border:1px solid rgba(211,190,143,.15)}.books-grid article>b{color:#c9ad70;font:20px serif}.books-grid h4{font:17px var(--serif);margin:12px 0 2px;color:#f0eadb}.books-grid article>span{color:#c9b783;font:11px "Noto Nastaliq Urdu",serif}.books-grid p{font-size:8px;line-height:1.7;color:#aeb8ae;min-height:56px;margin:11px 0}.books-grid small{font-size:7px;letter-spacing:.1em;color:#d0bd8b}.counts-note{font-size:8px;color:#98a59a;margin-top:13px}.hadith-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.hadith-links a{padding:10px;border:1px solid rgba(207,190,148,.2);font-size:8px;color:#dbc692}.courses-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.course-card{position:relative;min-height:246px;padding:22px 18px;background:linear-gradient(150deg,#fffdf8,#e9e5d8);border:1px solid #ded7c5;transition:transform .2s,border-color .2s}.course-card>b{position:absolute;right:15px;top:11px;font:36px serif;color:rgba(166,139,81,.24)}.course-card>span{color:#9c8150;font-size:7px;letter-spacing:.14em}.course-card h3{font:500 20px var(--serif);color:#263a36;margin:34px 0 0}.course-card .urdu-sub{color:#947b4e;font-size:12px}.course-card p{color:#6f7a72;font-size:9px;line-height:1.7;min-height:49px;margin:10px 0 16px}.course-card i{font-style:normal;color:#816a40;font-size:8px;letter-spacing:.06em}.battles{background:#e9e5d9}.event-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.event-card{padding:20px;background:linear-gradient(145deg,#fffdf8,#e9e3d5);border:1px solid #dad2bf;position:relative;overflow:hidden;transition:transform .2s}.event-card:after{content:"";position:absolute;right:-24px;bottom:-44px;width:130px;height:130px;border:1px solid rgba(163,137,81,.2);border-radius:50%;box-shadow:0 0 0 14px rgba(163,137,81,.035),0 0 0 29px rgba(163,137,81,.025)}.event-card>span{font-size:7px;letter-spacing:.15em;color:#9d8350}.event-card h3{font:500 20px var(--serif);margin:18px 0 0;color:#243a35}.event-card .urdu-sub{color:#977b4d;font-size:12px}.event-card p{color:#68746c;font-size:9px;line-height:1.7;margin:11px 0 0;position:relative;z-index:1}.letters{background:#132320;color:#eeeadd}.letters .section-heading h2{color:#f2eee2}.letters .section-heading>p{color:#aab4ac}.letters .section-label{color:#d0b577}.letters .urdu-sub{color:#d0bc8b}.letters-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.letters-grid>a{position:relative;padding:20px;background:linear-gradient(145deg,#1c332d,#182924);border:1px solid rgba(215,195,149,.17);min-height:232px}.letters-grid>a>b{position:absolute;right:14px;top:8px;font:35px "Noto Nastaliq Urdu",serif;color:rgba(222,197,139,.3)}.letters-grid>a>span{display:block;font-size:6px;letter-spacing:.1em;color:#c2a969;max-width:78%}.letters-grid h3{font:500 19px var(--serif);margin:31px 0 0;color:#f4efe1}.letters-grid .urdu-sub{font-size:11px}.letters-grid p{font-size:8px;line-height:1.7;color:#abb6aa;margin:10px 0}.miracle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.miracle-grid>a{padding:20px;background:linear-gradient(145deg,#fdfbf5,#e9e4d7);border:1px solid #ded7c7;position:relative;overflow:hidden;min-height:176px}.miracle-grid>a:after{content:"✳";position:absolute;right:12px;bottom:-17px;font-size:75px;color:rgba(167,142,87,.1)}.miracle-grid>a>span{color:#a2864f;font-size:7px;letter-spacing:.12em}.miracle-grid h3{font:500 20px var(--serif);color:#263b35;margin:19px 0 0}.miracle-grid .urdu-sub{font-size:12px;color:#947b4c}.miracle-grid p{color:#67736b;font-size:9px;line-height:1.7;margin:10px 0 0}.companions{background:#f8f6f0}.companion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.companion-grid>a{display:block;position:relative;padding:17px 17px 15px 55px;background:#fffdf8;border:1px solid #e1dbcd;min-height:125px}.companion-grid>a>b{position:absolute;left:17px;top:15px;color:#b2955d;font:26px "Noto Nastaliq Urdu",serif}.companion-grid h3{font:500 17px var(--serif);color:#263b35;margin:0}.companion-grid .urdu-sub{font-size:10px;color:#947a4e}.companion-grid p{font-size:8px;line-height:1.6;color:#68746b;margin:8px 0 0}.places{background:#10221f;color:#efebdf}.places .section-heading h2{color:#f2efe3}.places .section-heading>p{color:#aab5ac}.places .section-label{color:#cbb277}.places .urdu-sub{color:#d0bc88}.places-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.place-card{display:block;position:relative;min-height:215px;overflow:hidden;padding:21px;background:#1c342f;border:1px solid rgba(213,194,151,.2)}.place-card:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(10,24,20,.94),rgba(11,27,23,.15)),radial-gradient(ellipse at 75% 15%,rgba(198,167,100,.48),transparent 35%);transition:transform .35s}.place-card:hover:before{transform:scale(1.06)}.place-card>*{position:relative}.place-card>span{font-size:7px;letter-spacing:.16em;color:#dac48e}.place-card h3{font:500 22px var(--serif);color:#f3efe4;margin:78px 0 0}.place-card .urdu-sub{font-size:12px}.place-card p{font-size:9px;line-height:1.7;color:#c1c6b9;margin:9px 0 0}.place-haram:before{background:linear-gradient(0deg,rgba(10,24,20,.96),rgba(11,27,23,.15)),radial-gradient(ellipse at 50% 25%,rgba(213,190,130,.5),transparent 40%)}.place-hira:before,.place-thawr:before{background:linear-gradient(0deg,rgba(10,24,20,.96),rgba(11,27,23,.15)),linear-gradient(135deg,#414b3f,#162522)}.place-baqi:before{background:linear-gradient(0deg,rgba(10,24,20,.96),rgba(11,27,23,.15)),radial-gradient(ellipse at 65% 20%,rgba(111,137,100,.5),transparent 45%)}.character{background:#e9e5d9}.traits-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.traits-grid>a{padding:18px 15px;background:#f8f6ee;border:1px solid #dbd3c1;min-height:153px}.traits-grid b{color:#b29459;font-size:12px}.traits-grid h3{font:500 18px var(--serif);color:#2a3c36;margin:12px 0 0}.traits-grid .urdu-sub{font-size:11px;color:#92794d}.traits-grid p{color:#69756d;font-size:8px;line-height:1.65;margin:9px 0 0}.character-hadith{text-align:center;margin:24px auto 0;padding:23px;background:#17352e;color:#eee9dc;max-width:800px}.character-hadith>b{font:21px/2 serif;color:#ddca96}.character-hadith p{font:italic 14px var(--serif);margin:10px 0}.character-hadith a{font-size:8px;color:#d2b879}.resources{background:#f8f6f0}.resource-filters{display:flex;gap:8px;flex-wrap:wrap;margin:-15px 0 17px}.resource-filters a{font-size:8px;color:#857047;padding:8px 12px;border:1px solid #ded6c5}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.resource-grid>a{display:block;position:relative;padding:20px;background:linear-gradient(150deg,#fffdf8,#eae5d8);border:1px solid #ded8c9;min-height:214px;transition:transform .2s,border-color .2s}.resource-grid>a>b{position:absolute;top:8px;right:15px;font:34px serif;color:rgba(157,130,78,.25)}.resource-grid>a>span{font-size:7px;letter-spacing:.13em;color:#9d8350}.resource-grid h3{font:500 19px var(--serif);color:#263b35;margin:26px 0 0}.resource-grid .urdu-sub{font-size:11px;color:#937b4d}.resource-grid p{font-size:8px;line-height:1.65;color:#68746c;min-height:43px;margin:10px 0}.resource-grid i{font-style:normal;font-size:8px;color:#826b40}.community{background:#e9e5d9}.community-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px}.community-grid .urdu-sub{color:#957d51}.feedback-form{padding:23px;background:#f9f7f0;border:1px solid #ddd6c4}.feedback-form label{display:block;color:#64726a;font-size:8px;margin-bottom:12px}.feedback-form input,.feedback-form textarea,.newsletter input{width:100%;margin-top:6px;border:1px solid #d8d1bf;background:#fffdf8;padding:10px;color:#20352f;font:11px var(--sans);resize:vertical}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.feedback-form button,.newsletter button{border:0;background:#c8a96d;color:#182b27;padding:12px 15px;cursor:pointer;font:9px var(--sans)}.feedback-form button span,.newsletter button span{margin-left:18px}.form-note{display:block;font-size:7px;color:#8b887b;margin:11px 0 0}.newsletter{background:linear-gradient(115deg,#132a25,#1b4034);color:#f3efe4;padding:62px 0}.newsletter-inner{display:grid;grid-template-columns:1fr .8fr;gap:70px;align-items:center}.newsletter .section-label{color:#d0b77f}.newsletter h2{font:500 37px var(--serif);margin:18px 0 0}.newsletter .urdu-sub{color:#d4bf88}.newsletter p{font-size:10px;color:#c0c9bb;line-height:1.7;margin:15px 0 0}.newsletter form{display:grid;grid-template-columns:1fr auto;gap:7px}.newsletter input{margin:0;background:#f9f7ef}.newsletter .form-note{grid-column:1/-1;color:#b5c0b4}.site-footer{background:#0c1a17}.footer-main{display:flex;align-items:center;justify-content:space-between;gap:24px}.footer-nav{display:flex;gap:18px;flex-wrap:wrap}.footer-nav a,.footer-bottom{font-size:8px;color:#a7b3a8}.footer-bottom{border-top:1px solid rgba(218,204,168,.15);padding-top:15px;margin-top:20px;display:flex;justify-content:space-between;gap:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px){.site-nav{gap:15px}.era-grid{grid-template-columns:repeat(3,1fr)}.era-card{min-height:270px}.traits-grid{grid-template-columns:repeat(4,1fr)}.letters-grid{grid-template-columns:repeat(2,1fr)}.sourced-grid{gap:35px}.footer-nav{gap:11px}}
@media(max-width:700px){.site-nav{display:none}.site-nav.is-open{display:flex}.language-link{display:block}.hero-trust{margin-top:40px;gap:11px 15px;max-width:390px}.hero-trust span{font-size:7px}.era-grid{grid-template-columns:1fr 1fr}.era-card{min-height:276px;padding:16px 13px}.era-card h3{font-size:17px}.era-card p{min-height:90px}.era-links{font-size:7px}.tree-layout{grid-template-columns:1fr}.family-side{grid-template-columns:1fr}.sourced-grid{grid-template-columns:1fr;gap:30px}.verse-grid{grid-template-columns:1fr 1fr}.verse-feature{grid-row:auto;grid-column:1/-1}.hadith-explainer{grid-template-columns:1fr;gap:15px}.books-grid{grid-template-columns:1fr 1fr}.courses-grid{grid-template-columns:1fr 1fr}.event-grid{grid-template-columns:1fr 1fr}.letters-grid{grid-template-columns:1fr 1fr}.miracle-grid{grid-template-columns:1fr 1fr}.companion-grid{grid-template-columns:1fr 1fr}.places-grid{grid-template-columns:1fr 1fr}.traits-grid{grid-template-columns:1fr 1fr}.resource-grid{grid-template-columns:1fr 1fr}.community-grid{grid-template-columns:1fr;gap:25px}.newsletter-inner{grid-template-columns:1fr;gap:25px}.footer-main{align-items:flex-start;flex-wrap:wrap}.footer-nav{width:100%;order:3}.footer-bottom{flex-wrap:wrap}}
@media(max-width:450px){.era-grid,.courses-grid,.event-grid,.letters-grid,.miracle-grid,.companion-grid,.places-grid,.resource-grid{grid-template-columns:1fr}.era-card{min-height:0}.era-card p{min-height:0}.verse-grid{grid-template-columns:1fr}.verse-feature{grid-column:auto}.books-grid{grid-template-columns:1fr}.traits-grid{grid-template-columns:1fr 1fr}.tree-toolbar>div{font-size:6px;gap:5px}.lineage-panel{padding:16px 12px}.lineage-heading{font-size:6px}.node-note{font-size:6px}.footer-bottom{font-size:7px}}

/* ===== design-overrides.css ===== */
/* Art direction: editorial museum, tactile CGI, and a different visual rhythm for every subject. */
:root{--ink:#182520;--deep:#0d211c;--deep-2:#153229;--cream:#f4efe3;--paper:#fbf8f1;--gold:#c5a365;--muted:#718078}
body{font-size:16px;line-height:1.65;background:#f4efe3;color:#1d2b25}
.wrap{width:min(1280px,calc(100% - 80px))}
.site-header{height:88px;background:#0b211c;padding:0 max(40px,calc((100vw - 1400px)/2))}
.brand-mark{width:43px;height:43px;font-size:25px}.brand strong{font-size:12px}.brand small{font-size:10px}
.site-nav{gap:26px;font-size:13px}.site-nav .nav-cta{font-size:11px;padding:13px 16px}.site-nav .language-link{font-size:15px!important}
.hero{height:min(82vw,850px);min-height:720px}.hero-image{background-position:center 55%}.hero-shade{background:linear-gradient(90deg,rgba(7,24,20,.84),rgba(7,24,20,.64) 35%,rgba(7,24,20,.1) 75%),linear-gradient(0deg,rgba(8,17,15,.42),transparent 39%)}
.hero-content{padding-top:150px}.eyebrow{font-size:12px;letter-spacing:.19em}.eyebrow-line{width:36px}h1{font-size:clamp(70px,8vw,112px);line-height:1.02;max-width:850px;margin:32px 0 25px}.hero-copy{font-size:18px;max-width:590px;line-height:1.8}.button{font-size:13px;padding:17px 21px}.text-link{font-size:13px}.hero-trust{font-size:11px;gap:25px;margin-top:66px}.hero-location{font-size:11px;bottom:83px}.hero-location small{font-size:9px}.scroll-cue{font-size:9px}
.section{padding:122px 0}.section-label{font-size:11px;letter-spacing:.18em}.section-heading{margin-bottom:54px}.section-heading h2,.sourced h2,.community h2{font-size:clamp(44px,5vw,66px);line-height:1.08;letter-spacing:-.035em}.section-heading>p,.sourced-grid>div:first-child>p,.community-grid>div>p{font-size:16px;line-height:1.8;max-width:420px}.urdu-sub{font-size:17px}.section-heading .urdu-sub{font-size:18px}.section-heading>p{margin-bottom:7px}

/* Five eras: one continuous engraved chronology instead of five repeated cards. */
.eras{background:#e8e0d0;position:relative;overflow:hidden;padding-bottom:112px}
.eras:after{content:"";position:absolute;right:-10%;top:16%;width:56%;height:72%;background:url("../img/hijaz-relief.35cedf37b269.webp") center/cover no-repeat;opacity:.17;mix-blend-mode:multiply;mask-image:linear-gradient(90deg,transparent,black 35%,black 80%,transparent);pointer-events:none}
.eras .wrap{position:relative;z-index:1}.eras .section-heading{max-width:930px}.eras .section-heading>p{max-width:350px;color:#59665c}
.era-grid{position:relative;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin-top:74px;border-top:1px solid rgba(117,94,54,.44)}
.era-card{min-height:345px;padding:28px 23px 20px 0;background:transparent;border:0;border-right:1px solid rgba(117,94,54,.22);box-shadow:none;transition:background .2s;padding-right:18px}
.era-card:last-child{border-right:0}.era-card:before{content:none}.era-card:hover{transform:none;background:rgba(255,255,255,.24)}
.era-card:after{content:"";position:absolute;top:-5px;left:0;width:9px;height:9px;border:1px solid #897042;background:#e8e0d0;border-radius:50%;box-shadow:0 0 0 5px rgba(137,112,66,.11)}
.era-n{position:static;display:block;font:64px/.9 var(--serif);color:#b39a69;margin-bottom:20px}.era-date{font-size:11px;margin-bottom:21px;letter-spacing:.14em;color:#876d3c}.era-card h3{font-size:24px;min-height:61px}.era-card .urdu-sub{font-size:15px}.era-card p{font-size:14px;line-height:1.75;min-height:106px;color:#59645b;margin:15px 0}.era-links{font-size:11px;border-top:1px solid rgba(117,94,54,.32);padding-top:15px;flex-direction:column;gap:6px}.era-links span{color:#866c3c}

/* Family tree: the only section built as a tall, connected diagram. */
.family{background:#0d211c;padding-top:128px;padding-bottom:132px}.family .section-heading{align-items:center}.family .section-heading>p{max-width:410px;font-size:16px}.tree-toolbar{font-size:11px;padding:18px 0}.tree-toggle{font-size:12px;padding:10px 15px}.tree-layout{grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr);gap:28px;margin-top:30px}.lineage-panel{padding:30px 32px}.lineage-heading{font-size:10px;margin-bottom:25px}.lineage-heading span+span{font-size:9px}.lineage-list:before{left:47px}.lineage-node{grid-template-columns:40px 1fr 150px;min-height:37px}.lineage-node:before{left:39px;width:19px}.node-index{font-size:9px}.node-name{font-size:17px;padding-left:27px}.node-name:before{width:7px;height:7px}.node-note{font-size:11px}.lineage-caveat{padding:18px 0 15px;margin-top:18px}.lineage-caveat p{font-size:12px;line-height:1.75}.lineage-caveat>span{flex-basis:19px;height:19px;font-size:12px}.source-chip{font-size:9px;padding:14px}.family-side{gap:15px}.family-card{padding:24px 25px 21px}.family-card-head{font-size:10px;margin-bottom:18px}.family-card h3{font-size:27px;line-height:1.25}.family-card h3 small{font-size:19px}.family-card p{font-size:14px;line-height:1.75}.family-ref,.inline-ref{font-size:9px}.family-footnote{font-size:11px;margin-top:18px}

/* Chapters: one large lead story and a quieter two-item reading rail. */
.chapters{background:#f9f6ee;padding-top:126px;padding-bottom:130px}.chapters .section-heading{display:grid;grid-template-columns:1fr 1fr;align-items:end}.chapters .section-heading>p{justify-self:end;max-width:430px}.chapter-grid{grid-template-columns:1.3fr 1fr;gap:0 36px;align-items:stretch;border-top:1px solid #d9d1bd;border-bottom:1px solid #d9d1bd}.chapters .chapter-card{background:transparent;border:0;border-bottom:1px solid #d9d1bd;padding:22px 0;display:grid;grid-template-columns:80px 1fr;column-gap:20px;align-content:start;min-height:0;transition:padding .2s}.chapters .chapter-card:hover{transform:none;padding-left:8px;border-color:#bba36b}.chapters .chapter-card:first-child{grid-row:span 2;display:flex;flex-direction:column;padding-right:25px;border-right:1px solid #d9d1bd}.chapters .chapter-card:first-child .chapter-top{order:0;width:100%;margin-bottom:18px}.chapters .chapter-card:first-child .chapter-art{order:1;width:100%;height:300px;margin-bottom:7px}.chapters .chapter-card:first-child h3{order:2}.chapters .chapter-card:first-child p{order:3}.chapters .chapter-card:first-child .card-link{order:4}.chapters .chapter-card:not(:first-child) .chapter-top{grid-column:1/-1}.chapters .chapter-card:not(:first-child) .chapter-art{grid-column:1;grid-row:2/5;height:88px;width:80px;margin:0}.chapters .chapter-card:not(:first-child) h3{grid-column:2;font-size:23px;margin:0 0 5px}.chapters .chapter-card:not(:first-child) p{grid-column:2;min-height:0;font-size:14px;margin:0 0 9px}.chapters .chapter-card:not(:first-child) .card-link{grid-column:2}.chapters .chapter-top{font-size:10px;letter-spacing:.16em}.chapters .chapter-icon{font-size:19px}.chapters .chapter-card h3{font-size:34px;line-height:1.15;color:#20352e}.chapters .chapter-card p{font-size:16px;color:#617066;line-height:1.75;min-height:0}.chapters .chapter-art{border-radius:2px}.art-desert{background:linear-gradient(0deg,rgba(35,37,26,.15),rgba(35,37,26,.15)),url("../img/hijaz-relief.35cedf37b269.webp") center 55%/cover}.art-cave{background:linear-gradient(0deg,rgba(5,13,13,.42),rgba(5,13,13,.12)),url("../img/madinah-hero.87171c61d5a4.webp") 85% 65%/cover}.art-market{background:radial-gradient(ellipse at 60% 120%,#d6b978,transparent 45%),linear-gradient(140deg,#403a2f,#99875e 52%,#233832)}.chapters .chapter-art span{font-size:11px}.chapters .card-link{color:#75603a;border-color:#d9d1bd;font-size:11px;padding-top:13px}.chapters .card-link span{font-size:17px}

/* Sources: a numbered evidence ledger, not another tile grid. */
.sourced{background:#17342b;color:#eae7db;padding:116px 0}.sourced-grid{grid-template-columns:.86fr 1.14fr;gap:100px}.sourced h2{color:#f1eddf}.sourced h2 em{color:#d2b976}.sourced-grid>div:first-child>p{color:#c0cbbf}.sourced .urdu-sub{color:#d1bd88}.source-check{border-color:#d5b66d}.sourced-actions{gap:25px}.sourced-actions a{font-size:12px;color:#e0ca94}.source-cards{counter-reset:evidence;gap:0;border-top:1px solid rgba(226,212,172,.35)}.source-cards article{counter-increment:evidence;display:grid;grid-template-columns:64px 1fr;column-gap:12px;padding:24px 0;background:transparent;border:0;border-bottom:1px solid rgba(226,212,172,.24);box-shadow:none}.source-cards article>span:first-child{grid-column:2;font-size:9px;color:#d6bd7e}.source-cards article:before{content:"0" counter(evidence);grid-row:1/5;color:#d0b578;font:34px var(--serif)}.source-cards h3{grid-column:2;color:#f4f0e3;font-size:25px}.source-cards .urdu-sub{grid-column:2;font-size:15px;color:#d1bd88}.source-cards p{grid-column:2;font-size:14px;color:#b6c2b7;line-height:1.75}

/* Qur'an: a large calligraphic centerpiece, then an indexed verse register. */
.quran{background:#e4ddce;padding:130px 0}.quran .section-heading{max-width:950px}.verse-grid{grid-template-columns:1.1fr .9fr;gap:0 58px;align-items:center}.verse-card{background:transparent;border:0;border-bottom:1px solid rgba(112,94,59,.27);box-shadow:none;min-height:0;padding:22px 0;display:grid;grid-template-columns:58px 1fr;column-gap:16px}.verse-card:hover{transform:none}.verse-card>span{grid-column:2;text-align:left;font-size:23px;line-height:1.8;color:#52705a}.verse-card p{grid-column:2;font:17px/1.6 var(--serif);margin:6px 0;color:#34443b}.verse-card small{grid-column:2;font-size:10px;margin:5px 0 0;color:#8e7040}.verse-card:before{grid-column:1;grid-row:1/5;content:attr(href);display:none}.verse-card:nth-child(1){grid-column:1;grid-row:span 3;min-height:485px;padding:45px 40px;background:#18392e;border-radius:48% 48% 4px 4px/34% 34% 4px 4px;display:flex;flex-direction:column;justify-content:center;text-align:center;box-shadow:0 24px 70px rgba(29,48,36,.19);border:1px solid rgba(201,171,106,.43)}.verse-feature>span{font-size:32px;text-align:center;color:#e1cc91}.verse-feature p{font-size:23px;line-height:1.65;text-align:center;color:#f1eddf}.verse-feature .verse-urdu{font-size:18px;line-height:2.1;color:#d8c797}.verse-feature small{font-size:10px;color:#e2ca8e}.quran .section-footer-link{margin-top:34px}

/* Hadith: a quiet manuscript and a bibliographic shelf. */
.hadith{background:#0e211c;padding:132px 0}.hadith .section-heading{display:grid;grid-template-columns:1fr .7fr;align-items:end}.hadith-types{display:flex;gap:0;border-top:1px solid rgba(218,201,160,.3);border-bottom:1px solid rgba(218,201,160,.3)}.hadith-types article{flex:1;grid-template-columns:1fr;border:0;border-right:1px solid rgba(218,201,160,.24);padding:23px 25px;background:transparent}.hadith-types article:last-child{border-right:0}.hadith-types b{grid-row:auto;font-size:30px}.hadith-types span{font-size:22px;margin-top:12px}.hadith-types small{font-size:12px;line-height:1.6}.hadith-explainer{grid-template-columns:.74fr 1.26fr;gap:70px;margin:45px 0 65px}.hadith-explainer>p{font-size:16px;line-height:1.9;color:#c1c9bb}.hadith-day{background:linear-gradient(130deg,#e7dec9,#d9ccb0);color:#20332a;border:0;padding:32px 38px;box-shadow:0 20px 55px rgba(0,0,0,.2)}.hadith-day>span{font-size:10px;color:#876d3e}.hadith-day b{font-size:30px;color:#345542;line-height:2.1}.hadith-day p{font-size:17px;line-height:1.75;color:#263a30}.hadith-day small{font-size:11px;color:#765f38}.subsection-title{font-size:38px;margin-bottom:24px}.subsection-title span{font-size:18px}.books-grid{grid-template-columns:repeat(6,1fr);gap:0;border-top:1px solid rgba(220,201,154,.27);border-bottom:1px solid rgba(220,201,154,.27)}.books-grid article{padding:22px 16px;background:transparent;border:0;border-right:1px solid rgba(220,201,154,.2)}.books-grid article:last-child{border:0}.books-grid article>b{font-size:27px}.books-grid h4{font-size:18px;line-height:1.25;min-height:47px}.books-grid article>span{font-size:13px}.books-grid p{font-size:12px;line-height:1.7;min-height:150px;color:#b9c2b6}.books-grid small{font-size:10px}.counts-note{font-size:11px}.hadith-links{gap:8px 20px}.hadith-links a{border:0;border-bottom:1px solid rgba(207,190,148,.3);padding:10px 0;font-size:11px}

/* Courses: four-step learning path, numbered like a study syllabus. */
.courses{background:#e7e0d2;padding:120px 0}.courses-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid #bca97f;border-bottom:1px solid #bca97f}.course-card{min-height:315px;padding:29px 25px 24px;background:transparent;border:0;border-right:1px solid #d2c8b2;transition:background .2s}.course-card:last-child{border-right:0}.course-card:hover{transform:none;background:rgba(255,255,255,.32)}.course-card>b{position:static;display:block;font:56px/.95 var(--serif);color:#b3975d}.course-card>span{display:block;font-size:10px;margin:19px 0 25px}.course-card h3{font-size:25px;line-height:1.25;margin:0}.course-card .urdu-sub{font-size:16px}.course-card p{font-size:14px;line-height:1.75;min-height:92px}.course-card i{font-size:11px;border-bottom:1px solid #b9a36f;padding-bottom:4px}

/* Battles: a campaign map with an event list over the relief terrain. */
.battles{background:#101e1a;color:#f1ede1;position:relative;isolation:isolate;padding:128px 0}.battles:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(11,29,24,.95),rgba(11,29,24,.78)),url("../img/hijaz-relief.35cedf37b269.webp") center 58%/cover;opacity:.95}.battles .section-heading h2{color:#f4f0e4}.battles .section-heading>p{color:#c0c7ba}.battles .section-label{color:#d0b77c}.battles .urdu-sub{color:#d6c18a}.event-grid{grid-template-columns:repeat(3,1fr);gap:0 35px;border-top:1px solid rgba(224,203,157,.36)}.event-card{padding:23px 0 22px;background:transparent;border:0;border-bottom:1px solid rgba(224,203,157,.23);transition:padding .2s}.event-card:hover{transform:none;padding-left:8px}.event-card:after{content:none}.event-card>span{font-size:10px;color:#d1b87d}.event-card h3{font-size:25px;color:#f4f0e4;margin:13px 0 0}.event-card .urdu-sub{font-size:14px}.event-card p{font-size:14px;color:#c3c9bd;line-height:1.7}.battles .button-outline{color:#e3cf9e;border-color:rgba(213,187,127,.5)}

/* Letters: individually framed dispatches on a warm paper field. */
.letters{background:#e5dbc6;padding:122px 0}.letters .section-heading h2{color:#273b32}.letters .section-heading>p{color:#657068}.letters .section-label{color:#8d7040}.letters .urdu-sub{color:#93784a}.letters-grid{grid-template-columns:repeat(4,1fr);gap:18px}.letters-grid>a{min-height:340px;padding:24px 22px;background:#f6f0e2;border:1px solid #d2c39f;box-shadow:5px 6px 0 rgba(143,116,65,.12),0 18px 35px rgba(51,49,37,.09);transition:transform .2s}.letters-grid>a:nth-child(2){margin-top:30px}.letters-grid>a:nth-child(3){margin-top:58px}.letters-grid>a:nth-child(4){margin-top:15px}.letters-grid>a:hover{transform:translateY(-6px) rotate(-.4deg)}.letters-grid>a>b{right:20px;top:18px;font-size:44px;color:#d5c49c}.letters-grid>a>span{font-size:8px;color:#927647}.letters-grid h3{font-size:25px;color:#293a31;margin:70px 0 0}.letters-grid .urdu-sub{font-size:14px;color:#94794c}.letters-grid p{font-size:13px;line-height:1.8;color:#657067;margin:18px 0}

/* Miracles: constellation of source-linked signs, with no repetitive card chrome. */
.miracles{background:#172a31;color:#e9e5d9;padding:132px 0}.miracles .section-heading h2{color:#f2eee2}.miracles .section-heading>p{color:#b0bbb6}.miracles .section-label{color:#d2b97d}.miracles .urdu-sub{color:#d1bd8c}.miracle-grid{grid-template-columns:repeat(3,1fr);gap:0 38px;position:relative}.miracle-grid:before{content:"";position:absolute;left:6%;right:6%;top:19px;border-top:1px dashed rgba(216,196,143,.36)}.miracle-grid>a{min-height:0;padding:18px 0 27px;background:transparent;border:0;border-bottom:1px solid rgba(217,201,159,.23);position:relative}.miracle-grid>a:before{content:"";position:absolute;top:14px;left:0;width:10px;height:10px;border-radius:50%;background:#d7bd7f;box-shadow:0 0 0 6px rgba(215,189,127,.1)}.miracle-grid>a:after{content:none}.miracle-grid>a>span{display:block;text-align:right;color:#cdb477;font-size:9px}.miracle-grid h3{font-size:25px;color:#f0ebdc;margin:36px 0 0}.miracle-grid .urdu-sub{font-size:15px;color:#d3bc83}.miracle-grid p{font-size:14px;line-height:1.75;color:#bbc4bd;margin-top:13px}

/* Companions: an index of names and notes, not profile tiles. */
.companions{background:#f6f3eb;padding:121px 0}.companion-grid{grid-template-columns:repeat(3,1fr);gap:0 35px;border-top:1px solid #d5cbb7}.companion-grid>a{min-height:0;padding:21px 5px 21px 58px;background:transparent;border:0;border-bottom:1px solid #d5cbb7;transition:padding .2s}.companion-grid>a:hover{padding-left:65px}.companion-grid>a>b{left:6px;top:18px;font-size:32px}.companion-grid h3{font-size:22px}.companion-grid .urdu-sub{font-size:14px}.companion-grid p{font-size:13px;line-height:1.65;margin-top:7px}

/* Places: gallery panels use actual architectural CGI rather than gradient cards. */
.places{background:#0e211c;padding:132px 0}.places .section-heading h2{color:#f2eee2}.places .section-heading>p{color:#b8c2b7}.places-grid{grid-template-columns:1.25fr 1fr 1fr;grid-template-rows:250px 250px;gap:12px}.place-card{min-height:0;padding:25px;background:#19352c;border:0;box-shadow:0 20px 45px rgba(0,0,0,.2);overflow:hidden}.place-card:first-child{grid-row:span 2}.place-card:before{transition:transform .55s}.place-card:hover:before{transform:scale(1.07)}.place-nabawi:before{background:linear-gradient(0deg,rgba(7,20,16,.94),rgba(9,25,19,.03) 72%),url("../img/madinah-hero.87171c61d5a4.webp") 65% center/cover}.place-haram:before{background:linear-gradient(0deg,rgba(7,20,16,.94),rgba(9,25,19,.03) 75%),url("../img/masjid-al-haram.0b0d4c7209ff.webp") center/cover}.place-hira:before,.place-thawr:before{background:linear-gradient(0deg,rgba(7,20,16,.95),rgba(9,25,19,.1)),url("../img/hijaz-relief.35cedf37b269.webp") 62% center/cover}.place-baqi:before{background:linear-gradient(0deg,rgba(7,20,16,.95),rgba(9,25,19,.15)),radial-gradient(ellipse at 60% 20%,#829577,#233d2c 55%,#12241d)}.place-card>span{font-size:9px}.place-card h3{font-size:28px;margin-top:80px}.place-card .urdu-sub{font-size:15px}.place-card p{font-size:13px;line-height:1.65;color:#e0e1d4}.place-card:first-child h3{font-size:34px;margin-top:280px}

/* Character: typographic field with a single centered quotation. */
.character{background:#e8e0d0;padding:124px 0}.traits-grid{grid-template-columns:repeat(5,1fr);gap:0;border-top:1px solid #b9a77d;border-bottom:1px solid #b9a77d}.traits-grid>a{min-height:0;padding:22px 17px;background:transparent;border:0;border-right:1px solid #d2c7ac;border-bottom:1px solid #d2c7ac;transition:background .2s}.traits-grid>a:nth-child(5n){border-right:0}.traits-grid>a:hover{background:rgba(255,255,255,.3)}.traits-grid b{font-size:15px;color:#a68a50}.traits-grid h3{font-size:23px;margin:16px 0 0}.traits-grid .urdu-sub{font-size:14px}.traits-grid p{font-size:13px;line-height:1.7;margin-top:11px}.character-hadith{max-width:100%;background:#1a392e;padding:31px;margin-top:35px}.character-hadith>b{font-size:27px}.character-hadith p{font-size:18px}.character-hadith a{font-size:11px}

/* Resources: a compact bookshop catalogue with strong metadata hierarchy. */
.resources{background:#f8f5ed;padding:123px 0}.resource-filters{gap:18px;margin:-18px 0 22px}.resource-filters a{font-size:11px;padding:6px 0;border:0;border-bottom:1px solid #b7a475}.resource-grid{grid-template-columns:1fr 1fr;gap:0 40px;border-top:1px solid #d5cbb8}.resource-grid>a{min-height:0;display:grid;grid-template-columns:52px 1fr;column-gap:15px;padding:22px 0;background:transparent;border:0;border-bottom:1px solid #d5cbb8;transition:padding .2s}.resource-grid>a:hover{transform:none;padding-left:8px}.resource-grid>a>b{position:static;grid-row:1/5;font:45px var(--serif);color:#b69a60}.resource-grid>a>span{font-size:9px;letter-spacing:.13em}.resource-grid h3{font-size:24px;margin:5px 0 0}.resource-grid .urdu-sub{font-size:14px}.resource-grid p{font-size:13px;line-height:1.7;min-height:0;margin:8px 0}.resource-grid i{font-size:11px}

/* Close with one shared action area; no second repeated card stack. */
.community{background:#e4ddce;padding:104px 0}.community-grid{grid-template-columns:.8fr 1.2fr;gap:80px;align-items:center}.community-grid>div>p{font-size:15px}.community .button-outline{font-size:11px}.feedback-form{padding:28px 31px;background:#f8f5ed;border:0;border-top:3px solid #b79a5d;box-shadow:0 17px 40px rgba(47,55,43,.09)}.feedback-form label{font-size:11px}.feedback-form input,.feedback-form textarea{font-size:14px;padding:13px}.feedback-form button,.newsletter button{font-size:12px;padding:14px 17px}.form-note{font-size:10px}.newsletter{padding:78px 0;background:#0d211c}.newsletter h2{font-size:48px}.newsletter .urdu-sub{font-size:17px}.newsletter p{font-size:14px}.newsletter input{font-size:14px;padding:15px}.newsletter button{font-size:12px}.newsletter .form-note{font-size:10px}.footer-main{padding-bottom:22px}.footer-nav a,.footer-bottom{font-size:10px}.footer-nav{gap:23px}.footer-bottom{padding-top:18px;margin-top:14px}

:focus-visible{outline:3px solid #d6b76e;outline-offset:4px}
@media(max-width:1100px){.site-nav{gap:14px}.site-nav>a:not(.nav-cta):not(.language-link){font-size:11px}.tree-layout{grid-template-columns:1fr}.family-side{grid-template-columns:repeat(3,1fr)}.family-card{padding:20px}.books-grid{grid-template-columns:repeat(3,1fr)}.books-grid article:nth-child(3){border-right:0}.books-grid article:nth-child(-n+3){border-bottom:1px solid rgba(220,201,154,.2)}.books-grid p{min-height:105px}.place-card:first-child h3{margin-top:250px}}
@media(max-width:760px){.wrap{width:calc(100% - 42px)}.site-header{height:74px;padding:0 21px}.menu-toggle{display:flex}.site-nav{display:none;position:absolute;top:74px;left:0;right:0;padding:20px 22px;background:#0b211c;flex-direction:column;align-items:stretch;gap:15px}.site-nav.is-open{display:flex}.site-nav>a:not(.nav-cta):not(.language-link){font-size:14px}.site-nav .nav-cta{text-align:center}.hero{min-height:700px;height:720px}.hero-content{padding-top:112px}.hero h1{font-size:clamp(58px,11vw,82px)}.hero-copy{font-size:16px}.hero-trust{display:grid;gap:9px;margin-top:37px}.hero-trust span{font-size:10px}.hero-location{right:21px;bottom:56px}.section{padding:82px 0}.section-heading{display:block;margin-bottom:34px}.section-heading>p{margin:18px 0 0}.section-heading h2,.sourced h2,.community h2{font-size:43px}.era-grid{grid-template-columns:1fr;border-top:0;margin-top:25px}.era-card{min-height:0;padding:18px 0 20px 46px;border:0;border-left:1px solid rgba(117,94,54,.4)}.era-card:after{left:-5px;top:21px}.era-n{position:absolute;left:12px;top:17px;font-size:34px}.era-date{margin:0 0 9px}.era-card h3{font-size:22px;min-height:0}.era-card p{min-height:0;margin:8px 0 12px}.era-links{flex-direction:row}.family-side{grid-template-columns:1fr}.tree-toolbar{align-items:start}.tree-toolbar>div{flex-wrap:wrap;max-width:55%}.lineage-panel{padding:18px 14px}.lineage-heading{gap:9px;font-size:8px}.lineage-heading span+span{font-size:7px;text-align:right}.lineage-list:before{left:36px}.lineage-node{grid-template-columns:28px 1fr 80px;min-height:34px}.lineage-node:before{left:27px}.node-name{font-size:14px;padding-left:22px}.node-note{font-size:9px}.chapters .section-heading{display:block}.chapters .section-heading>p{justify-self:auto}.chapter-grid{grid-template-columns:1fr}.chapters .chapter-card:first-child{grid-row:auto;border:0;border-bottom:1px solid #d9d1bd;padding-right:0}.chapters .chapter-card:first-child .chapter-art{height:230px}.chapters .chapter-card h3{font-size:27px}.chapters .chapter-card:not(:first-child){grid-template-columns:66px 1fr;gap:0 14px}.chapters .chapter-card:not(:first-child) .chapter-art{width:66px;height:70px}.chapters .chapter-card:not(:first-child) h3{font-size:20px}.chapters .chapter-card:not(:first-child) p{font-size:13px}.sourced-grid{grid-template-columns:1fr;gap:25px}.source-cards article{grid-template-columns:42px 1fr;padding:18px 0}.source-cards article:before{font-size:27px}.source-cards h3{font-size:21px}.source-cards p{font-size:13px}.verse-grid{grid-template-columns:1fr;gap:0}.verse-card:nth-child(1){grid-column:auto;grid-row:auto;min-height:340px;border-radius:48% 48% 4px 4px/22% 22% 4px 4px;padding:32px 25px;margin-bottom:15px}.verse-feature>span{font-size:25px}.verse-feature p{font-size:19px}.verse-card{grid-template-columns:39px 1fr}.verse-card>span{font-size:20px}.verse-card p{font-size:15px}.hadith .section-heading{display:block}.hadith-types{display:grid;grid-template-columns:1fr}.hadith-types article{display:grid;grid-template-columns:55px 1fr;border-right:0;border-bottom:1px solid rgba(218,201,160,.2);padding:16px 10px}.hadith-types article:last-child{border-bottom:0}.hadith-types b{grid-row:span 2}.hadith-types span{margin:0;font-size:20px}.hadith-types small{font-size:11px}.hadith-explainer{grid-template-columns:1fr;gap:15px;margin:28px 0 42px}.hadith-explainer>p{font-size:14px}.hadith-day{padding:22px}.hadith-day b{font-size:24px}.hadith-day p{font-size:15px}.subsection-title{font-size:30px}.books-grid{grid-template-columns:1fr 1fr}.books-grid article{padding:16px 12px;border-bottom:1px solid rgba(220,201,154,.2)!important}.books-grid article:nth-child(2n){border-right:0}.books-grid article:nth-child(3){border-right:1px solid rgba(220,201,154,.2)}.books-grid h4{font-size:17px}.books-grid p{font-size:11px;min-height:140px}.courses-grid{grid-template-columns:1fr 1fr}.course-card{min-height:285px;padding:21px 16px}.course-card h3{font-size:21px}.course-card p{font-size:13px;min-height:120px}.event-grid{grid-template-columns:1fr 1fr;gap:0 20px}.event-card h3{font-size:20px}.event-card p{font-size:12px}.letters-grid{grid-template-columns:1fr 1fr;gap:12px}.letters-grid>a,.letters-grid>a:nth-child(n){margin:0;min-height:290px;padding:18px 15px}.letters-grid h3{font-size:21px;margin-top:62px}.letters-grid p{font-size:12px}.miracle-grid{grid-template-columns:1fr 1fr;gap:0 18px}.miracle-grid:before{display:none}.miracle-grid h3{font-size:20px}.miracle-grid p{font-size:12px}.companion-grid{grid-template-columns:1fr 1fr;gap:0 14px}.companion-grid h3{font-size:18px}.companion-grid .urdu-sub{font-size:12px}.companion-grid p{font-size:11px}.places-grid{grid-template-columns:1fr 1fr;grid-template-rows:220px 190px 190px}.place-card:first-child{grid-row:span 2}.place-card:first-child h3{margin-top:240px;font-size:25px}.place-card h3{font-size:20px;margin-top:60px}.place-card p{font-size:11px}.traits-grid{grid-template-columns:1fr 1fr}.traits-grid>a{padding:16px 13px}.traits-grid h3{font-size:19px}.traits-grid p{font-size:12px}.resource-grid{grid-template-columns:1fr;gap:0}.resource-grid>a{grid-template-columns:43px 1fr}.resource-grid h3{font-size:21px}.resource-grid p{font-size:12px}.community-grid{grid-template-columns:1fr;gap:25px}.newsletter-inner{grid-template-columns:1fr;gap:22px}.footer-main{display:grid;grid-template-columns:1fr auto}.footer-nav{grid-column:1/-1;order:0}.footer-bottom{gap:8px;flex-wrap:wrap}}
@media(max-width:430px){.hero h1{font-size:57px}.hero-actions{align-items:flex-start;flex-direction:column;gap:14px}.tree-toolbar{gap:8px}.tree-toggle{font-size:10px;padding:8px}.lineage-node{grid-template-columns:23px 1fr 64px}.lineage-list:before{left:31px}.lineage-node:before{left:22px;width:14px}.node-name{font-size:13px;padding-left:19px}.node-note{font-size:8px}.books-grid{grid-template-columns:1fr}.books-grid article{border-right:0!important}.books-grid p{min-height:0}.event-grid,.letters-grid,.places-grid{grid-template-columns:1fr}.letters-grid>a,.letters-grid>a:nth-child(n){min-height:250px}.place-card:first-child{grid-row:auto}.place-card:first-child h3,.place-card h3{margin-top:150px}.places-grid{grid-template-rows:auto}.place-card{min-height:235px}.traits-grid{grid-template-columns:1fr}.traits-grid>a{border-right:0}.footer-bottom{display:grid}}

/* Contrast pass: deeper ground tones, brighter type, larger Urdu labels. */
body{background:#101d19;color:#ecede4}
.urdu-sub,[lang="ur"]{font-family:"Noto Nastaliq Urdu",serif;font-size:21px!important;line-height:2.25!important;font-weight:500;color:#806536}
.section-heading .urdu-sub{font-size:22px!important}
.site-nav .language-link{font-size:20px!important}
.hero .eyebrow{color:#ead59d}.hero-copy{color:#f0f0e8}.hero-trust{color:#e1e5d9}
.eras{background:#172621;color:#f0efe6}.eras:after{opacity:.25;mix-blend-mode:screen;mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.65) 30%,black 72%,transparent)}
.eras .section-heading h2,.eras .section-heading>p{color:#f1eee3}.eras .section-heading>p{opacity:.86}.eras .section-label{color:#e2c985}.eras .urdu-sub{color:#ead59d}
.era-grid{border-color:rgba(220,199,143,.45)}.era-card{border-color:rgba(220,199,143,.22)}.era-card:hover{background:rgba(255,255,255,.045)}.era-card:after{background:#172621;border-color:#e0bf75;box-shadow:0 0 0 6px rgba(224,191,117,.15),0 0 15px rgba(224,191,117,.35)}.era-n{color:#e1c47f;text-shadow:0 5px 18px rgba(0,0,0,.3)}.era-date,.era-links span{color:#ebd18f}.era-card h3{color:#f2f0e6}.era-card p{color:#c5cec2}.era-links{color:#e1e6d9;border-color:rgba(226,210,164,.27)}
.chapters{background:#111e1b;color:#f1efe6}.chapters .section-heading h2{color:#f4f1e7}.chapters .section-heading>p{color:#c7d0c5}.chapters .section-label{color:#dfc37f}.chapters .urdu-sub{color:#ecd79f}.chapter-grid{border-color:rgba(225,210,166,.28)}.chapters .chapter-card{border-color:rgba(225,210,166,.25)}.chapters .chapter-card:first-child{border-color:rgba(225,210,166,.28)}.chapters .chapter-card h3{color:#f5f1e6}.chapters .chapter-card p{color:#d0d7ca}.chapters .card-link{color:#e3ca8d;border-color:rgba(225,210,166,.25)}
.sourced{background:linear-gradient(125deg,#10372b,#10251f 52%,#192c25)}.source-cards{border-color:rgba(229,211,159,.5)}.source-cards article{border-color:rgba(229,211,159,.35)}.source-cards article>span:first-child{color:#f0d891}.source-cards h3{color:#fffdf1}.source-cards p{color:#d2ddd2}.sourced-grid>div:first-child>p{color:#d6dfd4}
.quran{background:#10251f;color:#eeeadd}.quran .section-heading h2{color:#f4f0e4}.quran .section-heading>p{color:#c6d0c4}.quran .section-label{color:#dec47f}.quran .urdu-sub{color:#ead49b}.verse-card{border-color:rgba(217,197,143,.26)}.verse-card>span{color:#e0c77f}.verse-card p{color:#e9e9df}.verse-card small{color:#e1c783}.verse-card:nth-child(1){background:radial-gradient(ellipse at 50% 0,rgba(209,178,105,.2),transparent 44%),linear-gradient(150deg,#24523e,#17382c 58%,#112b22);box-shadow:0 35px 75px rgba(0,0,0,.34),inset 1px 1px 0 rgba(255,255,255,.14),inset -2px -4px 12px rgba(0,0,0,.25);border-color:rgba(230,202,128,.5)}.verse-feature p,.verse-feature .verse-urdu{color:#f1ead6}
.hadith{background:radial-gradient(ellipse at 86% 12%,rgba(36,87,65,.22),transparent 35%),#0b1b17}.hadith-day{background:linear-gradient(145deg,#f0e5c9,#c9b78b);box-shadow:0 28px 65px rgba(0,0,0,.32),inset 1px 1px 0 rgba(255,255,255,.85),inset -1px -3px 9px rgba(76,54,22,.13)}
.courses{background:radial-gradient(ellipse at 8% 0,rgba(42,94,68,.27),transparent 34%),#101e19;color:#f1eee4}.courses .section-heading h2{color:#f6f1e6}.courses .section-heading>p{color:#cbd3c8}.courses .section-label{color:#e0c580}.courses .urdu-sub{color:#ebd59b}.courses-grid{border-color:rgba(224,200,131,.47)}.course-card{background:linear-gradient(155deg,rgba(34,66,51,.94),rgba(19,39,31,.98));border-right-color:rgba(228,209,161,.21);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -22px 38px rgba(0,0,0,.14)}.course-card>b{color:#e2c578}.course-card>span{color:#ead597}.course-card h3{color:#f5f1e4}.course-card .urdu-sub{color:#ead49a}.course-card p{color:#d1dacd}.course-card i{color:#f1d992;border-color:rgba(226,200,129,.55)}
.battles{background:#0d211c}.battles:before{background:linear-gradient(100deg,rgba(8,24,19,.94),rgba(10,29,22,.77)),url("../img/hijaz-relief.35cedf37b269.webp") center/cover}.event-card{border-color:rgba(224,203,157,.3)}.event-card p{color:#d5ddd1}.event-card h3{color:#f5f1e6}
.letters{background:#171f1a;color:#eeeadd}.letters .section-heading h2{color:#f5f1e7}.letters .section-heading>p{color:#d0d4c7}.letters .section-label{color:#e0c37d}.letters .urdu-sub{color:#ead49a}.letters-grid>a{background:linear-gradient(155deg,#e8dcc0,#cdbb93);border:1px solid #ead9ab;box-shadow:7px 10px 0 rgba(0,0,0,.18),0 24px 35px rgba(0,0,0,.3),inset 1px 1px 0 rgba(255,255,255,.9),inset -1px -2px 7px rgba(92,66,31,.16)}.letters-grid h3{color:#1a2b24}.letters-grid p{color:#34433a}.letters-grid>a>span{color:#614922}.letters-grid .urdu-sub{color:#654a21}
.miracles{background:radial-gradient(ellipse at 52% 55%,#18383a,#111e24 65%);color:#f0eee4}.miracles .section-heading>p{color:#d0d9d2}.miracle-grid h3{color:#f6f2e8}.miracle-grid p{color:#d2dad3}.miracle-grid .urdu-sub{color:#eddaaa}.miracle-grid>a{border-color:rgba(217,201,159,.32)}.miracle-grid>a:before{background:#f2d782;box-shadow:0 0 0 6px rgba(215,189,127,.14),0 0 18px rgba(242,215,130,.42)}
.companions{background:#14231e;color:#f1eee5}.companions .section-heading h2{color:#f5f1e6}.companions .section-heading>p{color:#d0d9ce}.companions .section-label{color:#e2c680}.companions .urdu-sub{color:#ead59d}.companion-grid{border-color:rgba(224,209,163,.35)}.companion-grid>a{border-color:rgba(224,209,163,.26)}.companion-grid h3{color:#f2f0e7}.companion-grid p{color:#cbd5ca}
.places{background:#0c1e19}.place-card{box-shadow:0 28px 55px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.16)}.place-card:before{filter:saturate(1.15) contrast(1.08)}.place-card h3{color:#fff8e7;text-shadow:0 3px 14px rgba(0,0,0,.65)}.place-card p{color:#f1f0e6;text-shadow:0 2px 8px rgba(0,0,0,.75)}
.character{background:#14251f;color:#f0eee4}.character .section-heading h2{color:#f4f0e5}.character .section-heading>p{color:#d1d8cc}.character .section-label{color:#e4c982}.character .urdu-sub{color:#ead59c}.traits-grid{border-color:rgba(222,202,146,.4)}.traits-grid>a{border-color:rgba(222,202,146,.22)}.traits-grid h3{color:#f2efe5}.traits-grid p{color:#d2dacd}.traits-grid>a:hover{background:rgba(225,201,135,.08)}.character-hadith{background:linear-gradient(135deg,#28513d,#173327);box-shadow:0 20px 55px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.12)}
.resources{background:#10231d;color:#eeeae0}.resources .section-heading h2{color:#f5f1e6}.resources .section-heading>p{color:#d0d9cd}.resources .section-label{color:#e2c77f}.resources .urdu-sub{color:#ead69c}.resource-filters a{color:#f0d693;border-color:rgba(226,204,145,.42)}.resource-grid{border-color:rgba(222,203,150,.36)}.resource-grid>a{border-color:rgba(222,203,150,.24)}.resource-grid>a>b{color:#e5c776}.resource-grid>a>span{color:#e4ca89}.resource-grid h3{color:#f5f1e5}.resource-grid .urdu-sub{color:#ead69c}.resource-grid p{color:#d1d9ce}.resource-grid i{color:#f0d991}
.community{background:#14241e;color:#efece2}.community .section-heading h2,.community h2{color:#f5f1e6}.community .section-label{color:#dfc47f}.community .urdu-sub{color:#e9d49a}.community-grid>div>p{color:#d1d8cd}.feedback-form{background:linear-gradient(145deg,#e9dfc7,#d4c49e);box-shadow:0 25px 60px rgba(0,0,0,.28),inset 1px 1px 0 rgba(255,255,255,.78)}.feedback-form label{font-size:13px;color:#28372d}.feedback-form input,.feedback-form textarea{font-size:15px;border-color:#b6a77f;background:#f5efdf;color:#1d2c23}.feedback-form button{font-size:13px}.newsletter{background:radial-gradient(ellipse at 87% 10%,rgba(55,110,74,.38),transparent 36%),#091914}.newsletter p{font-size:16px;color:#d1d9cc}.newsletter .urdu-sub{color:#f1d994}.footer-nav a,.footer-bottom{color:#c2cdbf}

/* CGI craft: bevelled surfaces, reflective response, deep shadows, and restrained pointer parallax. */
.hero-image{filter:saturate(1.08) contrast(1.06)}.hero:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 72% 38%,rgba(245,212,145,.1),transparent 24%),linear-gradient(120deg,transparent 42%,rgba(255,255,255,.045) 51%,transparent 59%);mix-blend-mode:screen}
.era-card,.course-card,.letters-grid>a,.place-card,.resource-grid>a{transform-style:preserve-3d;will-change:transform;backface-visibility:hidden}
.cgi-reactive{transition:transform .28s cubic-bezier(.2,.8,.2,1),filter .28s,box-shadow .28s}
.cgi-reactive:hover{transform:perspective(1100px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateZ(7px);filter:brightness(1.08)}
.place-card.cgi-reactive:hover,.letters-grid>a.cgi-reactive:hover{box-shadow:0 35px 70px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.23)}
.course-card{position:relative;overflow:hidden}.course-card:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(130deg,rgba(255,255,255,.11),transparent 25% 72%,rgba(221,190,117,.07));transform:translateZ(1px)}
.place-card:after{content:"";position:absolute;inset:0;pointer-events:none;border:1px solid rgba(235,218,174,.2);box-shadow:inset 0 0 38px rgba(245,229,189,.08)}
.letters-grid>a{transform:perspective(1100px) rotateY(-2deg)}.letters-grid>a:nth-child(even){transform:perspective(1100px) rotateY(2deg)}
.lineage-panel{box-shadow:0 28px 75px rgba(0,0,0,.35),inset 1px 1px 0 rgba(255,255,255,.09),inset -2px -3px 14px rgba(0,0,0,.2);background:radial-gradient(ellipse at 90% 5%,rgba(83,133,91,.2),transparent 34%),linear-gradient(145deg,#1c382c,#10271f)}
.lineage-node.featured .node-name{text-shadow:0 0 18px rgba(227,197,121,.28)}.lineage-node.featured .node-name:before{box-shadow:0 0 13px rgba(233,202,122,.72)}
.chapter-art,.verse-card:nth-child(1),.hadith-day,.source-cards article,.feedback-form{position:relative;overflow:hidden}.chapter-art:before{filter:saturate(1.18) contrast(1.07)}.chapter-art:after{background:linear-gradient(0deg,rgba(3,16,12,.72),transparent 78%),linear-gradient(115deg,transparent 38%,rgba(255,255,255,.12) 49%,transparent 58%)}
.verse-card:nth-child(1):after,.hadith-day:after,.feedback-form:after{content:"";position:absolute;inset:0;pointer-events:none;border:1px solid rgba(237,220,176,.32);box-shadow:inset 0 0 30px rgba(255,255,255,.08)}
.source-cards article{background:linear-gradient(110deg,rgba(255,255,255,.045),transparent 60%)}.source-cards article:after{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:linear-gradient(transparent,#d9bd72,transparent);opacity:.8}
.place-card,.letters-grid>a,.course-card{perspective:900px}
@media(prefers-reduced-motion:reduce){.cgi-reactive,.place-card:before{transition:none!important}.cgi-reactive:hover{transform:none;filter:none}}
@media(max-width:760px){[lang="ur"],.urdu-sub{font-size:19px!important;line-height:2.15!important}.section-heading .urdu-sub{font-size:20px!important}.era-card .urdu-sub,.chapters .urdu-sub,.event-card .urdu-sub,.letters-grid .urdu-sub,.miracle-grid .urdu-sub,.companion-grid .urdu-sub,.place-card .urdu-sub,.traits-grid .urdu-sub,.resource-grid .urdu-sub{font-size:19px!important}}

.honeypot{display:none!important}

/* ===== soft-cgi.css ===== */
/* Softer art direction pass: pearl, sage, sandstone, sea-glass and warm brass. */
:root{--ink:#26352e;--deep:#16332b;--deep-2:#21483b;--cream:#f3eee2;--paper:#fbf8f0;--gold:#ae8950;--muted:#66756b}
body{background:#f4f0e7;color:#27352e}
.section-heading h2,.sourced h2,.community h2{color:#26382f}
.section-heading>p{color:#55665b}
.section-label{color:#8f7548}
.urdu-sub,[lang="ur"]{font-size:21px!important;line-height:2.2!important;color:#69502d;font-weight:500;text-shadow:0 1px 0 rgba(255,255,255,.34)}
.section-heading .urdu-sub{font-size:23px!important}
.site-header{background:linear-gradient(100deg,#12352d,#214b3c 55%,#17382f);box-shadow:0 7px 24px rgba(31,53,41,.15)}
.site-nav{color:#f3f0e5}.site-nav .nav-cta{background:rgba(234,219,178,.1);border-color:rgba(232,211,160,.65);color:#f2dfaf}.site-nav .language-link{color:#f2d994!important}
.hero-shade{background:linear-gradient(90deg,rgba(12,39,31,.78),rgba(12,39,31,.47) 40%,rgba(12,39,31,.06) 80%),linear-gradient(0deg,rgba(12,24,19,.26),transparent 37%)}
.hero:after{background:radial-gradient(ellipse at 75% 26%,rgba(255,228,177,.16),transparent 26%),linear-gradient(120deg,transparent 38%,rgba(255,255,255,.07) 49%,transparent 61%)}
.hero-copy{color:#faf8ef}.hero-trust{color:#f2f1e7}.hero .eyebrow{color:#f0dbad}

/* Each section gets a separate, softly lit surface and a distinct transition edge. */
.eras{background:linear-gradient(135deg,#e8efe6,#dbe7de 55%,#e9e3d4);color:#25372e;border-top:1px solid #fff9e9;box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(82,111,86,.15)}
.eras:after{opacity:.23;mix-blend-mode:multiply;mask-image:linear-gradient(90deg,transparent,black 35%,black 75%,transparent)}
.eras:before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,#a68a57,#e5d6b4,#789681,#d6bf88);opacity:.8}
.eras .section-heading h2{color:#283c31}.eras .section-heading>p{color:#53665a}.eras .section-label{color:#8a7042}.eras .urdu-sub{color:#66502f}
.era-grid{border-color:rgba(89,111,84,.44)}.era-card{border-color:rgba(96,114,86,.21)}.era-card:after{background:#e3eadf;border-color:#a48851;box-shadow:0 0 0 5px rgba(164,136,81,.12),0 0 13px rgba(164,136,81,.22)}.era-card h3{color:#26392f}.era-card p{color:#4e5f53}.era-date,.era-links span{color:#806338}.era-n{color:#aa8a50;text-shadow:0 4px 14px rgba(95,78,43,.15)}.era-links{color:#4e6054;border-color:rgba(103,118,86,.31)}

.family{background:radial-gradient(ellipse at 82% 12%,rgba(112,153,119,.24),transparent 29%),linear-gradient(145deg,#23473a,#16352d 65%,#1d4135);border-top:8px solid #d9e5d9;border-bottom:8px solid #d9e5d9;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 -1px 0 rgba(255,255,255,.15)}
.family .section-heading h2{color:#fff9eb}.family .section-heading>p{color:#e0e8d9}.family .section-label{color:#e2ca91}.family .urdu-sub{color:#efdaa5}.lineage-panel{background:radial-gradient(ellipse at 86% 6%,rgba(144,176,129,.22),transparent 34%),linear-gradient(145deg,#315648,#1e3f33);border-color:rgba(225,213,175,.35)}.lineage-heading{color:#efd99d}.lineage-heading span+span{color:#d0dfd0}.node-name{color:#fff9ed}.node-note{color:#c3d0c3}.lineage-caveat p{color:#dce5d9}.family-card{background:linear-gradient(135deg,rgba(222,237,218,.12),rgba(12,40,32,.2)),#2a4d3e;border-color:rgba(228,216,177,.28);box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 12px 25px rgba(4,24,17,.12)}.family-card h3{color:#fff8e8}.family-card h3 small{color:#ead9aa}.family-card p{color:#e0e6d9}.family-ref,.inline-ref{color:#f0d99d}.family-footnote{color:#d3dfd2}

.chapters{background:linear-gradient(130deg,#f8f4ea,#efe6d5 54%,#f5f1e8);color:#27362e;border-top:1px solid #fff}.chapters .section-heading h2{color:#29392f}.chapters .section-heading>p{color:#536259}.chapters .urdu-sub{color:#72562d}.chapter-grid{border-color:#c9bea8}.chapters .chapter-card{border-color:#c9bea8}.chapters .chapter-card:first-child{border-color:#c9bea8}.chapters .chapter-card h3{color:#273a30}.chapters .chapter-card p{color:#4e5d52}.chapters .card-link{color:#705a34;border-color:#c9bea8}.chapter-art{box-shadow:0 17px 35px rgba(45,50,37,.18),inset 0 1px 0 rgba(255,255,255,.3)}

.sourced{background:linear-gradient(135deg,#dae8dd,#cbded1 52%,#e6e9d9);color:#27392e;border-top:8px solid #f8f2e5;border-bottom:8px solid #f3eddf}.sourced h2{color:#293b30}.sourced h2 em{color:#937341}.sourced-grid>div:first-child>p{color:#43554a}.sourced .urdu-sub{color:#71572f}.source-check{border-color:#a88b50}.sourced-actions a{color:#6f5934;border-color:#a88b50}.source-cards{border-color:rgba(68,99,77,.38)}.source-cards article{background:linear-gradient(100deg,rgba(255,255,255,.55),rgba(255,255,255,.16));border-color:rgba(68,99,77,.26);margin:0 0 8px;padding:19px 14px;border-radius:0 16px 16px 0;box-shadow:0 7px 18px rgba(44,73,54,.07)}.source-cards article:before{color:#8c7042}.source-cards article>span:first-child{color:#765d34}.source-cards h3{color:#293b30}.source-cards .urdu-sub{color:#71572f}.source-cards p{color:#465b4b}

.quran{background:linear-gradient(145deg,#efe6d2,#e8e4d1 52%,#e4eee2);color:#29392f;border-top:1px solid #fff}.quran .section-heading h2{color:#263b30}.quran .section-heading>p{color:#526257}.quran .urdu-sub{color:#6d532e}.verse-card{border-color:rgba(111,94,57,.26)}.verse-card>span{color:#6d805d}.verse-card p{color:#34443a}.verse-card small{color:#785f37}.verse-card:nth-child(1){background:radial-gradient(ellipse at 50% 10%,rgba(219,195,139,.3),transparent 50%),linear-gradient(145deg,#537b60,#345a48 58%,#254c3e);box-shadow:0 25px 58px rgba(40,65,47,.23),inset 1px 1px 0 rgba(255,255,255,.34),inset -2px -4px 12px rgba(23,44,31,.19);border-color:rgba(248,238,204,.73)}.verse-feature>span,.verse-feature p,.verse-feature .verse-urdu{color:#fff8e5}.verse-feature small{color:#f2dca4}

.hadith{background:linear-gradient(135deg,#214639,#19392f 54%,#274d40);border-top:8px solid #e7eadf;border-bottom:8px solid #e7eadf}.hadith .section-heading h2{color:#fff8e8}.hadith .section-heading>p{color:#e2e8dc}.hadith .section-label{color:#ead39c}.hadith .urdu-sub{color:#efdaa5}.hadith-types{border-color:rgba(238,224,184,.48)}.hadith-types article{border-color:rgba(238,224,184,.31)}.hadith-types span{color:#fff7e5}.hadith-types small{color:#dce5d8}.hadith-explainer>p{color:#d9e3d6}.books-grid{border-color:rgba(239,223,177,.4)}.books-grid article{border-color:rgba(239,223,177,.25)}.books-grid article:nth-child(odd){background:linear-gradient(180deg,rgba(246,237,211,.09),transparent)}.books-grid article:nth-child(even){background:linear-gradient(180deg,rgba(145,184,149,.08),transparent)}.books-grid p{color:#e0e6d9}.books-grid h4{color:#fff9eb}.books-grid article>span{color:#ead6a4}.counts-note{color:#d2ddd0}

.courses{background:linear-gradient(125deg,#f2ebdc,#e7e0ce 48%,#edf0e3);color:#27372e;border-top:1px solid #fff}.courses .section-heading h2{color:#293a30}.courses .section-heading>p{color:#536257}.courses .section-label{color:#896d3f}.courses .urdu-sub{color:#6c522c}.courses-grid{border-color:#bfb08b}.course-card{background:linear-gradient(155deg,rgba(255,255,255,.59),rgba(233,224,198,.62));border-color:rgba(145,123,77,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.88),0 16px 32px rgba(64,70,51,.08)}.course-card:nth-child(2){background:linear-gradient(155deg,#e5eee3,#d8e5d6)}.course-card:nth-child(3){background:linear-gradient(155deg,#eee6d5,#e3d7c0)}.course-card:nth-child(4){background:linear-gradient(155deg,#e3e9e7,#d5e2df)}.course-card>b{color:#947849}.course-card>span{color:#765d37}.course-card h3{color:#27392f}.course-card .urdu-sub{color:#70552e}.course-card p{color:#46574b}.course-card i{color:#6d542e;border-color:#b89b61}

.battles{background:#e1e9df;color:#26372e;border-top:8px solid #f7f2e7;border-bottom:8px solid #f7f2e7}.battles:before{background:linear-gradient(95deg,rgba(230,238,224,.94),rgba(230,238,224,.84)),url("../img/hijaz-relief.35cedf37b269.webp") center/cover;opacity:.9;mix-blend-mode:normal}.battles .section-heading h2{color:#293c31}.battles .section-heading>p{color:#516257}.battles .section-label{color:#80663a}.battles .urdu-sub{color:#70562e}.event-grid{border-color:rgba(76,101,78,.4)}.event-card{border-color:rgba(76,101,78,.28)}.event-card>span{color:#7e6439}.event-card h3{color:#27392f}.event-card .urdu-sub{color:#70552d}.event-card p{color:#4c5d51}.battles .button-outline{color:#5c4929;border-color:#9c8250}

.letters{background:linear-gradient(135deg,#eee2c9,#e4d7bd 55%,#f2ebd9);color:#29372f;border-top:1px solid #fff}.letters .section-heading h2{color:#293b30}.letters .section-heading>p{color:#566258}.letters .section-label{color:#8e7040}.letters .urdu-sub{color:#70542b}.letters-grid>a,.letters-grid>a:nth-child(even){background:linear-gradient(150deg,#fbf4e3,#e9dcc0);border-color:#c9b78d;box-shadow:5px 7px 0 rgba(127,101,54,.11),0 18px 35px rgba(58,55,41,.12),inset 1px 1px 0 #fffdf4,inset -1px -2px 7px rgba(92,66,31,.1)}.letters-grid>a:nth-child(2){background:linear-gradient(150deg,#f4ead3,#dfd0af)}.letters-grid>a:nth-child(3){background:linear-gradient(150deg,#f7eddb,#e7d7b9)}.letters-grid>a:nth-child(4){background:linear-gradient(150deg,#f9f1df,#e5d9be)}

.miracles{background:radial-gradient(ellipse at 54% 10%,#f6f4e9,#e2e8e3 62%,#dbe5e7);color:#26372f;border-top:8px solid #f8f3e8}.miracles .section-heading h2{color:#283a30}.miracles .section-heading>p{color:#53635a}.miracles .section-label{color:#8b7041}.miracles .urdu-sub{color:#6e542e}.miracle-grid:before{border-color:rgba(112,102,70,.4)}.miracle-grid>a{border-color:rgba(103,112,91,.3)}.miracle-grid>a>span{color:#85673b}.miracle-grid h3{color:#293a30}.miracle-grid p{color:#536158}.miracle-grid .urdu-sub{color:#6e542e}.miracle-grid>a:before{background:#c29b52;box-shadow:0 0 0 6px rgba(194,155,82,.16),0 0 18px rgba(194,155,82,.3)}

.companions{background:linear-gradient(130deg,#eee4d7,#e5ddd0 55%,#f1ebdd);color:#29372f;border-top:1px solid #fff}.companions .section-heading h2{color:#273a30}.companions .section-heading>p{color:#546258}.companions .section-label{color:#8e7040}.companions .urdu-sub{color:#6f552e}.companion-grid{border-color:rgba(116,96,61,.34)}.companion-grid>a{border-color:rgba(116,96,61,.25)}.companion-grid>a:nth-child(3n+1){background:linear-gradient(110deg,rgba(255,255,255,.45),transparent)}.companion-grid>a:nth-child(3n+2){background:linear-gradient(110deg,rgba(208,223,205,.52),transparent)}.companion-grid>a:nth-child(3n){background:linear-gradient(110deg,rgba(231,211,176,.42),transparent)}.companion-grid h3{color:#293a30}.companion-grid .urdu-sub{color:#70552d}.companion-grid p{color:#4e5e52}.companion-grid>a>b{color:#98784a}

.places{background:linear-gradient(130deg,#dbe8e1,#e7eadc);color:#26372e;border-top:8px solid #f7f1e4;border-bottom:8px solid #f7f1e4}.places .section-heading h2{color:#293b30}.places .section-heading>p{color:#53645a}.places .section-label{color:#866b3e}.places .urdu-sub{color:#6b532f}.place-card{border-radius:3px;box-shadow:0 18px 38px rgba(36,60,46,.2),inset 0 1px 0 rgba(255,255,255,.3)}.place-card:before{filter:saturate(.94) contrast(1.02)}.place-card h3{color:#fff9e9}.place-card p{color:#fffaf0}.place-card>span{color:#f2dba3}

.character{background:linear-gradient(145deg,#e1eadf,#d9e5d8 48%,#eae5d5);color:#29382f;border-top:1px solid #fff}.character .section-heading h2{color:#293a30}.character .section-heading>p{color:#55645a}.character .section-label{color:#876c3e}.character .urdu-sub{color:#6a512e}.traits-grid{border-color:rgba(79,107,83,.38)}.traits-grid>a{border-color:rgba(79,107,83,.23)}.traits-grid>a:nth-child(4n+1){background:linear-gradient(155deg,rgba(255,255,255,.54),rgba(255,255,255,.06))}.traits-grid>a:nth-child(4n+2){background:linear-gradient(155deg,rgba(193,216,192,.58),rgba(255,255,255,.02))}.traits-grid>a:nth-child(4n+3){background:linear-gradient(155deg,rgba(232,215,180,.46),rgba(255,255,255,.02))}.traits-grid>a:nth-child(4n){background:linear-gradient(155deg,rgba(204,224,218,.58),rgba(255,255,255,.02))}.traits-grid h3{color:#293b30}.traits-grid .urdu-sub{color:#70542d}.traits-grid p{color:#4b5d50}.character-hadith{background:linear-gradient(130deg,#315e49,#214b3b);border:1px solid rgba(249,238,208,.36);box-shadow:inset 1px 1px 0 rgba(255,255,255,.22),0 18px 40px rgba(36,64,45,.22)}

.resources{background:linear-gradient(135deg,#f4efe3,#ebe4d3 48%,#e7eddf);color:#29382f;border-top:8px solid #f8f4e9}.resources .section-heading h2{color:#293a30}.resources .section-heading>p{color:#526257}.resources .section-label{color:#8a7041}.resources .urdu-sub{color:#6d542e}.resource-filters a{color:#66502e;border-color:#ad9462}.resource-grid{border-color:rgba(102,91,62,.32)}.resource-grid>a{border-color:rgba(102,91,62,.24)}.resource-grid>a:nth-child(3n+1) b{color:#8b754d}.resource-grid>a:nth-child(3n+2) b{color:#66866c}.resource-grid>a:nth-child(3n) b{color:#9b7f67}.resource-grid>a>span{color:#79603a}.resource-grid h3{color:#293a30}.resource-grid .urdu-sub{color:#70552e}.resource-grid p{color:#4f5e52}.resource-grid i{color:#6d542e}

.community{background:linear-gradient(125deg,#e6e2d4,#dce7de 55%,#e9e2d2);color:#29382f;border-top:1px solid #fff}.community h2{color:#293b30}.community .section-label{color:#8b7042}.community .urdu-sub{color:#6d532d}.community-grid>div>p{color:#536258}.feedback-form{background:linear-gradient(145deg,#fbf7ed,#e8dfc9);border-top:3px solid #b39863;box-shadow:0 18px 40px rgba(44,58,44,.13),inset 1px 1px 0 #fff}.feedback-form label{color:#34443a}.feedback-form input,.feedback-form textarea{background:rgba(255,255,255,.72);border-color:#c9bea5;color:#26372e}.newsletter{background:linear-gradient(105deg,#d9e6dc,#c7dccd 48%,#e8e4d4);color:#29382f;border-top:8px solid #f8f3e7}.newsletter .section-label{color:#80653a}.newsletter h2{color:#293b30}.newsletter .urdu-sub{color:#68512e}.newsletter p{color:#4b5d50}.newsletter input{background:#faf8f0;border-color:#c7bea7}.newsletter button{background:#315a43;color:#fff8e8}.newsletter .form-note{color:#58675a}.site-footer{background:linear-gradient(100deg,#17382f,#244d3e);color:#f0ede2}.footer-nav a,.footer-bottom{color:#dbe4d7}

/* Soft CGI layering: grazing highlights, bevels, relief, light falloff, and separated planes. */
.section{isolation:isolate}.eras,.sourced,.quran,.courses,.battles,.letters,.miracles,.companions,.places,.character,.resources,.community{position:relative;isolation:isolate;overflow:hidden}
.eras .wrap,.sourced .wrap,.quran .wrap,.courses .wrap,.battles .wrap,.letters .wrap,.miracles .wrap,.companions .wrap,.places .wrap,.character .wrap,.resources .wrap,.community .wrap{position:relative;z-index:1}
.eras .era-card,.courses .course-card,.companions .companion-grid>a,.traits-grid>a,.resource-grid>a{transition:transform .25s ease,background .25s ease,box-shadow .25s ease}
.era-card.cgi-reactive:hover,.course-card.cgi-reactive:hover,.resource-grid>a.cgi-reactive:hover{box-shadow:0 20px 42px rgba(44,59,44,.18),inset 0 1px 0 rgba(255,255,255,.84)}
.course-card{border-radius:2px 20px 2px 20px;overflow:hidden}.course-card:nth-child(2){border-radius:20px 2px 20px 2px}.course-card:nth-child(3){border-radius:2px 20px 2px 20px}.course-card:nth-child(4){border-radius:20px 2px 20px 2px}
.course-card:after{background:linear-gradient(120deg,rgba(255,255,255,.35),transparent 26% 72%,rgba(151,128,74,.08));mix-blend-mode:screen}
.source-cards article:nth-child(2){border-radius:0 3px 3px 0;transform:translateX(14px)}.source-cards article:nth-child(3){border-radius:0 20px 3px 0;transform:translateX(28px)}
.verse-card:nth-child(1){transform:perspective(900px) rotateY(-3deg) translateZ(8px);border-radius:48% 48% 8px 8px/27% 27% 8px 8px}.verse-card:nth-child(1):after{inset:9px;border-radius:inherit;border:1px solid rgba(255,249,226,.24);box-shadow:inset 0 0 30px rgba(255,255,255,.1)}
.hadith-day{border-radius:3px 26px 3px 26px;transform:perspective(1100px) rotateY(1deg)}
.event-card:nth-child(3n+1){padding-left:7px}.event-card:nth-child(3n+2){transform:translateY(14px)}.event-card:nth-child(3n){padding-right:9px}
.letters-grid>a:nth-child(1){clip-path:polygon(0 0,96% 0,100% 4%,100% 100%,0 100%)}.letters-grid>a:nth-child(2){clip-path:polygon(0 0,100% 0,100% 100%,4% 100%,0 95%)}.letters-grid>a:nth-child(3){clip-path:polygon(0 0,100% 0,100% 95%,96% 100%,0 100%)}.letters-grid>a:nth-child(4){clip-path:polygon(0 0,96% 0,100% 5%,100% 100%,0 100%)}
.miracle-grid>a:nth-child(3n+1){padding-left:14px}.miracle-grid>a:nth-child(3n+2){padding-left:24px}.miracle-grid>a:nth-child(3n){padding-left:9px}.miracle-grid>a:after{content:"";display:block;position:absolute;right:4px;top:18px;width:52px;height:52px;border:1px solid rgba(171,147,94,.22);border-radius:50%;box-shadow:0 0 0 8px rgba(171,147,94,.06),inset 0 0 14px rgba(255,255,255,.23)}
.place-card{border-radius:3px 22px 3px 3px;overflow:hidden}.place-card:nth-child(2){border-radius:22px 3px 3px 3px}.place-card:nth-child(3){border-radius:3px 3px 22px 3px}.place-card:nth-child(4){border-radius:3px 22px 3px 3px}.place-card:nth-child(5){border-radius:22px 3px 3px 3px}.place-card:after{inset:10px;border:1px solid rgba(255,246,219,.35);border-radius:inherit;box-shadow:inset 0 0 35px rgba(255,241,202,.13)}
.traits-grid>a:nth-child(5n+1){border-radius:23px 2px 2px 2px}.traits-grid>a:nth-child(5n+3){border-radius:2px 2px 20px 2px}.traits-grid>a:hover{transform:translateY(-5px);box-shadow:0 14px 24px rgba(50,72,52,.13)}
.resource-grid>a:hover{background:linear-gradient(100deg,rgba(255,255,255,.78),rgba(204,220,199,.4))}
.section-heading{position:relative}
@media(max-width:760px){.urdu-sub,[lang="ur"]{font-size:19px!important;line-height:2.2!important}.section-heading .urdu-sub{font-size:20px!important}.source-cards article:nth-child(n){transform:none}.event-card:nth-child(3n+2){transform:none}.verse-card:nth-child(1){transform:none}.hadith-day{transform:none}.miracle-grid>a:nth-child(n){padding-left:12px}}
@media(prefers-reduced-motion:reduce){.era-card.cgi-reactive:hover,.course-card.cgi-reactive:hover,.resource-grid>a.cgi-reactive:hover,.traits-grid>a:hover{transform:none}}
.family-card:nth-child(1){border-radius:2px 26px 2px 2px;border-left:4px solid #d5b879}
.family-card:nth-child(2){background:linear-gradient(145deg,#f1e5cb,#d9c99f);border-color:#d7c18e;border-radius:26px 2px 26px 2px;box-shadow:0 16px 32px rgba(9,29,21,.2),inset 1px 1px 0 #fff7e5}.family-card:nth-child(2) .family-card-head,.family-card:nth-child(2) h3,.family-card:nth-child(2) h3 small{color:#283a30}.family-card:nth-child(2) p{color:#465849}.family-card:nth-child(2) .inline-ref{color:#6b512b}
.family-card:nth-child(3){background:linear-gradient(135deg,#dbe8dc,#bcd2c1);border-color:#bfd5c1;border-radius:2px 2px 26px 2px;box-shadow:0 16px 32px rgba(9,29,21,.2),inset 1px 1px 0 rgba(255,255,255,.82)}.family-card:nth-child(3) .family-card-head,.family-card:nth-child(3) h3,.family-card:nth-child(3) h3 small{color:#263b30}.family-card:nth-child(3) p{color:#405447}.family-card:nth-child(3) .family-ref{color:#674f29}

/* ===== section-cgi.css ===== */
/* Subject-specific CGI staging for sections that previously read as generic lists. */

/* MIRACLES — a cinematic moonlit stage, then a source-indexed constellation. */
.miracles{background:linear-gradient(145deg,#e9edf0,#e5e9e4 50%,#f0e9d9);color:#26362f;padding-top:130px;padding-bottom:132px}
.miracles .section-heading h2{color:#263b35}.miracles .section-heading>p{color:#52635b}.miracles .section-label{color:#8a7044}.miracles .urdu-sub{color:#705831}
.miracles-visual{position:relative;margin:0 0 46px;height:clamp(220px,30vw,390px);overflow:hidden;border-radius:240px 240px 5px 5px;border:1px solid rgba(221,211,185,.85);box-shadow:0 28px 60px rgba(39,52,58,.2),inset 0 1px 0 rgba(255,255,255,.7);isolation:isolate}
.miracles-visual:before{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(0deg,rgba(12,28,38,.66),transparent 48%),radial-gradient(ellipse at 50% 15%,rgba(255,239,197,.23),transparent 33%);pointer-events:none}
.miracles-visual:after{content:"";position:absolute;z-index:1;left:50%;top:50%;width:min(38vw,420px);height:min(38vw,420px);transform:translate(-50%,-50%);border:1px solid rgba(244,224,173,.25);border-radius:50%;box-shadow:0 0 0 20px rgba(244,224,173,.04),0 0 0 52px rgba(244,224,173,.025),inset 0 0 35px rgba(244,224,173,.14);pointer-events:none}
.miracles-visual img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 44%;filter:saturate(.84) contrast(1.04)}
.miracles-visual figcaption,.companions-visual figcaption,.character-visual figcaption,.resources-visual figcaption{position:absolute;z-index:2;bottom:17px;left:22px;color:#fff6df;font-size:11px;letter-spacing:.12em;text-shadow:0 2px 9px rgba(0,0,0,.62)}
.miracle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0 34px;border-top:1px solid rgba(109,120,109,.32)}
.miracle-grid:before{display:none}.miracle-grid>a,.miracle-grid>a:nth-child(n){padding:22px 6px 24px;min-height:0;border-bottom:1px solid rgba(109,120,109,.3);background:transparent}
.miracle-grid>a:before{content:"";position:absolute;left:6px;top:23px;width:10px;height:10px;border:1px solid #a38a59;border-radius:50%;background:#e9edf0;box-shadow:0 0 0 6px rgba(163,138,89,.12),0 0 16px rgba(180,153,95,.32)}
.miracle-grid>a>span{display:block;text-align:right;color:#81683f;font-size:10px}.miracle-grid h3{font-size:25px;color:#293a32;margin:26px 0 0}.miracle-grid .urdu-sub{font-size:20px!important;color:#705831}.miracle-grid p{font-size:15px;line-height:1.75;color:#506056}.miracle-grid>a:after{content:"";position:absolute;right:11px;top:51px;width:54px;height:54px;border:1px solid rgba(162,137,83,.23);border-radius:50%;box-shadow:0 0 0 8px rgba(162,137,83,.05),inset 0 0 18px rgba(255,255,255,.5)}

/* COMPANIONS — connected lights above the roster, with an indexed text roll. */
.companions{background:linear-gradient(130deg,#edf0e9,#e2e7df 55%,#eee4d7);color:#29382f;padding-top:126px;padding-bottom:130px}
.companions-visual{position:relative;height:clamp(205px,25vw,315px);margin:0 0 36px;overflow:hidden;border-radius:3px 110px 3px 3px;box-shadow:0 22px 48px rgba(44,62,51,.17),inset 0 1px 0 rgba(255,255,255,.55)}
.companions-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(12,31,27,.66),transparent 58%),linear-gradient(90deg,rgba(12,31,27,.2),transparent 65%);pointer-events:none}
.companions-visual img{width:100%;height:100%;object-fit:cover;object-position:center 43%;display:block;filter:saturate(.83) contrast(1.03)}
.companions-visual figcaption{left:auto;right:24px;bottom:20px;max-width:390px;text-align:right;font-size:12px;letter-spacing:.04em}
.companion-grid{counter-reset:companions;grid-template-columns:repeat(3,1fr);gap:0 28px;border-top:1px solid rgba(112,100,72,.38);border-bottom:1px solid rgba(112,100,72,.38)}
.companion-grid>a,.companion-grid>a:nth-child(n){counter-increment:companions;position:relative;min-height:116px;padding:20px 10px 18px 54px;background:transparent;border:0;border-bottom:1px solid rgba(112,100,72,.25);transition:transform .2s,color .2s}
.companion-grid>a:before{content:"0" counter(companions);position:absolute;top:21px;left:5px;color:#977c4a;font:17px var(--serif);letter-spacing:.06em}
.companion-grid>a>b{left:30px;top:23px;width:10px;height:10px;border:1px solid #b3975b;border-radius:50%;font-size:0;background:radial-gradient(circle at 35% 30%,#fff5d5,#c29d5d 45%,#778a6b 85%);box-shadow:0 0 0 4px rgba(177,149,91,.12),0 0 12px rgba(177,149,91,.35)}
.companion-grid>a:hover{transform:translateX(5px);background:linear-gradient(90deg,rgba(255,255,255,.38),transparent)}
.companion-grid h3{font-size:21px;color:#293a31}.companion-grid .urdu-sub{font-size:18px!important;color:#735a32}.companion-grid p{font-size:14px;line-height:1.65;color:#526055;margin-top:5px}

/* WHO HE WAS — a sculptural light study beside a two-column character index. */
.character{background:linear-gradient(125deg,#e2eae0,#d8e4d8 52%,#ebe4d5);padding-top:130px;padding-bottom:130px;color:#29372f}
.character .section-heading h2{color:#283b31}.character .section-heading>p{color:#526259}.character .section-label{color:#8b7042}.character .urdu-sub{color:#70552e}
.character-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:46px;align-items:stretch;margin-top:15px}
.character-visual{position:relative;min-height:540px;margin:0;overflow:hidden;border-radius:180px 4px 4px 4px;box-shadow:0 24px 55px rgba(54,73,53,.2),inset 0 0 0 1px rgba(255,255,255,.45);isolation:isolate}
.character-visual:after{content:"";position:absolute;inset:12px;border:1px solid rgba(255,248,221,.65);box-shadow:inset 0 0 40px rgba(255,255,255,.2);pointer-events:none}
.character-visual img{display:block;width:100%;height:100%;min-height:540px;object-fit:cover;object-position:38% center;filter:saturate(.86) contrast(1.02)}
.character-visual figcaption{left:22px;right:22px;bottom:24px;font-size:10px;letter-spacing:.13em}
.traits-grid{grid-template-columns:1fr 1fr;gap:0 24px;align-content:start;border:0;border-top:1px solid rgba(88,108,82,.4);border-bottom:1px solid rgba(88,108,82,.4)}
.traits-grid>a,.traits-grid>a:nth-child(n){position:relative;min-height:0;padding:16px 7px 16px 40px;background:transparent;border:0;border-bottom:1px solid rgba(88,108,82,.28);border-radius:0;transition:padding .2s,background .2s}
.traits-grid>a:before{content:"";position:absolute;left:8px;top:24px;width:15px;height:15px;border:1px solid #a78d58;transform:rotate(45deg);background:linear-gradient(135deg,#fff8e1,#bed2bf);box-shadow:2px 3px 6px rgba(61,85,60,.14)}
.traits-grid>a:hover{transform:translateX(4px);background:linear-gradient(90deg,rgba(255,255,255,.55),transparent);box-shadow:none}
.traits-grid b{display:none}.traits-grid h3{font-size:21px;color:#293a31;margin:0}.traits-grid .urdu-sub{font-size:17px!important;color:#735a32}.traits-grid p{font-size:13px;line-height:1.6;color:#526056;margin:5px 0 0}
.character-hadith{margin-top:38px;background:linear-gradient(125deg,#315c46,#234b3b);border-radius:3px 42px 3px 3px;box-shadow:0 20px 46px rgba(39,64,43,.22),inset 1px 1px 0 rgba(255,255,255,.24)}

/* FREE RESOURCES — a CGI still-life above a clean library catalogue. */
.resources{background:linear-gradient(135deg,#f2ede1,#e5e6d7 52%,#ede3d3);padding-top:128px;padding-bottom:132px;color:#28372f}
.resources .section-heading h2{color:#293a31}.resources .section-heading>p{color:#536157}.resources .section-label{color:#8d7243}.resources .urdu-sub{color:#6f552f}
.resources-visual{position:relative;margin:0 0 29px;height:clamp(200px,25vw,310px);overflow:hidden;border-radius:4px 4px 110px 4px;box-shadow:0 20px 48px rgba(69,64,44,.15),inset 0 1px 0 #fff}
.resources-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(36,47,39,.53),transparent 55%),linear-gradient(110deg,rgba(255,252,241,.12),transparent 35%);pointer-events:none}
.resources-visual img{width:100%;height:100%;object-fit:cover;object-position:center 55%;display:block;filter:saturate(.9) contrast(1.02)}
.resources-visual figcaption{font-size:11px;letter-spacing:.1em}
.resource-filters{display:flex;gap:20px;border-bottom:1px solid rgba(105,93,62,.28);padding:0 0 13px;margin:0 0 8px}
.resource-filters a{font-size:13px;color:#5f502f;border-bottom:0;padding:4px 0;position:relative}
.resource-filters a:first-child:after{content:"";position:absolute;left:0;right:0;bottom:-14px;height:2px;background:#9d814a}
.resource-grid{grid-template-columns:1fr 1fr;gap:0 40px;border-top:0;border-bottom:1px solid rgba(105,93,62,.3)}
.resource-grid>a,.resource-grid>a:nth-child(n){min-height:0;grid-template-columns:58px 1fr;column-gap:15px;padding:20px 10px 20px 0;background:transparent;border:0;border-bottom:1px solid rgba(105,93,62,.28);transition:padding .2s,background .2s}
.resource-grid>a:hover{padding-left:9px;background:linear-gradient(90deg,rgba(255,255,255,.7),rgba(255,255,255,.02));box-shadow:none}
.resource-grid>a>b{grid-row:1/5;font:38px var(--serif);color:#967849;align-self:start;padding-top:5px}
.resource-grid>a>span{font-size:10px;letter-spacing:.1em;color:#76613d}.resource-grid h3{font-size:23px;color:#293a31;margin:4px 0}.resource-grid .urdu-sub{font-size:18px!important;color:#71572f}.resource-grid p{font-size:14px;line-height:1.65;color:#516055;min-height:0;margin:6px 0}.resource-grid i{font-size:11px;color:#735b33}

/* Other repeated grids become a 3D hadith book shelf and a numbered course route. */
.books-grid{perspective:1200px;align-items:end;gap:13px;border:0;padding:12px 3px 15px}
.books-grid article,.books-grid article:nth-child(n){position:relative;display:flex;flex-direction:column;justify-content:flex-start;min-height:325px;padding:18px 15px 18px 19px;border:0;border-radius:2px 8px 5px 2px;background:linear-gradient(105deg,rgba(30,45,35,.24) 0 5px,transparent 5px),linear-gradient(135deg,#efe2bd,#c9b382);box-shadow:5px 9px 0 #9c8355,8px 16px 25px rgba(5,22,16,.28),inset 1px 1px 0 #fff9e7,inset -5px 0 9px rgba(69,50,25,.13);transform:rotateY(-7deg);transform-origin:left center;transition:transform .25s,box-shadow .25s}
.books-grid article:nth-child(2){background:linear-gradient(105deg,rgba(29,47,37,.22) 0 5px,transparent 5px),linear-gradient(135deg,#d8e2c9,#9db294);box-shadow:5px 9px 0 #657e69,8px 16px 25px rgba(5,22,16,.24),inset 1px 1px 0 #f2f5e8}
.books-grid article:nth-child(3){background:linear-gradient(105deg,rgba(30,45,35,.2) 0 5px,transparent 5px),linear-gradient(135deg,#ecd6b5,#c39d78);box-shadow:5px 9px 0 #947154,8px 16px 25px rgba(5,22,16,.24),inset 1px 1px 0 #fff0d8}
.books-grid article:nth-child(4){background:linear-gradient(105deg,rgba(30,45,35,.2) 0 5px,transparent 5px),linear-gradient(135deg,#dce4dc,#9cb9b1);box-shadow:5px 9px 0 #66857c,8px 16px 25px rgba(5,22,16,.24),inset 1px 1px 0 #f5fff7}
.books-grid article:nth-child(5){background:linear-gradient(105deg,rgba(30,45,35,.2) 0 5px,transparent 5px),linear-gradient(135deg,#eee1c5,#d5bb84);box-shadow:5px 9px 0 #a58c59,8px 16px 25px rgba(5,22,16,.24),inset 1px 1px 0 #fff9e7}
.books-grid article:nth-child(6){background:linear-gradient(105deg,rgba(30,45,35,.2) 0 5px,transparent 5px),linear-gradient(135deg,#d9d9c9,#a9ad87);box-shadow:5px 9px 0 #777b58,8px 16px 25px rgba(5,22,16,.24),inset 1px 1px 0 #f6f7e7}
.books-grid article:hover{transform:rotateY(0) translateY(-8px);box-shadow:3px 12px 0 #9c8355,8px 22px 30px rgba(5,22,16,.3),inset 1px 1px 0 #fff9e7}
.books-grid article>b{font-size:21px;color:#634e2a}.books-grid h4{font-size:18px;color:#27372f;min-height:53px}.books-grid article>span{font-size:13px;color:#51482f}.books-grid p{color:#3f4b40;font-size:12px;line-height:1.55;min-height:0;margin:10px 0}.books-grid small{color:#68532e;font-size:9px;margin-top:auto}
.courses-grid{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:0;padding-top:22px}
.courses-grid:before{content:"";position:absolute;left:6%;right:6%;top:6px;height:2px;background:linear-gradient(90deg,#a99060,#d5c69e,#8ea693,#b69c6d);box-shadow:0 2px 8px rgba(97,115,86,.18)}
.course-card,.course-card:nth-child(n){position:relative;min-height:0;margin:0;padding:27px 20px 25px;background:transparent;border:0;border-right:1px solid rgba(115,101,68,.2);border-radius:0;box-shadow:none}
.course-card:nth-child(even){transform:translateY(28px)}.course-card:last-child{border:0}.course-card:before{content:"";position:absolute;top:-22px;left:20px;width:12px;height:12px;border:2px solid #f1eadb;border-radius:50%;background:#a78c56;box-shadow:0 0 0 5px rgba(167,140,86,.16),0 0 14px rgba(167,140,86,.38)}
.course-card>b{display:inline-block;position:static;font:54px/.95 var(--serif);color:#9b8050}.course-card>span{display:block;margin:15px 0;font-size:9px;color:#81673d}.course-card h3{font-size:22px;color:#2c3c31}.course-card .urdu-sub{color:#71572f}.course-card p{font-size:14px;line-height:1.65;color:#536056;min-height:0}.course-card i{font-size:11px;color:#71572f}

@media(max-width:900px){.character-layout{grid-template-columns:1fr;gap:24px}.character-visual{min-height:300px;height:340px;border-radius:130px 4px 4px}.character-visual img{min-height:300px}.traits-grid{grid-template-columns:1fr 1fr}.books-grid{grid-template-columns:repeat(3,1fr)}.books-grid article{min-height:300px}.courses-grid{grid-template-columns:repeat(2,1fr);row-gap:30px}.courses-grid:before{display:none}.course-card:nth-child(even){transform:none}.course-card:before{top:8px}.course-card{padding-top:37px}}
@media(max-width:650px){.miracles-visual{height:250px;border-radius:120px 120px 4px 4px;margin-bottom:30px}.miracles-visual:after{width:190px;height:190px}.miracle-grid{grid-template-columns:1fr 1fr;gap:0 15px}.miracle-grid h3{font-size:20px}.miracle-grid p{font-size:13px}.companions-visual{height:220px;border-radius:3px 70px 3px 3px}.companion-grid{grid-template-columns:1fr 1fr;gap:0 12px}.companion-grid>a{padding-left:49px;min-height:120px}.companion-grid h3{font-size:17px}.companion-grid p{font-size:12px}.character-visual{height:280px;min-height:280px}.character-visual img{min-height:280px}.traits-grid{grid-template-columns:1fr 1fr;gap:0 12px}.traits-grid h3{font-size:18px}.traits-grid p{font-size:12px}.resources-visual{height:210px;border-radius:3px 3px 75px 3px}.resource-grid{grid-template-columns:1fr;gap:0}.resource-filters{gap:13px;overflow-x:auto;white-space:nowrap}.resource-filters a{font-size:12px}.books-grid{grid-template-columns:repeat(2,1fr);gap:10px}.books-grid article{min-height:285px;padding-left:15px}.courses-grid{grid-template-columns:1fr 1fr;gap:0}.course-card,.course-card:nth-child(n){padding:35px 14px 18px}.course-card:nth-child(even){transform:translateY(15px)}.course-card:before{left:14px}.course-card h3{font-size:19px}}
@media(max-width:420px){.miracle-grid,.companion-grid,.traits-grid{grid-template-columns:1fr}.miracles-visual{height:205px}.miracle-grid h3{font-size:21px}.companion-grid>a{min-height:0}.traits-grid>a{padding-top:14px;padding-bottom:14px}.resources-visual{height:185px}.books-grid{grid-template-columns:1fr 1fr}.books-grid article{min-height:300px}.courses-grid{grid-template-columns:1fr}.course-card:nth-child(even){transform:none}}
@media(prefers-reduced-motion:reduce){.books-grid article,.course-card,.companion-grid>a,.traits-grid>a{transition:none!important}.books-grid article:hover{transform:none}}

/* ===== site-extra: additions for the live site ===== */
.hero-image{background-image:url("../img/madinah-hero.87171c61d5a4.webp")}
.nav-search{font-size:20px;line-height:1;color:#f2dfaf}
.site-messages{position:sticky;top:0;z-index:20}.site-messages .msg{margin:0;padding:12px 20px;text-align:center;background:#315a43;color:#fff8e8;font-size:14px}.site-messages .msg.error{background:#8a3b2c}
.place-card[style*="--place-img"]:before{background:linear-gradient(0deg,rgba(7,20,16,.94),rgba(9,25,19,.05) 72%),var(--place-img) center/cover}
.reader-quote{margin:20px 0;padding:0 0 0 18px;border-left:2px solid #b39863}.reader-quote p{font:italic 18px/1.6 var(--serif);color:#34443a;margin:0 0 6px}.reader-quote cite{font-size:12px;color:#6d532d;font-style:normal}
.feedback-form button:disabled,.newsletter button:disabled{opacity:.6;cursor:wait}

/* Inner page header and body */
.page-head{background:radial-gradient(ellipse at 82% 12%,rgba(112,153,119,.24),transparent 29%),linear-gradient(145deg,#23473a,#16352d 65%,#1d4135);color:#fff9eb;padding:70px 0 58px;border-bottom:8px solid #e7eadf}
.page-head .section-label{color:#e2ca91}.page-head h1{font:500 clamp(38px,5vw,62px)/1.1 var(--serif);letter-spacing:-.03em;margin:16px 0 4px;max-width:900px;color:#fff9eb}
.page-head .urdu-sub{color:#efdaa5}.page-head p{max-width:640px;color:#e0e8d9;font-size:16px;line-height:1.8;margin:14px 0 0}
.crumbs{font-size:12px;color:#cfdccd;margin-bottom:22px}.crumbs a{color:#f0d99d}.crumbs span{margin:0 6px;opacity:.6}
.list-section{background:linear-gradient(135deg,#f4efe3,#ebe4d3 48%,#e7eddf);color:#29382f;padding:70px 0 100px}
.list-filters{margin:0 0 26px}.list-filters a.is-active{color:#293a30;font-weight:700}.list-filters a.is-active:after,.list-filters a:first-child:after{display:none}.list-filters a.is-active{border-bottom:2px solid #9d814a}
.index-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0 34px;border-top:1px solid rgba(116,96,61,.34)}
.index-card{display:flex;flex-direction:column;padding:24px 6px 26px;border-bottom:1px solid rgba(116,96,61,.25);transition:background .2s,padding .2s}
.index-card:hover{background:linear-gradient(110deg,rgba(255,255,255,.55),transparent);padding-left:12px}
.index-meta{font-size:10px;letter-spacing:.13em;color:#85673b;text-transform:uppercase}
.index-card h2{font:500 24px/1.25 var(--serif);color:#293a30;margin:12px 0 0}.index-card .urdu-sub{color:#70552e;font-size:18px!important}
.index-card p{font-size:14px;line-height:1.7;color:#4e5e52;margin:8px 0 14px}.index-more{margin-top:auto;font-size:11px;color:#6d542e}
.empty{color:#55645a;font-size:15px}
.article-section{background:#f8f5ed;color:#27352e;padding:64px 0 90px}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:56px;align-items:start}
.narrow{max-width:820px}
.article-body{font-size:18px;line-height:1.9;color:#2f3e35}.article-body p{margin:0 0 1.1em}.article-body h2{font:500 30px var(--serif);color:#26382f;margin:36px 0 14px}.article-body h3{font:500 23px var(--serif);margin:28px 0 10px}
.article-body blockquote{margin:22px 0;padding:6px 0 6px 20px;border-left:3px solid #b39863;color:#3c4d42;font-style:italic}
.article-body[dir="rtl"],[dir="rtl"] .article-body{font-family:"Noto Nastaliq Urdu",serif;font-size:20px;line-height:2.3}
.article-meta{font-size:12px;letter-spacing:.12em;color:#80663a;text-transform:uppercase;margin:0 0 18px}
.article-image{width:100%;border-radius:3px 22px 3px 3px;margin:0 0 24px;box-shadow:0 18px 38px rgba(36,60,46,.18)}
.pending-text{color:#6b7a70;font-style:italic;border-left:2px solid #c4a665;padding-left:14px}
.article-aside{display:grid;gap:16px;position:sticky;top:20px}
.aside-box{background:linear-gradient(145deg,#fbf7ed,#ece4cf);border-top:3px solid #b39863;padding:20px 22px;box-shadow:0 12px 30px rgba(44,58,44,.08)}
.aside-box h3{font:500 21px var(--serif);margin:0 0 10px;color:#293a30}
.review-box strong{display:block;font:500 19px var(--serif);margin-top:6px}.review-box small{display:block;color:#5d6c62;font-size:12px;margin-top:3px}
.review-ok{color:#2f6b47;font-size:12px;letter-spacing:.08em;font-weight:700}.review-pending{color:#8a6c38;font-size:12px;letter-spacing:.06em;font-weight:600}
.ref-list{margin:0;padding-left:18px;font-size:14px;line-height:1.6}.ref-list li{margin-bottom:10px}.ref-list a{color:#5c4626;border-bottom:1px solid #c8b17f}.ref-list small{display:block;color:#66756b;font-size:12px}
.ref-list.big{font-size:17px}
.related-list{padding-left:22px}.related-list a{color:#5c4626;border-bottom:1px solid #c8b17f}.related-list details summary{cursor:pointer;font-weight:600}
.prev-next{display:flex;justify-content:space-between;gap:20px;margin-top:56px;padding-top:24px;border-top:1px solid #d6ccb4}
.prev-next a{max-width:45%;font:500 19px var(--serif);color:#293a30}.prev-next a small{display:block;font:11px var(--sans);letter-spacing:.1em;color:#85673b;margin-bottom:4px}.prev-next .next{text-align:right}
.arabic-block{font:30px/2.1 "Amiri","Traditional Arabic",serif;color:#2e5640;text-align:right;margin:0 0 20px}
.translation{font:19px/1.75 var(--serif);color:#2f3e35}.translation[lang="ur"]{font-family:"Noto Nastaliq Urdu",serif;font-size:21px;line-height:2.3}
.topic-tags{display:flex;gap:8px;flex-wrap:wrap}.topic-tags a{font-size:12px;padding:6px 10px;border:1px solid #c8b17f;color:#5c4626}
.hadith-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:40px;align-items:start}
.filter-panel{display:grid;gap:14px;background:linear-gradient(145deg,#fbf7ed,#e8dfc9);border-top:3px solid #b39863;padding:22px;position:sticky;top:20px}
.filter-panel label{display:grid;gap:6px;font-size:12px;color:#34443a;letter-spacing:.04em}
.filter-panel input,.filter-panel select,.site-search input{width:100%;border:1px solid #c9bea5;background:#fffdf8;padding:10px;font:14px var(--sans);color:#26372e}
.filter-panel .button{justify-content:center;border:0;cursor:pointer}.filter-panel a{font-size:12px;color:#6d542e;text-align:center}
.hadith-row{display:block;padding:20px 4px 22px;border-bottom:1px solid rgba(116,96,61,.25)}.hadith-row:hover{background:linear-gradient(110deg,rgba(255,255,255,.55),transparent)}
.hadith-row b{display:block;text-align:right;font:22px/2 "Amiri",serif;color:#345542;margin:8px 0 4px;font-weight:400}.hadith-row p{font-size:15px;line-height:1.75;color:#3f4e44;margin:0}
.pager{display:flex;gap:18px;align-items:center;justify-content:center;margin-top:30px;font-size:14px}.pager a{color:#5c4626;border-bottom:1px solid #c8b17f}
.site-search{display:flex;gap:10px;margin-bottom:26px}.site-search .button{border:0;cursor:pointer;white-space:nowrap}
.search-group{font:500 24px var(--serif);margin:30px 0 8px}.search-hits{padding-left:20px;line-height:1.9}.search-hits a{color:#5c4626;border-bottom:1px solid #c8b17f}

/* Urdu (right-to-left) */
[dir="rtl"] body,[dir="rtl"]{font-family:var(--sans)}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3,[dir="rtl"] h4,[dir="rtl"] .hero-copy,[dir="rtl"] p,[dir="rtl"] .site-nav>a,[dir="rtl"] .button,[dir="rtl"] .text-link,[dir="rtl"] .card-link,[dir="rtl"] label,[dir="rtl"] .node-name,[dir="rtl"] .node-note,[dir="rtl"] small,[dir="rtl"] i,[dir="rtl"] .era-links,[dir="rtl"] .hero-trust span{font-family:"Noto Nastaliq Urdu",serif;letter-spacing:0;font-style:normal}
[dir="rtl"] h1{line-height:1.6;font-size:clamp(44px,5.4vw,74px)}[dir="rtl"] .section-heading h2,[dir="rtl"] .sourced h2,[dir="rtl"] .community h2{line-height:1.7;font-size:clamp(34px,4vw,52px)}
[dir="rtl"] h3,[dir="rtl"] h4{line-height:1.8}[dir="rtl"] p{line-height:2.1}
[dir="rtl"] .urdu-sub[lang="en"]{font-family:var(--serif)!important;font-size:16px!important;line-height:1.5!important;font-style:italic;font-weight:400;direction:ltr;text-align:right}
[dir="rtl"] [lang="ar"]{text-align:right}
[dir="rtl"] .hero-shade{background:linear-gradient(270deg,rgba(12,39,31,.78),rgba(12,39,31,.47) 40%,rgba(12,39,31,.06) 80%),linear-gradient(0deg,rgba(12,24,19,.26),transparent 37%)}
[dir="rtl"] .hero-location{right:auto;left:max(32px,calc((100vw - 1320px)/2))}
[dir="rtl"] .nav-cta span,[dir="rtl"] .button span,[dir="rtl"] .text-link span{display:inline-block;transform:scaleX(-1)}
[dir="rtl"] .lineage-list:before{left:auto;right:47px}[dir="rtl"] .lineage-node:before{left:auto;right:39px}[dir="rtl"] .node-name{padding-left:0;padding-right:27px}[dir="rtl"] .node-name:before{left:auto;right:0}[dir="rtl"] .node-note{text-align:left}
[dir="rtl"] .era-card{padding-right:0;padding-left:18px;border-right:0;border-left:1px solid rgba(96,114,86,.21)}[dir="rtl"] .era-card:last-child{border-left:0}[dir="rtl"] .era-card:after{left:auto;right:0}
[dir="rtl"] .source-check{border-left:0;border-right:2px solid #c4a665;padding-left:0;padding-right:15px}
[dir="rtl"] .companion-grid>a,[dir="rtl"] .companion-grid>a:nth-child(n){padding:20px 54px 18px 10px}[dir="rtl"] .companion-grid>a:before{left:auto;right:5px}[dir="rtl"] .companion-grid>a>b{left:auto;right:30px}
[dir="rtl"] .traits-grid>a,[dir="rtl"] .traits-grid>a:nth-child(n){padding:16px 40px 16px 7px}[dir="rtl"] .traits-grid>a:before{left:auto;right:8px}
[dir="rtl"] .miracle-grid>a:before{left:auto;right:6px}[dir="rtl"] .miracle-grid>a>span{text-align:left}[dir="rtl"] .miracle-grid>a:after{right:auto;left:11px}
[dir="rtl"] .letters-grid>a>b{right:auto;left:20px}
[dir="rtl"] .course-card:before{left:auto;right:20px}[dir="rtl"] .course-card{border-right:0;border-left:1px solid rgba(115,101,68,.2)}
[dir="rtl"] .resource-grid>a,[dir="rtl"] .resource-grid>a:nth-child(n){padding:20px 0 20px 10px}
[dir="rtl"] .reader-quote{padding:0 18px 0 0;border-left:0;border-right:2px solid #b39863}
[dir="rtl"] .pending-text{border-left:0;border-right:2px solid #c4a665;padding:0 14px 0 0}
[dir="rtl"] .ref-list,[dir="rtl"] .related-list,[dir="rtl"] .search-hits{padding-left:0;padding-right:20px}
[dir="rtl"] .index-card:hover{padding-left:6px;padding-right:12px;background:linear-gradient(250deg,rgba(255,255,255,.55),transparent)}
[dir="rtl"] .prev-next .next{text-align:left}
[dir="rtl"] .feedback-form input,[dir="rtl"] .feedback-form textarea,[dir="rtl"] .newsletter input{font-family:"Noto Nastaliq Urdu",var(--sans)}

@media(max-width:900px){.index-grid{grid-template-columns:1fr 1fr}.article-layout,.hadith-layout{grid-template-columns:1fr;gap:30px}.article-aside,.filter-panel{position:static}}
@media(max-width:560px){.index-grid{grid-template-columns:1fr}.page-head{padding:48px 0 40px}.article-body{font-size:17px}}
[dir="rtl"] .era-date,[dir="rtl"] .event-card>span,[dir="rtl"] .index-meta,[dir="rtl"] .article-meta,[dir="rtl"] .verse-card small,[dir="rtl"] .books-grid small,[dir="rtl"] .hero-location{direction:ltr;unicode-bidi:isolate;text-align:right}
[dir="rtl"] .event-card>span,[dir="rtl"] .index-meta{display:block}
[dir="rtl"] .hero-location{text-align:left}
@media(max-width:760px){.hero-location{display:none}}

/* Holy places gallery with full pictures (27 Nov 2026) */
.places-grid.photo-gallery{grid-template-columns:repeat(4,1fr);grid-template-rows:none;gap:18px}
.places-grid.photo-gallery .place-photo{grid-row:auto;min-height:0;padding:0;display:flex;flex-direction:column;background:linear-gradient(160deg,#fffaf0,#efe6d2);border:1px solid rgba(176,148,92,.35);border-radius:4px 18px 4px 4px;box-shadow:0 16px 34px rgba(36,60,46,.16);overflow:hidden}
.places-grid.photo-gallery .place-photo:nth-child(-n+2){grid-column:span 2}
.places-grid.photo-gallery .place-photo:before,.places-grid.photo-gallery .place-photo:after{content:none;display:none}
.place-photo figure{margin:0;aspect-ratio:16/9;overflow:hidden;background:#1a2f27}
.place-photo figure img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.place-photo:hover figure img{transform:scale(1.04)}
.place-photo .place-text{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
.places .place-photo .place-text>span{font-size:9px;letter-spacing:.14em;color:#80663a;text-shadow:none}
.places .place-photo h3,.places .place-photo:first-child h3{font:500 22px/1.25 var(--serif);color:#26392f;margin:8px 0 0;text-shadow:none}
.places .place-photo:nth-child(-n+2) h3{font-size:27px}
.places .place-photo .urdu-sub{color:#6b532f;font-size:18px!important}
.places .place-photo p{font-size:13px;line-height:1.65;color:#4c5d51;margin:6px 0 0;text-shadow:none}
.index-card.has-image .index-image{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:3px 14px 3px 3px;margin-bottom:14px;box-shadow:0 10px 22px rgba(36,60,46,.14)}
@media(max-width:1000px){.places-grid.photo-gallery{grid-template-columns:repeat(2,1fr)}.places-grid.photo-gallery .place-photo:nth-child(-n+2){grid-column:span 2}}
@media(max-width:560px){.places-grid.photo-gallery{grid-template-columns:1fr}.places-grid.photo-gallery .place-photo:nth-child(-n+2){grid-column:auto}}
