/* A5 book page — 148 × 210 mm, laid out at 96 dpi (559 × 794 px).
   Used by the on-screen preview, the off-screen paginator and the PDF print,
   so all three always agree on where a page breaks. */
.book-vars {
  --bf: "Times New Roman", serif;
  --bs: 11pt;
  --lh: 1.5;
  --ps: 6pt;
}
.bp-inner {
  position: relative; width: 559px; height: 794px; overflow: hidden;
  background: #f7f1e6; color: #161616;
  font-family: var(--bf); font-size: var(--bs); line-height: var(--lh);
}
.bp-body {
  position: absolute; left: 60px; right: 60px; top: 70px; bottom: 70px;
  overflow: hidden; text-align: justify; hyphens: auto; overflow-wrap: break-word;
}
.bp-body > :first-child { margin-top: 0; }
.bp-body p { margin: 0 0 var(--ps); min-height: 1em; }
.bp-body p.split-head:not([style*="text-align"]),
.bp-body p.split-head[style*="justify"] { text-align-last: justify; }
.bp-body h1, .bp-body h2, .bp-body h3 { line-height: 1.25; margin: .9em 0 .45em; text-align: left; font-weight: 700; }
.bp-body h1 { font-size: 1.7em; }
.bp-body h2 { font-size: 1.35em; }
.bp-body h3 { font-size: 1.15em; }
.bp-body ul, .bp-body ol { margin: 0 0 var(--ps); padding-left: 1.5em; }
.bp-body li { margin: 0 0 calc(var(--ps) / 2); }
.bp-body img { display: block; max-width: 100%; max-height: 640px; height: auto; margin: .4em auto; }
.bp-body a { color: inherit; }
.bp-body blockquote { margin: 0 0 var(--ps) 1em; padding-left: 1em; border-left: 2px solid #bbb; font-style: italic; }
.bp-body h1.bp-chtitle { font-size: 1.9em; text-align: center; margin: 56px 0 36px; font-weight: 600; }

.bp-zone {
  position: absolute; left: 60px; right: 60px; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px; line-height: 1.2; white-space: nowrap;
}
.bp-zone.top { top: 30px; }
.bp-zone.bottom { bottom: 30px; }
.bp-zone > span:nth-child(1) { text-align: left; }
.bp-zone > span:nth-child(2) { text-align: center; }
.bp-zone > span:nth-child(3) { text-align: right; }
.bp-zone > span { overflow: hidden; text-overflow: ellipsis; display: flex; gap: 10px; }
.bp-zone > span:nth-child(2) { justify-content: center; }
.bp-zone > span:nth-child(3) { justify-content: flex-end; }

.bp-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px; text-align: center; }
.bp-cover h1 { margin: 0 0 18px; font-size: 2.6em; line-height: 1.15; font-weight: 600; }
.bp-tag { order: 2; margin-top: 18px; font-size: 1.05em; opacity: .75; }
.bp-tag p { margin: 0; text-align: center !important; }
.bp-back { position: absolute; left: 60px; right: 60px; top: 90px; bottom: 170px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; text-align: justify; }
.bp-back p { margin: 0 0 var(--ps); }
.bp-back h1, .bp-back h2, .bp-back h3 { text-align: center; margin: 0 0 .6em; line-height: 1.25; }
.bp-author { position: absolute; left: 60px; right: 60px; bottom: 120px; text-align: center; font-size: 1.15em; letter-spacing: .08em; font-variant: small-caps; }
