/* ScriptCamp 8.7.55 unified theme palette support; custom design layer */
body.theme-seyedahmadhoseini-book{background:#e9e2d4;color:#382d22}.sah-book-site{--paper:#fffaf0;--ink:#392f25;--gold:#b38a4b;max-width:1500px;margin:auto;padding:20px 24px 30px}.sah-book-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 3%;border-bottom:1px solid #bda77d66}.sah-book-brand{display:flex;align-items:center;gap:12px;color:#3e3022;text-decoration:none}.sah-book-brand b{display:block;font-size:17px}.sah-book-brand small{display:block;font:10px Georgia,serif;letter-spacing:2px;color:#9a7845}.sah-book-seal{display:grid;place-items:center;width:44px;height:44px;border:1px solid #b38a4b;border-radius:50%;color:#b38a4b;font-size:23px}.sah-book-top>p{color:#806f5b;font-size:12px}.sah-book-index{color:#80623c;text-decoration:none;font-size:12px;font-weight:800}.sah-book-main{max-width:1100px;margin:0 auto}.sah-book-intro{text-align:center;padding:45px 10px 24px}.sah-book-kicker{font:10px Georgia,serif;letter-spacing:3px;color:#9a7845}.sah-book-intro h1{font-size:clamp(26px,4vw,42px);margin:9px 0;color:#423323}.sah-book-intro p{color:#85745e;margin:0}.sah-book-rule{display:flex;align-items:center;justify-content:center;gap:12px;margin:20px auto;width:min(300px,70%);color:#b38a4b}.sah-book-rule i{height:1px;background:#b38a4b66;flex:1}.sah-reader-toolbar{display:flex;align-items:center;justify-content:space-between;max-width:900px;margin:0 auto 12px;padding:10px 14px;border:1px solid #c8b58f;border-radius:13px;background:#f8f1e3}.sah-reader-toolbar>span b,.sah-reader-toolbar small{display:block}.sah-reader-toolbar>span b{font-size:13px}.sah-reader-toolbar small{font-size:10px;color:#89775e}.sah-reader-actions{display:flex;align-items:center;gap:9px}.sah-reader-actions button{border:1px solid #d2c2a3;background:#fff9ed;color:#6d5434;border-radius:9px;width:36px;height:34px;font-size:17px;cursor:pointer}.sah-reader-actions output{font-size:11px;color:#806b4b;min-width:65px;text-align:center}.sah-book-stage{position:relative;max-width:900px;margin:auto;padding:20px 0 30px;perspective:1800px;touch-action:pan-y}.sah-book-shadow{position:absolute;inset:25px 3% 20px;background:#49351d25;filter:blur(24px);border-radius:50%}.sah-book-object{position:relative;min-height:460px;display:grid;place-items:stretch;background:#e4d4b5;border-radius:8px 18px 18px 8px;padding:13px 15px 13px 23px;box-shadow:0 18px 40px #44331d30, inset 8px 0 10px #72552c22}.sah-book-spine{position:absolute;left:50%;top:12px;bottom:12px;width:2px;background:linear-gradient(90deg,#a58a5f,#f8edda,#a58a5f);z-index:2}.sah-book-leaf{display:none;position:relative;grid-column:1;grid-row:1;background:var(--paper);min-height:430px;width:100%;padding:clamp(20px,5vw,54px) clamp(22px,7vw,75px);border:1px solid #e1d4bd;box-shadow:inset 14px 0 20px -22px #654b2b,inset -14px 0 20px -22px #654b2b;transform-origin:left center;backface-visibility:hidden}.sah-book-leaf.is-active{display:block;z-index:1;animation:sahLeafIn .48s ease both}.sah-book-leaf.is-turning{display:block;z-index:3;animation:sahLeafOut .5s ease both}.sah-book-leaf.from-left{transform-origin:right center}.sah-leaf-inner{max-width:650px;margin:auto;min-height:330px;display:flex;flex-direction:column;align-items:flex-start}.sah-leaf-no{align-self:flex-end;color:#b7a487;font:12px Georgia,serif;border-bottom:1px solid #d9cbb3;padding-bottom:7px;width:100%;text-align:left}.sah-leaf-image{display:block;width:100%;height:190px;margin:14px 0;overflow:hidden;border-radius:4px}.sah-leaf-image img{width:100%;height:100%;object-fit:cover}.sah-leaf-category{margin-top:20px;color:#a27a3e;font-size:11px;font-weight:900}.sah-leaf-inner h2{font-size:clamp(20px,3vw,30px);line-height:1.8;margin:7px 0 10px;color:#443626}.sah-leaf-inner h2 a{color:inherit;text-decoration:none}.sah-leaf-inner>p{font-size:14px;line-height:2.35;color:#756650;margin:0}.sah-leaf-bottom{margin-top:auto;padding-top:22px;width:100%;display:flex;justify-content:space-between;gap:10px;border-top:1px solid #e4d9c6;color:#a08d70;font-size:10px}.sah-leaf-bottom a{color:#98703b;text-decoration:none;font-weight:900}.sah-book-progress{height:4px;max-width:900px;margin:0 auto;background:#d2c2a3;border-radius:8px;overflow:hidden}.sah-book-progress span{display:block;height:100%;width:0;background:#a98249;transition:width .3s}.sah-book-hint{text-align:center;color:#8e7d65;font-size:11px;margin:12px}.sah-book-footer{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #bda77d66;margin:24px 3% 0;padding:18px 0;color:#8b795f;font-size:11px}.sah-book-footer a{color:#8b683a;text-decoration:none}@keyframes sahLeafIn{from{opacity:.5;transform:rotateY(-12deg)}to{opacity:1;transform:rotateY(0)}}@keyframes sahLeafOut{to{opacity:.1;transform:rotateY(-82deg)}}@media(max-width:650px){.sah-book-site{padding:8px 10px 22px}.sah-book-top{padding:10px 2%;gap:8px}.sah-book-top>p{display:none}.sah-book-brand b{font-size:14px}.sah-book-intro{padding:28px 8px 15px}.sah-reader-toolbar{margin:0 2px 8px;padding:8px}.sah-reader-actions{gap:5px}.sah-reader-actions button{width:32px;height:32px}.sah-book-stage{padding:10px 0 18px}.sah-book-object{min-height:440px;padding:8px 8px 8px 13px;border-radius:5px 12px 12px 5px}.sah-book-spine{left:50%}.sah-book-leaf{min-height:424px;padding:22px 20px}.sah-leaf-image{height:150px}.sah-leaf-inner>p{font-size:13px;line-height:2.15}.sah-leaf-bottom{flex-direction:column}.sah-book-footer{margin:18px 2% 0;font-size:10px}}@media(prefers-reduced-motion:reduce){.sah-book-leaf.is-active,.sah-book-leaf.is-turning{animation:none}}
/* 9.1.5 tactile open-book refinement */
.sah-book-stage{max-width:1040px;padding:22px 8px 34px}
.sah-book-object{min-height:560px;padding:18px 18px 18px 24px;grid-template-columns:1fr 1fr;grid-template-rows:1fr;border-radius:12px 20px 20px 12px;background:linear-gradient(90deg,#d9c49c 0,#eadbbd 3%,#e8d7b4 50%,#d8c29a 100%);box-shadow:0 24px 48px #44331d38,inset 9px 0 13px #72552c30,inset -8px 0 12px #72552c25}
.sah-book-object:before{content:"";position:absolute;left:50%;top:18px;bottom:18px;width:22px;transform:translateX(-50%);z-index:2;background:linear-gradient(90deg,#8f7044aa,#f7ecd5 42%,#927349aa 60%,#ead8b6);border-radius:50%;box-shadow:0 0 12px #60421f35}
.sah-book-cover-edge{position:absolute;inset:5px;border:1px solid #a98b5e;border-radius:10px 16px 16px 10px;pointer-events:none;z-index:4}
.sah-book-left-page{grid-column:1;grid-row:1;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;margin:2px 0 2px 2px;border:1px solid #e0d2b8;background:linear-gradient(90deg,#eee3ce,#fffaf0 12%,#fffaf0 90%,#e8dcc6);border-radius:8px 2px 2px 8px;box-shadow:inset -16px 0 20px -22px #503719; color:#c2a77c}
.sah-book-left-page span{font-size:46px;opacity:.6}.sah-book-left-page small{font:11px Georgia,serif;letter-spacing:2px;opacity:.8}
.sah-book-spine{left:50%;width:8px;opacity:.25;background:linear-gradient(90deg,#72552c,#fff0d2,#72552c)}
.sah-book-leaf{grid-column:2;grid-row:1;min-height:520px;margin:2px 2px 2px 0;padding:clamp(24px,4vw,54px) clamp(22px,4.5vw,62px);border-radius:2px 8px 8px 2px;background:linear-gradient(90deg,#e8dcc6 0,#fffaf0 8%,#fffaf0 100%);box-shadow:inset 16px 0 22px -24px #654b2b,inset -12px 0 18px -24px #654b2b,2px 2px 5px #624a2520}
.sah-book-leaf.is-active{z-index:3}.sah-book-leaf.is-turning{z-index:5}
.sah-book-object.single .sah-book-left-page{display:none}.sah-book-object.single{grid-template-columns:1fr}.sah-book-object.single .sah-book-leaf{grid-column:1;border-radius:8px;background:var(--paper)}.sah-book-object.single:before{display:none}.sah-book-object.single .sah-book-spine{display:none}
.sah-book-reader-modal{display:none;position:fixed;inset:0;z-index:100500;background:#21180ed9;padding:3vh 3vw;align-items:center;justify-content:center}.sah-book-reader-modal.is-open{display:flex}.sah-book-reader-dialog{width:min(940px,100%);height:min(92vh,1000px);display:flex;flex-direction:column;overflow:hidden;border:10px solid #80613a;border-radius:8px;background:#fffaf0;box-shadow:0 30px 90px #0008}.sah-book-reader-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;background:#eee1c9;border-bottom:1px solid #c9b48d;color:#4b3925;font-weight:900}.sah-book-reader-dialog>header button{width:36px;height:36px;border:1px solid #c5ad80;border-radius:50%;background:#fff8e9;color:#6b4c28;font-size:24px;cursor:pointer}.sah-book-reader-content{overflow:auto;padding:clamp(18px,4vw,48px);color:#423526;line-height:2.2}.sah-book-reader-content .article{max-width:760px;margin:auto;background:transparent;border:0;box-shadow:none;padding:0}.sah-book-reader-content .article h1{color:#382a1b;line-height:1.7}.sah-book-reader-content .article img{max-width:100%;height:auto}.sah-reader-loading,.sah-reader-error{text-align:center;padding:40px 12px;color:#80613a}.sah-reader-error a{color:#916b37}.sah-reader-open{overflow:hidden}
.sah-book-stage:fullscreen{max-width:none;width:100%;height:100%;padding:3vh 4vw;background:#e9e2d4;display:flex;align-items:center;justify-content:center}.sah-book-stage:fullscreen .sah-book-object{width:min(1200px,96vw);max-height:90vh}.sah-book-object.book-fullscreen-fallback{position:fixed;z-index:100400;inset:0;width:100vw;height:100vh;max-width:none;min-height:0;overflow:auto;padding:5vh 4vw;background:#e9e2d4;display:grid;align-content:center}.sah-book-object.book-fullscreen-fallback .sah-book-leaf{min-height:75vh}
@media(max-width:650px){.sah-book-stage{padding:10px 0 18px}.sah-book-object{min-height:540px;padding:9px 9px 9px 12px}.sah-book-left-page{gap:10px}.sah-book-left-page span{font-size:27px}.sah-book-left-page small{font-size:8px;letter-spacing:1px;writing-mode:vertical-rl}.sah-book-object:before{width:13px}.sah-book-leaf{min-height:520px;padding:22px 14px}.sah-leaf-image{height:125px}.sah-leaf-inner h2{font-size:17px}.sah-leaf-inner>p{font-size:11px;line-height:2}.sah-leaf-bottom{font-size:9px;flex-direction:column}.sah-book-reader-modal{padding:0}.sah-book-reader-dialog{width:100%;height:100%;border-width:5px;border-radius:0}.sah-book-object.book-fullscreen-fallback{padding:10px}.sah-book-object.book-fullscreen-fallback .sah-book-leaf{min-height:82vh}}
/* 9.1.6: real closed cover + RTL page-turn book */
.sah-book-library{max-width:1100px;margin:0 auto}.sah-book-cover-screen{min-height:640px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;padding:30px 12px}.sah-cover-book{position:relative;width:min(390px,78vw);height:520px;perspective:1400px;filter:drop-shadow(22px 24px 18px #39271455)}.sah-cover-pages{position:absolute;right:-15px;top:12px;bottom:12px;width:22px;border-radius:0 8px 8px 0;background:repeating-linear-gradient(0deg,#f9f0dc 0,#f9f0dc 3px,#d9c9a9 4px,#fff8e8 5px);box-shadow:inset -5px 0 8px #7c603433}.sah-cover-face{position:absolute;inset:0 5px 0 0;border:3px double #d7bd83;border-radius:8px 14px 14px 8px;background:radial-gradient(ellipse at 50% 42%,#76502f 0,#4e2c1b 56%,#321b13 100%);color:#f3dfb3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 25px;box-shadow:inset 10px 0 18px #160b08aa,inset -5px 0 12px #d6b47722}.sah-cover-face:before{content:"";position:absolute;inset:14px;border:1px solid #d1b47799;border-radius:4px;pointer-events:none}.sah-cover-face:after{content:"";position:absolute;inset:23px;border:1px solid #d1b47755;border-radius:3px;pointer-events:none}.sah-cover-ornament{font-size:55px;color:#e2c58c;margin-bottom:24px;text-shadow:0 3px 10px #140a05}.sah-cover-face small{font:10px Georgia,serif;letter-spacing:3px;color:#d6bd8b}.sah-cover-face h1{font-size:clamp(25px,4vw,36px);line-height:1.8;color:#f7e8c7;margin:20px 0 12px;text-shadow:0 2px 4px #180c06}.sah-cover-face i{width:100px;height:1px;background:linear-gradient(90deg,transparent,#e4c98f,transparent);margin:10px}.sah-cover-face p{font-size:14px;color:#e2c99d}.sah-cover-face>b{font:10px Georgia,serif;letter-spacing:2px;color:#d3b780;margin-top:26px}.sah-cover-bottom{position:absolute;bottom:36px;font-size:25px;color:#d4b477}.sah-cover-open{border:1px solid #a98753;background:#f8f0e2;color:#694b28;border-radius:999px;padding:12px 25px;font:700 13px inherit;cursor:pointer;box-shadow:0 7px 22px #49351d20}.sah-cover-open span{margin-right:8px}.sah-book-reader[hidden]{display:none!important}.sah-book-reader{animation:sahBookReveal .55s ease both}.sah-book-object{grid-template-columns:1fr 1fr;grid-template-rows:1fr;min-height:580px;padding:16px 18px 16px 20px;overflow:hidden}.sah-book-left-page,.sah-book-right-page{position:relative;grid-row:1;min-width:0;min-height:540px;background:linear-gradient(90deg,#e9ddc7,#fffaf0 13%,#fffaf0 88%,#e6d8c0);border:1px solid #e0d2b8;box-shadow:inset 0 0 22px #80633a10}.sah-book-left-page{grid-column:1;border-radius:7px 2px 2px 7px;box-shadow:inset -18px 0 22px -25px #503719}.sah-book-right-page{grid-column:2;border-radius:2px 7px 7px 2px;box-shadow:inset 18px 0 22px -25px #503719}.sah-book-spine{z-index:5;left:50%;width:13px;transform:translateX(-50%);opacity:.6}.sah-book-object:before{z-index:6;pointer-events:none}.sah-left-empty{height:100%;min-height:500px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:#b49b70;text-align:center}.sah-left-empty span{font-size:48px}.sah-left-empty b{font-size:18px;color:#88704e}.sah-left-empty small{font-size:11px}.sah-page-content{height:100%;min-height:500px;padding:clamp(22px,4vw,48px);display:flex;flex-direction:column;align-items:flex-start;position:relative;z-index:2}.sah-page-content .sah-leaf-no{width:100%;text-align:right;align-self:stretch}.sah-page-content h2{font-size:clamp(20px,2.6vw,29px);line-height:1.9;color:#443626;margin:12px 0}.sah-page-content h2 a{color:inherit;text-decoration:none}.sah-page-content>p{font-size:13px;line-height:2.5;color:#756650}.sah-page-content .sah-leaf-image{height:185px;margin:14px 0 8px}.sah-page-content .sah-leaf-bottom{margin-top:auto}.sah-turn-sheet{display:none;position:absolute;z-index:10;top:16px;bottom:16px;left:50%;width:calc(50% - 18px);background:linear-gradient(90deg,#e7dac4,#fffaf0 12%,#fffaf0);border:1px solid #dfd0b4;box-shadow:0 8px 20px #4b341e25;transform-style:preserve-3d;backface-visibility:hidden}.sah-turn-sheet.turn-next{transform-origin:left center}.sah-turn-sheet.turn-prev{left:18px;transform-origin:right center}.sah-turn-sheet.is-turning.turn-next{animation:sahFlipForward .55s cubic-bezier(.55,.08,.35,1) forwards}.sah-turn-sheet.is-turning.turn-prev{animation:sahFlipBack .55s cubic-bezier(.55,.08,.35,1) forwards}.sah-book-stage.sah-book-full-fallback{position:fixed!important;inset:0!important;z-index:100500!important;width:100vw!important;height:100dvh!important;max-width:none!important;padding:3vh 3vw!important;margin:0!important;background:#e9e2d4!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:auto!important}.sah-book-stage.sah-book-full-fallback .sah-book-object{width:min(1500px,96vw);max-height:92dvh}.sah-book-full-body{overflow:hidden!important}.sah-book-stage:fullscreen,.sah-book-stage:-webkit-full-screen{width:100vw;height:100vh;max-width:none;padding:3vh 3vw;background:#e9e2d4;display:flex;align-items:center;justify-content:center}.sah-book-stage:fullscreen .sah-book-object,.sah-book-stage:-webkit-full-screen .sah-book-object{width:min(1500px,96vw);max-height:92vh}.sah-reader-toolbar{max-width:1040px}.sah-book-progress{max-width:1040px}
@keyframes sahFlipForward{0%{transform:rotateY(0);opacity:1}100%{transform:rotateY(-180deg);opacity:.98}}@keyframes sahFlipBack{0%{transform:rotateY(0)}100%{transform:rotateY(180deg)}}@keyframes sahBookReveal{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(max-width:700px){.sah-book-cover-screen{min-height:calc(100svh - 120px);padding:20px 8px}.sah-cover-book{height:440px;width:min(320px,78vw)}.sah-book-object{min-height:510px;padding:8px}.sah-book-left-page,.sah-book-right-page{min-height:490px}.sah-page-content{min-height:470px;padding:20px 13px}.sah-page-content h2{font-size:16px;line-height:1.8}.sah-page-content>p{font-size:11px;line-height:2.1}.sah-page-content .sah-leaf-image{height:125px}.sah-left-empty{min-height:470px}.sah-turn-sheet{top:8px;bottom:8px;width:calc(50% - 8px)}.sah-turn-sheet.turn-prev{left:8px}.sah-book-object:before{width:9px}.sah-book-stage.sah-book-full-fallback{padding:8px!important}.sah-book-stage.sah-book-full-fallback .sah-book-object{width:100%;max-height:96dvh}.sah-book-stage:fullscreen,.sah-book-stage:-webkit-full-screen{padding:8px}}
@media(prefers-reduced-motion:reduce){.sah-turn-sheet.is-turning{animation:none!important}}

/* 9.1.6 RTL reading direction, fullscreen shell and accessible exit control */
.sah-book-stage{direction:ltr}
.sah-turn-sheet.turn-next{transform-origin:left center}
.sah-turn-sheet.turn-prev{transform-origin:right center}
.sah-turn-sheet.is-turning.turn-next{animation:sahFlipForwardRTL .58s cubic-bezier(.55,.08,.35,1) forwards}
.sah-turn-sheet.is-turning.turn-prev{animation:sahFlipBackRTL .58s cubic-bezier(.55,.08,.35,1) forwards}
@keyframes sahFlipForwardRTL{0%{transform:rotateY(0);opacity:1}100%{transform:rotateY(180deg);opacity:.98}}
@keyframes sahFlipBackRTL{0%{transform:rotateY(0)}100%{transform:rotateY(-180deg)}}
.sah-left-empty{background:radial-gradient(circle at center,#fffdf7,#f1e7d4);border:0!important}
.sah-left-empty span{font-family:Georgia,serif;font-size:64px!important;color:#b89a68!important}
.sah-book-fullscreen-exit{display:none;position:fixed;top:14px;right:14px;z-index:2147483001;border:1px solid #fff7;background:#2c2118eF;color:#fff;border-radius:999px;padding:10px 16px;font:700 12px inherit;cursor:pointer;box-shadow:0 6px 24px #0004}
.sah-book-fullscreen-exit span{margin-right:7px}
.sah-book-library.is-fullscreen .sah-book-fullscreen-exit,.sah-book-library:fullscreen .sah-book-fullscreen-exit,.sah-book-library:-webkit-full-screen .sah-book-fullscreen-exit{display:block}
.sah-book-library:fullscreen,.sah-book-library:-webkit-full-screen{position:relative;width:100vw;height:100vh;overflow:auto;background:#e9e2d4;padding:2vh 2vw}
.sah-book-library:fullscreen .sah-book-stage,.sah-book-library:-webkit-full-screen .sah-book-stage{max-width:1500px;width:100%;margin:auto}
.sah-book-library:fullscreen .sah-book-object,.sah-book-library:-webkit-full-screen .sah-book-object{max-height:86vh}
.sah-book-library.is-fullscreen-fallback{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100dvh!important;overflow:auto!important;background:#e9e2d4!important;padding:14px!important}
.sah-book-library.is-fullscreen-fallback .sah-book-fullscreen-exit{display:block}
.sah-book-library.is-fullscreen-fallback .sah-book-stage{max-width:1500px;width:100%;margin:38px auto 0}
.sah-book-library.is-fullscreen-fallback .sah-book-object{max-height:none}
.sah-book-reader-modal{z-index:2147483002!important}
.sah-book-reader-dialog{position:relative;z-index:1}
@media(max-width:700px){.sah-book-library:fullscreen,.sah-book-library:-webkit-full-screen{padding:8px}.sah-book-library:fullscreen .sah-book-stage,.sah-book-library:-webkit-full-screen .sah-book-stage{margin-top:38px}.sah-book-fullscreen-exit{top:8px;right:8px;padding:9px 12px}.sah-book-fullscreen-exit span{display:inline}}


/* 9.1.7: the browser's [hidden] default must win over flex display on the cover. */
.sah-book-library [hidden]{display:none!important}
