main.three-view{display:flex!important;align-items:flex-start!important;justify-content:center!important;gap:12px!important;width:max-content;min-width:100%;overflow:visible}
main.three-view .bookslot,main.three-view .book,main.three-view .scanpanel,main.three-view .scan,main.three-view .modern-panel{display:block!important;flex:none!important;transform-origin:top left;position:relative}
main.three-view .modern-panel{width:680px}
main.three-view .modern-panel .bookslot,main.three-view .modern-panel .book{display:block!important}
main.three-view .three-original::before,main.three-view .modern-panel::before,main.three-view .three-scan::before{position:absolute;z-index:20;top:8px;left:50%;transform:translateX(-50%);padding:6px 10px;border-radius:3px;background:#252c29e8;color:#fff;font:600 12px system-ui;letter-spacing:.02em;white-space:nowrap;box-shadow:0 2px 8px #0002}
main.three-view .three-original::before{content:"Дореформенный текст"}
main.three-view .modern-panel::before{content:"Современный русский"}
main.three-view .three-scan::before{content:"Оригинальный скан"}
main.three-view .modern-panel .leaf{visibility:visible!important}
main.three-view .modern-panel .leaf.active{visibility:visible!important}
body.three-view-open{overflow-x:auto}
@media(max-width:900px){main.three-view{justify-content:flex-start!important}}

/* Default reading mode: the complete HTML text in one vertical stream. The
   scan-faithful leaves remain intact and are restored by Original/Compare. */
.reader-state{display:inline-flex;align-items:center;padding:7px 10px;border:1px solid #c7bba7;border-radius:4px;background:#fffaf0;color:#6e604d;font:11px/1.2 system-ui;white-space:nowrap}
main.continuous-view{display:block!important;width:auto!important;max-width:880px;margin:0 auto;padding:28px 24px 72px!important;overflow:visible!important}
main.continuous-view .bookslot,main.continuous-view .book{display:flex!important;flex-direction:column;gap:18px;width:100%!important;height:auto!important;position:relative!important;transform:none!important;zoom:1!important}
main.continuous-view .scanpanel,main.continuous-view .scan,main.continuous-view .modern-panel{display:none!important}
main.continuous-view .leaf,main.continuous-view .page{position:relative!important;inset:auto!important;display:block!important;visibility:visible!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:54px 68px 58px!important;transform:none!important;zoom:1!important;background:#fffef9;box-shadow:0 8px 24px #352b2018;border:1px solid #d9cfbd}
main.continuous-view .leaf,main.continuous-view .page{scroll-margin-top:112px}
main.continuous-view .leaf::before,main.continuous-view .page::before{display:none!important}
main.continuous-view .flow,main.continuous-view .typeset{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;overflow:visible!important;font-family:Georgia,'Times New Roman',serif!important;font-size:18px!important;line-height:1.58!important;text-align:justify!important;hyphens:auto!important}
main.continuous-view .flow p{margin:0 0 .72em!important;text-indent:1.45em}
main.continuous-view .flow h1{font-size:1.55em!important;line-height:1.25!important;margin:1.2em 0 .75em!important}
main.continuous-view .flow h2{font-size:1.28em!important;line-height:1.3!important;margin:1em 0 .65em!important}
main.continuous-view .flow h3{font-size:1.08em!important;line-height:1.35!important;margin:.9em 0 .55em!important}
main.continuous-view .running{position:static!important;height:auto!important;display:flex!important;justify-content:space-between;gap:20px;margin:-24px 0 34px;color:#8b7c68;font:10px/1.4 system-ui!important}
main.continuous-view .pdf-mark,main.continuous-view .page-label,main.continuous-view .leaf-label,main.continuous-view .bottom-mark{position:static!important;display:block!important;margin:28px 0 -36px;text-align:right;color:#9d917f;font:10px/1.4 system-ui!important}
main.continuous-view :is(.halfpage,.titlepage,.printerpage,.contentspage,.titleleaf,.tocleaf){height:var(--page-h,984px)!important;min-height:820px!important;padding:0!important;overflow:hidden!important}
main.continuous-view :is(.halfpage,.titlepage,.printerpage,.contentspage,.titleleaf,.tocleaf) :is(.typeset,.flow,.body-text,.title-composition,.half-title,.printer-composition,.contents-composition){height:100%!important}
main.continuous-view :is(.halfpage,.titlepage,.printerpage,.contentspage,.titleleaf,.tocleaf) .flow{text-align:center!important;font-size:18px!important;line-height:1.4!important;overflow:hidden!important}
/* Contents pages keep the proportions and compact hierarchy of the printed
   page when the surrounding book becomes a fluid continuous text. */
main.continuous-view :is(.contentspage,.tocleaf){width:100%!important;align-self:stretch}
main.continuous-view :is(.contentspage,.tocleaf) .flow{font-size:15.5px!important;line-height:1.28!important;text-align:left!important}
/* Printed folios belong to the page, not to the first body paragraph. */
:is(.flow,.typeset,.body-text)>.printed-page{position:relative!important;display:flex!important;flex-direction:column;align-items:center;width:100%!important;margin:0 auto 1.05em!important;padding:0!important;text-align:center!important;text-indent:0!important;font-size:.9em!important;line-height:1.1!important;font-weight:400!important}
:is(.flow,.typeset,.body-text)>.printed-page::after{content:"";display:block;width:5.2em;border-top:1px solid currentColor;margin-top:.42em;opacity:.72}
main.continuous-view .firsttext{padding:54px 68px 58px!important}
/* Kasso stores scan-faithful text blocks at absolute source coordinates.
   In the continuous reader those coordinates must be released into normal
   document flow; otherwise each leaf collapses and overlaps the next one. */
body.source-layout-reader main.continuous-view .bookslot,
body.source-layout-reader main.continuous-view .book{gap:0!important}
body.source-layout-reader main.continuous-view .leaf{border-bottom:0!important;box-shadow:none!important}
body.source-layout-reader main.continuous-view .leaf:last-child{border-bottom:1px solid #d9cfbd!important}
main.continuous-view .leaf.source-layout{padding:54px 68px 58px!important}
main.continuous-view .source-layout .typeset,
main.continuous-view .source-layout .flow{position:static!important;inset:auto!important;width:auto!important;height:auto!important;overflow:visible!important}
main.continuous-view .source-layout .source-block{position:static!important;inset:auto!important;width:auto!important;height:auto!important;margin:0 0 .72em!important;font-size:18px!important;line-height:1.58!important;text-align:left!important;letter-spacing:normal!important}
main.continuous-view .source-layout .source-block.source-heading{margin:1.05em 0 .72em!important;text-align:center!important}
main.continuous-view .source-layout .source-block .source-ink{width:auto!important;transform:none!important}
main.continuous-view .source-layout .source-block.source-single .source-ink{width:auto!important;white-space:normal!important}
main.continuous-view .source-layout .source-block p{margin:0!important;padding:0!important;font-size:inherit!important;line-height:inherit!important;text-indent:1.45em!important}
main.continuous-view .source-layout .source-block.source-heading p,
main.continuous-view .source-layout .source-block.source-single p{text-indent:0!important}
main.continuous-view .source-layout .source-ornament{position:relative!important;inset:auto!important;display:block!important;margin:30px auto 0!important}
body:not(.three-view-open){overflow-x:auto}
.reader-quick-nav{position:fixed;z-index:90;right:18px;bottom:22px;display:flex;flex-direction:column;gap:8px}
.reader-quick-nav button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #b9ab95;border-radius:50%;background:#fffdf8eF;color:#3e372d;font:700 20px/1 system-ui;box-shadow:0 4px 16px #352b2030;cursor:pointer;backdrop-filter:blur(5px)}
.reader-quick-nav button:hover,.reader-quick-nav button:focus-visible{background:#315f52;color:#fff;border-color:#315f52;outline:none}
.toc-return{position:fixed;z-index:91;left:18px;bottom:22px;padding:11px 16px;border:1px solid #315f52;border-radius:999px;background:#315f52;color:#fff;font:600 13px/1.2 system-ui;box-shadow:0 4px 16px #352b2030;cursor:pointer}
.toc-return:hover,.toc-return:focus-visible{background:#244a40;outline:2px solid #fff;outline-offset:2px}
.toc-return[hidden]{display:none!important}

/* Tyutryumov's contents is a composed printed page. Its hierarchy comes from
   indentation and letter spacing, not from a uniformly scaled list. */
body.tyutryumov-reader .tocleaf .flow{font-family:"Times New Roman",Times,serif!important;font-size:18px!important;line-height:1.16!important;text-align:left!important}
body.tyutryumov-reader #page-5.tocleaf{padding:248px 72px 64px!important}
body.tyutryumov-reader #page-5.tocleaf .flow{height:auto!important;overflow:visible!important}
body.tyutryumov-reader .tocleaf h2{text-align:center!important;font-family:"Times New Roman",Times,serif!important;font-size:25px!important;font-weight:400!important;letter-spacing:.03em!important;line-height:1.1!important;margin:0 0 10px!important}
body.tyutryumov-reader .tocleaf .toc-folio{text-align:right!important;text-indent:0!important;margin:0 0 2px!important;font-size:.78em!important;font-weight:600!important}
body.tyutryumov-reader .tocleaf .toc-row{display:flex!important;align-items:baseline!important;gap:.42em!important;margin:.12em 0!important;color:inherit!important;text-decoration:none!important;line-height:1.16!important}
body.tyutryumov-reader .tocleaf .toc-row span{max-width:84%!important}
body.tyutryumov-reader .tocleaf .toc-row i{flex:1 1 auto!important;min-width:12px!important;border-bottom:2px dotted currentColor!important;opacity:.72}
body.tyutryumov-reader .tocleaf .toc-row b{font-weight:400!important}
body.tyutryumov-reader .tocleaf .toc-level-0{padding-left:18px!important;letter-spacing:.13em!important;font-weight:600!important}
body.tyutryumov-reader .tocleaf .toc-level-1{padding-left:44px!important}
body.tyutryumov-reader .tocleaf .toc-level-2{padding-left:70px!important}
body.tyutryumov-reader .tocleaf .toc-level-3{padding-left:96px!important}
body.tyutryumov-reader #page-5.tocleaf .flow>p:not(.toc-folio){margin:.12em 0!important;padding-left:44px!important;text-indent:0!important;line-height:1.16!important;letter-spacing:.13em!important}
/* Every continuation leaf needs its printed margins in the continuous view.
   Let a dense leaf grow rather than clipping its final contents entries. */
body.tyutryumov-reader main.continuous-view .tocleaf:not(#page-5){padding:54px 72px 64px!important;height:auto!important;min-height:984px!important;overflow:visible!important}
body.tyutryumov-reader main.continuous-view .tocleaf:not(#page-5) .flow{height:auto!important;overflow:visible!important}
@media(max-width:720px){body.tyutryumov-reader main.continuous-view .tocleaf:not(#page-5){padding:38px 24px 44px!important;min-height:680px!important}body.tyutryumov-reader main.continuous-view .tocleaf:not(#page-5) .toc-level-1{padding-left:22px!important}body.tyutryumov-reader main.continuous-view .tocleaf:not(#page-5) .toc-level-2{padding-left:36px!important}body.tyutryumov-reader main.continuous-view .tocleaf:not(#page-5) .toc-level-3{padding-left:50px!important}}
@media(max-width:720px){main.continuous-view{padding:16px 12px 48px!important}main.continuous-view .leaf,main.continuous-view .page,main.continuous-view .leaf.source-layout{padding:38px 24px 44px!important}main.continuous-view .flow,main.continuous-view .typeset{font-size:17px!important;line-height:1.55!important}main.continuous-view .source-layout .source-block{font-size:17px!important;line-height:1.55!important}main.continuous-view :is(.halfpage,.titlepage,.printerpage,.contentspage,.titleleaf,.tocleaf){height:var(--page-h,760px)!important;min-height:680px!important;padding:0!important}.reader-state{width:100%;justify-content:center;order:20}}

/* Mortgage Statute: ordinary readers get one modern, uninterrupted HTML
   book.  Source pages remain addressable for Original and Compare, but their
   paper edges and verified blank/stamp leaves do not interrupt the text. */
body.reading-edition main.continuous-view{max-width:900px;padding:32px 20px 84px!important}
body.reading-edition main.continuous-view .book{display:flex!important;flex-direction:column;gap:20px!important;padding:0;background:transparent;border:0;box-shadow:none}
body.reading-edition main.continuous-view .leaf{position:relative!important;inset:auto!important;display:block!important;visibility:visible!important;width:100%!important;height:auto!important;min-height:0!important;padding:48px 76px 54px!important;border:1px solid #d9cfbd!important;box-shadow:0 7px 22px #352b2017!important;background:#fffef9!important;overflow:visible!important}
body.reading-edition main.continuous-view .leaf[data-omit-continuous="true"]{display:none!important}
body.reading-edition main.continuous-view .flow{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;padding:0!important;overflow:visible!important;font-family:Historical,Georgia,serif!important;font-size:18px!important;line-height:1.62!important}
body.reading-edition main.continuous-view .flow p{margin:0 0 .8em!important;text-align:justify!important;text-indent:1.45em!important}
body.reading-edition main.continuous-view .pdf-mark{display:block!important;margin:30px 0 -35px!important;text-align:right!important;color:#8f806b!important;font:10px/1.4 system-ui!important;letter-spacing:.02em}
body.reading-edition main.continuous-view .issue-badge{display:none!important}
body.reading-edition main.continuous-view .title-page{height:auto!important;min-height:0!important;padding:76px 76px 62px!important;overflow:visible!important}
body.reading-edition main.continuous-view .title-page .flow{height:auto!important;text-align:center!important}
body.reading-edition main.continuous-view .reading-title{max-width:690px;margin:0 auto;text-align:center}
body.reading-edition main.continuous-view .reading-title h1{margin:.25em 0 .72em!important;font-size:2em!important;line-height:1.15!important;letter-spacing:.045em}
body.reading-edition main.continuous-view .reading-title h1+ h1{margin-top:.95em!important;font-size:2.18em!important}
body.reading-edition main.continuous-view .reading-title h2{margin:1em 0 .55em!important;font-size:1.16em!important;line-height:1.35!important;letter-spacing:.025em}
body.reading-edition main.continuous-view .reading-title p{margin:.8em 0!important;text-align:center!important;text-indent:0!important}
body.reading-edition main.continuous-view .reading-title .title-preposition{font-size:1.06em}
body.reading-edition main.continuous-view .reading-title .title-imprint{margin-top:2.4em!important;font-size:.9em;letter-spacing:.025em}
body.reading-edition main.continuous-view .contents-page{height:auto!important;min-height:0!important;padding:36px 76px 48px!important;overflow:visible!important}
body.reading-edition main.continuous-view .contents-page .flow{height:auto!important;font-size:16.5px!important;line-height:1.4!important;text-align:left!important}
body.reading-edition main.continuous-view .contents-page .flow h1{margin:.3em 0 1em!important;font-size:1.55em!important}
body.reading-edition main.continuous-view .contents-page .flow p{margin:.25em 0!important;text-indent:0!important;text-align:left!important}
body.reading-edition main.continuous-view .contents-page .toc-jump{margin:.15em 0!important;padding:.2em .25em!important;border-radius:3px!important;white-space:normal!important}
body.reading-edition main.continuous-view .contents-page .toc-jump span{white-space:normal!important;overflow:visible!important}
body.reading-edition main.continuous-view .table-row{margin:.1em 0}
body.continuous-reader-open .reader-quick-nav{display:flex}
@media(max-width:720px){body.reading-edition main.continuous-view{padding:14px 8px 70px!important}body.reading-edition main.continuous-view .book{gap:12px!important}body.reading-edition main.continuous-view .leaf{padding:34px 25px 44px!important}body.reading-edition main.continuous-view .title-page{padding:50px 25px 42px!important}body.reading-edition main.continuous-view .contents-page{padding:28px 25px 38px!important}body.reading-edition main.continuous-view .pdf-mark{margin:24px 0 -29px!important}body.reading-edition main.continuous-view .flow{font-size:17px!important;line-height:1.57!important}body.reading-edition main.continuous-view .reading-title h1{font-size:1.55em!important}body.reading-edition main.continuous-view .reading-title h1+ h1{font-size:1.72em!important}.toc-return{left:10px;bottom:14px}.reader-quick-nav{right:10px;bottom:14px}}
