@font-face{font-family:OldStandard;src:url(fonts/OldStandard-Regular.woff2)}
@font-face{font-family:OldStandard;src:url(fonts/OldStandard-Bold.woff2);font-weight:700}
@font-face{font-family:OldStandard;src:url(fonts/OldStandard-Italic.woff2);font-style:italic}
*{box-sizing:border-box}
html{scroll-behavior:auto}
body{margin:0;background:#e9e4da;color:#27221c;font:14px/1.45 system-ui,sans-serif}
button,select{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #b47b29;outline-offset:2px}
.site-head{position:sticky;top:0;z-index:120;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px 8px;padding:20px 4vw;background:#263a32;color:#faf4e6}
.site-head a{color:inherit}
.site-head .global-library-brand{grid-column:1;grid-row:1;display:flex;align-items:center;gap:14px;text-decoration:none;font:400 26px/1.1 Georgia,serif}
.global-library-brand img{width:59px;height:59px;flex:none}
.site-head .reader-heading{grid-column:1;grid-row:2;min-width:0}
.site-head .reader-heading small{font:12px/1.4 system-ui,sans-serif;letter-spacing:0}
.site-head .reader-heading h1{font:400 22px/1.2 Georgia,serif;margin:3px 0 0}
.reader-author-link{grid-column:2;grid-row:2;justify-self:start;font:14px/1.4 system-ui,sans-serif}
.global-library-menu{grid-column:2;grid-row:1;justify-self:end}
.global-library-nav{display:flex;gap:5px;flex-wrap:wrap}
.global-library-nav a{font:500 12px/1.25 Arial,sans-serif;text-decoration:none;border:1px solid #66766e;padding:7px 6px;min-height:34px;white-space:nowrap}
.global-library-nav a:hover{background:#f1e7d7;color:#263a32}
.global-library-menu-toggle{display:none}
.global-library-menu-icon{display:grid;gap:4px;width:20px}.global-library-menu-icon i{height:2px;background:currentColor}
.toolbar{position:sticky;top:var(--header-height,0px);z-index:119;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;background:#f9f5ec;border-bottom:1px solid #c9bcaa;padding:7px 10px;box-shadow:0 3px 9px #0001}
.toolbar button,.toolbar select{border:1px solid #b8a992;border-radius:5px;background:#fffdf8;color:#27221c;padding:8px 10px;min-height:38px}
#contents{background:#315e50;color:#fff;border-color:#315e50}
.toolbar button.on{background:#315e50;color:white;border-color:#315e50}
.toolbar button:disabled{opacity:.45;cursor:default}
.toolbar select{max-width:215px}
#status{font-size:12px;color:#5e5549;min-width:155px}
.provenance-note{max-width:1120px;margin:9px auto 0;padding:0 16px;color:#62594e;font-size:12px;text-align:center}
.provenance-note a{color:#315e50}
.reader{display:flex;justify-content:center;align-items:flex-start;gap:20px;padding:18px 18px 92px}
.book{width:700px;max-width:100%;flex:none}
.leaf{width:700px;max-width:100%;min-height:calc(700px * var(--page-ratio,1.51));background:#fffdf8;border:1px solid #cec2b2;box-shadow:0 9px 22px #0002;position:relative;scroll-margin-top:calc(var(--header-height,74px) + var(--toolbar-height,60px) + 14px);margin:0 auto}
.leaf+.leaf{margin-top:18px}
.orth{padding:8% 10% 10%;font:18px/1.29 OldStandard,Georgia,serif;overflow-wrap:anywhere}
.orth p{margin:0 0 .75em;text-align:justify;text-indent:1.1em}
.orth p:first-child{text-indent:0}
.orth h2,.orth h3,.orth h4{text-align:center;font-weight:700;line-height:1.22;margin:1.15em 0 .8em;break-after:avoid}
.orth h2{font-size:23px}.orth h3{font-size:19px}.orth h4{font-size:17px}
.orth sup{font-size:.7em;vertical-align:super;line-height:0}
.orth .footnotes{border-top:1px solid #766b5d;margin-top:22px;padding-top:10px;font-size:14px;line-height:1.2}
.orth .footnotes p{text-indent:0;margin:0 0 7px}
.orth .footnotes{font-size:14px;line-height:1.25;text-align:left}
.orth .footnotes p{text-align:left}
.erratapage .orth{padding:12% 8% 7%}
.erratapage h2{margin:0 0 30px;font-size:20px}
.errata-columns{display:grid;grid-template-columns:31% 28% 41%;gap:12px;font:14px/1.38 OldStandard,Georgia,serif}
.errata-column{min-width:0;overflow-wrap:normal}.errata-column h3{text-align:left;font-size:15px;font-style:italic;margin:0 0 8px;white-space:nowrap}
.errata-column>div{min-height:1.38em}
.densepage .orth{font-size:16.5px;line-height:1.2;padding:7% 9% 8%}
.running-head{text-align:center;font-size:13px;letter-spacing:.04em;margin:-20px 0 26px}
.printed-folio{position:absolute;top:34px;left:0;right:0;text-align:center;font:16px OldStandard,serif}
.leaf.pirvits .printed-folio{left:10%;right:10%;text-align:right}
.leaf.pirvits:nth-child(odd) .printed-folio{text-align:left}
.leaf-label{position:absolute;bottom:12px;right:20px;font:11px system-ui;color:#817664}
.signature{font-size:12px;text-align:right;margin-top:18px}
body[data-orthography="modern"] .orth-original,body[data-orthography="original"] .orth-modern{display:none}
.titlepage .orth{padding:0;height:calc(700px * var(--page-ratio,1.51));position:relative;text-align:center}
.title-composition{position:absolute;inset:0}
.title-composition p{text-align:center;text-indent:0;margin:0;line-height:1.13}
.title-composition .title-line{position:absolute;left:8%;right:8%}
.title-0{position:absolute;top:15%;left:8%;right:8%;font-size:22px}
.title-1{position:absolute;top:27%;left:8%;right:8%;font-size:28px;font-weight:700}
.title-2{position:absolute;top:34%;left:8%;right:8%;font-size:29px;font-weight:700}
.title-3{position:absolute;top:76%;left:8%;right:8%;font-size:21px}
.title-4{position:absolute;top:81%;left:8%;right:8%;font-size:17px}
.title-5{position:absolute;top:86%;left:8%;right:8%;font-size:17px}
.title-6{position:absolute;top:89%;left:8%;right:8%;font-size:17px}
.title-7{position:absolute;top:92%;left:8%;right:8%;font-size:17px}
.titlepage.pirvits .title-0{top:15%}
.titlepage.pirvits .title-1{top:27%}
.titlepage.pirvits .title-2{top:32%}
.titlepage.pirvits .title-3{top:37%;font-size:25px}
.titlepage.pirvits .title-4{top:55%;font-size:17px}
.titlepage.pirvits .title-5{top:76%}
.titlepage.pirvits .title-6{top:82%}
.titlepage.pirvits .title-7{top:87%}
.titlepage.nersesov .title-0{top:7%;font-size:16px}
.titlepage.nersesov .title-1{top:25%;font-size:31px}
.titlepage.nersesov .title-2{top:36%;font-size:28px}
.titlepage.nersesov .title-3{top:48%;font-size:26px}
.titlepage.nersesov .title-4{top:62%;font-size:22px}
.titlepage.nersesov .title-5{top:83%;font-size:18px}
.titlepage.nersesov .title-6{top:89%;font-size:20px}
.titlepage.petrazhitsky .title-0{top:8%;font-size:15px}
.titlepage.petrazhitsky .title-1{top:21%;font-size:24px}
.titlepage.petrazhitsky .title-2{top:27%;font-size:26px}
.titlepage.petrazhitsky .title-3{top:34%;font-size:24px}
.titlepage.petrazhitsky .title-4{top:41%;font-size:16px}
.titlepage.petrazhitsky .title-5{top:53%;font-size:22px}
.titlepage.petrazhitsky .title-6{top:59%;font-size:14px}
.titlepage.petrazhitsky .title-7{top:79%;font-size:18px}
.titlepage.petrazhitsky .title-8{top:83%;font-size:13px}
.titlepage.petrazhitsky .title-9{top:89%;font-size:20px}
.titlepage.petrazhitsky .title-10{top:93%;font-size:16px}
.titlepage.nersesov .orth-modern .title-0{top:8%;font-size:18px}
.titlepage.nersesov .orth-modern .title-1{top:25%;font-size:29px}
.titlepage.nersesov .orth-modern .title-2{top:36%;font-size:29px}
.titlepage.nersesov .orth-modern .title-3{top:49%;font-size:24px}
.titlepage.nersesov .orth-modern .title-4{top:84%;font-size:20px}
.titlepage.nersesov .orth-modern .title-5{top:90%;font-size:20px}
.titlepage.petrazhitsky .orth-modern .title-0{top:8%;font-size:18px}
.titlepage.petrazhitsky .orth-modern .title-1{top:22%;font-size:25px}
.titlepage.petrazhitsky .orth-modern .title-2{top:31%;font-size:27px}
.titlepage.petrazhitsky .orth-modern .title-3{top:39%;font-size:18px}
.titlepage.petrazhitsky .orth-modern .title-4{top:44%;font-size:18px}
.titlepage.petrazhitsky .orth-modern .title-5{top:57%;font-size:20px}
.titlepage.petrazhitsky .orth-modern .title-6{top:62%;font-size:16px}
.titlepage.petrazhitsky .orth-modern .title-7{top:66%;font-size:16px}
.titlepage.petrazhitsky .orth-modern .title-8{top:80%;font-size:19px}
.titlepage.petrazhitsky .orth-modern .title-9{top:85%;font-size:16px}
.titlepage.petrazhitsky .orth-modern .title-10{top:91%;font-size:19px}
.contentspage .orth{padding:13% 11% 10%}
.contentspage h2{text-transform:uppercase;letter-spacing:.08em;margin:0 0 35px}
.printed-contents{display:flex;flex-direction:column;gap:4px}
.toc-row{display:flex;align-items:baseline;gap:.4em;color:inherit;text-decoration:none;font:14px/1.12 OldStandard,Georgia,serif}
.contentspage.passek .orth{padding-top:18%;padding-bottom:6%}
.contentspage.passek h2{margin-bottom:19px}
.contentspage.pirvits .orth{padding-top:29%}
.contentspage.pirvits .printed-contents{max-width:520px;margin:auto;gap:16px}
.contentspage.pirvits .toc-row{font-size:19px}
.toc-row span{flex:0 1 auto;min-width:0}.toc-row i{border-bottom:1px dotted #827667;flex:1;min-width:12px}.toc-row b{font-weight:400;flex:0 0 auto;white-space:nowrap}
.contentspage.nersesov .orth{padding:10% 10% 8%}
.contentspage.nersesov h2{margin:0 0 28px}
.contentspage.nersesov .printed-contents{gap:7px}
.contentspage.nersesov .toc-row{font-size:17px;line-height:1.15}
.contentspage.nersesov .toc-row:has(span:first-child){min-height:17px}
.toc-row:hover,.contents-panel a:hover{text-decoration:underline;color:#315e50}
.scan-panel{display:none;width:700px;max-width:100%;flex:none}
.scan-panel img{display:block;width:100%;height:auto;background:white;box-shadow:0 9px 22px #0002}
.mode-continuous .leaf{min-height:0;height:auto;padding-bottom:24px}
.mode-continuous .leaf .orth{padding:46px 10% 18px;font-size:19px;line-height:1.5}
.mode-continuous .leaf .orth p{margin-bottom:.65em}
.mode-continuous .titlepage .orth{height:calc(700px * var(--page-ratio,1.51));padding:0}
.mode-continuous .titlepage .title-composition{position:absolute;inset:0;display:block}
.mode-continuous .titlepage .title-composition p{position:absolute}
.mode-continuous .erratapage .orth{padding:12% 8% 7%;font-size:18px;line-height:1.3}
.mode-continuous .contentspage .orth{padding:10% 10% 8%}
.mode-continuous .leaf .printed-folio{position:static;padding-top:18px}
.mode-continuous .leaf .leaf-label{position:static;text-align:right;margin:2px 20px}
.mode-book .leaf,.mode-scan .leaf,.mode-compare .leaf{display:none}
.mode-book .leaf.active,.mode-compare .leaf.active{display:block}
.mode-scan .book{display:none}
.mode-scan .scan-panel,.mode-compare .scan-panel{display:block}
.mode-compare{flex-wrap:nowrap}
.mode-compare .book,.mode-compare .scan-panel{width:min(700px,calc((100% - 20px)/2));min-width:0}
@media(max-width:1000px){.mode-compare{flex-wrap:wrap}.mode-compare .book,.mode-compare .scan-panel{width:min(700px,100%)}}
#contents-panel{border:1px solid #c5b9a7;border-radius:8px;background:#fffdf7;color:#2a241d;box-shadow:0 14px 70px #0006;width:min(780px,calc(100vw - 30px));max-height:85vh;padding:18px 24px}
#contents-panel::backdrop{background:#0007}
#contents-panel .contents-top{display:flex;justify-content:space-between;align-items:center;position:sticky;top:-18px;background:#fffdf7;padding:8px 0;border-bottom:1px solid #ddd1bf}
#contents-panel h2{margin:0;font:24px OldStandard,Georgia,serif}
#contents-panel nav{display:flex;flex-direction:column}
#contents-panel a{padding:8px 0;border-bottom:1px solid #eee6db;color:#315e50;text-decoration:none;font:17px/1.25 OldStandard,Georgia,serif}
#contents-panel small{color:#756b5d;font:11px system-ui;margin-left:.5em}
.bottom-dock{position:fixed;left:0;right:0;bottom:max(12px,env(safe-area-inset-bottom));z-index:130;display:flex;justify-content:space-between;align-items:flex-end;padding:0 max(18px,env(safe-area-inset-right)) 0 max(18px,env(safe-area-inset-left));pointer-events:none}
.bottom-dock button{pointer-events:auto;background:#fffdf8;border:1px solid #b8a992;box-shadow:0 3px 12px #0003;min-width:44px;min-height:44px;border-radius:8px;color:#24392f}
.bottom-dock .return-contents{padding:10px 14px;background:#315e50;color:#fff}
.bottom-dock .return-contents[hidden]{display:none!important}
.quick-nav{display:flex;flex-direction:column;align-items:center;gap:8px;margin-left:auto}
.quick-nav[hidden]{display:none!important}
.quick-nav button{width:44px;height:44px;font-size:22px;line-height:1;text-align:center}
@media(max-width:740px){.site-head{padding:7px 10px}.site-head h1{font-size:16px}.site-head small{font-size:10px}.toolbar{justify-content:flex-start;gap:4px;padding:5px}.toolbar button,.toolbar select{padding:5px 6px;min-height:34px;font-size:12px}.toolbar select{max-width:130px}#status{display:none}.reader{padding:10px 8px calc(110px + env(safe-area-inset-bottom))}.orth{font-size:16px;line-height:1.3}.mode-continuous .leaf .orth{font-size:16.5px;padding:28px 7% 12px}.titlepage .orth{height:auto;min-height:calc((100vw - 18px)*var(--page-ratio,1.51))}.leaf{min-height:calc((100vw - 18px)*var(--page-ratio,1.51))}.title-0{font-size:16px}.title-1,.title-2{font-size:20px}.title-3{font-size:17px}.title-4,.title-5,.title-6,.title-7,.title-8,.title-9,.title-10{font-size:14px}.contentspage .orth{padding:16% 8% 10%}.toc-row{font-size:14px}.bottom-dock{bottom:max(8px,env(safe-area-inset-bottom));padding:0 8px}.quick-nav{flex-direction:column;gap:8px}.quick-nav button{width:44px;height:44px}.bottom-dock .return-contents{font-size:12px;padding:5px 9px;min-height:42px}}
@media(max-width:740px){
 .site-head{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px 16px}
 .site-head .global-library-brand{grid-column:1;grid-row:1;font-size:18px;min-width:0;white-space:normal}
 .global-library-brand img{width:44px;height:44px}
 .site-head .reader-heading{grid-column:1/-1;grid-row:2}
 .site-head .reader-heading h1{font:400 18px/1.2 Georgia,serif}
 .reader-author-link{grid-column:1/-1;grid-row:3;font-size:12px}
 .global-library-menu{grid-column:2;grid-row:1;justify-self:end;position:relative}
 .global-library-menu-toggle{display:flex;align-items:center;gap:8px;color:#f7f2e9;background:transparent;border:1px solid #718078;padding:9px;min-height:44px}
 .global-library-nav{display:none;position:absolute;z-index:100;right:0;top:calc(100% + 6px);width:min(270px,calc(100vw - 32px));padding:8px;background:#263a32;box-shadow:0 14px 34px #0d1712aa}
 .global-library-menu.is-open .global-library-nav{display:grid}
 .global-library-nav a{display:block;min-height:44px;padding:11px 12px}
 .mode-continuous .titlepage .orth{height:calc((100vw - 18px)*var(--page-ratio,1.51));padding:0}
 .mode-continuous .contentspage .orth{padding:12% 8% 8%}
 .contentspage.nersesov .toc-row{font-size:14px}
 .errata-columns{gap:5px;font-size:10px}.errata-column h3{font-size:11px;white-space:normal}
}
/* The public gateway inserts its account control into the shared header. Reserve
   its space and collapse section links before they can overlap the brand. */
body.library-reader>header.site-head>.global-library-menu{width:auto!important;flex:none!important;margin:0 150px 0 0!important;padding:0!important;border:0!important}
body.library-reader>header.site-head>.global-library-brand{min-width:0;max-width:100%;white-space:normal!important}
body.library-reader>header.site-head>.global-library-brand span{min-width:0;white-space:normal!important}
@media(max-width:1350px){
 body.library-reader>header.site-head .global-library-menu-toggle{display:inline-flex!important}
 body.library-reader>header.site-head .global-library-nav{display:none!important;position:absolute;z-index:300;right:0;top:calc(100% + 8px);width:min(270px,calc(100vw - 32px));padding:8px;background:#263a32;box-shadow:0 14px 34px #0d1712aa}
 body.library-reader>header.site-head .global-library-menu.is-open .global-library-nav{display:grid!important}
 body.library-reader>header.site-head>.global-library-brand{font-size:clamp(18px,2vw,26px)}
}
@media(max-width:700px){
 body.library-reader>header.site-head{grid-template-columns:minmax(0,1fr)!important;gap:8px!important;padding:12px 16px!important}
 body.library-reader>header.site-head>.global-library-brand{grid-column:1;grid-row:1;max-width:calc(100vw - 180px)!important;font-size:16px!important}
 body.library-reader>header.site-head>.global-library-brand img{width:40px;height:40px}
 body.library-reader>header.site-head>.global-library-menu{position:relative!important;top:auto!important;right:auto!important;grid-column:1;grid-row:2;justify-self:end;margin:0!important}
 body.library-reader>header.site-head>.reader-heading{grid-column:1;grid-row:3;text-align:left}
 body.library-reader>header.site-head>.reader-author-link{grid-column:1;grid-row:4;justify-self:start}
}
