/* Preserve the selected reader while reserving real layout space for site navigation. */
body[data-b7-module="classics"] { padding-top: 84px; }

body[data-b7-module="classics-reader"] .reader-shell {
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  padding-top: 72px;
}
body[data-b7-module="classics-reader"] .reader-toolbar { top: auto; }
body[data-b7-module="classics-reader"] .roll-stage { padding-top: 0; }
body[data-b7-module^="classics"] .b0-shell-wordmark { display: none; }

@media (max-width: 820px) {
  body[data-b7-module="classics"] { padding-top: 64px; }
  body[data-b7-module="classics-reader"] .reader-shell { padding-top: 64px; }
}
@media (max-width: 800px) {
  body[data-b7-module="classics-reader"] .roll-section { scroll-margin-top: 76px; }
  body[data-b7-module="classics-reader"] .reader-shell { height: auto; min-height: 100dvh; }
}
@media (max-width: 720px) {
  body[data-b7-module="classics"] .plain-return {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* F138: the classical-writing index keeps its notes on the catalogue's own edges, then closes with the site footer in its paper palette. */
.own-classics .catalog-footer{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:28px 0}
.own-classics>.site-footer.page-footer{width:min(1180px,calc(100% - 48px));margin:0 auto 40px;border-top-color:var(--line);color:var(--muted)}
.own-classics .site-footer .footer-title{color:var(--ink)}
.own-classics .site-footer .footer-signature .footer-title{color:var(--ink)}
.own-classics .site-footer :is(.footer-caption,.footer-top,.site-meta,.footer-link-mark){color:var(--muted)}
.own-classics .site-footer :is(.footer-entry-icon,.footer-top svg){color:var(--muted)}
.own-classics .site-footer a:hover .footer-title,.own-classics .site-footer .footer-top:hover{color:var(--signal)}
.own-classics .site-footer a:focus-visible,.own-classics .site-footer button:focus-visible{outline-color:var(--focus)}
@media(max-width:680px){.own-classics .catalog-footer{width:calc(100% - 32px);padding:24px 0}.own-classics>.site-footer.page-footer{width:calc(100% - 32px)}}
