
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap');
:root{--navy:#102b46;--ink:#152c45;--gold:#bd8a2c;--cream:#f7f1e5;--paper:#fffdf8;--muted:#6e6a61;--line:#e7ddcc}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;background:var(--cream);color:var(--ink);font-family:"Noto Kufi Arabic",Arial,sans-serif;line-height:1.9}
a{color:inherit;text-decoration:none}.container{width:min(1180px,92%);margin:auto}
header{height:76px;background:rgba(255,253,248,.96);border-bottom:1px solid #ddd4c4;position:sticky;top:0;z-index:20;backdrop-filter:blur(10px)}
.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:25px}
.logo{font-family:Amiri,serif;font-size:30px;font-weight:700;white-space:nowrap}.logo small{display:block;font-family:"Noto Kufi Arabic";font-size:10px;letter-spacing:2px;text-align:center;margin-top:-9px}
nav{display:flex;gap:30px;align-items:center;font-size:14px}nav a{padding:22px 0;position:relative}nav a:hover,nav a.active{color:var(--gold)}nav a.active:after{content:"";position:absolute;bottom:11px;right:0;left:0;height:2px;background:var(--gold)}
.search{background:#eee9df;border:0;border-radius:25px;padding:11px 16px;width:205px;font-family:inherit;outline:none}
.hero{min-height:390px;position:relative;overflow:hidden;background:var(--navy);color:#fff;isolation:isolate}
.hero:before{content:"";position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,rgba(16,43,70,.08) 0%,rgba(16,43,70,.10) 30%,rgba(16,43,70,.86) 62%,rgba(16,43,70,.98) 100%)}

.hero .container{min-height:390px;display:flex;align-items:center;justify-content:flex-end}.hero-copy{width:58%;padding:35px 20px 35px 0;text-align:right}

.kicker{color:#e5bd68;font-size:18px}.hero h1{font-family:Amiri,serif;font-size:54px;line-height:1.2;margin:8px 0 0}.hero h2{font-size:21px;font-weight:500;margin:8px 0 18px;color:#e9c06a}.hero p{font-size:16px;line-height:2;max-width:590px}.btn{display:inline-block;background:var(--gold);color:#fff;padding:10px 30px;border-radius:6px;margin-top:14px;box-shadow:0 4px 10px rgba(0,0,0,.12)}.btn:hover{filter:brightness(1.07)}
.section{padding:55px 0}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.section-title{display:flex;align-items:center;gap:24px;font-family:Amiri,serif;font-size:34px}.section-title:before,.section-title:after{content:"";height:2px;width:55px;background:var(--gold)}.view-all{color:var(--gold);font-size:14px}
.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.cat{min-height:116px;border-radius:7px;overflow:hidden;position:relative;background:var(--navy);color:#fff;padding:23px 24px;display:flex;flex-direction:column;justify-content:flex-end;isolation:isolate}.cat:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,18,31,.18),rgba(4,18,31,.9));z-index:-1}.cat h3,.cat p,.cat .arrow{position:relative;z-index:1}.cat:nth-child(1){background:linear-gradient(135deg,#173a58,#102b46)}.cat:nth-child(2){background:linear-gradient(135deg,#234967,#102b46)}.cat:nth-child(3){background:linear-gradient(135deg,#36556b,#102b46)}.cat:nth-child(4){background:linear-gradient(135deg,#4b3829,#1f2e3c)}.cat:nth-child(5){background:linear-gradient(135deg,#274c54,#102b46)}.cat:nth-child(6){background:linear-gradient(135deg,#315c63,#102b46)}.cat:nth-child(7){background:linear-gradient(135deg,#4c5d48,#263746)}.cat:nth-child(8){background:linear-gradient(135deg,#5b4736,#253746)}.cat:nth-child(9){background:linear-gradient(135deg,#263d50,#102b46)}.cat h3{font-family:Amiri,serif;font-size:25px;margin:0}.cat-count{position:absolute;top:10px;right:12px;font-family:"Noto Kufi Arabic",sans-serif;font-size:10px;line-height:1.5;color:rgba(255,255,255,.78);font-weight:400;z-index:2}.cat p{font-size:12px;margin:2px 0 0;line-height:1.7;color:#eee}.arrow{position:absolute;bottom:13px;left:18px;color:#e8bd69}
.posts{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.post-card{background:var(--paper);border:1px solid #eee4d4;border-radius:7px;overflow:hidden;box-shadow:0 2px 8px rgba(80,60,30,.04)}.post-card img{width:100%;height:145px;object-fit:cover}.post-body{padding:15px 16px}.post-body h3{font-family:Amiri,serif;font-size:21px;margin:0 0 5px}.post-body p{font-family:Amiri,serif;font-size:16px;line-height:1.8;margin:0 0 12px;color:#4c4a45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;min-height:7.2em}.meta{font-size:11px;color:#8b8478;display:flex;gap:8px;justify-content:flex-start}.meta b{color:var(--gold)}
.books{display:grid;grid-template-columns:1fr 1fr;gap:22px}.book{background:var(--paper);border-radius:8px;padding:25px;display:grid;grid-template-columns:150px 1fr;gap:24px;align-items:center;border:1px solid #eee4d4}.book img{width:150px;max-height:225px;object-fit:cover;box-shadow:0 8px 18px rgba(0,0,0,.14)}.book h3{font-family:Amiri,serif;font-size:28px;margin:0}.book p{font-family:Amiri,serif;font-size:17px}.tag{display:inline-block;background:#e8d8b9;color:#6f501b;padding:3px 10px;border-radius:15px;font-size:11px}
footer{background:var(--navy);color:#eee;padding:38px 0;margin-top:30px}.footer-grid{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center}.footer-brand{text-align:center;font-family:Amiri,serif;font-size:29px}.footer-brand small{display:block;font-family:"Noto Kufi Arabic";font-size:10px}.footer-links{display:flex;gap:22px;font-size:13px}.social{display:flex;gap:12px;justify-content:flex-start}.social a{width:36px;height:36px;border:1px solid #aeb8c3;border-radius:50%;display:grid;place-items:center}.copy{text-align:center;font-size:11px;color:#b7c0c8;margin-top:25px}
.page-hero{background:var(--navy);color:#fff;height:207px;box-sizing:border-box;display:flex;align-items:center;padding:0}.page-hero .container{width:min(1180px,92%);margin:auto}.page-hero h1{font-family:Amiri,serif;font-size:50px;line-height:1.25;margin:0}.page-hero p{font-family:"Noto Kufi Arabic",Arial,sans-serif;font-size:16px;line-height:1.9;margin:4px 0 0;color:#d9dee3}.content{background:var(--paper);padding:35px;border-radius:10px;border:1px solid #eee4d4}.bio{font-family:Amiri,serif;font-size:21px;line-height:2.15}.about-grid{display:grid;grid-template-columns:330px 1fr;gap:40px;align-items:start}.about-photo{width:100%;border-radius:8px}
.archive-tools{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:25px}.archive-tools input,.archive-tools select{font:inherit;background:#fff;border:1px solid #d8cdbb;border-radius:6px;padding:10px 13px}.archive-list{display:grid;gap:12px}.archive-item{background:#fff;border:1px solid #eee4d4;border-radius:8px;padding:18px 20px;display:flex;justify-content:space-between;gap:20px}.archive-item h3{font-family:Amiri,serif;font-size:24px;margin:0}.archive-item p{margin:3px 0;color:#6c685f;font-family:Amiri,serif}.archive-item .meta{white-space:nowrap;align-items:center}
.article{max-width:850px;margin:auto}.article h1{font-family:Amiri,serif;font-size:48px;line-height:1.4}.article .lead{font-family:Amiri,serif;font-size:23px;color:#5b574f}.article-body{font-family:Amiri,serif;font-size:21px;line-height:2.25}.article-body p{margin:0 0 25px}
.form{display:grid;gap:15px;max-width:720px}.form label{font-size:13px}.form input,.form textarea{width:100%;font:inherit;background:#fff;border:1px solid #d8cdbb;border-radius:6px;padding:12px}.form textarea{min-height:180px;resize:vertical}
@media(max-width:900px){nav{display:none}.hero:before{background:linear-gradient(90deg,rgba(10,29,46,.76),rgba(10,29,46,.94))}.hero:after{width:100%;opacity:.42;background-position:center top}.hero-copy{width:100%;padding:30px;text-align:center}.hero h1{font-size:47px}.category-grid{grid-template-columns:1fr 1fr}.posts{grid-template-columns:1fr 1fr}.books{grid-template-columns:1fr}.about-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr;gap:20px;text-align:center}.footer-links,.social{justify-content:center}}
@media(max-width:560px){.page-hero{height:207px;padding:0;box-sizing:border-box}.category-grid,.posts{grid-template-columns:1fr}.hero{min-height:450px}.hero .container{min-height:450px}.hero-copy{padding:25px 12px}.hero h1{font-size:42px}.hero h2{font-size:17px}.hero p{font-size:15px;line-height:1.9}.search{display:none}.book{grid-template-columns:1fr}.book img{width:130px}.page-hero h1{font-size:40px}}
/* V3: literary hero scene */
.hero{min-height:370px;height:370px;position:relative;overflow:hidden;background:#11293d;color:#fff;isolation:isolate}
.hero-scene{position:absolute;inset:0;background:url("assets/images/hero-library.svg") center/cover no-repeat;z-index:-3}
.hero-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,25,39,.18) 0%,rgba(9,25,39,.30) 38%,rgba(9,25,39,.80) 66%,rgba(9,25,39,.96) 100%)}
.hero-person{position:absolute;z-index:0;left:5%;bottom:-8px;width:min(34vw,410px);max-height:390px;display:flex;align-items:flex-end;pointer-events:none;filter:drop-shadow(0 16px 18px rgba(0,0,0,.28))}
.hero-person img{display:block;width:100%;height:auto}
.hero-container{position:relative;z-index:2;height:100%;display:flex;align-items:center;justify-content:flex-end}
.hero-copy{width:54%;max-width:650px;padding:18px 20px 18px 0;text-align:right;text-shadow:0 2px 16px rgba(0,0,0,.28)}
.hero h1{font-size:53px;margin:5px 0 0}.hero h2{font-size:20px;margin:5px 0 15px}.hero p{font-size:15px;line-height:2;max-width:600px;margin-right:0;margin-left:auto}.hero .btn{margin-top:10px}
@media(max-width:900px){.menu-toggle{display:block}.site-nav{display:none;position:absolute;top:76px;right:4%;left:4%;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgba(20,35,50,.12);padding:8px 16px;flex-direction:column;gap:0;z-index:50}.site-nav.open{display:flex}.site-nav a{padding:10px 4px;border-bottom:1px solid #eee4d4}.site-nav a:last-child{border-bottom:0}.site-nav a.active:after{display:none}.hero{height:420px;min-height:420px}.hero-scene:after{background:linear-gradient(90deg,rgba(9,25,39,.48),rgba(9,25,39,.84))}.hero-person{left:2%;width:43vw;bottom:-5px;opacity:.95}.hero-copy{width:62%;padding-right:10px}.hero h1{font-size:46px}.hero h2{font-size:18px}.hero p{font-size:14px}}
@media(max-width:560px){header{height:68px}.header-inner{gap:10px}.logo{font-size:26px}.logo small{font-size:9px}.site-nav{top:68px}.hero{height:500px;min-height:500px}.hero-scene{background-position:58% center}.hero-scene:after{background:linear-gradient(180deg,rgba(9,25,39,.72) 0%,rgba(9,25,39,.84) 48%,rgba(9,25,39,.55) 100%)}.hero-container{align-items:flex-start}.hero-copy{width:100%;padding:38px 14px 0;text-align:center}.hero-copy p{margin-right:auto;margin-left:auto}.hero-person{left:50%;transform:translateX(-50%);width:250px;bottom:-2px;opacity:.98}.hero h1{font-size:42px}.hero h2{font-size:17px}.hero p{font-size:14px;line-height:1.9}.hero .btn{margin-top:6px}}

.menu-toggle{display:none;border:0;background:transparent;color:var(--ink);font-size:25px;cursor:pointer;padding:5px 8px;font-family:inherit}.menu-toggle:focus{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:900px){.menu-toggle{display:block}}

/* V5: exact literary hero composition from the approved reference */
.hero-reference{height:auto;min-height:0;background:#102b46;overflow:hidden;padding:0;position:relative}
.hero-reference-image{position:relative;width:100%;line-height:0}
.hero-reference-image img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.hero-reference-link{position:absolute;right:32.5%;bottom:7%;width:16%;height:13%;opacity:0;overflow:hidden;text-indent:-9999px}
@media(max-width:900px){.hero-reference-link{right:31%;width:18%;bottom:7%}}
@media(max-width:560px){.hero-reference-link{right:29%;width:22%;bottom:6%}}

/* V6 — refined reading page */
.article-header{background:var(--navy);color:#fff;padding:54px 0 48px;position:relative;overflow:hidden}
.article-header:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 20%,rgba(198,145,43,.14),transparent 32%),linear-gradient(90deg,rgba(8,27,43,.15),rgba(8,27,43,.5));pointer-events:none}
.article-head-inner{position:relative;z-index:1;max-width:950px}
.article-kicker{color:#d9a63c;font-size:14px;margin-bottom:9px}
.article-header h1{font-family:Amiri,serif;font-size:50px;line-height:1.35;margin:0 0 9px;font-weight:700}
.article-meta{display:flex;gap:10px;flex-wrap:wrap;color:#d8dee3;font-size:12px}
.article-section{padding-top:44px}
.article.content{padding:50px 62px 42px;background:#fffdf8;box-shadow:0 7px 25px rgba(60,45,20,.05)}
.article-intro{font-family:Amiri,serif;font-size:24px;line-height:2;color:#4d4941;margin:0 0 34px;padding-bottom:28px;border-bottom:1px solid #e8dfd1}
.article-body{font-family:Amiri,serif;font-size:22px;line-height:2.25;color:#2e2d2a}
.article-body p{margin:0 0 28px}
.article-footer{display:flex;justify-content:space-between;gap:20px;margin-top:44px;padding-top:22px;border-top:1px solid #e8dfd1;font-size:13px}
.article-footer a{color:#9c6d16}
@media(max-width:700px){.article-header{padding:38px 0 34px}.article-header h1{font-size:38px}.article-meta{font-size:11px}.article.content{padding:30px 22px 28px}.article-intro{font-size:20px}.article-body{font-size:20px;line-height:2.05}.article-footer{flex-direction:column}.article-section{padding-top:28px}}

/* Experimental article page — literary reading layout */
.article-hero{background:linear-gradient(120deg,#0d253d,#173c5c);color:#fff;position:relative;overflow:hidden;border-bottom:4px solid rgba(189,138,44,.75)}
.article-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 50%,rgba(189,138,44,.16),transparent 32%),linear-gradient(90deg,transparent,rgba(255,255,255,.025));pointer-events:none}
.article-hero-inner{padding:72px 0 66px;position:relative;text-align:right}
.article-kicker{color:#d6a64b;font-size:16px;margin-bottom:4px}
.article-hero h1{font-family:Amiri,serif;font-size:clamp(48px,6vw,76px);line-height:1.15;margin:0;color:#fff;font-weight:700}
.article-rule{height:2px;width:92px;background:#c69436;margin:18px 0 12px 0}
.article-hero p{margin:0;color:#dbe2e8;font-family:Amiri,serif;font-size:21px}
.article-section{padding-top:58px;padding-bottom:70px}
.article-layout{display:grid;grid-template-columns:230px minmax(0,850px);gap:38px;align-items:start;justify-content:center}
.article-side{display:grid;gap:18px;position:sticky;top:100px}
.side-card{background:rgba(255,253,248,.78);border:1px solid #e8dece;border-radius:9px;padding:20px 18px;box-shadow:0 5px 18px rgba(71,55,30,.04)}
.side-label{display:block;color:#a07a35;font-size:11px;margin-bottom:5px}
.side-card strong{display:block;font-family:Amiri,serif;font-size:29px;color:var(--ink);line-height:1.25}
.side-card p{font-family:Amiri,serif;font-size:16px;line-height:1.8;color:#6b665d;margin:5px 0 13px}
.side-card a{font-size:12px;color:var(--gold)}
.side-meta div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #eee5d8;font-size:11px;align-items:flex-start}
.side-meta div:first-of-type{margin-top:10px}
.side-meta b{font-weight:600;color:#5e594f}.side-meta span{text-align:left;color:#777066}
.back-link{font-size:12px;color:#7b6845;padding:2px 4px}
.article-reading{padding:48px clamp(26px,4vw,62px) 52px;background:var(--paper);box-shadow:0 8px 30px rgba(65,50,28,.055)}
.reading-head{display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid #ebe1d1;padding-bottom:15px;margin-bottom:28px;font-size:11px;color:#847d71}
.article-category{color:var(--gold);font-weight:600}.reading-date{color:#8b8478}
.article-reading h2{font-family:Amiri,serif;font-size:clamp(38px,4vw,53px);line-height:1.35;color:var(--ink);margin:0 0 32px}
.article-body{font-family:Amiri,serif;font-size:22px;line-height:2.28;color:#2d2d2a;text-align:justify}.article-symbol-image{float:left;width:25%;aspect-ratio:1/1;object-fit:contain;display:block;margin:0 18px 18px 0;border-radius:8px;shape-outside:margin-box}
.article-body p{margin:0 0 29px}
.article-body .opening{font-size:24px;line-height:2.22;color:#34322e}
.article-body blockquote{margin:40px 0;padding:22px 26px;border-right:4px solid var(--gold);background:#f8f1e4;color:#25415c;font-size:26px;line-height:1.95;font-weight:700}
.article-end{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:46px;color:#9b742c;font-family:Amiri,serif;font-size:18px}
.article-end span{height:1px;width:55px;background:#d2b47a}.article-end i{font-style:normal}
@media(max-width:900px){.article-layout{grid-template-columns:1fr;gap:22px}.article-side{position:static;grid-template-columns:1fr 1fr}.back-link{grid-column:1/-1}.article-hero-inner{padding:58px 0}.article-body{font-size:21px}.article-body .opening{font-size:23px}}
@media(max-width:560px){.article-symbol-image{width:34%;margin-right:16px;margin-left:0}.article-hero-inner{padding:48px 0 44px}.article-hero h1{font-size:45px}.article-hero p{font-size:18px}.article-side{grid-template-columns:1fr}.article-reading{padding:30px 20px 38px}.reading-head{display:block;line-height:2}.reading-date{display:block;margin-top:4px}.article-reading h2{font-size:38px;margin-bottom:25px}.article-body,.article-body .opening{font-size:20px;line-height:2.12;text-align:right}.article-body blockquote{font-size:23px;padding:18px 18px;margin:32px 0}.article-end{margin-top:34px}}

.key-inline{display:inline;background:#f8f1e4;color:#25415c;padding:2px 8px 3px;border-right:3px solid var(--gold);font-weight:700;box-decoration-break:clone;-webkit-box-decoration-break:clone;transition:background .2s}
.key-inline:hover{background:#f3e7cd}
/* V9 — article navigation and manually curated key phrase */
.reading-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.reading-head .reading-date{justify-self:start}
.reading-number{color:#9a896f;white-space:nowrap}
.article-nav{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:stretch;margin-top:50px;padding-top:26px;border-top:1px solid #e8dfd1}
.article-nav-link{display:flex;flex-direction:column;gap:7px;padding:14px 16px;background:#fbf7ef;border:1px solid #e8dece;border-radius:8px;text-decoration:none;transition:.2s}
.article-nav-link:hover{border-color:#caa35a;transform:translateY(-1px)}
.article-nav-link span{font-size:10px;color:#a07a35}
.article-nav-link strong{font-family:Amiri,serif;font-size:17px;line-height:1.5;color:var(--ink);font-weight:700}
.article-nav-link.prev{text-align:right}.article-nav-link.next{text-align:left}
.article-nav-center{display:flex;align-items:center;justify-content:center;padding:0 10px;color:#9b742c;font-size:12px;text-decoration:none;white-space:nowrap}
.article-nav-link.disabled{opacity:.42;pointer-events:none}
@media(max-width:560px){.reading-head{display:grid;grid-template-columns:1fr auto;gap:4px}.reading-head .reading-date{grid-column:1/-1;justify-self:start}.key-phrase blockquote{font-size:23px;padding:16px 18px}.article-nav{grid-template-columns:1fr;gap:10px}.article-nav-center{order:-1;padding:6px}.article-nav-link.next,.article-nav-link.prev{text-align:right}}

/* V10 — editor selection interface */
.editor-page .btn{font-family:inherit;text-decoration:none}

/* V12 — ترويسة الصفحة الرئيسية عالية الجودة: الخلفية والكتابة والصورة عناصر مستقلة */
.hero-home{height:clamp(470px,38vw,620px);min-height:470px;position:relative;overflow:hidden;background:#102b46;color:#fff;isolation:isolate}
.hero-home .hero-scene{position:absolute;inset:0;z-index:-3;background:url("assets/images/hero-library.svg") center center/cover no-repeat}
.hero-home .hero-shade{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(7,22,35,.16) 0%,rgba(7,22,35,.24) 32%,rgba(7,22,35,.76) 60%,rgba(7,22,35,.96) 100%)}
.hero-home .hero-container{height:100%;min-height:0;position:relative;z-index:2;display:flex;align-items:center;justify-content:flex-end}
.hero-home .hero-copy{width:min(54%,650px);padding:25px 25px 25px 0;text-align:right;text-shadow:0 2px 18px rgba(0,0,0,.38)}
.hero-home .hero-copy .kicker{color:#e8c16d;font-size:18px}
.hero-home h1{font-family:Amiri,serif;font-size:clamp(52px,5.2vw,78px);line-height:1.08;margin:4px 0 2px}
.hero-home h2{font-size:clamp(19px,2vw,25px);font-weight:500;margin:5px 0 17px;color:#f0c976}
.hero-home .hero-copy p{font-size:16px;line-height:2;max-width:610px;margin:0 0 5px auto;color:#f5f2eb}
.hero-home .hero-read{margin-top:15px;background:#bd8a2c;border:1px solid rgba(255,255,255,.18);padding:11px 28px;font-size:14px;text-shadow:none;box-shadow:0 7px 18px rgba(0,0,0,.22)}
.hero-home .hero-read span{display:inline-block;margin-right:8px;transition:transform .2s ease}
.hero-home .hero-read:hover span{transform:translateX(-4px)}
.hero-home .hero-person{position:absolute;z-index:1;left:max(3%,calc((100vw - 1180px)/2 - 15px));bottom:-1px;width:min(34vw,435px);max-height:96%;display:flex;align-items:flex-end;pointer-events:none;filter:drop-shadow(0 18px 22px rgba(0,0,0,.34))}
.hero-home .hero-person img{display:block;width:100%;height:auto;max-height:620px;object-fit:contain;object-position:center bottom}
@media(max-width:900px){
  .hero-home{height:500px;min-height:500px}
  .hero-home .hero-shade{background:linear-gradient(90deg,rgba(7,22,35,.56),rgba(7,22,35,.88))}
  .hero-home .hero-copy{width:62%;padding-right:12px}
  .hero-home h1{font-size:48px}.hero-home h2{font-size:19px}.hero-home .hero-copy p{font-size:14px}
  .hero-home .hero-person{left:0;width:39vw;bottom:-2px}
}
@media(max-width:560px){
  .hero-home{height:600px;min-height:600px}
  .hero-home .hero-scene{background-position:60% center}
  .hero-home .hero-shade{background:linear-gradient(180deg,rgba(7,22,35,.78) 0%,rgba(7,22,35,.76) 46%,rgba(7,22,35,.42) 100%)}
  .hero-home .hero-container{align-items:flex-start}
  .hero-home .hero-copy{width:100%;padding:38px 14px 0;text-align:center}
  .hero-home .hero-copy p{margin-left:auto;margin-right:auto;max-width:520px}
  .hero-home h1{font-size:45px}.hero-home h2{font-size:18px}
  .hero-home .hero-person{left:50%;transform:translateX(-50%);width:275px;bottom:-5px;max-height:none}
}

/* V13 — ترويسة رئيسية فوتوغرافية عالية الجودة: مكتبة حقيقية بصريًا + كتب وريشة يمينًا */
.hero-home{
  height:clamp(430px,36vw,600px);
  min-height:430px;
  background:#12283b;
}
.hero-home .hero-scene{
  background-position:center center;
  background-size:cover;
  filter:none;
}
.hero-home .hero-shade{
  background:
    linear-gradient(90deg,
      rgba(8,22,34,.04) 0%,
      rgba(8,22,34,.08) 28%,
      rgba(8,22,34,.40) 48%,
      rgba(8,22,34,.82) 70%,
      rgba(8,22,34,.62) 86%,
      rgba(8,22,34,.22) 100%);
}
.hero-home .hero-container{
  max-width:1320px;
}
.hero-home .hero-copy{
  position:relative;
  z-index:5;
  width:min(49%,650px);
  max-width:650px;
  padding:24px 34px 24px 0;
  margin-left:8%;
  text-align:right;
  text-shadow:0 2px 18px rgba(0,0,0,.52);
}
.hero-home .hero-copy .kicker{font-size:18px;color:#e8c16d}
.hero-home h1{font-size:clamp(50px,4.9vw,76px)}
.hero-home h2{font-size:clamp(19px,1.9vw,25px)}
.hero-home .hero-copy p{font-size:16px;line-height:2.05;max-width:590px}
.hero-home .hero-read{background:#c3943d;padding:11px 30px;border:1px solid rgba(255,255,255,.28)}
.hero-home .hero-person{
  left:max(2%,calc((100vw - 1320px)/2 - 8px));
  bottom:-1px;
  width:min(37vw,510px);
  max-height:100%;
  z-index:3;
  filter:drop-shadow(0 18px 22px rgba(0,0,0,.34));
}
.hero-home .hero-person img{
  width:100%;
  height:auto;
  max-height:100%;
  object-fit:contain;
  object-position:center bottom;
}
@media(max-width:900px){
  .hero-home{height:520px;min-height:520px}
  .hero-home .hero-shade{
    background:linear-gradient(90deg,rgba(7,22,35,.48),rgba(7,22,35,.88));
  }
  .hero-home .hero-copy{width:62%;margin-left:0;padding-right:15px;transform:none}
  .hero-home .hero-person{left:0;width:42vw;bottom:-2px}
}
@media(max-width:560px){
  .hero-home{height:610px;min-height:610px}
  .hero-home .hero-scene{background-position:62% center}
  .hero-home .hero-shade{background:linear-gradient(180deg,rgba(7,22,35,.78) 0%,rgba(7,22,35,.80) 50%,rgba(7,22,35,.46) 100%)}
  .hero-home .hero-container{align-items:flex-start}
  .hero-home .hero-copy{width:100%;margin-left:0;padding:38px 14px 0;text-align:center}
  .hero-home .hero-copy p{margin-left:auto;margin-right:auto}
  .hero-home .hero-person{left:50%;transform:translateX(-50%);width:290px;bottom:-4px}
}

/* V14 — التسجيل في الإشعارات */
.subscribe-section{padding-top:18px;padding-bottom:28px}.subscribe-box{background:#f8f4eb;color:var(--ink);border-radius:10px;padding:18px 22px;display:grid;grid-template-columns:.85fr 1.45fr;gap:22px;align-items:center;border:1px solid #e8decd;box-shadow:0 5px 16px rgba(20,35,50,.05)}.subscribe-copy .section-title{color:var(--navy);font-family:Amiri,serif;font-size:25px}.subscribe-copy .section-title:before,.subscribe-copy .section-title:after{width:30px;height:1px}.subscribe-copy p{color:#68727a;line-height:1.75;margin:5px 0;font-size:13px}.subscriber-count{color:#9a762b;font-size:11px;margin-top:6px}.subscribe-form{background:#fffdf9;padding:12px 14px;border:1px solid #ece3d5;border-radius:8px}.subscribe-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.subscribe-grid input{width:100%;box-sizing:border-box;border:1px solid #ddd4c6;background:#fff;color:#263746;border-radius:6px;padding:8px 9px;font-family:inherit;font-size:12px}.subscribe-grid input:first-child{grid-column:1/-1}.channel-options{display:flex;gap:18px;margin:9px 0;color:#5f6870;font-size:11px}.channel-options label{display:flex;align-items:center;gap:5px}.subscribe-form .btn{border:0;cursor:pointer;font-family:inherit;padding:8px 14px;font-size:12px}.subscribe-form small{display:block;color:#899198;font-size:9px;line-height:1.55;margin-top:7px}.subscribe-status{min-height:16px;margin-top:5px;font-size:11px;color:#9a762b}.subscribe-status.error{color:#a85b52}@media(max-width:800px){.subscribe-box{grid-template-columns:1fr;padding:16px}.subscribe-grid{grid-template-columns:1fr}.subscribe-grid input:first-child{grid-column:auto}}


/* V16 — إعادة بناء الترويسة وفق التكوين المعتمد: مكتبة دافئة، الكاتب ممتد إلى سطح المكتب، والنص في الطبقة الأمامية */
.hero-home{
  height:clamp(420px,35.1vw,620px);
  min-height:420px;
  max-height:620px;
  background:#111f2b;
}
.hero-home .hero-scene{
  z-index:-3;
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
}
.hero-home .hero-shade{
  z-index:-2;
  background:
    linear-gradient(90deg,
      rgba(9,21,31,.02) 0%,
      rgba(9,21,31,.03) 34%,
      rgba(9,21,31,.34) 49%,
      rgba(9,21,31,.62) 63%,
      rgba(9,21,31,.72) 79%,
      rgba(9,21,31,.40) 100%);
}
.hero-home .hero-container{
  width:min(1380px,94%);
  height:100%;
  min-height:0;
  max-width:none;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  position:relative;
  z-index:10;
}
.hero-home .hero-copy{
  position:relative;
  z-index:20;
  width:min(48%,680px);
  max-width:680px;
  margin:0 1.5% 0 0;
  padding:34px 26px 30px 12px;
  text-align:right;
  text-shadow:0 2px 14px rgba(0,0,0,.48);
}
.hero-home .hero-copy .kicker{
  color:#e4bc68;
  font-size:18px;
  margin-bottom:2px;
}
.hero-home h1{
  font-family:Amiri,serif;
  font-size:clamp(48px,4.7vw,78px);
  line-height:1.08;
  margin:0;
  color:#fff;
  letter-spacing:-.5px;
}
.hero-home h2{
  font-size:clamp(19px,1.8vw,27px);
  line-height:1.45;
  font-weight:500;
  color:#e6b95d;
  margin:5px 0 14px;
}
.hero-home .hero-copy p{
  color:#f8f5ed;
  font-size:clamp(14px,1.15vw,18px);
  line-height:1.95;
  max-width:610px;
  margin:0 0 4px auto;
}
.hero-home .hero-read{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-width:210px;
  background:linear-gradient(180deg,#d2a54d,#b98025);
  color:#fff;
  border:1px solid rgba(255,255,255,.28);
  border-radius:7px;
  padding:10px 27px;
  margin-top:15px;
  box-shadow:0 8px 18px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.2);
  text-shadow:none;
  font-size:14px;
}
.hero-home .hero-read .book-icon{
  font-size:22px;
  line-height:1;
  width:22px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid rgba(255,255,255,.92);
  border-radius:2px;
  position:relative;
}
.hero-home .hero-read .book-icon:after{
  content:"";
  position:absolute;
  top:-2px;
  bottom:-2px;
  left:50%;
  width:1px;
  background:rgba(255,255,255,.92);
}
.hero-home .hero-person{
  position:absolute;
  z-index:6;
  left:max(1.5%,calc((100vw - 1380px)/2 - 6px));
  bottom:-1px;
  width:min(39vw,590px);
  max-height:100%;
  display:flex;
  align-items:flex-end;
  pointer-events:none;
  filter:drop-shadow(0 16px 18px rgba(0,0,0,.34));
}
.hero-home .hero-person img{
  display:block;
  width:100%;
  height:auto;
  max-height:100%;
  object-fit:contain;
  object-position:center bottom;
}
/* A small dark veil keeps the live HTML typography legible without turning it into an image. */
.hero-home .hero-copy:before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:7% -3% 4% -4%;
  background:radial-gradient(ellipse at center,rgba(5,17,27,.27),rgba(5,17,27,0) 72%);
  pointer-events:none;
}
@media(max-width:1100px){
  .hero-home{height:500px;min-height:500px}
  .hero-home .hero-copy{width:52%;margin-right:0;padding-right:16px}
  .hero-home .hero-person{width:min(42vw,510px);left:0}
}
@media(max-width:800px){
  .hero-home{height:620px;min-height:620px;max-height:none}
  .hero-home .hero-scene{background-position:center center}
  .hero-home .hero-shade{background:linear-gradient(180deg,rgba(7,20,31,.76) 0%,rgba(7,20,31,.67) 43%,rgba(7,20,31,.18) 100%)}
  .hero-home .hero-container{width:94%;align-items:flex-start;justify-content:center}
  .hero-home .hero-copy{width:100%;max-width:620px;margin:0;padding:34px 12px 0;text-align:center}
  .hero-home .hero-copy p{margin-left:auto;margin-right:auto}
  .hero-home .hero-person{left:50%;transform:translateX(-50%);width:min(390px,72vw);bottom:-4px}
}
@media(max-width:520px){
  .hero-home{height:610px;min-height:610px}
  .hero-home h1{font-size:45px}
  .hero-home h2{font-size:18px}
  .hero-home .hero-copy p{font-size:14px;line-height:1.9}
  .hero-home .hero-person{width:300px}
  .hero-home .hero-read{min-width:190px}
}


/* V17 — الترويسة النهائية: الصورة الجديدة مدمجة في مشهد المكتبة، واليدان مستندتان بأناقة على سطح المكتب. */
.hero-home .hero-person{display:none !important;}
.hero-home .hero-copy{z-index:50;}
.hero-home .hero-container{z-index:50;}

.editor-home-link{font-weight:700;color:#b98a36!important}

/* V24 — تثبيت نص الترويسة داخل المساحة الداكنة اليمنى وعدم السماح له بالتداخل مع صورة الكاتب. */
@media(min-width:1101px){
  .hero-home .hero-container{
    display:block;
    position:relative;
    width:94%;
    max-width:1380px;
    margin:0 auto;
  }
  .hero-home .hero-copy{
    position:absolute;
    top:50%;
    right:1%;
    transform:translate(-100px,-50%);
    direction:rtl;
    width:min(40%,650px);
    max-width:650px;
    margin:0;
    padding:24px 0 24px 12px;
    text-align:right;
    box-sizing:border-box;
  }
}
@media(min-width:801px) and (max-width:1100px){
  .hero-home .hero-container{
    display:block;
    position:relative;
    width:94%;
    margin:0 auto;
  }
  .hero-home .hero-copy{
    position:absolute;
    top:50%;
    right:0;
    transform:translateY(-50%);
    direction:rtl;
    width:43%;
    max-width:500px;
    margin:0;
    padding:20px 0 20px 10px;
    text-align:right;
    box-sizing:border-box;
  }
}

/* V25 — approved final hero artwork: exact composition requested by the author */
.hero-reference{height:auto;min-height:0;background:#102b46;overflow:hidden;padding:0;position:relative;line-height:0}
.hero-reference-image{position:relative;width:100%;line-height:0}
.hero-reference-image img{display:block;width:100%;height:auto;max-width:none;object-fit:contain}
.hero-reference-link{position:absolute;right:27.7%;bottom:12.3%;width:13.2%;height:10.5%;opacity:0;overflow:hidden;text-indent:-9999px;display:block;z-index:5}
@media(max-width:900px){
  .hero-reference-link{right:27.5%;bottom:12%;width:14%;height:11%}
}
@media(max-width:560px){
  .hero-reference-link{right:25%;bottom:11%;width:18%;height:12%}
}

/* V27 — live HTML hero text over the approved library artwork.
   The artwork is background-only; all title, copy and CTA remain real HTML. */
.hero-live{
  position:relative;
  width:100%;
  min-height:clamp(500px,33.9vw,730px);
  height:clamp(500px,33.9vw,730px);
  overflow:hidden;
  background:#171b1d;
  color:#fff;
  isolation:isolate;
}
.hero-live-bg{
  position:absolute;
  inset:0;
  z-index:-2;
  background-image:url("assets/images/hero-background.jpg");
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}
.hero-live-content{
  position:relative;
  z-index:3;
  width:100%;
  height:100%;
}
.hero-live-copy{
  position:absolute;
  top:22%;
  right:7.5%;
  width:min(40%,650px);
  text-align:right;
  direction:rtl;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.72),0 1px 3px rgba(0,0,0,.9);
}
/* V126 — إزاحة الترويسات الأربعة في الشريط الرئيسي إلى اليسار 200px لتجنب أوراق النبات. */
@media(min-width:901px){
  .hero-live-kicker,
  .hero-live-copy h1,
  .hero-live-copy h2,
  .hero-live-copy p{
    transform:translateX(-200px);
  }
}
.hero-live-kicker{
  color:#e8bd63;
  font-size:18px;
  line-height:1;
  margin-bottom:6px;
  font-weight:500;
}
.hero-live-copy h1{
  font-family:Amiri,serif;
  font-size:clamp(48px,4.7vw,76px);
  line-height:1.05;
  margin:0;
  color:#fff;
  font-weight:700;
}
.hero-live-copy h2{
  font-size:clamp(19px,1.8vw,25px);
  line-height:1.35;
  color:#efc56f;
  margin:7px 0 18px;
  font-weight:500;
}
.hero-live-copy p{
  max-width:610px;
  margin:0 0 18px auto;
  font-size:clamp(14px,1.2vw,17px);
  line-height:2;
  color:#fff;
}
.hero-live-read{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:190px;
  padding:12px 30px;
  border-radius:7px;
  background:#c89435;
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
  text-decoration:none;
  font-size:15px;
  font-weight:600;
  text-shadow:none;
  box-shadow:0 7px 18px rgba(0,0,0,.28);
  transition:transform .18s ease,filter .18s ease;
}
.hero-live-read:hover{filter:brightness(1.08);transform:translateY(-1px)}
.book-icon{font-size:18px;line-height:1}

@media(max-width:900px){
  .hero-live{height:560px;min-height:560px}
  .hero-live-bg{background-position:44% center}
  .hero-live-copy{
    top:9%;
    right:5%;
    width:54%;
  }
  .hero-live-copy h1{font-size:clamp(40px,6vw,58px)}
  .hero-live-copy h2{font-size:18px;margin-bottom:12px}
  .hero-live-copy p{font-size:14px;line-height:1.85}
}
@media(max-width:560px){
  .hero-live{height:620px;min-height:620px}
  .hero-live-bg{background-position:34% center}
  .hero-live-copy{
    top:6%;
    right:5%;
    width:90%;
    text-align:center;
  }
  .hero-live-copy h1{font-size:44px}
  .hero-live-copy h2{font-size:18px}
  .hero-live-copy p{max-width:500px;margin-left:auto;margin-right:auto;font-size:14px}
  .hero-live-read{min-width:185px}
}

/* V29 — author-supplied portrait. This is the only foreground portrait used by the site. */
.hero-live-person{
  position:absolute;
  z-index:2;
  left:3.5%;
  bottom:0;
  width:min(51vw,1080px);
  max-height:100%;
  display:flex;
  align-items:flex-end;
  pointer-events:none;
}
.hero-live-person img{
  display:block;
  width:100%;
  height:auto;
  max-height:100%;
  object-fit:contain;
  object-position:left bottom;
}
.hero-live-copy{z-index:4;}
@media(max-width:900px){
  .hero-live-person{left:1%;width:min(55vw,720px);}
  .hero-live-copy{z-index:4;}
}
@media(max-width:560px){
  .hero-live-person{
    left:50%;
    transform:translateX(-50%);
    width:min(88vw,560px);
    bottom:-2px;
    opacity:.96;
  }
  .hero-live-copy{z-index:4;}
}


/* Search result highlighting and page navigation tools */
.search-highlight{background:#f4d46b;color:inherit;padding:0 .12em;border-radius:.2em;box-shadow:0 0 0 1px rgba(201,152,50,.18)}
.page-tools{position:fixed;left:22px;bottom:20px;z-index:1000;display:flex;gap:8px;direction:rtl}
.page-tool{border:1px solid rgba(201,152,50,.5);background:rgba(255,253,248,.96);color:#102b40;border-radius:22px;padding:9px 14px;font:inherit;font-size:13px;cursor:pointer;box-shadow:0 5px 18px rgba(18,40,55,.12);backdrop-filter:blur(5px)}
.page-tool:hover{background:#102b40;color:#fff;border-color:#102b40}
@media(max-width:620px){.page-tools{left:12px;bottom:12px}.page-tool{padding:8px 11px;font-size:12px}}

/* V54: deter casual copying of public literary content. */
.article-body,.article-reading,.archive-page .card,#latest-posts .post-card,.category-grid .cat,.books .book{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}
.article-body img,.article-reading img,.archive-page .card img,#latest-posts .post-card img,.books .book img{-webkit-user-drag:none;user-drag:none;}

/* V81 — Friends comments and article likes */
.community-section{margin-top:48px;padding-top:30px;border-top:1px solid #e8dfd1}
.community-stats{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:22px}
.community-like{display:inline-flex;align-items:center;gap:7px;border:1px solid #dccdb6;background:#fffaf1;color:#705522;border-radius:20px;padding:8px 14px;font-family:inherit;cursor:pointer;transition:.2s}
.community-like:hover,.community-like.liked{border-color:#c69a49;background:#f8eedb}.community-like .like-symbol{font-size:16px}.community-like b,.community-comments-count b{font-weight:700}.community-comments-count{font-size:13px;color:#777066}
.community-account{margin-bottom:14px}.community-welcome{background:#f8f4eb;border:1px solid #e8decd;border-radius:8px;padding:10px 14px;font-size:13px;color:#5d5a54}.text-action{border:0;background:none;color:#9b742c;font-family:inherit;cursor:pointer;margin-right:12px}
.community-login-note{font-size:13px;color:#756f66;margin-bottom:12px}.community-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.community-auth{background:#fbf8f1;border:1px solid #e8dfd1;border-radius:9px;padding:15px;display:grid;gap:8px}.community-auth h3{font-family:Amiri,serif;color:var(--navy);font-size:20px;margin:0 0 3px}.community-auth input,.comment-form textarea{box-sizing:border-box;width:100%;font:inherit;background:#fff;border:1px solid #d8cdbb;border-radius:6px;padding:9px 10px}.community-auth input{font-size:12px}.community-auth .btn{justify-self:start}.comment-composer{margin:18px 0}.comment-form{background:#fffdf9;border:1px solid #e8dfd1;border-radius:9px;padding:15px}.comment-form textarea{min-height:110px;resize:vertical;font-family:Amiri,serif;font-size:17px;line-height:1.9}.comment-form-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}.comment-form-foot small{color:#8b847a;font-size:10px}.comment-locked{padding:13px;background:#f8f4eb;border:1px dashed #dccdb6;border-radius:8px;color:#777066;font-size:12px}
.comments-list{display:grid;gap:12px;margin-top:20px}.comment-card{background:#fffdf9;border:1px solid #e8dfd1;border-radius:9px;padding:15px}.comment-head{display:flex;align-items:baseline;gap:12px;justify-content:space-between}.comment-head strong{font-family:Amiri,serif;font-size:19px;color:var(--navy)}.comment-head time{font-size:10px;color:#948d82}.comment-text{margin-top:8px;font-family:Amiri,serif;font-size:17px;line-height:1.9;color:#403d38;word-break:break-word}.comment-actions{display:flex;gap:12px;margin-top:9px}.comment-actions button{border:0;background:none;color:#9b742c;font-family:inherit;font-size:11px;cursor:pointer;padding:0}.comment-actions button:hover{text-decoration:underline}.no-comments{color:#8a847a;font-size:12px;text-align:center;padding:18px}.community-status{min-height:18px;margin-top:8px;font-size:11px;color:#9b742c}.community-status.error{color:#a4574e}
@media(max-width:700px){.community-auth-grid{grid-template-columns:1fr}.comment-form-foot{align-items:flex-start;flex-direction:column}.comment-head{display:block}.comment-head time{display:block;margin-top:2px}}

/* V82 — member accounts / authentication */
.member-cta-section{padding-top:6px;padding-bottom:18px}.member-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#102b46;color:#fff;border-radius:10px;padding:20px 24px;box-shadow:0 7px 20px rgba(20,35,50,.08)}.member-cta .section-title{font-family:Amiri,serif;color:#e8c16d;font-size:28px}.member-cta p{margin:4px 0 0;color:#e9e4da;font-size:13px;line-height:1.8}.member-cta-actions{display:flex;gap:9px;flex-wrap:wrap;flex-shrink:0}.member-cta-actions .btn{border-color:rgba(255,255,255,.22)}.member-cta-actions .btn:not(.primary){background:transparent;color:#fff}.community-page-main{min-height:620px}.community-auth-page-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:980px;margin:0 auto}.community-auth-panel{background:#fffdf9;border:1px solid #e8dfd1;border-radius:10px;padding:24px;box-shadow:0 5px 16px rgba(20,35,50,.04)}.community-auth-panel h2{font-family:Amiri,serif;color:var(--navy);font-size:28px;margin:0 0 5px}.community-auth-panel p{color:#716b62;font-size:13px;line-height:1.8;margin:0 0 16px}.community-page-form{display:grid;gap:11px}.community-page-form label{display:grid;gap:5px;color:#5e5a54;font-size:12px}.community-page-form input{box-sizing:border-box;width:100%;border:1px solid #d8cdbb;background:#fff;color:#263746;border-radius:6px;padding:10px 11px;font:inherit}.community-page-form small{font-size:10px;color:#918a80;margin-top:-5px}.community-page-form .btn{justify-self:start}.text-action.standalone{display:inline-block;margin:0;text-decoration:none;font-size:11px}.community-forgot{grid-column:1/-1;max-width:none}.reset-panel{grid-column:1/-1}.reset-panel[hidden]{display:none}.community-auth .standalone{display:inline-block;margin:0;text-decoration:none}.community-auth small{color:#918a80;font-size:10px}.comment-locked a{color:#9b742c;text-decoration:none}.comment-locked a:hover{text-decoration:underline}
@media(max-width:800px){.member-cta{display:block;text-align:center}.member-cta-actions{justify-content:center;margin-top:14px}.community-auth-page-grid{grid-template-columns:1fr}.community-forgot,.reset-panel{grid-column:auto}}

/* V83 — compact site-wide email subscription in footer; WhatsApp/name UI intentionally hidden for now */
.footer-grid{grid-template-columns:minmax(300px,1.25fr) 1fr 1fr auto;gap:24px;align-items:center}
.footer-subscribe{min-width:0;text-align:right}
.footer-subscribe-text{font-family:"Noto Kufi Arabic",Arial,sans-serif;font-size:11px;color:#dce3e8;margin-bottom:6px;white-space:nowrap}
.footer-subscribe-form{display:flex;gap:6px;align-items:center;max-width:390px}
.footer-subscribe-form input{min-width:0;flex:1;width:150px;border:1px solid #607080;background:#f9f7f1;color:#1c3043;border-radius:5px;padding:6px 8px;font-family:inherit;font-size:10px;outline:none}
.footer-subscribe-form input:focus{border-color:#d1a14a;box-shadow:0 0 0 2px rgba(189,138,44,.15)}
.footer-subscribe-form button{border:1px solid #bd8a2c;background:#bd8a2c;color:#fff;border-radius:5px;padding:6px 9px;font-family:inherit;font-size:10px;cursor:pointer;white-space:nowrap}
.footer-subscribe-form button:hover{filter:brightness(1.06)}
.footer-subscribe-status{min-height:14px;margin-top:3px;font-size:9px;color:#d8b25f;line-height:1.5}
.footer-subscribe-status.error{color:#efaaa0}
.archive-footer-inner{text-align:center}
.archive-footer-inner .footer-subscribe{max-width:390px;margin:0 0 18px auto;text-align:right}
.archive-footer-inner .footer-subscribe-form{margin-right:0}
.archive-footer-brand strong{font-family:Amiri,serif;font-size:24px;color:#fff}
.archive-footer-brand small{display:block;font-family:"Noto Kufi Arabic",Arial,sans-serif;font-size:10px;color:#aebdc6;margin-top:5px}
@media(max-width:1000px){.footer-grid{grid-template-columns:1fr 1fr;gap:18px}.footer-subscribe{grid-column:1/-1;justify-self:stretch}.footer-subscribe-form{max-width:420px}.footer-subscribe-text{white-space:normal}}
@media(max-width:560px){.footer-grid{grid-template-columns:1fr;gap:18px}.footer-subscribe{grid-column:auto;text-align:center}.footer-subscribe-form{max-width:100%;margin:0 auto}.footer-subscribe-text{white-space:normal}.archive-footer-inner .footer-subscribe{margin:0 auto 18px;text-align:center}.archive-footer-inner .footer-subscribe-form{margin:0 auto}}

/* V84 — compact reader login/register controls in the header */
.header-auth-box{position:relative;flex:0 0 auto;direction:rtl;z-index:60}
.header-auth-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}
.header-auth-login,.header-auth-register{font-family:"Noto Kufi Arabic",Arial,sans-serif;font-size:10px;line-height:1.5;padding:7px 10px;border-radius:5px;cursor:pointer;text-decoration:none;transition:.15s}
.header-auth-login{border:1px solid #c7a15b;background:#fffaf0;color:#73531d}
.header-auth-login:hover{background:#f4ead7}
.header-auth-register{border:1px solid #bd8a2c;background:#bd8a2c;color:#fff}
.header-auth-register:hover{filter:brightness(1.06)}
.header-login-form{position:absolute;top:calc(100% + 8px);right:0;width:220px;background:#fffdf8;border:1px solid #ded2bf;border-radius:8px;padding:10px;box-shadow:0 10px 26px rgba(20,35,50,.16);display:grid;gap:6px}
.header-login-form[hidden]{display:none}
.header-login-form input{box-sizing:border-box;width:100%;border:1px solid #d8cdbb;background:#fff;color:#263746;border-radius:5px;padding:7px 8px;font:inherit;font-size:10px;outline:none}
.header-login-form input:focus{border-color:#bd8a2c;box-shadow:0 0 0 2px rgba(189,138,44,.12)}
.header-login-form button{border:1px solid #bd8a2c;background:#bd8a2c;color:#fff;border-radius:5px;padding:6px 10px;font-family:inherit;font-size:10px;cursor:pointer}
.header-login-form>a{color:#9b742c;font-size:9px;text-decoration:none}
.header-login-form>a:hover{text-decoration:underline}
.header-login-status{min-height:14px;font-size:9px;color:#9b742c;line-height:1.5}
.header-login-status.error{color:#a4574e}
@media(max-width:900px){.header-inner{position:relative}.header-auth-box{margin-right:auto}.header-auth-actions{gap:4px}.header-auth-login,.header-auth-register{padding:6px 7px;font-size:9px}.header-login-form{right:0;width:215px}.archive-page .header-auth-box{margin-right:0}}
@media(max-width:560px){.header-auth-actions{gap:3px}.header-auth-login,.header-auth-register{padding:5px 6px;font-size:8px}.header-login-form{width:205px}}

/* V90 — ضبط صورة الكاتب وفق المرجع المرفق: هامش علوي يقارب 11%، ومسافة أسفل اليدين تقارب 8% من ارتفاع المشهد. */
@media(min-width:1101px){
  .hero-live-person{
    width:min(40vw,820px);
    left:4.5%;
    bottom:8%;
  }
}
@media(min-width:901px) and (max-width:1100px){
  .hero-live-person{
    width:min(44vw,650px);
    left:2%;
    bottom:8%;
  }
}

/* V93 — إزاحة أفقية مؤكدة لصورة الكاتب. مقدار الحركة يساوي تقريبًا 15% من عرض الصورة، مع إبقائها بوضوح إلى يسار المنتصف. */
@media(min-width:1101px){
  .hero-live-person{
    left:calc(4.5% + 123px) !important;
    transform:none !important;
  }
}
@media(min-width:901px) and (max-width:1100px){
  .hero-live-person{
    left:calc(2% + 98px) !important;
    transform:none !important;
  }
}


/* V94 — موضع أفقي مباشر لصورة الكاتب: نقلها إلى اليمين دون توسيطها. */
@media(min-width:1101px){
  .hero-live-person{left:10.5% !important;right:auto !important;transform:none !important;}
}
@media(min-width:901px) and (max-width:1100px){
  .hero-live-person{left:8% !important;right:auto !important;transform:none !important;}
}


/* V95 — إزاحة أفقية فعلية على شاشة سطح المكتب. أزيل الاعتماد على left وحده، ونستخدم translateX واضحًا بمقدار يقارب 15% من عرض صورة الكاتب. */
@media(min-width:1101px){
  .hero-live-person{transform:translateX(115px) !important;}
}
@media(min-width:901px) and (max-width:1100px){
  .hero-live-person{transform:translateX(95px) !important;}
}

/* V127 — اخترت لك .. */
.choice-section{padding:34px 0 28px;background:var(--paper)}
.choice-card{position:relative;max-width:900px;margin:0 auto;padding:28px 34px 30px;background:#fffdf9;border:1px solid #e8decd;border-radius:10px;box-shadow:0 7px 20px rgba(20,35,50,.055);text-align:right}
.choice-label{font-family:Amiri,serif;font-size:34px;color:var(--navy);margin:0 0 5px;text-align:center}
.choice-note{text-align:center;color:#8b806f;font-size:12px;line-height:1.8;margin:0 0 20px}
.choice-title{font-family:Amiri,serif;font-size:31px;line-height:1.45;color:var(--navy);margin:0 0 14px}
.choice-excerpt{font-family:Amiri,serif;font-size:20px;line-height:2.05;color:#3f3a34;margin:0 0 18px;white-space:pre-line}
.choice-read{display:inline-block;color:#9a762b;font-size:13px;text-decoration:none;border-bottom:1px solid rgba(154,118,43,.35);padding-bottom:3px}
.choice-read:hover{color:var(--navy)}
.choice-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.choice-again{border:0;background:none;color:var(--navy);font-family:inherit;font-size:13px;cursor:pointer;padding:4px 0;border-bottom:1px solid rgba(20,35,50,.25)}
.choice-again:hover{color:#9a762b;border-bottom-color:rgba(154,118,43,.4)}
.topic-reader-section{padding:4px 0 32px;background:var(--paper)}
.topic-reader-card{max-width:900px;margin:0 auto;padding:30px 34px 32px;background:#fffdf9;border:1px solid #e8decd;border-radius:10px;box-shadow:0 7px 20px rgba(20,35,50,.055);text-align:right}
.topic-reader-label{font-family:Amiri,serif;font-size:34px;color:var(--navy);margin:0 0 5px;text-align:center}
.topic-reader-note{text-align:center;color:#8b806f;font-size:12px;line-height:1.8;margin:0 0 20px}
.topic-reader-form{display:flex;gap:10px;max-width:720px;margin:0 auto}
.topic-reader-form input{flex:1;min-width:0;border:1px solid #d9cdbb;background:#fff;font-family:inherit;font-size:15px;color:var(--navy);padding:12px 15px;border-radius:6px;outline:none}
.topic-reader-form input:focus{border-color:#9a762b;box-shadow:0 0 0 2px rgba(154,118,43,.08)}
.topic-reader-form button{border:1px solid var(--navy);background:var(--navy);color:#fff;font-family:inherit;font-size:13px;padding:0 22px;border-radius:6px;cursor:pointer}
.topic-reader-form button:hover{background:#9a762b;border-color:#9a762b}
.topic-reader-result{max-width:720px;margin:22px auto 0;padding-top:20px;border-top:1px solid #eee5d8}
.topic-reader-query{font-size:12px;color:#8b806f;margin-bottom:7px}
.topic-reader-result h3{font-family:Amiri,serif;font-size:29px;line-height:1.45;color:var(--navy);margin:0 0 10px}
.topic-reader-result p{font-family:Amiri,serif;font-size:19px;line-height:2;color:#3f3a34;margin:0 0 15px;white-space:pre-line}
.topic-reader-link{display:inline-block;color:#9a762b;font-size:13px;text-decoration:none;border-bottom:1px solid rgba(154,118,43,.35);padding-bottom:3px}
.topic-reader-again{margin-right:18px;border:0;background:none;color:var(--navy);font-family:inherit;font-size:13px;cursor:pointer;padding:4px 0;border-bottom:1px solid rgba(20,35,50,.25)}
.topic-reader-again:hover{color:#9a762b;border-bottom-color:rgba(154,118,43,.4)}
.topic-reader-empty{text-align:center;color:#786f63;font-size:13px;margin:0}
@media(max-width:560px){.topic-reader-form{flex-direction:column}.topic-reader-form button{min-height:44px}.topic-reader-card{padding:24px 18px}.topic-reader-label{font-size:30px}.topic-reader-result h3{font-size:27px}.topic-reader-result p{font-size:18px;line-height:1.95}
.choice-section{padding:24px 0}.choice-card{padding:22px 18px}.choice-label{font-size:30px}.choice-title{font-size:27px}.choice-excerpt{font-size:18px;line-height:1.95}}

.mood-reader-section{padding:4px 0 34px;background:var(--paper)}
.mood-reader-card{max-width:900px;margin:0 auto;padding:30px 34px 32px;background:#fffdf9;border:1px solid #e8decd;border-radius:10px;box-shadow:0 7px 20px rgba(20,35,50,.055);text-align:center}
.mood-reader-label{font-family:Amiri,serif;font-size:34px;color:var(--navy);margin:0 0 5px}
.mood-reader-note{color:#8b806f;font-size:12px;line-height:1.8;margin:0 0 21px}
.mood-reader-options{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
.mood-option{border:1px solid #d9cdbb;background:#fff;color:var(--navy);font-family:inherit;font-size:14px;padding:11px 16px;border-radius:22px;cursor:pointer;transition:.18s ease}
.mood-option:hover,.mood-option.is-selected{border-color:#9a762b;background:#f8f1e4;transform:translateY(-1px)}
.mood-reader-result{max-width:720px;margin:22px auto 0;padding-top:20px;border-top:1px solid #eee5d8;text-align:right}
.mood-reader-query{font-size:12px;color:#8b806f;margin-bottom:7px}
.mood-reader-result h3{font-family:Amiri,serif;font-size:29px;line-height:1.45;color:var(--navy);margin:0 0 10px}
.mood-reader-result p{font-family:Amiri,serif;font-size:19px;line-height:2;color:#3f3a34;margin:0 0 15px}
.mood-reader-link{display:inline-block;color:#9a762b;font-size:13px;text-decoration:none;border-bottom:1px solid rgba(154,118,43,.35);padding-bottom:3px}
.mood-reader-again{margin-right:18px;border:0;background:none;color:var(--navy);font-family:inherit;font-size:13px;cursor:pointer;padding:4px 0;border-bottom:1px solid rgba(20,35,50,.25)}
.mood-reader-again:hover{color:#9a762b;border-bottom-color:rgba(154,118,43,.4)}
.mood-reader-empty{text-align:center;color:#786f63;font-size:13px;margin:0}
@media(max-width:560px){.mood-reader-card{padding:24px 18px}.mood-reader-label{font-size:30px}.mood-option{font-size:13px;padding:10px 13px}.mood-reader-result h3{font-size:27px}.mood-reader-result p{font-size:18px;line-height:1.95}}

/* V135: book sample reader */
.book-preview-btn{display:inline-block;margin-top:13px;background:var(--gold);color:#fff;padding:9px 18px;border-radius:6px;font-size:13px;box-shadow:0 4px 10px rgba(0,0,0,.10);transition:filter .15s ease,transform .15s ease}.book-preview-btn:hover{filter:brightness(1.07);transform:translateY(-1px)}
.reader-hero{height:175px}.reader-section{padding-top:28px}.reader-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.reader-back{color:var(--gold);font-size:14px}.reader-meta{display:flex;align-items:center;gap:14px;font-family:Amiri,serif;font-size:20px}.reader-meta span{font-family:"Noto Kufi Arabic",Arial,sans-serif;font-size:11px;color:#8b8478;background:#e8d8b9;padding:3px 10px;border-radius:15px}.pdf-reader{background:#ded8cc;border:1px solid #d3c9b8;border-radius:10px;overflow:hidden;box-shadow:0 10px 28px rgba(60,45,25,.12)}.pdf-toolbar{background:var(--navy);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;direction:ltr}.pdf-nav,.pdf-zoom{display:flex;align-items:center;gap:7px}.pdf-toolbar button{font:inherit;font-size:12px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;border-radius:5px;padding:6px 10px;cursor:pointer}.pdf-toolbar button:hover:not(:disabled){background:rgba(255,255,255,.16)}.pdf-toolbar button:disabled{opacity:.4;cursor:not-allowed}.page-control{display:flex;align-items:center;gap:5px;font-size:11px;direction:rtl}.page-control input{width:52px;text-align:center;background:#fff;color:var(--ink);border:0;border-radius:4px;padding:6px;font:inherit}.pdf-stage{min-height:620px;display:flex;justify-content:center;align-items:flex-start;overflow:auto;padding:22px;background:#bdb6aa;direction:ltr}.pdf-stage canvas{display:block;background:#fff;box-shadow:0 5px 18px rgba(0,0,0,.20);max-width:none}.pdf-loading{color:#fff;background:rgba(16,43,70,.85);padding:12px 20px;border-radius:7px;align-self:center;font-size:13px}.pdf-hint{text-align:center;background:#f7f1e5;color:#716b61;font-size:11px;padding:9px 12px}.reader-page #pdfReader:fullscreen{width:100vw;height:100vh;border-radius:0;display:flex;flex-direction:column}.reader-page #pdfReader:fullscreen .pdf-stage{flex:1;min-height:0}.reader-page #pdfReader:fullscreen .pdf-hint{display:none}
@media(max-width:700px){.reader-topbar{align-items:flex-start;flex-direction:column}.pdf-toolbar{flex-wrap:wrap;justify-content:center}.pdf-stage{min-height:480px;padding:12px}.pdf-zoom button:nth-last-child(-n+2){display:none}.reader-hero{height:165px}.reader-meta{font-size:18px}}
/* V137: local page-image reader fallback; no external PDF viewer dependency */
.pdf-stage #bookPageImage{display:block;background:#fff;box-shadow:0 5px 18px rgba(0,0,0,.20);max-width:none;user-select:none;-webkit-user-drag:none}
