/*
Theme Name: Reza Vahid Literary
Theme URI: https://example.invalid
Author: Reza Vahid Literary Site
Description: پوسته مقاله‌محور فارسی با معماری ارسی و نورپردازی سبک.
Version: 3.1.8
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: reza-vahid-literary
*/

:root{--bg:#080e22;--bg2:#101f35;--paper:#f7eddd;--ink:#f7f0de;--muted:#bdc6c8;--gold:#e9bd70;--teal:#60dbce;--border:rgba(229,182,102,.32);--glass:rgba(15,30,56,.76);--shadow:0 22px 65px #03081680;--reader:#322a23;color-scheme:dark}
html.day{--bg:#f7f1e7;--bg2:#eee3d1;--ink:#282923;--muted:#5c615c;--gold:#87511e;--teal:#156c70;--border:rgba(117,78,40,.3);--glass:rgba(255,252,245,.9);--shadow:0 16px 45px #7360472a;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--bg);font-family:Tahoma,'Segoe UI',sans-serif;font-size:15px;line-height:1.9;overflow-x:hidden}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--teal);outline-offset:3px}::selection{background:#39999b;color:white}.wrap{max-width:1170px;margin:auto;padding:0 22px}.texture{position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 10% 5%,#1baab421,transparent 46%),radial-gradient(ellipse at 88% 70%,#b9812c15,transparent 48%)}.archline{height:4px;background:linear-gradient(90deg,transparent,#3ad0c0,#e5bd70,#8c3541,transparent)}.top{position:sticky;top:0;z-index:20;background:var(--glass);backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}.top-inner{display:flex;align-items:center;gap:18px;justify-content:space-between;min-height:82px}.brand{display:flex;align-items:center;gap:12px;min-width:180px}.seal{display:grid;place-items:center;width:49px;height:49px;border-radius:50%;font-size:19px;font-weight:bold;color:#fff4d7;background:radial-gradient(circle at 32% 25%,#d84c4b,#8a2631 65%,#541923);border:2px solid #d7ae65;box-shadow:inset 0 2px 5px #fff5,0 5px 13px #0006}.brand strong{font-size:23px;display:block;line-height:1.5}.brand small{display:block;color:var(--muted);font-size:11px}.nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.nav button{border:0;color:var(--ink);background:transparent;padding:8px 10px;border-radius:10px;font-size:13px}.nav button:hover,.nav button.active{background:var(--border);color:var(--gold)}.nav .minor{opacity:.85}.actions{display:flex;gap:9px}.iconbtn{background:transparent;border:1px solid var(--border);border-radius:12px;color:var(--ink);padding:7px 10px;white-space:nowrap}.iconbtn:hover{border-color:var(--gold)}.layout{padding-top:30px;padding-bottom:64px}.section{display:none;animation:appear .3s ease both}.section.active{display:block}@keyframes appear{from{opacity:.3;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3{line-height:1.55}h1{font-size:clamp(30px,4.7vw,53px)}h2{font-size:clamp(24px,3vw,34px)}h3{font-size:21px}.overline{display:block;color:var(--teal);font-size:12px;font-weight:bold;letter-spacing:.1px}.muted{color:var(--muted)}.small{font-size:12px}.lead{font-size:17px;color:var(--muted)}.glass{border:1px solid var(--border);background:var(--glass);box-shadow:var(--shadow);border-radius:22px}.gold{color:var(--gold)}.pill{display:inline-flex;padding:5px 14px;font-size:12px;border:1px solid var(--border);background:#e5b86a19;border-radius:100px;color:var(--gold)}.btn{border:1px solid var(--border);border-radius:12px;padding:10px 19px;color:var(--ink);background:transparent;display:inline-flex;align-items:center;gap:8px;justify-content:center}.btn.primary{background:linear-gradient(130deg,#f2ca81,#b98233);color:#1b1c22;border:none;font-weight:bold}.btn:hover{filter:brightness(1.12);transform:translateY(-1px)}.rule{display:flex;align-items:center;gap:14px;color:var(--gold);margin:30px 0 22px}.rule:before,.rule:after{content:"";height:1px;background:var(--border);flex:1}.hero{position:relative;overflow:hidden;isolation:isolate;padding:48px clamp(22px,5vw,65px);min-height:430px;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(210px,.8fr);align-items:center;gap:34px;background:linear-gradient(130deg,#0d203d,#10172e 76%);color:#f9efe0}.hero .copy{position:relative;z-index:2}.hero h1{margin:18px 0}.hero p{max-width:630px;color:#e2ded2}.hero .buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.orosi{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0;opacity:.6}.orosi:before{content:"";position:absolute;inset:-10% -10%;background:conic-gradient(from 5deg at 20% 25%,transparent 0 8%,#20c8c721 13%,transparent 25% 32%,#eda94b24 40%,transparent 51%,#ca45621c 61%,transparent 80%);filter:blur(23px);animation:lightshift 22s ease-in-out infinite alternate;will-change:transform}.orosi:after{content:"";position:absolute;left:12%;top:-28%;width:58%;height:125%;transform:rotate(-16deg);background:repeating-linear-gradient(90deg,transparent 0 49px,#b48a5633 50px 52px,transparent 54px 105px);mask-image:linear-gradient(to bottom,#000,transparent 80%);opacity:.35}.arch-svg{position:relative;z-index:1;max-width:290px;width:100%;justify-self:center;filter:drop-shadow(0 16px 12px #010b1999)}@keyframes lightshift{from{transform:translate(-3%,0) rotate(-2deg)}to{transform:translate(4%,2%) rotate(2deg)}}.flourish{color:var(--gold);font-size:22px;letter-spacing:12px;text-align:center}.section-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:20px}.section-head h2{margin:4px 0}.writing-grid{display:grid;grid-template-columns:1.32fr 1fr 1fr;gap:18px}.article-card{padding:24px;min-height:260px;display:flex;flex-direction:column;transition:transform .2s,border-color .2s}.article-card:hover{transform:translateY(-3px);border-color:var(--gold)}.article-card h3{margin:15px 0 12px}.article-card p{font-size:13px;color:var(--muted)}.article-card .bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding-top:11px}.article-card button{background:none;color:var(--gold);border:0;padding:4px}.editorial{display:grid;grid-template-columns:1.1fr .9fr;gap:22px}.topic-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.topic{padding:22px;min-height:140px;text-align:right;border:1px solid var(--border);border-radius:18px;background:linear-gradient(145deg,var(--glass),transparent);color:var(--ink);transition:transform .2s}.topic:hover{transform:translateY(-4px);border-color:var(--gold)}.topic b{display:block;font-size:17px;margin:13px 0 3px}.topic span{font-size:12px;color:var(--muted)}.feature{padding:31px;display:flex;gap:25px;justify-content:space-between;align-items:center}.feature p{max-width:700px;color:var(--muted)}.titlebar{margin-bottom:23px;padding:22px 0;border-bottom:1px solid var(--border)}.titlebar h1{font-size:clamp(29px,4vw,44px);margin:6px 0}.searchrow{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:18px}input.search{background:var(--glass);border:1px solid var(--border);border-radius:12px;padding:11px 15px;color:var(--ink);width:min(100%,340px)}.filters{display:flex;flex-wrap:wrap;gap:6px}.filter{background:transparent;color:var(--ink);border:1px solid var(--border);border-radius:9px;padding:7px 12px;font-size:13px}.filter.selected{background:var(--gold);color:#111629}.result-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.note{padding:25px}.reader{max-width:820px;margin:auto;border-radius:24px;background:var(--paper);color:var(--reader);padding:clamp(25px,6vw,70px);box-shadow:0 25px 60px #0004;position:relative}.reader:before{content:"❖";color:#987345;display:block;text-align:center;font-size:34px;margin-bottom:15px}.reader h1{font-size:clamp(26px,4vw,42px)}.reader p{font-size:var(--size,18px);line-height:2.25}.reader .meta{color:#716253;font-size:12px}.reading-bar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:15px;flex-wrap:wrap}.paper{background:#f9f0dd;color:#32271e;padding:25px;border:1px solid #c8a86a;border-radius:15px;box-shadow:0 10px 25px #0004}.books{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.book{position:relative;background:linear-gradient(145deg,#142744,#0c172b);border:1px solid #ac854c99;border-radius:16px;min-height:330px;padding:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;perspective:900px}.book-cover{height:220px;width:154px;transform:rotateY(-12deg);border:2px solid #bd994e;border-radius:4px 14px 14px 4px;box-shadow:-13px 14px 0 #d3c5ae,-17px 17px 16px #0008;display:grid;place-items:center;text-align:center;padding:15px;background:linear-gradient(145deg,#204d60,#142438);color:#f8dfab;transition:transform .5s}.book:hover .book-cover{transform:rotateY(-28deg) translateY(-4px)}.book h3{margin:20px 0 0}.empty{padding:28px;border:1px dashed var(--border);border-radius:16px;color:var(--muted);text-align:center}.footer{border-top:1px solid var(--border);padding:25px 0 40px;color:var(--muted);font-size:13px}.footer-inner{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}.status{border:1px dashed var(--border);border-radius:12px;padding:11px 15px;font-size:12px;color:var(--muted);margin-top:18px}.footer button{background:none;border:none;color:var(--gold)}#notice{position:fixed;bottom:18px;left:18px;z-index:80;max-width:360px;padding:13px 18px;background:#113d43;border:1px solid #6ad9c2;color:white;border-radius:14px;display:none}@media(max-width:1000px){.top-inner{flex-wrap:wrap;padding:12px 0}.nav{order:3;width:100%;overflow-x:auto;flex-wrap:nowrap;justify-content:space-between}.nav button{white-space:nowrap}.writing-grid{grid-template-columns:repeat(2,1fr)}.article-card:first-child{grid-column:span 2}.topic-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.wrap{padding:0 14px}.hero{grid-template-columns:1fr;padding:30px 23px;min-height:0}.arch-svg{max-width:170px;opacity:.65;position:absolute;left:1px;bottom:8px}.hero .copy{padding-bottom:30px}.writing-grid,.editorial,.result-list,.books{grid-template-columns:1fr}.article-card:first-child{grid-column:auto}.topic-grid{grid-template-columns:repeat(2,1fr)}.feature{display:block}.feature .btn{margin-top:12px}.brand strong{font-size:21px}.actions{margin-right:auto}.layout{padding-top:16px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}html.calm *,html.calm *:before,html.calm *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media print{.top,.footer,.actions,.reading-bar,.btn,.texture,.orosi{display:none!important}.reader{box-shadow:none;padding:0}.section{display:none!important}.section.printing{display:block!important}body{background:white}}

/* WordPress additions */
body.admin-bar .top{top:32px}.nav a{display:inline-block;border-radius:10px;padding:8px 10px;font-size:13px}.nav a:hover,.nav .current-menu-item>a{color:var(--gold);background:var(--border)}.hero h1{font-size:clamp(30px,4.7vw,53px)}.wp-content{font-size:var(--article-size,19px);line-height:2.2;overflow-wrap:anywhere}.wp-content img{max-width:100%;height:auto}.wp-content a{text-decoration:underline;color:#86511f}.wp-content blockquote{border-right:3px solid #bb905b;margin:25px 0;padding:5px 22px;color:#5e4631}.wp-content h2,.wp-content h3{margin-top:35px}.article-card{min-height:220px}.article-card h3 a:hover{color:var(--gold)}.reader{max-width:850px}.reader .wp-content p{font-size:inherit;line-height:inherit}.orosi-ornament{position:relative;width:220px;max-width:100%;aspect-ratio:4/5;border:3px solid #e7bb6b;border-radius:110px 110px 18px 18px;display:grid;place-items:center;background:linear-gradient(135deg,#073047,#114e59 50%,#4d273f);box-shadow:0 15px 35px #0008,inset 0 0 40px #e5bb7540;overflow:hidden}.orosi-ornament:before{content:'✺';color:#e8bd71;font-size:110px;opacity:.85;text-shadow:0 3px 18px #ffc96566}.orosi-ornament:after{content:'';position:absolute;inset:10px;border:1px solid #e7bb6b77;border-radius:100px 100px 12px 12px}.book-cover{background-size:cover!important;background-position:center!important}.book a{color:inherit}.book-detail{max-width:850px;margin:auto}.pagination a,.pagination span{padding:7px 12px;border:1px solid var(--border);border-radius:8px;display:inline-block;margin:4px}.pagination .current{background:var(--gold);color:#111629}.wp-block-image img{border-radius:10px}.note-list{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.note{height:100%}.contact-content{max-width:900px}.site-logo{width:49px;height:49px;object-fit:contain}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}.screen-reader-text:focus{position:static;width:auto;height:auto;clip:auto}.no-articles{grid-column:1/-1}.article-heading{font-size:clamp(25px,3vw,38px)}.mobile-menu-button{display:none}.footer a:hover{color:var(--gold)}
@media(max-width:750px){body.admin-bar .top{top:46px}.top-inner{flex-wrap:wrap}.mobile-menu-button{display:block}.nav{order:3;width:100%;display:none;flex-direction:column;align-items:stretch}.nav.is-open{display:flex}.nav ul{display:flex;flex-direction:column}.nav li{list-style:none}.nav a{display:block}.note-list{grid-template-columns:1fr}.hero{min-height:330px}.orosi-ornament{display:none}.reader{padding:24px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
html.calm .orosi:before,html.calm .shamseh-spin{animation:none!important}html.no-orosi .orosi:before{animation:none!important;opacity:0}html.no-orosi .orosi:after{opacity:0}
@media print{.top,.footer,.reading-bar,.no-print{display:none!important}body,.layout{background:white!important;color:black!important}.reader{box-shadow:none;padding:0;max-width:none}.wp-content{font-size:13pt}.texture{display:none}}
.nav ul{display:flex;flex-wrap:wrap;align-items:center;gap:5px;list-style:none;margin:0;padding:0}.nav li{list-style:none}.nav a{white-space:nowrap}.hero .orosi{z-index:0}.hero .copy{position:relative;z-index:2}
@media(max-width:750px){.nav ul{flex-direction:column;align-items:stretch;width:100%}}

/* نسخه دوم: بخش مقاله برگزیده، نور ارسی سبک و انعطاف بهتر صفحات */
.rv-featured-hero{min-height:375px;grid-template-columns:minmax(0,1.65fr) minmax(150px,.65fr)}
.rv-featured-hero h1 a{color:inherit;text-decoration:none}.rv-featured-hero h1 a:hover{color:#f1c77f}
.rv-featured-summary{font-size:clamp(15px,1.8vw,19px);line-height:2.05;max-width:680px}
.rv-featured-meta{font-size:12px;color:#cfc6b5;margin-top:12px}
.rv-featured-hero .orosi:before{opacity:var(--rv-light-opacity,.65);animation-duration:var(--rv-light-duration,22s)}
.rv-featured-hero .orosi-ornament{width:185px;justify-self:center}
.writing-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.article-card{min-height:235px}.article-card h3{font-size:clamp(17px,1.8vw,21px);overflow-wrap:anywhere}
.book{overflow:hidden}.book-cover{transform-style:preserve-3d;backface-visibility:hidden}
@media(max-width:1000px){.writing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-card:first-child{grid-column:auto}}
@media(max-width:650px){.writing-grid{grid-template-columns:1fr}.rv-featured-hero{grid-template-columns:1fr;min-height:0;padding:30px 23px}.rv-featured-hero .orosi-ornament{display:none}.rv-featured-hero h1{font-size:clamp(27px,7vw,39px)}.rv-featured-hero .buttons .btn{font-size:13px}}
@media(prefers-reduced-motion:reduce){.rv-featured-hero .orosi:before{animation:none!important}}

/* نسخه ۲.۳ — نمایش تصویر شاخص نوشته‌ها، بدون کتابخانه تصویری اضافی */
.rv-post-cover{margin:22px 0 28px}.rv-post-cover img{display:block;width:100%;max-height:450px;height:auto;object-fit:contain;border-radius:15px;box-shadow:0 8px 22px #0002}.rv-card-cover{display:block;margin:-8px -8px 17px;overflow:hidden;border-radius:13px;aspect-ratio:16/9;background:#142c42}.rv-card-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.article-card:hover .rv-card-cover img{transform:scale(1.025)}.rv-featured-image{width:100%;max-width:270px;justify-self:center;position:relative;z-index:2}.rv-featured-image img{display:block;width:100%;height:auto;max-height:300px;object-fit:contain;border-radius:15px;border:1px solid #dcb36e66;box-shadow:0 13px 28px #0008}@media(max-width:650px){.rv-featured-image{max-width:170px;opacity:.9}.rv-post-cover img{max-height:none}}@media(prefers-reduced-motion:reduce){.rv-card-cover img{transition:none}}

/* نسخه ۲.۴: تصویر مجموعه‌ها در پایین کادر، جلد آثار در ویترین و کتابخانه */
.rv-topic-with-image{display:flex;flex-direction:column;align-items:stretch;overflow:hidden;padding-bottom:0}
.rv-topic-with-image .rv-topic-image{display:block;margin:16px -22px 0;width:calc(100% + 44px);height:134px;object-fit:cover;border-top:1px solid var(--border);background:var(--bg2)}
.rv-home-book-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 22px;max-width:560px}
.rv-home-book{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.rv-home-book img,.rv-book-placeholder{width:min(100%,116px);height:160px;object-fit:cover;display:grid;place-items:center;background:#17364a;border:2px solid #c69a59;border-radius:5px 12px 12px 5px;box-shadow:-5px 7px 0 #cdbb9d,-9px 10px 16px #0006;transform:perspective(600px) rotateY(-8deg);transition:transform .25s}
.rv-home-book:hover img,.rv-home-book:hover .rv-book-placeholder{transform:perspective(600px) rotateY(-17deg) translateY(-3px)}
.rv-book-placeholder{color:#f9ddb0;padding:10px;font-size:12px}
.rv-home-book-name{font-size:12px;line-height:1.7;color:var(--ink)}
.book-cover{padding:0;overflow:hidden;background:linear-gradient(145deg,#204d60,#142438)}
.book-cover img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:650px){.rv-home-book-shelf{gap:8px}.rv-home-book img,.rv-book-placeholder{height:115px;width:82px}.rv-topic-with-image .rv-topic-image{height:110px}}
@media(prefers-reduced-motion:reduce){.rv-home-book img,.rv-book-placeholder{transition:none}}

/* نسخه ۲.۵: شناسنامه کتاب و نمونه متن، سازگار با موبایل */
.rv-book-detail{max-width:1000px;margin:auto;padding:clamp(22px,4vw,48px)}.rv-book-top{display:grid;grid-template-columns:minmax(160px,285px) minmax(0,1fr);gap:clamp(20px,4vw,55px);align-items:start}.rv-book-large-cover img{width:100%;height:auto;max-height:440px;object-fit:contain;border:2px solid var(--border);border-radius:8px 17px 17px 8px;box-shadow:-10px 14px 0 #c4aa7a,-15px 22px 25px #0007}.rv-book-cover-empty{border:1px dashed var(--border);padding:50px 15px;text-align:center;color:var(--muted)}.rv-book-info h1{font-size:clamp(29px,4vw,45px)}.rv-book-facts{margin:25px 0}.rv-book-facts div{display:grid;grid-template-columns:105px 1fr;padding:9px 0;border-bottom:1px solid var(--border);gap:10px}.rv-book-facts dt{color:var(--muted)}.rv-book-facts dd{margin:0}.rv-book-body,.rv-book-sample{padding-top:27px;margin-top:30px;border-top:1px solid var(--border)}.rv-book-body .wp-content{line-height:2.2}.rv-book-sample{padding:23px 26px;background:var(--paper);color:var(--reader);border-radius:13px}.rv-book-sample h2{color:#775329}.rv-book-sample .wp-content{line-height:2.3;white-space:normal}@media(max-width:650px){.rv-book-top{grid-template-columns:1fr}.rv-book-large-cover{max-width:215px;margin:auto}.rv-book-detail{padding:20px}.rv-book-facts div{grid-template-columns:90px 1fr}}

/* نسخه ۲.۷ — خوانایی و ساختار مرجع ادبی */
body{font-family:Vazirmatn,"Noto Naskh Arabic",Tahoma,sans-serif}h1,h2,h3,.brand strong{font-family:"Noto Naskh Arabic",Vazirmatn,Tahoma,serif}.top{backdrop-filter:blur(17px)}.rv-brand-portrait{flex:none;display:block;width:64px;height:64px;overflow:hidden;border-radius:14px 32px 14px 14px;border:2px solid var(--gold);box-shadow:0 7px 22px #0005}.rv-brand-portrait img{width:100%;height:100%;object-fit:cover}.nav{gap:10px}.nav>a{font-size:14px}.rv27-abstract,.rv27-toc,.rv27-citation,.rv27-data{margin:27px 0;padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--paper);color:var(--reader)}.rv27-abstract p{line-height:2.2}.rv27-tags{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:18px 0}.rv27-tags span{background:#cfb78933;border:1px solid var(--border);border-radius:20px;padding:5px 12px}.rv27-toc ol{line-height:2.2}.rv27-citation p{overflow-wrap:anywhere}.rv27-data dl{display:grid;gap:10px}.rv27-data dl div{border-bottom:1px solid #b6a48555;padding:9px 0;display:grid;grid-template-columns:125px 1fr;gap:10px}.rv27-data dd{margin:0;overflow-wrap:anywhere}.rv27-data dt{font-weight:bold}.rv27-print-head{display:none}.rv27-search{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0 30px}.rv27-search input{padding:12px 15px;border:1px solid var(--border);border-radius:12px;min-width:min(100%,280px);flex:1}.rv27-notfound{padding:55px 28px;text-align:center}.rv27-static-page{min-height:380px}.rv27-comments{margin-top:25px}.rv27-comments input,.rv27-comments textarea{max-width:100%}#rv27-progress{position:fixed;top:0;right:0;width:0;height:3px;background:linear-gradient(90deg,var(--teal),var(--gold));z-index:99999;pointer-events:none}.rv27-dossiers{margin:35px 0;padding:23px;border:1px solid var(--border);border-radius:14px}.rv27-dossiers a{display:inline-block;margin:6px;padding:5px 10px}.rv27-footnote{position:relative}.rv27-footnote button{font-size:12px;border:0;background:transparent;color:var(--gold);cursor:pointer}.rv27-footnote .rv27-note-popup{display:none;position:absolute;z-index:20;right:0;top:100%;width:min(310px,70vw);padding:12px;background:#fff8e9;color:#332819;border:1px solid #b79658;border-radius:9px;box-shadow:0 9px 25px #0005;font-size:14px;line-height:1.8}.rv27-footnote:hover .rv27-note-popup,.rv27-footnote:focus-within .rv27-note-popup{display:block}.rv27-notes-end{padding:20px;border-top:1px solid var(--border)}.rv27-article .wp-content{max-width:75ch;margin:auto}.rv27-article .wp-content p{line-height:2.2}@media(max-width:700px){.rv27-data dl div{grid-template-columns:1fr}.rv27-abstract,.rv27-toc,.rv27-citation,.rv27-data{padding:16px}.rv-brand-portrait{width:50px;height:50px}}@media print{.rv27-print-head{display:block;position:static;margin-top:25px;padding-top:12px;border-top:2px solid #444;color:#111!important;font-size:10pt}.rv27-toc,.rv27-search,.rv27-citation button,#rv27-progress{display:none!important}.rv27-article{padding:0!important}.rv27-data,.rv27-citation{break-inside:avoid}}

/* ۲.۸ — معماری گرم چوب و لاجورد، بافت سبک و بدون تصاویر تکرارشونده سنگین */
:root{--wood-deep:#26180f;--wood-dark:#422819;--wood-mid:#70452b;--wood-light:#bd8e5a;--wood-line:rgba(235,185,112,.28);--paper-warm:#f7ecda}
body{background-image:radial-gradient(ellipse at 76% 0%,rgba(130,77,41,.19),transparent 50%)}
.top{background:linear-gradient(115deg,rgba(19,16,20,.95),rgba(50,30,20,.95) 48%,rgba(13,25,38,.96));border-bottom:3px solid #a97742;box-shadow:0 8px 30px #0006,inset 0 -1px #dfb67b66}
.top:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.25;background:repeating-linear-gradient(93deg,transparent 0 9px,#e4ac6920 10px,transparent 12px 23px,#120c0844 24px 26px)}
.top-inner{position:relative;z-index:1}.brand strong{color:#f8e8ce;letter-spacing:.01em}.brand small{color:#d2bb9b}.top .nav a{color:#f6e8d1}.top .nav a:hover{color:#f3c687}.top .iconbtn{color:#f0debe;border-color:#a67548}
.glass{border-color:var(--wood-line)}.rv-featured-hero{border:9px solid transparent;border-image:linear-gradient(130deg,#57331e,#bd8e56,#3d271b,#9b693d) 1;box-shadow:0 23px 42px #0008,inset 0 0 0 1px #f1c78c40;background:linear-gradient(120deg,rgba(10,24,40,.97),rgba(49,32,23,.93))}.rv-featured-hero .copy{padding-inline:clamp(2px,2vw,23px)}
.rv-featured-image{max-width:340px;padding:11px;background:linear-gradient(145deg,#77472d,#2f1b11 38%,#a77440 65%,#321e14);border:2px solid #d5a46c;box-shadow:0 15px 25px #0007,inset 0 0 0 3px #2d1b11}
.rv-featured-image img{max-height:380px;border-radius:4px;object-fit:cover}
.rv-home-books{background:linear-gradient(145deg,rgba(87,51,30,.96),rgba(30,21,19,.97));border:6px ridge #a47749;padding:26px;box-shadow:0 20px 45px #0007,inset 0 0 0 2px #1d130f}
.rv-home-book-shelf{padding:23px 13px 18px;max-width:none;border-bottom:13px solid #744224;border-radius:3px;background:linear-gradient(180deg,#25170f44,#69402955);box-shadow:inset 0 -7px #b27c4a,0 14px 18px #08050266}
.rv-home-book img,.rv-book-placeholder{border:4px ridge #b98a50;box-shadow:-7px 9px 0 #311e12,-12px 13px 20px #0008}.rv-home-book-name{color:#f5e6ce}.rv-home-books h2,.rv-home-books p{color:#f6e7d0}
.book{border:5px ridge #96663b;border-radius:10px;background:linear-gradient(145deg,#53341f,#24170f);padding:16px;box-shadow:0 17px 30px #0006,inset 0 0 0 2px #bf925f55}.book h3,.book p{color:#f2e4cd}.book-cover{border:3px solid #cf995c;box-shadow:inset 0 2px 12px #080503,0 7px 17px #0007}
.topic{border:3px solid #865730;background:linear-gradient(145deg,rgba(72,44,27,.72),rgba(13,29,42,.86));box-shadow:inset 0 0 0 1px #c3986366,0 9px 20px #0003}
.article-card{border:1px solid #9a7548;border-bottom:6px solid #80512e;box-shadow:0 12px 25px #0003;background:linear-gradient(155deg,var(--glass),rgba(70,44,28,.28))}
.rv-wood-author{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:0;align-items:stretch;overflow:hidden;border:6px ridge #916139;background:linear-gradient(135deg,#2c1d15,#5f3d29);padding:0!important;min-height:300px}
.rv-author-photo{min-height:290px;overflow:hidden}.rv-author-photo img{width:100%;height:100%;object-fit:cover;object-position:center 35%;display:block;filter:saturate(.85)}.rv-author-copy{padding:clamp(22px,3vw,38px);align-self:center}.rv-author-copy p{color:#ead9c0}.rv-wood-author h2{color:#f8e7c7}
.rv-about-banner{display:flex;gap:25px;align-items:center;padding:20px;margin-bottom:22px;background:linear-gradient(110deg,#2b1a14,#67402a);border:5px ridge #ab7b49;border-radius:14px}.rv-about-banner img{width:180px;max-width:35%;height:175px;object-fit:cover;object-position:center 30%;border:5px solid #b98750}.rv-about-banner h1{color:#f8e4c5}.rv-about-banner .overline{color:#e8c58e}
.rv-book-detail,.reader{box-shadow:0 12px 38px #0005}.rv-book-large-cover{padding:13px;background:linear-gradient(145deg,#a97643,#3c2518,#8f6036);border:4px ridge #b68a54}
html.day .top{background:linear-gradient(115deg,#53351f,#75502e,#50351f)}html.day .rv-featured-hero{color:#f9ebd7}html.day .rv-featured-summary{color:#efe3d0}html.day .rv-home-books,html.day .rv-wood-author{color:#f6e5cb}
@media(max-width:760px){.rv-wood-author{grid-template-columns:1fr}.rv-author-photo{height:230px;min-height:0}.rv-featured-image{max-width:240px}.rv-about-banner img{width:105px;height:120px}.top-inner{min-height:75px}}
@media(prefers-reduced-motion:reduce){.rv-home-book img,.rv-home-book .rv-book-placeholder{transform:none!important}}

/* نسخه ۲.۹: بافت واقعی چوب گردوی سوخته، نه رنگ تخت */
:root{--rv29-wood:url("assets/dark-walnut-grain.webp")}
.top{background-image:linear-gradient(90deg,#100b08a6,#27180da1),var(--rv29-wood)!important;background-size:auto,768px 512px!important;border-bottom:2px solid #9d7446}
.rv-home-books,.rv-wood-author,.rv-about-banner,.rv-book-large-cover,.book,.topic{background-image:linear-gradient(135deg,#0c0907ad,#24150cab 54%,#0b0805ac),var(--rv29-wood)!important;background-size:auto,768px 512px!important}
.rv-featured-hero{border:9px solid #54351e!important;background:linear-gradient(120deg,#09172de8,#09152bdc),var(--rv29-wood)!important;background-size:auto,768px 512px!important}
.rv-featured-image{background-image:var(--rv29-wood)!important;background-size:768px 512px!important}
.rv-home-book-shelf{background:linear-gradient(180deg,#0604027d,#351e0c86),var(--rv29-wood)!important;background-size:auto,768px 512px!important;border-bottom-color:#53331c}
.article-card{border-bottom-color:#53351d}.rv-wood-author{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.rv-author-photo{display:flex;align-items:center;justify-content:center;min-height:290px;background:#120e0b}.rv-author-photo img{width:100%;height:100%;max-height:360px;object-fit:contain;object-position:center;filter:none}
.rv-photo-empty{display:block;color:#e5cfb0;text-align:center;padding:40px 15px;line-height:2}.rv-about-banner img{object-fit:contain;background:#050505;max-width:35%}
.rv29-gallery{margin:34px 0;padding:22px;border:1px solid var(--border);border-radius:16px;background:var(--paper);color:var(--reader)}
.rv29-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px}.rv29-gallery-grid a{display:block;min-width:0;border:5px solid #483021;border-radius:7px;box-shadow:0 9px 21px #0005;overflow:hidden}.rv29-gallery-grid img{width:100%;height:180px;display:block;object-fit:cover;transition:transform .2s}.rv29-gallery-grid a:hover img{transform:scale(1.04)}
@media(max-width:760px){.rv-wood-author{grid-template-columns:1fr}.rv-author-photo img{max-height:320px;object-fit:contain}}

/* نسخه ۳.۰: صفحات مستقل و آرشیو جست‌وجوی منسجم */
.rv30-results{max-width:1140px;margin:35px auto 70px;min-height:55vh}.rv30-search-head{background:linear-gradient(110deg,#0b1928f0,#150d09cc),var(--rv29-wood);background-size:auto,768px 512px;border:5px ridge #795230;box-shadow:0 15px 35px #0006;border-radius:16px;padding:clamp(22px,4vw,48px);color:#faeddb;margin-bottom:26px}.rv30-search-head h1{font-size:clamp(26px,4vw,42px);color:#f7e1bb}.rv30-search-head p{color:#e5cfac}.rv30-search-head form{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.rv30-search-head input[type=search]{min-width:min(100%,300px);flex:1;padding:12px 16px;border-radius:9px;border:1px solid #b48a50;background:#fffaf0;color:#24160c;font:inherit}.rv30-search-head button,.rv30-search-head input[type=submit]{background:#b98946;color:#190e08;padding:12px 23px;border:0;border-radius:9px;font:inherit;cursor:pointer}.rv30-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:20px}.rv30-search-card,.rv30-topic{display:flex;flex-direction:column;overflow:hidden;border:3px solid #5a3b23;border-radius:14px;box-shadow:0 10px 25px #0004;background:linear-gradient(145deg,#15263b,#1c1512);color:#f7e7cf;text-decoration:none!important}.rv30-search-card:hover,.rv30-topic:hover{border-color:#b68b57;transform:translateY(-2px)}.rv30-search-card img{width:100%;height:185px;object-fit:contain;background:#0d1015}.rv30-search-card-body{display:grid;gap:10px;padding:20px;line-height:1.8}.rv30-search-card-body strong,.rv30-topic strong{font-size:20px;color:#f6ddad}.rv30-search-card-body small,.rv30-topic small{color:#79d0c7}.rv30-topic{padding:30px;gap:12px;background-image:linear-gradient(135deg,#0c0a09d9,#172434d7),var(--rv29-wood);background-size:auto,768px 512px}.rv30-result-count{margin:0 0 18px;color:var(--ink)}.rv30-empty{padding:28px;background:var(--paper);color:var(--reader);border-radius:13px}.rv30-pages{display:flex;gap:10px;margin:22px 0}.rv30-pages a{background:#2c1b12;border:1px solid #ad824b;border-radius:7px;padding:7px 14px;color:#fff}.rv30-pages a[aria-current]{background:#ad824b;color:#160a03}.nav a{white-space:nowrap}@media(max-width:850px){.rv30-results{margin-top:15px}.rv30-search-head{padding:22px}}
/* نسخه ۳.۱ — دفتر خوانش و نگارش و پنج مجموعه مستقل */
.rv31-reading-hero{grid-template-columns:minmax(0,1.55fr) minmax(240px,.75fr);grid-template-areas:"content visual" "index index";gap:20px 30px;min-height:430px;padding:clamp(22px,3vw,39px)}
.rv31-hero-copy{grid-area:content}.rv31-reading-hero h1{font-size:clamp(30px,4.1vw,46px);margin:7px 0 4px;color:#fff0d5}.rv31-deck{font-size:14px;margin:0 0 13px;color:#e5d8c6}
.rv31-latest-copy{margin:9px 0 0;border-right:3px solid #bc935f;padding:6px 17px 4px 0}.rv31-latest-copy h2{font-size:clamp(20px,2.4vw,27px);margin:3px 0 5px}.rv31-latest-copy h2 a:hover{color:#e8be83}.rv31-latest-excerpt{font-size:13px;line-height:1.85;margin-bottom:12px!important}.rv31-latest-copy .btn{font-size:13px;padding:6px 13px}.rv31-hero-actions{margin-top:11px}.rv31-all-link{color:#f2c688;text-decoration:underline;text-underline-offset:4px;font-size:13px}.rv31-all-link:hover{color:#fff}
.rv31-hero-visual{grid-area:visual;display:flex;align-items:center;justify-content:center;position:relative;z-index:2;min-width:0}.rv31-latest-image{max-width:min(100%,330px);width:100%;display:block}.rv31-latest-image img{display:block;width:100%;height:clamp(180px,23vw,270px);object-fit:contain}.rv31-no-image{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:4px;width:100%;min-height:210px;background:linear-gradient(#0e1216a9,#0d1115c9),var(--rv29-wood);border:5px ridge #8c643b;border-radius:12px;color:#f0d6a7;letter-spacing:2px}.rv31-no-image span:first-child{font-size:58px}
.rv31-hero-index{grid-area:index;position:relative;z-index:2;padding-top:14px;border-top:1px solid #d0aa6855}
.rv31-reading-links{display:flex;flex-wrap:wrap;gap:8px}.rv31-reading-link{min-width:0;flex:1 1 155px;padding:9px 11px;border:1px solid #a77a48;border-radius:10px;background:linear-gradient(110deg,#190f09cd,#0c1722d9),var(--rv29-wood);background-size:auto,768px 512px;box-shadow:0 5px 13px #0003;display:flex;flex-direction:column;gap:3px}.rv31-reading-link>a{display:block;color:#f9e8ce;font-weight:700;font-size:12px;line-height:1.7}.rv31-reading-link>a:hover{color:#faaf5b}.rv31-reading-sub{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #c59d6752;margin-top:3px;padding-top:4px}.rv31-reading-sub a{color:#7fe1d7;font-size:11px}.rv31-reading-sub a:hover{text-decoration:underline}
/* منوی بازشو قابل استفاده با لمس و صفحه کلید */
.rv31-menu-group{position:relative;min-width:max-content;color:#f6e8d1;z-index:30}.rv31-menu-group summary{list-style:none;cursor:pointer;padding:8px 9px;font-size:12px;font-weight:600;border-radius:8px;white-space:nowrap}.rv31-menu-group summary::-webkit-details-marker{display:none}.rv31-menu-group summary:after{content:" ▾";color:#e6bb81}.rv31-menu-group summary:hover,.rv31-menu-group[open]>summary{background:#c39c5836;color:#fff6e0}.rv31-menu-dropdown{position:absolute;right:0;top:100%;min-width:235px;max-width:90vw;padding:10px;display:grid;gap:2px;z-index:40;background:linear-gradient(#100b07ec,#170f09f2),var(--rv29-wood);background-size:auto,768px 512px;border:1px solid #b08954;border-radius:12px;box-shadow:0 17px 35px #000a}.rv31-menu-dropdown>a,.rv31-menu-children>a{display:block;padding:6px 10px;font-size:13px;color:#fbebd2;white-space:normal;border-radius:6px}.rv31-menu-dropdown a:hover,.rv31-menu-dropdown a:focus-visible{background:#c49b6240}.rv31-menu-children{margin-right:14px;border-right:1px solid #b88c59;padding-right:8px}.rv31-menu-children a{font-size:12px;color:#80dfda}
.rv31-reading-page .rv31-archive-head{margin-bottom:20px}.rv31-archive-head h1{font-size:clamp(30px,4vw,43px)}.rv31-return-link{color:#ffdfa9;font-size:13px;text-decoration:underline;text-underline-offset:5px}.rv31-archive-nav{margin:13px 0 28px}.rv31-archive-nav .rv31-reading-link{min-height:68px}.rv31-intro-branches{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 24px}.rv31-intro-branches a{display:inline-flex;padding:9px 20px;color:#f5ddba;background:linear-gradient(#1b120bd9,#1b120bd9),var(--rv29-wood);border:1px solid #a17b49;border-radius:11px}.rv31-list-title{font-size:25px;margin-bottom:15px}.rv31-entry-card{display:flex;flex-direction:column}.rv31-entry-card .rv30-search-card-body{flex:1}.rv31-entry-card .rv30-search-card-body span{font-size:13px;opacity:.9}.rv31-inline-invite{margin:15px 0 0}.rv31-inline-invite a{color:#f1c580;text-decoration:underline}.rv31-article-breadcrumb{margin:12px 0 24px;padding:10px 15px;border-right:3px solid #a98147;background:#d5b68022;border-radius:8px;color:#594633}.rv31-article-breadcrumb a{color:#634012;text-decoration:underline}
/* نسخه روز: متن دسته‌ها در پوسته چوبی همچنان خوانا باشد */
html.day .rv31-reading-hero,html.day .rv31-reading-hero p{color:#fff0dc}html.day .rv31-reading-link a{color:#f8e8ce}html.day .rv31-reading-sub a{color:#75dfd5}
@media(max-width:1100px){.top-inner{flex-wrap:wrap}.nav{max-width:100%;gap:5px}.rv31-menu-group summary{font-size:12px}.rv31-hero-index .rv31-reading-link{flex-basis:130px}}
@media(max-width:750px){.rv31-reading-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"content" "visual" "index";padding:22px;gap:17px}.rv31-hero-visual{max-width:100%}.rv31-latest-image{max-width:300px}.rv31-latest-image img{height:auto;max-height:240px}.rv31-reading-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.rv31-menu-group{position:static}.rv31-menu-dropdown{right:auto;left:0;top:auto}.rv31-reading-page .rv31-reading-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.rv31-reading-links,.rv31-reading-page .rv31-reading-links{grid-template-columns:1fr}.rv31-menu-dropdown{max-width:min(280px,90vw)}.rv31-reading-hero h1{font-size:32px}}

/* جلوگیری از بریده‌شدن منوی مجموعه‌ها در نوار افقی */
@media (min-width:751px) and (max-width:1100px){.nav{overflow:visible;flex-wrap:wrap;justify-content:center;gap:5px}}
@media (max-width:750px){.nav.is-open{overflow:visible}.rv31-menu-group{width:100%;min-width:0}.rv31-menu-group summary{padding:11px 12px}.rv31-menu-dropdown{position:static;max-width:100%;width:100%;margin:4px 0 8px;box-shadow:none}.rv31-menu-dropdown>a{white-space:normal}}

/* 3.1.1: readable wooden panels and managed navigation. */
html.day .topic{color:#f8e8ce}
html.day .topic span{color:#e0ceb4}
html.day .topic .gold{color:#f0c583}
html.day .rv-wood-author .btn,html.day .rv-home-books .btn{color:#f8e8ce;border-color:#b58a53}
.rv-primary-menu,.rv-primary-menu .sub-menu{list-style:none;margin:0;padding:0}
.rv-primary-menu{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.rv-primary-menu li{position:relative}
.rv-primary-menu .sub-menu{display:none;position:absolute;right:0;top:100%;min-width:220px;background:#21170f;border:1px solid #b08954;border-radius:10px;padding:8px;box-shadow:0 12px 25px #0008;z-index:40}
.rv-primary-menu .sub-menu .sub-menu{right:100%;top:0}
.rv-primary-menu li:hover>.sub-menu,.rv-primary-menu li:focus-within>.sub-menu{display:block}
.rv-primary-menu .sub-menu a{display:block;white-space:normal}
.rv-primary-menu .menu-item-has-children>a:after{content:' ▾';color:#e6bb81}
.rv30-pages{flex-wrap:wrap}
@media(max-width:750px){
 .nav.is-open{max-height:70vh;overflow-y:auto;overscroll-behavior:contain}
 .rv-primary-menu{display:flex;flex-direction:column;align-items:stretch;width:100%}
 .rv-primary-menu .sub-menu,.rv-primary-menu .sub-menu .sub-menu{display:block;position:static;min-width:0;box-shadow:none;margin-right:14px}
 .section-head{flex-wrap:wrap;align-items:center}
 .section-head>.btn{max-width:100%}
}

/* 3.1.2: shared text alignment and balanced inline spacing. */
.layout{--rv-text-gutter:clamp(20px,2.5vw,30px);text-align:start}
.layout :where(h1,h2,h3,h4){text-align:start;overflow-wrap:anywhere}
.layout :where(.wp-content,.article-card,.rv-book-info,.rv30-search-card-body,.rv-author-copy,.copy){min-width:0}
.layout :where(.wp-content p,.book>p,.article-card>p,.rv-book-info>.lead,.rv30-search-card-body>span,.rv-author-copy>p,.hero .copy>p,.rv31-latest-excerpt,.rv27-abstract p){
 text-align:justify;
 text-align-last:start;
 text-justify:inter-word;
 text-indent:0;
 word-spacing:normal;
 letter-spacing:normal;
 overflow-wrap:anywhere;
 margin-inline:0;
}
.layout .wp-content :where(p,ul,ol){margin-block:0 1em}
.layout .wp-content :where(ul,ol){padding-inline-start:1.5em;padding-inline-end:0}
.layout .wp-content li+li{margin-block-start:.35em}
.layout .wp-content blockquote{margin-inline:0;padding-inline:1.25em}
.layout .wp-content :where(.has-text-align-center){text-align:center;text-align-last:auto}
.layout .wp-content :where(.has-text-align-left){text-align:left;text-align-last:auto}
.layout .wp-content :where(.has-text-align-right){text-align:right;text-align-last:auto}
.layout .book{padding:var(--rv-text-gutter);justify-content:flex-start;gap:0}
.layout .book>.book-cover{flex:none;margin-inline:auto}
.layout .book>h3{width:100%;margin-block:24px 10px;font-size:clamp(20px,1.8vw,23px);line-height:1.8}
.layout .book>p{width:100%;margin-block:0;font-size:14px;line-height:2.1}
.layout .article-card{padding:var(--rv-text-gutter)}
.layout .article-card>p{font-size:14px;line-height:2.1}
.layout .rv30-search-card-body{padding:var(--rv-text-gutter);line-height:2.1}
.layout .rv30-search-card-body>strong{line-height:1.8}
.layout .rv30-search-card-body>span{font-size:14px}
.layout .reader{margin-inline:auto;padding-inline:clamp(22px,4vw,48px)}
.layout .rv27-article .wp-content{max-width:none}
.layout .rv-author-copy{padding-inline:var(--rv-text-gutter)}
.layout .rv-book-facts dd,.layout .rv27-data dd{min-width:0;overflow-wrap:anywhere}
@media(max-width:650px){
 .layout .books,.layout .writing-grid,.layout .result-list,.layout .rv30-cards{grid-template-columns:minmax(0,1fr)}
 .layout .book>p,.layout .article-card>p{font-size:14px}
}
@media print{.layout .reader{padding-inline:0}}

/* 3.1.3: justify content containers, including unwrapped plain text. */
.layout :is(.wp-content,.entry-content,.rv-book-info,.rv-author-copy,.rv30-search-card-body,.rv27-abstract,.rv27-citation,.rv27-data dd,.rv-book-facts dd),
.layout :is(.wp-content,.entry-content) :is(p,div,li,blockquote),
.layout p{
 text-align:justify!important;
 text-align-last:start!important;
 text-justify:inter-word;
 text-indent:0!important;
 word-spacing:normal;
 letter-spacing:normal;
 overflow-wrap:anywhere;
}
.layout :is(.wp-content,.entry-content) p{margin-inline:0!important}
.layout :is(h1,h2,h3,h4,h5,h6){text-align:start;text-align-last:start}
.layout :is(pre,code){text-align:start!important;text-align-last:start!important}

/* 3.1.4: consistent search form and compact search results. */
.rv27-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;align-items:stretch;width:100%}
.rv27-search>label{grid-column:1/-1;display:block;font-size:14px;font-weight:600;line-height:1.8}
.rv27-search>input[type=search]{width:100%;min-width:0;max-width:100%;font:inherit;font-size:16px;line-height:1.8;padding:11px 14px;direction:rtl}
.rv27-search>button{font-size:15px;line-height:1.8;padding:11px 24px}
.rv30-search-head .rv27-search{display:grid;margin-block:20px 0}
.rv-search-page{max-width:980px;margin:20px auto 50px;min-height:55vh}
.rv-search-head h1{font-size:clamp(28px,3.5vw,38px);margin-block:5px 12px}
.rv-search-count{margin-block:0 20px;font-size:15px}
.rv-search-results{display:grid;gap:16px}
.rv-search-result{display:flex;gap:22px;align-items:flex-start;padding:24px;border:1px solid var(--border);border-radius:14px;background:var(--glass)}
.rv-search-thumb{flex:0 0 90px;display:block}
.rv-search-thumb img{width:90px;height:120px;object-fit:contain;display:block;border-radius:6px}
.rv-search-copy{flex:1;min-width:0}
.rv-search-copy h2{font-size:22px;line-height:1.8;margin-block:3px 10px}
.rv-search-copy p{font-size:15px;line-height:2;margin-block:0 12px}
.rv-search-read{font-size:14px;color:var(--teal);text-decoration:underline;text-underline-offset:4px}
.rv-search-hint{padding:26px;border:1px dashed var(--border);border-radius:14px;line-height:2}
.rv-dossier-invite{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-block:0 30px;padding:26px;border:1px solid var(--border);border-radius:14px;background:var(--glass)}
.rv-dossier-invite h2{font-size:27px;margin-block:4px 8px}.rv-dossier-invite p{margin:0;line-height:2}.rv-dossier-invite .btn{flex-shrink:0}
.rv-dossier-page .rv30-topic p{font-size:14px;line-height:2;margin:0}
@media(max-width:600px){.rv-search-result{padding:18px;gap:14px}.rv-search-thumb{flex-basis:65px}.rv-search-thumb img{width:65px;height:95px}.rv-search-copy h2{font-size:20px}.rv-dossier-invite{flex-direction:column;align-items:stretch}.rv27-search{grid-template-columns:minmax(0,1fr)}.rv27-search>button{width:100%}}

/* 3.1.5: reading navigation at the end of dossier articles. */
.rv-dossier-navigation{margin-block:36px;padding-block-start:24px;border-top:1px solid var(--border)}
.rv-dossier-position{font-size:14px;color:var(--reader);margin-block:0 14px}
.rv-dossier-navigation-links{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.rv-dossier-next{flex:1 1 100%;display:flex;flex-direction:column;align-items:flex-start;text-align:start;white-space:normal;padding:18px 22px;gap:5px}
.rv-dossier-next span{font-size:14px}.rv-dossier-next strong{font-size:19px;line-height:1.8;overflow-wrap:anywhere}
.rv-dossier-index{font-size:14px;text-decoration:underline;text-underline-offset:4px;color:#734a20}
@media(max-width:600px){.rv-dossier-next{padding:16px}.rv-dossier-next strong{font-size:17px}}

/* 3.1.6: visual collection navigation in the homepage hero. */
.rv31-home-sections{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.rv31-home-sections .rv31-reading-link{padding:10px;gap:10px;min-width:0}
.rv31-home-sections .rv-collection-heading{font-size:14px;line-height:1.8;min-height:26px}
.rv31-home-sections .rv-collection-preview{display:flex;flex-direction:column;gap:8px;flex:1;font-weight:400}
.rv-collection-image,.rv-collection-placeholder{width:100%;aspect-ratio:16/9;display:block;border-radius:6px;border:1px solid #b58b5259;background:#10171b;object-fit:contain}
.rv-collection-placeholder{display:grid;place-items:center;font-size:36px;color:#c9a16c;background:linear-gradient(135deg,#2a2017,#102633)}
.rv-collection-caption{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.9;color:#f2e4cf;min-height:3.8em}
.rv31-home-sections .rv31-reading-sub{margin-top:auto;min-height:27px}
.rv-collection-preview:hover .rv-collection-caption{color:#ffda9a}
.rv-collection-preview:hover .rv-collection-image{border-color:#e5bd7f}
@media(max-width:750px){.rv31-reading-links.rv31-home-sections{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.rv31-reading-links.rv31-home-sections{grid-template-columns:minmax(0,1fr)}}

/* 3.1.7: books stand spine-out and lift to reveal their covers. */
.rv-home-books>div{width:100%;min-width:0}
.rv-home-books .rv-home-book-shelf{display:flex;flex-wrap:nowrap;align-items:flex-end;justify-content:flex-start;gap:7px;padding:32px 16px 14px;overflow-x:auto;overflow-y:hidden;max-width:100%;margin-block:20px 26px;isolation:isolate}
.rv-home-books .rv-home-book{display:block;position:relative;flex:1 1 49px;width:49px;max-width:52px;height:206px;min-width:30px;perspective:800px;transition:flex-basis .35s ease,width .35s ease,transform .35s ease;transform:translateY(0);z-index:1;border-radius:4px}
.rv-book-object{display:block;position:absolute;inset:0;transform-style:preserve-3d}
.rv-book-spine{position:absolute;inset:0;display:block;border:2px solid #bc925c;border-radius:4px;background:linear-gradient(90deg,#1a1410,#72492e 15%,#322c26 55%,#94613b 88%,#201710);box-shadow:inset 3px 0 5px #0008,-4px 5px 8px #0007;color:#ffedc9;overflow:hidden;transition:opacity .2s}
.rv-home-book:nth-child(3n+2) .rv-book-spine{background:linear-gradient(90deg,#091e25,#21606a 15%,#14313c 60%,#397078 88%,#07181c)}
.rv-home-book:nth-child(3n) .rv-book-spine{background:linear-gradient(90deg,#281017,#74333d 15%,#421f2a 60%,#925447 88%,#271015)}
.rv-book-spine:before,.rv-book-spine:after{content:'';position:absolute;left:5px;right:5px;height:3px;border-block:1px solid #d5ae68;top:14px}
.rv-book-spine:after{top:auto;bottom:37px}
.rv-spine-title{position:absolute;top:44%;left:50%;width:142px;transform:translate(-50%,-50%) rotate(-90deg);font-size:14px;font-weight:600;line-height:1.7;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-spine-author{position:absolute;bottom:8px;right:0;left:0;font-size:10px;line-height:1.8;text-align:center;color:#f3d59b}
.rv-book-front{position:absolute;top:0;right:0;width:144px;height:206px;display:block;transform-origin:right center;transform:rotateY(-85deg);opacity:0;transition:transform .35s ease,opacity .25s ease;box-shadow:-6px 6px 0 #e8dcc5,-10px 12px 18px #0008;border-radius:3px;background:#173641;pointer-events:none}
.rv-home-books .rv-book-front img{display:block;width:100%;height:100%;object-fit:contain;border:2px solid #c59a5d;border-radius:3px;background:#101517;box-shadow:none;transform:none;transition:none}
.rv-shelf-cover-empty{display:grid;place-items:center;height:100%;padding:16px;font-size:17px;line-height:2;color:#ffedc9;border:2px solid #c59a5d}
.rv-home-books .rv-home-book:hover,.rv-home-books .rv-home-book:focus-visible{flex:0 0 156px;width:156px;max-width:156px;transform:translateY(-16px);z-index:3}
.rv-home-book:hover .rv-book-front,.rv-home-book:focus-visible .rv-book-front{transform:rotateY(-12deg);opacity:1}
.rv-home-book:hover .rv-book-spine,.rv-home-book:focus-visible .rv-book-spine{opacity:0}
@media(hover:none){.rv-home-books .rv-home-book{touch-action:manipulation}}
@media(prefers-reduced-motion:reduce){.rv-home-books .rv-home-book,.rv-book-front,.rv-book-spine{transition:none!important}}

/* Keep neighboring panels stable while a book expands. */
.editorial{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}.editorial>*{min-width:0}
@media(max-width:650px){.editorial{grid-template-columns:minmax(0,1fr)}}

/* Collections appear as soon as they have a published article. */
.rv31-reading-links.rv31-home-sections{display:flex;flex-wrap:wrap;gap:12px}
.rv31-home-sections .rv31-reading-link{flex:0 1 230px;max-width:100%}
