/* Fine navy leather, ivory paper and restrained printed typography. */
.law-dialog{--book-ink:#2e302e;--book-gold:#8e7446;--book-serif:Georgia,'Times New Roman',serif;position:fixed;inset:0;box-sizing:border-box;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--book-ink);overflow:hidden}
.law-dialog::backdrop{background:#10182072;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.law-dialog[open]{display:block;animation:sefer-arrive .45s ease-out}
.book-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.book-close{position:absolute;z-index:50;top:max(15px,env(safe-area-inset-top));right:max(19px,env(safe-area-inset-right));width:38px;height:38px;padding:0;border:1px solid #ffffff65;border-radius:50%;background:#18253065;color:#fff;font:300 29px/1 var(--site-font);cursor:pointer;backdrop-filter:blur(5px)}
.book-close:hover{background:#172a3b9c}.book-close:focus-visible,.book-mount:focus-visible{outline:2px solid #d6b16b;outline-offset:5px}
.book-stage{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;padding:56px 42px 42px;perspective:2400px;overflow:hidden;touch-action:none}
.book-mount{position:relative;direction:ltr;flex-shrink:0;filter:drop-shadow(0 18px 26px #08121c70);transform:rotate(0);transition:transform 1.15s cubic-bezier(.4,0,.2,1);touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;outline:none}
.book-mount.is-dragging{cursor:grabbing}
.book-mount:not([data-page]){visibility:hidden}
.book-mount.is-closed:not(.is-mobile){transform:translateX(calc(var(--page-width) * -.5)) rotate(-.5deg)}
.book-mount.is-back:not(.is-mobile){transform:translateX(calc(var(--page-width) * .5)) rotate(-.3deg)}
.book-mount::before{content:'';position:absolute;inset:-6.8% -6.6%;z-index:-1;pointer-events:none;background:url('/assets/book/atelier-open.webp') center/100% 100% no-repeat}
.book-mount.is-closed::before,.book-mount.is-back::before,.book-mount.is-cover-turn::before{visibility:hidden}
.book-mount.is-mobile::before{inset:-7px -6px -9px;background:#14202d;border:1px solid #34414c;border-radius:4px;box-shadow:1px 2px 0 #b5ad97,2px 4px 0 #26323b}
.book-mount .stf__wrapper{box-sizing:content-box}.book-mount .stf__block{isolation:isolate;touch-action:none}
.book-mount .stf__block{perspective:2600px}
.book-mount :is(.stf__hardShadow,.stf__hardInnerShadow){backface-visibility:hidden;pointer-events:none}
.book-mount:not([data-state="flipping"]):not([data-state="user_fold"]) :is(.stf__hardShadow,.stf__hardInnerShadow,.stf__innerShadow,.stf__outerShadow){display:none!important}
.book-mount.is-closed:not(.is-cover-turn) .book-leaf:not(.book-cover),.book-mount.is-back:not(.is-cover-turn) .book-leaf:not(.book-back-cover){visibility:hidden}
.book-loading{position:absolute;top:46%;left:0;right:0;text-align:center;color:#fff;font:16px var(--site-font);text-shadow:0 2px 10px #000}.book-loading[hidden]{display:none}
.book-leaf{box-sizing:border-box;position:relative;overflow:hidden;border:0;background-color:#f4f0e7;background-image:url('/assets/book/atelier-open.webp');background-size:225% 113%;background-position:10.5% 50%;color:var(--book-ink);touch-action:none}
.book-leaf.--left{border-radius:2px 0 0 2px;box-shadow:inset -24px 0 28px -25px #322a2070,-1px 2px 0 #c5baa2,-2px 3px 0 #ece5d5}
.book-leaf.--right{background-position:89.5% 50%;border-radius:0 2px 2px 0;box-shadow:inset 24px 0 28px -25px #322a2070,1px 2px 0 #c5baa2,2px 3px 0 #ece5d5}
.book-leaf::after{content:'';pointer-events:none;position:absolute;inset:0;z-index:5;box-shadow:inset 0 0 9px #88724a0c}
.book-page-inner{position:relative;z-index:2;box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:30px 37px 24px;pointer-events:none}
.book-running{display:block;padding-bottom:17px;border-bottom:1px solid #90754745;text-align:center;font:500 8px/1.5 var(--sans);letter-spacing:.14em;color:#877250;flex-shrink:0}
.book-small-title{font:400 15px/1.3 var(--book-serif);color:var(--book-gold)}
.book-chapter-title{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:16px;padding:15px 8px 65%}
.book-roman{font:400 34px/1.2 var(--book-serif);color:var(--book-gold);letter-spacing:.04em}
#law-dialog .book-chapter-title h2{font:400 clamp(24px,2.5vw,36px)/1.2 var(--book-serif);letter-spacing:-.025em;margin:0;color:#26313a;max-width:15ch;text-shadow:none}
.book-flourish{display:flex;align-items:center;gap:13px;color:#90703b;font-size:9px}.book-flourish::before,.book-flourish::after{content:'';height:1px;width:34px;background:#92734473}
.book-folio{display:block;text-align:center;font:11px/1 var(--book-serif);color:#807456;padding-top:17px;flex-shrink:0}
.book-illustration{position:absolute;inset:auto 10% 11%;width:80%;height:43%;object-fit:cover;opacity:.95;filter:saturate(.5);border:1px solid #b8aa8d80;pointer-events:none;-webkit-user-drag:none}
.book-chapter::before,.book-tail::before{content:none}
.book-chapter .book-running{color:#705833;border-color:#8a6f453d}.book-chapter .book-folio{text-shadow:0 1px 5px #fff1d2}
.book-reading-heading{padding:26px 0 21px;flex-shrink:0}
#law-dialog .book-reading-heading h2{font:400 29px/1.2 var(--book-serif);letter-spacing:-.025em;color:#26313a;margin:10px 0 0}
.book-prose{min-height:0;flex:1;overflow:hidden;padding:0 0 3px}
.book-prose p{font:16px/1.85 var(--book-serif);margin:0;color:var(--book-ink);hyphens:auto;overflow-wrap:break-word;text-align:left}
.book-prose p::first-letter{float:none;font:inherit;margin:0;color:inherit}
.book-continuation .book-prose p::first-letter{float:none;font:inherit;margin:0;color:inherit}
.book-continuation .book-reading-heading{padding-bottom:18px}
.book-continuation .book-small-title::after{content:' · '}
.book-cover{background:#111c29;border:0!important;border-radius:5px!important;box-shadow:2px 3px 0 #bcb29a,3px 4px 0 #eee7d5,5px 6px 0 #18232f!important}
.book-cover img{display:block;width:100%;height:100%;object-fit:fill;user-select:none;-webkit-user-drag:none}
.book-cover::after{box-shadow:inset 2px 0 6px #0003;background:none}
.book-cover-lettering{position:absolute;inset:0;z-index:2;pointer-events:none;text-align:center;font-family:var(--book-serif);color:#d7b574}
.book-cover-lettering>span,.book-cover-lettering>h2{position:absolute;display:block;left:13%;right:11%;margin:0;line-height:1.35;background:linear-gradient(115deg,#c29a52 10%,#f1d79c 28%,#b98c40 46%,#eed39a 66%,#c8a264 90%);background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:0 1px 1px #0002;filter:drop-shadow(0 1px 0 #090d12)}
.book-cover-lettering .book-cover-hebrew{top:18%;font-size:calc(var(--page-width)*.043);letter-spacing:.05em}
#law-dialog .book-cover-lettering .book-cover-title{top:32%;font-family:var(--book-serif);font-weight:400;font-size:calc(var(--page-width)*.086);line-height:1.25;letter-spacing:0;text-wrap:balance}
.book-cover-lettering .book-cover-subtitle{top:54%;font-size:calc(var(--page-width)*.035);letter-spacing:.035em}
.book-cover-lettering .book-cover-brand{top:69%;left:20%;right:18%;height:16%;background:url('/assets/brand/logo-humanity-en-v2.png') center/contain no-repeat;filter:invert(1) grayscale(1) sepia(.65) brightness(.9)}
.book-cover-lettering .book-cover-motto{top:87%;font-size:calc(var(--page-width)*.021);letter-spacing:.075em;text-transform:uppercase}
.book-open-label{position:absolute;bottom:5.5%;left:0;right:0;text-align:center;color:#d7c08d;font:italic 11px/1.4 var(--site-font);letter-spacing:.05em;text-shadow:0 1px 3px #000;opacity:.8}
.book-back-cover{border:1px solid #9b8656!important;background:linear-gradient(125deg,#1b293bef,#0d1929ef),url('/assets/book/paper.webp');background-size:cover;color:#d1ba83}
.book-back-cover>div{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:25px;text-align:center}.book-back-seven{font:80px/1 var(--book-serif)}.book-back-cover p{color:#d1ba83;font:13px/1.7 var(--book-serif);margin:0;letter-spacing:.1em}
.book-colophon .book-chapter-title{padding-bottom:0}.book-tail .book-illustration{inset:18% 10%;height:64%;opacity:.85}
html.law-book-open{overflow:hidden}.book-fallback .book-leaf{display:none;height:100%;width:100%}.book-fallback .book-leaf.is-current{display:block}
@keyframes sefer-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(max-width:700px){.book-stage{padding:55px 22px 30px}.book-close{width:32px;height:32px;right:12px;top:12px;font-size:25px}.book-mount{transform:none;transition:none}.book-page-inner{padding:23px 25px 19px}.book-running{font-size:6.5px;letter-spacing:.09em;padding-bottom:13px}.book-reading-heading{padding:20px 0 17px}#law-dialog .book-reading-heading h2{font-size:24px;margin-top:8px}.book-prose p{font-size:15px;line-height:1.75}.book-folio{padding-top:13px}.book-chapter-title{gap:14px;padding-bottom:65%}#law-dialog .book-chapter-title h2{font-size:26px}.book-roman{font-size:29px}}
.book-mount.is-compact .book-page-inner{padding:15px 24px}.book-mount.is-compact .book-running{padding-bottom:9px}.book-mount.is-compact .book-reading-heading{padding:12px 0}.book-mount.is-compact .book-reading-heading h2{font-size:22px}.book-mount.is-compact .book-prose p{font-size:15px;line-height:1.6}
@media(prefers-reduced-motion:reduce){.law-dialog[open]{animation:none}.book-mount,.book-mount::before{transition:none}}

/* Front matter and a quiet paper-fold cue, present only on the turning edge. */
.book-toc{display:flex;flex-direction:column;gap:0;flex:1;min-height:0;pointer-events:auto}
.book-toc button{display:grid;grid-template-columns:22px 1fr 21px;gap:9px;align-items:baseline;padding:13px 0;border:0;border-bottom:1px solid #a58b582b;background:none;text-align:left;color:#303734;font:16px/1.4 var(--book-serif);cursor:pointer}
.book-toc button:hover{color:#9b692c}.book-toc button:focus-visible{outline:1px solid #a08247;outline-offset:3px}
.book-toc-number{color:#977741;font-size:13px}.book-toc-page{text-align:right;font-size:12px;color:#917747;font-variant-numeric:tabular-nums}
.book-contents .book-small-title,.book-introduction .book-small-title{font:500 10px/1.5 var(--sans);font-style:normal;letter-spacing:.12em;text-transform:uppercase}
.book-contents .book-reading-heading,.book-introduction .book-reading-heading{padding-top:28px;padding-bottom:22px}
.book-toc-hint{color:#998260;font:italic 13px/1.6 var(--site-font);text-align:center;margin:17px 0 0}
.book-intro-flourish{justify-content:center;padding-top:16px}.book-introduction .book-prose p{line-height:1.85}
.book-turn-cue{position:absolute;right:5px;bottom:5px;width:30px;height:32px;z-index:8;pointer-events:none;color:#8b6936;filter:drop-shadow(0 1px 2px #49321d25);animation:none!important}
.book-turn-cue::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,#fff7e5 48%,#d9c59f 51%,#efe1bd 68%,#faf0d7 100%);clip-path:polygon(100% 0,100% 100%,0 100%);border-radius:0 0 3px 0}
.book-turn-cue svg{position:absolute;right:3px;bottom:3px;width:24px;height:24px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.book-leaf.--left>.book-turn-cue{display:none}.is-mobile .book-leaf>.book-turn-cue{display:block}
@media(max-width:700px){.book-toc button{font-size:14px;padding:8px 0;grid-template-columns:18px 1fr 19px;gap:7px}.book-toc-hint{font-size:11px;margin-top:11px}.book-contents .book-reading-heading,.book-introduction .book-reading-heading{padding-top:19px;padding-bottom:17px}.book-introduction .book-prose p{font-size:15px;line-height:1.75}.book-turn-cue{width:28px;height:30px}.book-turn-cue svg{width:22px;height:22px}}
.book-mount.is-compact .book-toc button{font-size:13px;padding:8px 0;gap:6px}.book-mount.is-compact .book-toc-hint{font-size:10px;margin-top:7px}.book-mount.is-compact .book-contents .book-reading-heading,.book-mount.is-compact .book-introduction .book-reading-heading{padding-top:12px;padding-bottom:12px}.book-mount.is-compact .book-introduction .book-prose p{font-size:15px;line-height:1.6}

.book-mount.is-compact .book-toc button{padding:6px 0;font-size:12px;line-height:1.25}.book-contents .book-folio{margin-top:auto}

.book-toc-short{display:none}.book-mount.is-compact .book-toc-full{display:none}.book-mount.is-compact .book-toc-short{display:inline}.book-mount.is-compact .book-toc button{font-size:14px;line-height:1.3;padding:6px 0}.book-mount.is-compact .book-introduction .book-prose p{font-size:14px;line-height:1.55}.book-mount.is-compact .book-intro-flourish{display:none}

.book-prose :is(p,ul,ol,blockquote,h2,h3,h4){font-family:var(--book-serif);overflow-wrap:anywhere}.book-prose p+p{margin-top:.75em}.book-prose img{display:block;max-width:100%;max-height:170px;object-fit:contain;margin:8px auto}.book-prose figure{margin:8px 0}.book-prose :is(h2,h3,h4){font-size:20px!important;line-height:1.25!important}.book-prose :is(ul,ol){padding-inline-start:1.2em}.book-prose blockquote{margin:8px 0}.book-toc-label{overflow-wrap:anywhere}

