/* Fedorov reader layout; the gateway supplies the shared site footer and menu. */
body>header{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px;position:sticky;top:0;z-index:120;align-items:center;padding:12px clamp(16px,4vw,42px)}
body>header>.global-library-brand{grid-column:1;grid-row:1}
body>header>.global-library-menu{grid-column:2;grid-row:1;width:auto!important;flex:none!important;margin:0!important;padding:0!important}
body>header>.reader-book-heading{grid-column:1;grid-row:2;min-width:0}
body>header>.reader-book-heading h1{overflow-wrap:anywhere}
body>header>.reader-author-link{grid-column:2;grid-row:2;display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;border:1px solid #a9b6a3;border-radius:4px;text-decoration:none;white-space:nowrap;font:600 13px Arial,sans-serif}
body.library-reader>header>.reader-author-link{justify-self:start;width:auto!important}
.bar{top:var(--reader-header-height,0px);z-index:119}
.bar #contents{background:#315745;border-color:#315745;color:#fff;font-weight:600}
.bar #contents:hover,.bar #contents:focus-visible{background:#224633}
.leaf,.leaf-content{overflow:visible}
.leaf p{text-align-last:left}
.leaf .footnote.first-note,.leaf.footnotes .footnote:first-of-type{border:0;padding-top:.5em;position:relative}
.leaf .footnote.first-note::before,.leaf.footnotes .footnote:first-of-type::before{content:"";position:absolute;top:0;left:0;width:29%;border-top:1px solid #4f473f}
.leaf .footnote{font-size:max(.78em,13px);line-height:1.16;text-align:justify;text-align-last:left}
.leaf a[data-footnote-jump]{color:inherit;text-decoration:none;cursor:pointer}
.leaf a[data-footnote-jump]:hover{text-decoration:underline;text-underline-offset:2px}
.leaf a[data-footnote-jump]:focus-visible{outline:2px solid #315745;outline-offset:2px;border-radius:2px}
.paged-view .leaf{display:none}
.paged-view .leaf.active{display:block}
.corner-navigation{left:16px!important;right:auto!important;bottom:calc(var(--library-footer-height,28px) + 12px)!important;z-index:210}
.corner-navigation #back-to-contents{background:#315745;color:#fff;border-color:#315745;font:600 13px Arial,sans-serif}
.edge-arrows{position:fixed;right:16px;bottom:calc(var(--library-footer-height,28px) + 12px);z-index:210;display:flex;flex-direction:column;gap:8px}
.edge-arrows[hidden]{display:none}
.edge-arrows button{width:44px;height:44px;border:1px solid #b4a58e;border-radius:5px;background:#f5eee2;color:#315745;box-shadow:0 2px 8px #30271e22;font:22px Arial,sans-serif;cursor:pointer}
.edge-arrows button:focus-visible,.corner-navigation button:focus-visible{outline:2px solid #315745;outline-offset:2px}
main{padding-bottom:calc(var(--library-footer-height,28px) + 130px)}
@media(max-width:760px){
  body>header{grid-template-columns:minmax(0,1fr) auto;padding:10px 14px 10px}
  body>header>.global-library-menu{grid-column:2;grid-row:1}
  body>header>.reader-book-heading{grid-column:1/-1;grid-row:2}
  body>header>.reader-author-link{grid-column:1;grid-row:3;justify-self:start;min-height:40px}
  .bar{justify-content:center;padding:6px;gap:5px}
  .bar button,.bar select{font-size:12px;padding:7px}
  .bar select{max-width:min(44vw,190px)}
  main,main.compare{overflow:visible;justify-content:center;flex-wrap:wrap;padding:14px 12px calc(var(--library-footer-height,40px) + 135px)}
  .book,.leaf,.scan{width:min(700px,calc(100vw - 24px));flex:none}
  .leaf.has-aside .leaf-content{left:9%;right:9%}
  .leaf .margin-note{position:relative;left:auto!important;right:auto!important;top:auto!important;width:auto;margin:.25em 0 .4em;font-size:13px;line-height:1.15}
  .compare .scan{margin-top:8px}
  .corner-navigation{left:10px!important;bottom:calc(var(--library-footer-height,40px) + 12px)!important}
  .edge-arrows{right:10px;bottom:calc(var(--library-footer-height,40px) + 12px)}
  body.library-reader>header>.global-library-menu{width:44px!important;right:14px!important}
  body.library-reader>header .global-library-menu-toggle{width:44px;padding:11px;justify-content:center}
  body.library-reader>header .global-library-menu-toggle>span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  main.continuous-view{padding-right:64px}
  main.continuous-view .book,main.continuous-view .leaf{width:min(700px,calc(100vw - 88px))}
}
@media(max-width:760px){.leaf.title .title-art h1{font-size:clamp(24px,7vw,48px);letter-spacing:.04em}.leaf.title .title-art h2{font-size:1.65em}}
