/* Empire of Liberty reader pages */
.reader {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #1a1a1a;
}
.titlepage { text-align: center; margin: 3rem 0 4rem; }
.titlepage .book-title { font-size: 2.4rem; letter-spacing: 0.02em; margin: 0 0 0.5rem; }
.titlepage .book-author {
  font-size: 1.2rem; font-style: italic; margin: 0 0 1.5rem; color: #444;
  text-align: center; text-indent: 0;
}
.reader p.running-title {
  text-align: center; text-indent: 0; margin: 0 0 2rem;
  font-variant: small-caps; letter-spacing: 0.06em; font-size: 0.95rem;
}
.running-title a { color: #555; text-decoration: none; }
.chapter { margin: 0; }
/* Chapter headings: Arial, never italic */
.chapter-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
  font-style: normal;
  margin: 1.6rem 0 1.1rem;
}
/* Book paragraphs: no gap, first-line indent */
.reader p { margin: 0; text-indent: 1.6em; text-align: left; }
.reader p.noindent { text-indent: 0; }
.reader p.break { text-indent: 0; }
.reader em { font-style: italic; }
.reader strong { font-weight: bold; }
/* Oslo chapters and other bold sans passages */
.reader p.sans { font-family: Arial, Helvetica, sans-serif; font-size: 1.02rem; }
/* Documents: emails, faxes, memos, dossiers, forms, screens, FORTRAN */
.doc {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 0 1.5em;
}
.doc p { text-indent: 0; font-style: normal; }
.reader .doc p { text-indent: 0; }
.redact { background: #000; color: #000; letter-spacing: -0.05em; user-select: none; }
.figure { text-align: center; text-indent: 0; }
.figure img { max-width: 80%; height: auto; }
/* End-of-chapter box, right-justified on the last line, like a proof's QED.
   Drawn as a box (not a font character) so it is as tall as a capital letter. */
.chapter > p:last-child::after,
.chapter > .doc:last-child > p:last-child::after {
  content: "";
  float: right;
  box-sizing: border-box;
  width: 0.7em;
  height: 0.7em;
  margin: 0.52em 0 0 1em;
  border: 1px solid currentColor;
}
.chapter > .doc:last-child > p:last-child::after { margin-top: 0.38em; }
/* Prev / Next */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0 0;
}
.pager button {
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  border: 1px solid #888;
  border-radius: 6px;
  background: #f4f4f4;
  color: #1a1a1a;
}
.pager button:hover { background: #e8e8e8; }
.pager .spacer { flex: 1; }
.reader p.pager-message {
  text-align: center;
  font-style: italic;
  color: #555;
  min-height: 1.5em;
  margin: 2rem 0 0;
  text-indent: 0;
}
