*{box-sizing:border-box}
:root{--ink:#231b24;--soft:#6b6070;--accent:#7a2e5c;--gold:#d9a441;--line:#eadfe3;--serif:Georgia,'Times New Roman',serif;--sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif}
html,body{margin:0}
body{background:#faf7f5;color:var(--ink);font-family:var(--sans);line-height:1.5}
a{color:inherit;text-decoration:none}
.head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 20px;background:#fff;border-bottom:1px solid var(--line)}
.logo{display:flex;align-items:center;gap:10px;font-family:var(--serif);font-size:22px;letter-spacing:-.02em}
.mark{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,var(--accent),#b0476f);color:#fff;font-size:18px}
.head nav{display:flex;gap:4px 16px;flex-wrap:wrap}
.head nav a{color:var(--soft);font-size:14px;padding:10px 0;min-height:44px;display:inline-flex;align-items:center}
.head nav a:hover{color:var(--accent)}
.main{padding:20px;max-width:1100px;margin:0 auto}
.hero{position:relative;border-radius:20px;overflow:hidden;background:#2a1020;color:#fff;min-height:300px}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 25%;opacity:.85}
.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(25,8,20,.9) 8%,rgba(25,8,20,.15))}
.hero-in{position:relative;z-index:1;padding:28px 22px;max-width:560px}
.pill{display:inline-block;background:var(--gold);color:#3b2506;font-size:12px;font-weight:600;padding:4px 10px;border-radius:99px}
.hero h1{font-family:var(--serif);font-weight:400;font-size:34px;line-height:1.1;margin:12px 0;letter-spacing:-.02em}
.hero p{font-size:14px;line-height:22px;margin:0 0 18px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.actions{display:flex;flex-wrap:wrap;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 22px;border-radius:99px;background:var(--accent);color:#fff;font-weight:600;font-size:14px;border:0;cursor:pointer}
.btn.ghost{background:transparent;color:inherit;box-shadow:inset 0 0 0 1.5px currentColor}
.btn.light{background:#fff;color:var(--accent)}
.hero .btn.ghost{color:#fff}
h2{font-family:var(--serif);font-weight:400;font-size:24px;letter-spacing:-.02em;margin:34px 0 14px}
h2 a:hover{color:var(--accent)}
.strip{display:flex;gap:14px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x proximity}
.card{flex:0 0 140px;scroll-snap-align:start}
.card-t{font-weight:600;font-size:14px;line-height:20px;margin-top:8px}
.card-m{font-size:12px;color:var(--soft);margin-top:2px}
.cover{position:relative;aspect-ratio:2/3;border-radius:10px;overflow:hidden;background:#2a1020;box-shadow:0 6px 16px rgba(60,20,50,.22)}
.cover img{width:100%;height:100%;object-fit:cover;display:block}
.shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(10,4,12,.88) 0%,rgba(10,4,12,0) 48%)}
.ctitle{position:absolute;left:8px;right:8px;bottom:8px;color:#fff;font-family:var(--serif);font-size:15px;line-height:1.12;text-align:center;text-shadow:0 2px 6px rgba(0,0,0,.6)}
.cover.sm{width:96px;flex:0 0 96px}
.cover.lg{width:190px;margin:0 auto 20px}.cover.lg .ctitle{font-size:19px}
.grid{display:grid;gap:14px;grid-template-columns:1fr}
.row{display:flex;gap:14px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px}
.row-b{min-width:0}.row-t{font-weight:600;font-size:16px;line-height:22px}
.row-m{font-size:13px;color:var(--soft);margin-top:2px}
.row-p{font-size:13px;line-height:20px;color:#4a3f4d;margin:8px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tag{font-size:12px;padding:3px 10px;border-radius:99px;background:#f3e8ee;color:var(--accent)}
.crumbs{font-size:13px;color:var(--soft);padding:10px 0}.crumbs a{color:var(--accent)}
.book h1,.bt{font-family:var(--serif);font-weight:400;font-size:32px;line-height:1.1;letter-spacing:-.02em;margin:0 0 6px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0;padding:12px 0;border-block:1px solid var(--line);text-align:center}
.stats b{display:block;font-size:16px}.stats span{font-size:12px;color:var(--soft)}
.blurb{font-size:15px;line-height:25px;margin:16px 0 20px}
.chapters{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.chap{display:flex;align-items:center;gap:14px;min-height:56px;padding:0 16px;border-bottom:1px solid var(--line)}
.chap:last-child{border-bottom:0}.chap:hover{background:#fbf5f8}
.cn{width:30px;height:30px;border-radius:50%;background:#f3e8ee;color:var(--accent);display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:13px;flex:0 0 30px}
.ct{flex:1;font-weight:500}.cg{color:var(--accent);font-size:13px;font-weight:600}
.pt{font-family:var(--serif);font-weight:400;font-size:34px;letter-spacing:-.02em;margin:10px 0}
.lead{color:var(--soft);margin:0 0 18px}
.reader{background:#fffdf8;border:1px solid var(--line);border-radius:16px;padding:4px 18px 24px}
.reader.is-dark{background:#17131a;color:#e8e0ea;border-color:#17131a}
.reader.is-dark .back,.reader.is-dark .kicker{color:var(--gold)}
.reader.is-dark .btn.ghost{color:#e8e0ea}
.tools{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.back{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-weight:600;font-size:14px}
.tb{display:flex;gap:6px}
.tb button{min-width:44px;min-height:44px;border-radius:10px;border:1px solid var(--line);background:transparent;color:inherit;font:inherit;font-size:14px;cursor:pointer}
.article{max-width:640px;margin:8px auto 0;font-family:var(--serif);font-size:19px;line-height:1.75}
.article p{margin:0 0 1.1em}
.kicker{font-family:var(--sans);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:600}
.ch{font-family:var(--serif);font-weight:400;font-size:30px;line-height:1.15;margin:6px 0 22px;letter-spacing:-.02em}
.end{text-align:center;color:var(--soft);font-size:13px;font-family:var(--sans);margin-top:24px}
.pager{display:flex;justify-content:space-between;gap:10px;max-width:640px;margin:16px auto 0}
.foot{text-align:center;color:var(--soft);font-size:13px;padding:28px 20px 36px}.foot-links{margin-top:8px}.foot-links a{color:var(--accent)}
@media(min-width:768px){
.main{padding:28px 32px}.hero-in{padding:56px 48px}.hero h1{font-size:48px}.card{flex-basis:170px}
.grid{grid-template-columns:1fr 1fr}
.book{display:grid;grid-template-columns:220px 1fr;gap:32px}.cover.lg{width:220px;margin:0}.book h1,.bt{font-size:42px}
.reader{padding:8px 40px 40px}}

/* Arabic edition */
.lang{font-size:13px;font-weight:600;padding:5px 12px;border:1px solid rgba(0,0,0,.14);border-radius:999px;margin-inline-start:10px}
[dir="rtl"] body{font-family:"Noto Naskh Arabic","Amiri","Segoe UI",Tahoma,Georgia,serif}
[dir="rtl"] .article p{line-height:2.15}
[dir="rtl"] .article,[dir="rtl"] .blurb,[dir="rtl"] .row-p{text-align:right}
[dir="rtl"] .kicker,[dir="rtl"] .card-m,[dir="rtl"] .row-m{letter-spacing:0}
[dir="rtl"] .ctitle{direction:rtl}
[dir="rtl"] .hero-in{text-align:right}

/* Banner carousel */
.carousel{position:relative;border-radius:22px;overflow:hidden;aspect-ratio:21/9;background:#1a1226;margin:0 0 8px}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .7s ease;pointer-events:none;display:block;color:#fff;text-decoration:none}
.slide.on{opacity:1;pointer-events:auto}
.slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.slide::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,8,25,.78) 0%,rgba(15,8,25,.45) 38%,rgba(15,8,25,0) 62%)}
.slide-in{position:absolute;z-index:2;inset-block:0;inset-inline-start:5%;width:46%;display:flex;flex-direction:column;justify-content:center;gap:12px}
.slide-t{font-family:Georgia,"Times New Roman",serif;font-size:clamp(26px,4.4vw,56px);line-height:1.05;text-shadow:0 2px 18px rgba(0,0,0,.55);letter-spacing:.01em}
.slide-s{font-size:clamp(13px,1.5vw,18px);opacity:.92;max-width:34em}
.slide-in .btn{align-self:flex-start;margin-top:6px}
.cbtn{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:0;background:rgba(0,0,0,.38);color:#fff;font-size:26px;cursor:pointer;line-height:1}
.cbtn.prev{left:12px}.cbtn.next{right:12px}
.dots{position:absolute;z-index:3;bottom:12px;left:0;right:0;display:flex;justify-content:center;gap:8px}
.dot{width:9px;height:9px;border-radius:99px;border:0;background:rgba(255,255,255,.45);padding:0;cursor:pointer}
.dot.on{background:#fff;width:24px}
[dir="rtl"] .slide img{transform:scaleX(-1)}
[dir="rtl"] .slide::after{background:linear-gradient(270deg,rgba(15,8,25,.78) 0%,rgba(15,8,25,.45) 38%,rgba(15,8,25,0) 62%)}
[dir="rtl"] .slide-in .btn{align-self:flex-start}
@media(max-width:640px){.carousel{aspect-ratio:4/3}.slide-in{width:90%;inset-inline-start:5%;justify-content:flex-end;padding-bottom:34px}.slide::after{background:linear-gradient(0deg,rgba(15,8,25,.85) 0%,rgba(15,8,25,.2) 60%,rgba(15,8,25,0) 100%)}[dir="rtl"] .slide::after{background:linear-gradient(0deg,rgba(15,8,25,.85) 0%,rgba(15,8,25,.2) 60%,rgba(15,8,25,0) 100%)}.cbtn{display:none}}
.slide-in .pill{align-self:flex-start;width:auto}
nav .lang{display:inline-block;width:auto;height:auto;white-space:nowrap;padding:6px 14px;border-radius:999px;line-height:1.2}
.head nav a.lang{padding:0 14px;min-height:34px;align-self:center;display:inline-flex;align-items:center;border:1px solid rgba(0,0,0,.18);border-radius:999px;white-space:nowrap}
/* Nav pills + overflow guard */
html,body{overflow-x:hidden;max-width:100%}
.main{width:100%;min-width:0}
.carousel{width:100%;max-width:100%}
.head{flex-direction:column;align-items:stretch;gap:10px;padding:12px 20px 10px;position:sticky;top:0;z-index:50}
.head .logo{align-self:flex-start}
.head nav{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:0}
.head nav a{color:#4a3f50;font-size:13.5px;font-weight:500;padding:0 16px;min-height:36px;display:inline-flex;align-items:center;border-radius:999px;background:#f4eef1;border:1px solid transparent;transition:background .18s,color .18s,border-color .18s,transform .18s,box-shadow .18s}
.head nav a:hover{background:#fff;color:var(--accent);border-color:var(--accent);transform:translateY(-1px);box-shadow:0 3px 10px rgba(122,46,92,.15)}
.head nav a.active,.head nav a[aria-current="page"]{background:linear-gradient(135deg,var(--accent),#b0476f);color:#fff;border-color:transparent;box-shadow:0 3px 10px rgba(122,46,92,.3)}
.head nav a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.head nav a.lang{background:#fff;color:var(--accent);border:1.5px solid var(--accent);font-weight:600;margin-inline-start:auto;padding:0 18px}
.head nav a.lang:hover{background:var(--accent);color:#fff}
@media(max-width:640px){
 .head{padding:10px 14px 8px;gap:8px}
 .head nav{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -14px;padding:2px 14px 4px;scroll-snap-type:x proximity}
 .head nav::-webkit-scrollbar{display:none}
 .head nav a{flex:0 0 auto;scroll-snap-align:start;min-height:38px}
 .head nav a.lang{margin-inline-start:0;order:-1}
 .main{padding:14px}
 .carousel{border-radius:16px}
}
.head nav a.active{transition:none;color:#fff}
.acct{display:inline-flex;align-items:center;gap:8px;margin-inline-start:8px}
.acct-btn{min-height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--accent);background:#fff;color:var(--accent);font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.acct-btn:hover{background:var(--accent);color:#fff}
.head nav a.acct-lib{padding:0;min-height:34px;color:var(--accent);font-weight:600}
.acct-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
.acct-note{color:var(--soft);font-size:14px;margin:6px 0}
.cmts{max-width:720px;margin:28px auto;padding:0 16px}
.cmt-form textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid var(--line);border-radius:12px;font:inherit;margin-bottom:10px;resize:vertical}
.cmt{border-top:1px solid var(--line);padding:12px 0}
.cmt-h{display:flex;gap:10px;align-items:center;font-size:14px}
.cmt-d{color:var(--soft);font-size:12px}
.cmt p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.cmt-x{margin-inline-start:auto;background:none;border:0;color:var(--soft);font-size:12px;cursor:pointer;text-decoration:underline}
.lib-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}
.lib-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.lib-card img{width:100%;aspect-ratio:2/3;object-fit:cover;display:block}
.lib-b{padding:10px;display:flex;flex-direction:column;gap:6px}
.lib-t{font-weight:600;font-size:14px}.lib-p{font-size:12px;color:var(--soft)}
@media(max-width:700px){.acct{margin:0}}
.acct-menu{position:relative}
.acct-sum{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:2px 12px 2px 3px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:13px;font-weight:600;color:var(--ink)}
.acct-sum::-webkit-details-marker{display:none}
.acct-av{width:28px;height:28px;border-radius:50%;object-fit:cover;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
.acct-pop{position:absolute;inset-inline-end:0;top:40px;min-width:170px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:6px;z-index:60;display:flex;flex-direction:column}
.acct-pop a,.acct-pop button{padding:10px 12px;text-align:start;background:none;border:0;font:inherit;font-size:14px;color:var(--ink);border-radius:8px;cursor:pointer;min-height:40px;display:flex;align-items:center}
.acct-pop a:hover,.acct-pop button:hover{background:#f6eef2;color:var(--accent)}
.prof-top{display:flex;align-items:center;gap:16px;margin:8px 0 18px}
.prof-av{width:72px;height:72px;border-radius:50%;object-fit:cover}
.prof-top h1{margin:0}
.prof-last{flex-direction:row;max-width:420px}.prof-last img{width:110px;aspect-ratio:2/3;object-fit:cover}
.hist-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.hist-row{display:flex;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);color:var(--ink);font-size:14px}
.hist-row:last-child{border-bottom:0}.hist-row:hover{background:#f6eef2}
.hist-t{font-weight:600;flex:1}.hist-c{color:var(--accent)}.hist-d{color:var(--soft);font-size:12px}
a.lib-card{color:inherit}

/* Library menu + search */
.head nav{flex-wrap:wrap!important;overflow:visible!important;gap:8px!important;margin:0!important;padding:0!important;align-items:center}
.head nav a.lang{order:0!important;margin-inline-start:auto!important}
.libm{position:relative}
.libm summary{list-style:none;cursor:pointer;min-height:38px;padding:0 18px;display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:linear-gradient(135deg,var(--accent),#b0476f);color:#fff;font-weight:600;font-size:14px;box-shadow:0 3px 10px rgba(122,46,92,.3);user-select:none}
.libm summary::-webkit-details-marker{display:none}
.libm summary::after{content:"";width:7px;height:7px;border-inline-end:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg) translateY(-2px)}
.libm[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.libm-list{position:absolute;top:calc(100% + 8px);inset-inline-start:0;z-index:60;width:min(560px,calc(100vw - 28px));max-height:70vh;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 40px rgba(60,20,50,.22)}
.head nav .libm-list a{flex:none;background:#f4eef1;min-height:40px;padding:0 12px;border-radius:10px;font-size:14px}
.srch{position:relative;flex:1 1 180px;max-width:360px;min-width:140px}
.srch input{width:100%;min-height:38px;padding:0 16px;border:1.5px solid var(--line);border-radius:999px;background:#fff;font:inherit;font-size:14px;color:inherit;box-sizing:border-box}
.srch input:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--accent)}
.srch-res{position:absolute;top:calc(100% + 6px);inset-inline-start:0;inset-inline-end:0;z-index:60;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 40px rgba(60,20,50,.22);overflow:hidden}
.head nav .srch-res a{display:block;background:none;border-radius:0;min-height:42px;padding:10px 14px;font-size:14px;border-bottom:1px solid #f0e8ec;border-top:0;box-shadow:none;transform:none}
.srch-none{padding:12px 14px;color:var(--soft);font-size:14px}
@media(max-width:640px){.srch{flex:1 1 100px;min-width:0}.head nav a.lang{margin-inline-start:0!important}.libm summary{padding:0 14px}}
@media(max-width:640px){.head nav .acct{flex:1 1 100%;margin:0}.srch{flex:1 1 120px}}

/* ===== Cake-style redesign: cream + chocolate ===== */
:root{--ink:#2e1710;--soft:#7a6154;--accent:#3a2018;--gold:#b98a5a;--line:#e6d6c6;--cream:#f7efe6;--choc:#2e1710;--serif:'Playfair Display',Didot,'Bodoni MT',Georgia,'Times New Roman',serif}
body{background:var(--cream)}
.head{background:var(--cream);border-bottom:1px solid var(--line);padding:10px 18px}
.mark{background:var(--choc)!important;border-radius:50%}
.logo{font-size:21px;letter-spacing:.06em;text-transform:uppercase}
.btn{background:var(--choc)!important;color:#f7efe6!important}
.btn.light{background:#fff!important;color:var(--choc)!important}
.libm summary{background:none!important;color:var(--ink)!important;border:1px solid var(--line);font-size:13px;letter-spacing:.08em;text-transform:uppercase;box-shadow:none!important}
.libm summary::after{border-color:var(--ink)!important}
.libm-list{background:#fffaf4}.head nav .libm-list a{background:#f3e7da}
.head nav .nl{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);padding:0 4px}
.srch-btn{width:40px;height:40px;border-radius:50%;border:0;background:none;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.head nav .srch{display:none}.head nav .srch.open{display:block;flex:1 1 100%;max-width:none;order:20}
.tag{background:#efe1d2;color:var(--choc)}
.head nav .acct{margin-inline-start:0}
.rd{margin:-20px -20px 0}
.eyb{font-size:12px;letter-spacing:.28em;text-transform:uppercase;color:var(--soft)}.eyb.l{color:#d9bfa5}
.rhero{display:grid;grid-template-columns:1fr;gap:18px;padding:30px 20px 36px;background:radial-gradient(120% 90% at 70% 20%,#fbf4ea,#ecdcc9);position:relative}
.rhero h1{font-family:var(--serif);font-weight:400;font-size:clamp(34px,9vw,60px);line-height:1.02;margin:10px 0 12px;text-transform:uppercase;letter-spacing:.01em}
.rhero p{max-width:420px;color:var(--soft);margin:0 0 18px}
.rbtns{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.scrl{display:inline-flex;align-items:center;gap:10px;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--ink)}
.scrl span{width:44px;height:44px;border:1px solid var(--ink);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:18px}
.rhero-img{display:block;position:relative;justify-self:center;width:min(58vw,260px);margin:6px 0 14px}
.rhero-img img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:12px;box-shadow:0 26px 44px rgba(46,23,16,.38);position:relative;z-index:1}
.ped{position:absolute;left:-14%;right:-14%;bottom:-16px;height:26px;border-radius:50%;background:linear-gradient(#f2e8dd,#cdbba8);box-shadow:0 10px 20px rgba(46,23,16,.25)}
.rside{display:flex;flex-direction:column;gap:10px;align-items:stretch;max-width:300px}
.rs{display:flex;align-items:center;gap:12px;padding:6px 14px 6px 6px;border-radius:999px;background:rgba(255,255,255,.55);font-size:13px;color:var(--ink)}
.rs.on{background:#fff;box-shadow:0 6px 16px rgba(46,23,16,.12)}
.rs img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none}
.rs span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wave{display:block;width:100%;height:46px;margin-top:-1px;background:#ecdcc9}
.mood{background:var(--choc);color:#f7efe6;padding:8px 20px 30px;margin-top:-1px}
.mood-h h2{font-family:var(--serif);font-weight:400;font-size:48px;letter-spacing:.03em;margin:4px 0 6px;color:#f7efe6}
.mood-h p{color:#d9bfa5;font-size:14px;margin:0 0 18px}
.mood-cards{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:none}
.mc{flex:none;width:128px;height:168px;border-radius:64px 64px 18px 18px;background:#f1e4d5;color:var(--choc);border:2px solid transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;font:inherit;cursor:pointer;padding:10px}
.mc.on{background:#3d2318;color:#f7efe6;border-color:#d9bfa5}
.mi{width:56px;height:56px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:28px}
.ml{font-size:12px;letter-spacing:.1em;text-transform:uppercase;text-align:center;line-height:1.3}
.mrow,.pop{padding:26px 20px 4px}
.rowh{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.rowh h3{font-family:var(--serif);font-weight:400;font-size:26px;margin:0}
.arrs{display:flex;gap:8px}
.ar-b{width:40px;height:40px;border-radius:50%;border:1px solid var(--ink);background:none;color:var(--ink);font-size:22px;cursor:pointer;line-height:1}
.hs{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:10px;scrollbar-width:none}
.hs::-webkit-scrollbar,.mood-cards::-webkit-scrollbar{display:none}
.pc{flex:none;width:128px;scroll-snap-align:start;color:var(--ink)}
.pc .cover{aspect-ratio:2/3;border-radius:12px;overflow:hidden;box-shadow:0 8px 18px rgba(46,23,16,.22)}
.pc .cover img{width:100%;height:100%;object-fit:cover;display:block}
.pc-t{font-family:var(--serif);font-size:14px;line-height:1.2;margin-top:8px}.pc-m{font-size:11px;color:var(--soft);margin-top:2px}
.month{display:grid;gap:20px;padding:34px 20px;margin-top:20px;background:linear-gradient(#f3e7da,#ecdcc9);align-items:center}
.month-img{justify-self:center;width:min(60vw,240px)}.month-img img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:12px;box-shadow:0 22px 40px rgba(46,23,16,.35)}
.month h2{font-family:var(--serif);font-weight:400;font-size:34px;text-transform:uppercase;line-height:1.05;margin:8px 0}
.mtag{font-size:13px;color:var(--soft);margin-bottom:10px}.month p{color:var(--soft);margin:0 0 18px}
.cta{background:var(--choc);color:#f7efe6;text-align:center;padding:48px 20px}
.cta h2{font-family:var(--serif);font-weight:400;font-size:30px;text-transform:uppercase;margin:10px 0 20px;color:#f7efe6}
.btn.ol{background:none!important;border:1px solid #d9bfa5;color:#f7efe6!important}
@media(min-width:760px){.rhero{grid-template-columns:1.1fr 1fr 220px;align-items:center;padding:50px 40px}.rhero-img{width:100%;max-width:300px}.month{grid-template-columns:320px 1fr;padding:50px 60px}.mrow,.pop{padding-inline:40px}.mood{padding-inline:40px}.pc{width:160px}.mc{width:150px}}
[dir=rtl] .rhero h1,.rd[data-ar] h1,.rd[data-ar] .eyb{letter-spacing:0}
.head nav a.nl,.head nav a.lang{background:none!important;border:0!important;box-shadow:none!important;padding:0 6px!important;color:var(--ink)!important;white-space:nowrap}
.head nav a.lang{margin-inline-start:0!important;font-size:13px}
.head nav{gap:2px 8px!important}

/* full-width home */
.main:has(.rd){max-width:none;padding:0}
.rd{margin:0}
@media(min-width:900px){
.rhero{grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr) 340px;gap:0;min-height:720px;padding:60px 5vw 70px;align-items:center}
.rhero-txt{position:relative;z-index:3;margin-inline-end:-150px}
.rhero h1{font-size:clamp(60px,6.4vw,110px);line-height:.98;text-shadow:0 2px 18px rgba(247,239,230,.85)}
.rhero p{font-size:18px;max-width:480px;color:#5b4337}
.rhero-img{width:100%;max-width:470px;justify-self:center;z-index:1}
.rhero-img img{border-radius:18px;box-shadow:0 40px 70px rgba(46,23,16,.45)}
.ped{bottom:-24px;height:36px}
.rside{max-width:none;gap:16px;z-index:2;margin-inline-start:40px}
.rs{padding:9px 22px 9px 9px;font-size:17px;gap:16px}
.rs img{width:68px;height:68px}
.mood,.mrow,.pop{padding-inline:5vw}
.mood{display:grid;grid-template-columns:260px 1fr;align-items:center;gap:30px;padding-block:30px 40px}
.mood-h h2{font-size:72px}
.mood-cards{gap:20px}.mc{width:190px;height:240px}.mi{width:76px;height:76px;font-size:38px}.ml{font-size:14px}
.pc{width:190px}.pc-t{font-size:16px}.rowh h3{font-size:34px}
.month{grid-template-columns:420px 1fr;gap:60px;padding:70px 8vw}.month h2{font-size:56px}.month p{font-size:18px;max-width:620px}
.cta{padding:80px 20px}.cta h2{font-size:48px}
}
[dir=rtl] .rhero-txt,.rd[data-ar] .rhero-txt{margin-inline-end:-150px}
.mc.all{background:transparent;color:#f7efe6;border:2px dashed #d9bfa5}
.mc.all.on{background:#3d2318}
.gpanel{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.gpanel[hidden]{display:none}
.gpanel a{padding:10px 18px;border-radius:999px;background:#f1e4d5;color:var(--choc);font-size:14px;letter-spacing:.04em}
.gpanel a:hover{background:#fff}
@media(min-width:900px){.mood{grid-template-columns:260px 1fr}.gpanel{grid-column:2}}
/* v4 full width, no :has needed */
html,body{width:100%;max-width:100%;overflow-x:hidden}
.main.wide{max-width:none!important;width:100%;padding:0!important;margin:0!important}
.rd{width:100%;max-width:none;margin:0}
.rhero,.mood,.mrow,.pop,.month,.cta{width:100%;box-sizing:border-box}
.head{width:100%;box-sizing:border-box}
/* v5 header */
.nlinks,.nr{display:contents}
@media(min-width:900px){
.head{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;padding:12px 4vw!important;position:relative;flex-wrap:nowrap}
.head nav{display:contents!important}
.head .nlinks{grid-column:2;display:flex;gap:26px;align-items:center}
.head .nr{grid-column:3;justify-self:end;display:flex;align-items:center;gap:14px}
.head .nr .acct{margin:0}
.head nav .srch.open{position:absolute;top:100%;inset-inline:4vw;z-index:50;background:var(--cream);padding:8px 0 12px;order:0;flex:none}
}
.mood{display:block!important}
.mood-wrap{display:flex;align-items:center;gap:10px}
.mood-wrap .mood-cards{flex:1;min-width:0;scroll-behavior:smooth}
.mw-b{flex:none;border-color:#d9bfa5;color:#f7efe6}
@media(max-width:640px){.mw-b{width:30px;height:30px;font-size:18px;margin-inline:-4px}.mood-wrap{gap:6px}}
.mood-h{margin-bottom:6px}
@media(min-width:900px){.mood-h{display:flex;align-items:baseline;gap:24px}.mood-h h2{font-size:56px}}

/* ---- illustrated books + coins ---- */
.bk-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:6px 0 18px}
.bk-bal{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:15px}
.cn{display:inline-flex;width:18px;height:18px}.cn svg{width:100%;height:100%}
.bk-earn{color:var(--accent);font-weight:600;text-decoration:underline}
.bk-note{color:var(--soft);font-size:14px}
.bk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:22px;padding:6px 0 30px;background:linear-gradient(transparent calc(100% - 14px),rgba(46,23,16,.12) calc(100% - 14px),transparent)}
.bk{all:unset;cursor:pointer;display:block;text-align:center}
.bk-cv{position:relative;border-radius:6px 12px 12px 6px;overflow:hidden;box-shadow:0 10px 22px rgba(46,23,16,.28),inset 6px 0 8px rgba(0,0,0,.2);aspect-ratio:2/3;background:#2e1710}
.bk-cv img{width:100%;height:100%;object-fit:cover;display:block}
.bk:not(.un) .bk-cv img{filter:brightness(.55) saturate(.7)}
.bk-ch{position:absolute;width:64%;opacity:.95;filter:drop-shadow(0 2px 2px rgba(0,0,0,.6))}.bk-ch.c1{left:-4%;top:12%;transform:rotate(8deg)}.bk-ch.c2{right:-4%;bottom:6%;transform:scaleX(-1) rotate(-8deg)}
.bk-lk{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;background:linear-gradient(#e9c77a,#b98a3a);color:#3a2410;border-radius:12px;padding:8px 14px 8px;box-shadow:0 4px 10px rgba(0,0,0,.5);border:2px solid #7a5420}
.bk-lk .lk{width:30px;height:30px;display:block}.bk-lk .lk svg{width:100%;height:100%}
.bk-lk .pr{display:flex;align-items:center;gap:4px;font-size:16px}
.bk-t{margin-top:10px;font-family:var(--serif);font-weight:700;color:var(--ink);font-size:16px}
.bk-s{font-size:12px;color:var(--soft)}
.bk:hover .bk-cv{transform:translateY(-3px);transition:transform .2s}
.bk-ov{position:fixed;inset:0;background:rgba(30,15,10,.6);z-index:200;display:flex;align-items:center;justify-content:center;padding:16px}
.bk-md{background:var(--cream);border-radius:16px;max-width:360px;width:100%;padding:20px;text-align:center;max-height:92vh;overflow:auto}
.md-cv{width:110px;border-radius:8px;box-shadow:0 6px 14px rgba(0,0,0,.3)}.bk-md h3{font-family:var(--serif);margin:10px 0 4px}.bk-md p{margin:6px 0;color:var(--soft);font-size:14px}
.md-pr{display:flex;justify-content:center;align-items:center;gap:6px;font-size:18px;margin:8px 0}.md-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:12px}
body.bk-lock{overflow:hidden}
.bk-rd{position:fixed;inset:0;background:#241410;display:flex;flex-direction:column;max-width:none;width:100%;border-radius:0;padding:0;color:#f7efe6}
.rd-top{display:flex;align-items:center;gap:12px;padding:10px 14px}.rd-ti{flex:1;font-family:var(--serif);font-size:16px;text-align:center}.rd-ct{font-size:13px;opacity:.75;min-width:70px;text-align:end}
.rd-x{all:unset;cursor:pointer;font-size:30px;line-height:1;width:34px;height:34px;text-align:center}
.rd-stage{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 8px 16px;min-height:0;perspective:1600px}
.rd-ar{all:unset;cursor:pointer;font-size:42px;width:44px;height:64px;text-align:center;line-height:64px;border-radius:12px;background:rgba(255,255,255,.08);flex:none}.rd-ar:disabled{opacity:.2;cursor:default}
.rd-book{display:grid;grid-template-columns:1fr 1fr;width:min(1000px,100%);height:min(640px,100%);background:#f6ecdc;border-radius:10px;box-shadow:0 20px 50px rgba(0,0,0,.6);overflow:hidden;position:relative;color:#2e1710}
.rd-book:before{content:'';position:absolute;left:50%;top:0;bottom:0;width:30px;margin-left:-15px;background:linear-gradient(90deg,transparent,rgba(0,0,0,.18) 50%,transparent);z-index:2;pointer-events:none}
.pgL{padding:clamp(18px,4vw,48px);display:flex;flex-direction:column;justify-content:center;gap:12px;background:#f6ecdc;overflow:auto}
.pgL .pt{font-family:var(--serif);font-size:clamp(17px,2.2vw,26px);line-height:1.55;margin:0}.pgL .pn{text-align:center;color:#a38566;font-size:13px;margin-top:auto}
.pgL h2{font-family:var(--serif);font-size:clamp(24px,3.4vw,40px);margin:0;line-height:1.2}.pgL p{margin:0;color:var(--soft)}.pgL .hint{margin-top:10px;color:#a38566}.pgL .endt{text-align:center}.pgL .btn{align-self:center}
.pgR{background:#e8d9c2;display:flex;align-items:center;justify-content:center;overflow:hidden}.pgR img{width:100%;height:100%;object-fit:cover;display:block}.pgR.covr{background:#2e1710}.pgR img.cov{object-fit:contain}
.rd-book.out-f{animation:fo .2s ease-in forwards;transform-origin:left center}.rd-book.in-f{animation:fi .23s ease-out;transform-origin:right center}
.rd-book.out-b{animation:fo2 .2s ease-in forwards;transform-origin:right center}.rd-book.in-b{animation:fi2 .23s ease-out;transform-origin:left center}
@keyframes fo{to{transform:rotateY(-70deg);opacity:.2}}@keyframes fi{from{transform:rotateY(70deg);opacity:.2}to{transform:none;opacity:1}}
@keyframes fo2{to{transform:rotateY(70deg);opacity:.2}}@keyframes fi2{from{transform:rotateY(-70deg);opacity:.2}to{transform:none;opacity:1}}
@media(max-width:700px){.rd-book{grid-template-columns:1fr;grid-template-rows:auto 1fr;height:100%;max-height:calc(100vh - 80px)}.pgR{order:-1;aspect-ratio:4/3}.pgR.covr{aspect-ratio:2/3;max-height:42vh}.rd-book:before{display:none}.pgL{justify-content:flex-start}.rd-ar{position:absolute;bottom:14px;z-index:3;width:48px;height:48px;line-height:48px;font-size:34px;background:rgba(36,20,16,.75);color:#fff}.rd-ar.pv{left:14px}.rd-ar.nx{right:14px}.rd-stage{position:relative;padding:0 8px 8px}}
.tk-top{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0}
.tk-list{display:grid;gap:10px;margin:10px 0}.tk{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 14px}.tk.dn{opacity:.6}
.tk-i{flex:1;display:flex;flex-direction:column}.tk-i span{font-size:13px;color:var(--soft)}.tk-r{display:flex;align-items:center;gap:4px;font-size:15px}.tk .btn{padding:6px 14px;font-size:14px}
#coins-card{max-width:760px;margin:0 auto 20px}
[dir=rtl] .bk-ch.c1{left:auto;right:-4%}[dir=rtl] .pgL{direction:rtl}
.cn{flex:none;width:18px;height:18px}.cn svg{width:18px;height:18px;display:block}
.bk-ch{width:34%}.bk-ch.c1{left:-6%;top:6%;transform:rotate(14deg)}.bk-ch.c2{right:-6%;bottom:4%}
.pgL p.pt{color:#2e1710}
@media(max-width:700px){.pgL .pt{font-size:19px}}
@media(max-width:700px){[dir=rtl] .rd-ar.pv{left:auto;right:14px}[dir=rtl] .rd-ar.nx{right:auto;left:14px}}

/* ---- realistic cover + editorial pages ---- */
.bk-cv{box-shadow:none;background:none;border-radius:0;overflow:visible}
.bk:not(.un) .bk-cv .bcv{filter:brightness(.6) saturate(.8)}
.bcv{position:relative;container-type:inline-size;aspect-ratio:2/3;width:100%;border-radius:3px 9px 9px 3px;overflow:hidden;color:#e9c77a;background:linear-gradient(145deg,#2f5a49 0%,#1b3329 60%,#122219 100%);box-shadow:0 14px 24px rgba(30,15,8,.4),0 2px 4px rgba(0,0,0,.4),inset 0 0 0 1px rgba(255,255,255,.05)}
.bcv.th-green{background:linear-gradient(145deg,#2f5a49 0%,#1b3329 60%,#122219 100%)}
.bcv-fr{position:absolute;inset:6% 8% 6% 11%;border:1px solid rgba(233,199,122,.7);border-radius:3px;pointer-events:none}
.bcv-fr:after{content:'';position:absolute;inset:3px;border:1px solid rgba(233,199,122,.3)}
.bcv-au{position:absolute;top:9%;left:11%;right:8%;text-align:center;font:600 4.2cqw/1 var(--serif);letter-spacing:.18em;text-transform:uppercase;color:#e9c77a}
.bcv-ti{position:absolute;top:15%;left:14%;right:11%;text-align:center;font:700 10.5cqw/1.12 var(--serif);color:#f3dca0;text-shadow:0 2px 6px rgba(0,0,0,.55)}
.bcv-orn{position:absolute;top:42%;left:11%;right:8%;text-align:center;font-size:7cqw;color:#e9c77a;opacity:.85}
.bcv-cp{position:absolute;left:50%;bottom:7%;height:50%;transform:translateX(-46%);filter:drop-shadow(0 6px 8px rgba(0,0,0,.5))}
.bcv-rs{position:absolute;left:8%;bottom:5%;height:22%;filter:drop-shadow(0 4px 5px rgba(0,0,0,.5))}
.bcv-sp{position:absolute;left:0;top:0;bottom:0;width:7%;background:linear-gradient(90deg,rgba(0,0,0,.45),rgba(255,255,255,.12) 55%,rgba(0,0,0,.25) 80%,rgba(0,0,0,.05))}
.bcv-pg{position:absolute;right:0;top:1%;bottom:1%;width:2.6%;background:repeating-linear-gradient(0deg,#f3e8d2 0 1px,#d8c8a8 1px 2px);border-radius:0 3px 3px 0;box-shadow:inset 2px 0 3px rgba(0,0,0,.3)}
.bk-cv .bcv-pg{display:block}
.bk:not(.un) .bk-ch{filter:drop-shadow(0 2px 2px rgba(0,0,0,.7))}
.md-cv{width:130px;margin:0 auto}
.cvw{width:min(54%,300px);margin:auto}.pgR.covr{display:flex;align-items:center;justify-content:center;background:#e3d3b8}
/* editorial spread */
.pgL{position:relative;background:#f7efe0 radial-gradient(circle at 20% 10%,#fffaf0,transparent 60%);padding:clamp(18px,3vw,40px) clamp(18px,3vw,40px) 12px;justify-content:flex-start;gap:0}
.pgL .ptx{overflow:auto;flex:1;padding-bottom:76px}
.pgL .chn{font-family:var(--serif);font-size:clamp(17px,1.9vw,24px);font-weight:700;color:#7a4a2a;margin:0 0 10px;padding-bottom:6px;border-bottom:1px solid #e0cdb0}
.pgL p.pt{font-family:var(--serif);font-size:clamp(13.5px,1.28vw,15.5px);line-height:1.6;margin:0 0 .7em;color:#2e1710;text-align:start}
.pgL p.pt.dc:first-letter{float:inline-start;font-size:3.1em;line-height:.85;padding:.06em .1em 0 0;color:#7a4a2a;font-weight:700}
[dir=rtl] .pgL p.pt.dc:first-letter{padding:.06em 0 0 .1em}
.pgL .pn{position:absolute;bottom:10px;left:0;right:0;text-align:center;color:#a38566;font-size:12px;margin:0}
.pgL .cut.prop{position:absolute;left:4px;bottom:0;height:76px;pointer-events:none;filter:drop-shadow(0 3px 4px rgba(60,30,10,.35));transform:rotate(-6deg)}
[dir=rtl] .pgL .cut.prop{left:auto;right:4px;transform:rotate(6deg)}
.pgL .bl{font-size:15px;line-height:1.6}.pgL .eyb2{letter-spacing:.2em;text-transform:uppercase;font-size:12px;color:#a38566}.pgL .orn{text-align:center;font-size:34px;color:#b98a5a}
.pgR{position:relative;background:#f1e4cd;overflow:visible}
.pgR .scene{position:absolute;inset:0;-webkit-mask:url(/assets/books/torn.svg) center/100% 100% no-repeat;mask:url(/assets/books/torn.svg) center/100% 100% no-repeat}
[dir=rtl] .pgR .scene{-webkit-mask-image:url(/assets/books/torn-rtl.svg);mask-image:url(/assets/books/torn-rtl.svg)}
.pgR .scene img{width:100%;height:100%;object-fit:cover}
.pgR .cut.fig{position:absolute;right:-6px;bottom:-8px;height:58%;max-height:380px;filter:drop-shadow(0 8px 10px rgba(30,15,8,.5));pointer-events:none;z-index:3}
[dir=rtl] .pgR .cut.fig{right:auto;left:-6px}
.rd-book{width:min(1100px,100%);height:min(700px,100%);overflow:visible;border-radius:10px}
.rd-book .pgL{border-radius:10px 0 0 10px}.rd-book .pgR{border-radius:0 10px 10px 0}
[dir=rtl] .rd-book .pgL{border-radius:0 10px 10px 0}[dir=rtl] .rd-book .pgR{border-radius:10px 0 0 10px}
@media(max-width:700px){
.rd-book{height:auto;max-height:none;min-height:0;display:flex;flex-direction:column;overflow:auto;width:100%}
.stage-fix{}
.pgR{order:-1;height:42vw;max-height:260px;flex:none}.pgR.covr{height:46vh;max-height:none}
.pgR .cut.fig{height:70%;right:2px}[dir=rtl] .pgR .cut.fig{left:2px;right:auto}
.pgL{flex:1;padding:16px 16px 70px;overflow:visible;border-radius:0}.pgL .ptx{overflow:visible;padding-bottom:30px}
.pgL .cut.prop{height:54px}
.rd-stage{align-items:stretch;overflow:auto}
}
.pgR img.cut.fig{width:auto;height:58%;max-height:380px;object-fit:contain}
@media(max-width:700px){.pgR img.cut.fig{height:70%;max-height:none}}
.bcv img{object-fit:contain;max-width:none}
.bcv img.bcv-cp{width:auto;height:50%;max-width:none;left:50%;bottom:7%}
.bcv img.bcv-rs{width:auto;height:22%;left:8%;bottom:5%}
.bk-cv .bcv img{width:auto}
.pgL .ptx.sm p.pt{font-size:clamp(12.5px,1.15vw,14px);line-height:1.5;margin-bottom:.55em}
.pgL .ptx.xs p.pt{font-size:clamp(12px,1.05vw,13px);line-height:1.45;margin-bottom:.5em}
@media(max-width:700px){.pgL .ptx.sm p.pt,.pgL .ptx.xs p.pt{font-size:15px;line-height:1.6}}
/* full-bleed illustrated cover + spread reader */
.bcv-full{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bcv.has-full:before{content:'';position:absolute;left:0;right:0;top:0;height:44%;background:linear-gradient(180deg,rgba(15,10,6,.8),rgba(15,10,6,0));z-index:1;pointer-events:none}
.bcv.has-full .bcv-au,.bcv.has-full .bcv-ti,.bcv.has-full .bcv-fr{z-index:2}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.pgsp{grid-column:1/-1;position:relative;display:flex;flex-direction:column;min-height:0;background:#f6ecdc;border-radius:10px;overflow:hidden}
.pgsp img{flex:1;min-height:0;width:100%;height:100%;object-fit:contain;display:block}
.pgsp-cap{flex:none;padding:10px 16px;text-align:center;font-family:var(--serif);font-size:15px;line-height:1.6;color:#2e1710;background:#f3e9d6;border-top:1px solid #e0cdb0}
.pgsp .pn{position:absolute;top:8px;inset-inline-end:12px;color:#7a6248;font-size:12px;background:rgba(246,236,220,.85);padding:2px 8px;border-radius:8px}
@media(max-width:700px){.pgsp img{height:auto;flex:none}}

.rside{max-height:312px;overflow:hidden;scroll-behavior:auto}
.rs{flex:0 0 auto;transition:background .3s,box-shadow .3s}
.rs img{width:44px;height:44px;min-width:44px;border-radius:50%;object-fit:cover;background:#e6d8c8;display:block}
.rhero-txt h1,.rhero-txt p,.rhero-img img{transition:opacity .28s ease}
.rhero.rfade .rhero-txt h1,.rhero.rfade .rhero-txt p,.rhero.rfade .rhero-img img{opacity:0}
@media(prefers-reduced-motion:reduce){.rhero-txt h1,.rhero-txt p,.rhero-img img,.rs{transition:none}}
.rhero>*{min-width:0}.rhero p{max-width:100%;overflow-wrap:anywhere}
.rside{max-height:322px}

.rate-row{display:flex;align-items:center;gap:4px;margin:6px 0 14px;flex-wrap:wrap;justify-content:center}
.rate-l{font-size:13px;color:var(--soft);margin-inline-end:8px}
.star{background:none;border:0;padding:2px 3px;font-size:26px;line-height:1;color:#cdbfae;cursor:pointer}
.star.on,.rate-row:hover .star{color:#e0a526}.rate-row .star:hover~.star{color:#cdbfae}
html[data-theme=dark] .star{color:#5a4b40}html[data-theme=dark] .star.on{color:#e0a526}
/* v6 hero: text column always clears the cover */
.rhero-txt{min-width:0;max-width:100%;box-sizing:border-box}
.rhero h1{white-space:normal;overflow-wrap:break-word;word-break:normal;max-width:100%}
@media(min-width:900px){
.rhero-txt,[dir=rtl] .rhero-txt,.rd[data-ar] .rhero-txt{margin-inline-end:0;padding-inline-end:28px}
.rhero h1{font-size:clamp(38px,4.3vw,84px)}
.rhero p{max-width:100%}
}
@media(min-width:760px) and (max-width:899px){
.rhero{grid-template-columns:minmax(0,1fr) 240px;gap:24px 20px}
.rhero-txt,[dir=rtl] .rhero-txt,.rd[data-ar] .rhero-txt{grid-column:1/-1;padding-inline-end:0}
.rhero h1{font-size:clamp(34px,6.4vw,56px)}
.rhero-img{width:min(100%,300px)}
}
/* book list page */
.bl-bar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.bl-bar input{flex:1 1 180px;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:0 14px;font:15px var(--sans);background:#fff;color:var(--ink)}
.bl-bar select{flex:1 1 130px;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:0 10px;font:14px var(--sans);background:#fff;color:var(--ink)}
.bl-count{font-size:13px;color:var(--soft);margin:6px 2px 10px}
.bl-more{text-align:center;color:var(--soft);padding:18px;font-size:14px}
.bl-more[hidden]{display:none}
/* book list: row cards (cover left, details right) */
.bl-list{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.bl-card{position:relative;display:flex;flex-direction:row;align-items:stretch;gap:12px;background:linear-gradient(160deg,#3a1d12,#2a140d);border:1px solid rgba(217,164,65,.28);border-radius:14px;padding:10px;color:#f7efe6;box-shadow:0 6px 16px rgba(46,23,16,.2)}
.bl-cov{position:relative;display:block;flex:0 0 44%;width:44%;align-self:flex-start}
.bl-card .bl-th{width:100%!important;height:auto!important;aspect-ratio:2/3;border-radius:10px;object-fit:cover;display:block;background:#4a2a1c;box-shadow:0 6px 14px rgba(0,0,0,.4)}
.bl-bg{position:absolute;top:6px;inset-inline-end:6px;max-width:calc(100% - 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:700;padding:2px 7px;border-radius:7px;background:rgba(30,15,10,.75);color:#f7efe6}
.bl-card .bl-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;padding:2px 0}
.bl-card .bl-t{font-family:var(--serif);font-size:17px;font-weight:700;line-height:1.2;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bl-ta{color:#fff}
.bl-ta::after{content:"";position:absolute;inset:0;border-radius:14px;z-index:1}
.bl-bd{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;flex-wrap:wrap}
.bl-st{display:inline-flex;align-items:center;gap:5px;font-weight:600;color:#f7efe6}
.bl-st::before{content:"";width:7px;height:7px;border-radius:50%;background:#3ecf8e}
.bl-st.done::before,.bl-st.short::before{background:var(--gold)}
.bl-card .bl-m{color:#d9c4b0}
.bl-au{font-size:12px;color:var(--gold);font-weight:600}
.bl-card .bl-d{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:12.5px;line-height:1.4;color:#d9c4b0;margin:0}
.bl-ch{list-style:none;margin:auto 0 0;padding:0;display:flex;flex-direction:column;gap:5px}
.bl-ch a{position:relative;z-index:2;display:flex;align-items:center;gap:6px;min-height:30px;padding:3px 9px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(255,255,255,.05);color:#f7efe6;font-size:12px}
.bl-cn{flex:none;font-weight:700;color:var(--gold)}
.bl-ct{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d9c4b0}
@media(min-width:700px){.bl-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.bl-card{gap:8px;padding:8px}.bl-cov{flex-basis:40%;width:40%}.bl-card .bl-t{font-size:14px;-webkit-line-clamp:3}.bl-card .bl-d{display:none}.bl-bd{font-size:11px}.bl-bd .bl-m{display:none}.bl-au{font-size:11px}.bl-ch a{min-height:26px;padding:2px 6px;font-size:10.5px}.bl-ch{gap:4px}.bl-bg{font-size:9px;padding:2px 5px}}
@media(min-width:1100px){.bl-list{gap:16px}.bl-card{gap:12px;padding:10px}.bl-card .bl-t{font-size:17px}.bl-card .bl-d{display:-webkit-box;-webkit-line-clamp:2;font-size:12.5px}.bl-bd .bl-m{display:inline}.bl-bd{font-size:12px}.bl-au{font-size:12px}.bl-ch a{min-height:28px;font-size:11.5px}.bl-bg{font-size:10px}}
.nextch{margin:10px 0 0;font-weight:600;color:var(--gold,#b8862b);font-size:.95rem}
