/* This view reflows independently of the fixed-layout book and its page zoom. */
body.reader-text-active { background: #faf8f3; overflow: auto; }
.reader-text-active #reader-book,
.reader-text-active #viewer-options-wrap,
.reader-text-active .skip-reader,
#reader-text-view[hidden] { display: none !important; }
#reader-text-view {
  --reading-size: 20px;
  min-height: 100vh;
  color: #252329;
  background: #faf8f3;
  font: var(--reading-size)/1.65 system-ui, sans-serif;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
#reader-text-view *, #reader-text-view *::before, #reader-text-view *::after { box-sizing: border-box; }
#reader-text-view [hidden] { display: none !important; }
#reader-text-view .reader-text-header {
  padding: 16px max(16px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid #c8c2cb;
  background: #fff;
}
#reader-text-view .reader-text-top,
#reader-text-view .reader-text-controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
#reader-text-view .reader-text-top { justify-content: space-between; margin-bottom: 12px; }
#reader-text-view .reader-text-field { display: flex; gap: 8px; align-items: center; max-width: 100%; }
#reader-text-view h1 { font-size: 22px; line-height: 1.3; margin: 0; }
#reader-text-view h2 { font-size: 1.6em; line-height: 1.3; margin: 0 0 1em; }
#reader-text-view h3 { font-size: 1.15em; line-height: 1.4; margin: 0 0 .7em; }
#reader-text-view button, #reader-text-view select {
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #726a79;
  border-radius: 5px;
  background: #fff;
  color: #252329;
  font: 16px/1.4 system-ui, sans-serif;
  cursor: pointer;
}
#reader-text-view label { font: 16px/1.4 system-ui, sans-serif; }
#reader-text-view button:hover:enabled { background: #eee9f1; }
#reader-text-view button:disabled { color: #746e79; border-color: #bab4c0; cursor: default; }
#reader-text-view :focus-visible { outline: 3px solid #005fcc; outline-offset: 3px; }
#reader-text-view #reader-text-close { color: #fff; background: #39343e; }
#reader-text-view #reader-text-close:hover { background: #504756; }
#reader-text-view .reader-text-content { max-width: 44em; margin: auto; padding: 28px 24px 64px; }
#reader-text-status:empty { display: none; }
#reader-text-view article { max-width: 65ch; }
#reader-text-view p { margin: 0 0 .65em; }
#reader-text-view .reader-text-block { margin-bottom: 1.6em; }
#reader-text-view .reader-text-paragraph-group + .reader-text-paragraph-group { margin-top: 1.4em; }
#reader-text-view .reader-text-position { font-weight: 700; }
#reader-text-view a { color: #174f91; text-decoration: underline; text-underline-offset: .15em; }
#reader-text-view .reader-text-index-row { padding: .2em 0; }
#reader-text-view .reader-text-index-row a { display: inline-block; min-width: 24px; margin-inline: 2px; }
#reader-text-view .reader-text-contents { padding-left: 1.2em; }
#reader-text-view .reader-text-contents li { margin-bottom: .5em; }
#reader-text-view dl { margin: 0; }
#reader-text-view dt { font-weight: 700; }
#reader-text-view dd { margin: 0 0 .8em; }
@media (max-width: 600px) {
  #reader-text-view .reader-text-header { padding: 12px 16px; }
  #reader-text-view .reader-text-content { padding: 24px 16px 48px; }
  #reader-text-view h1 { font-size: 19px; }
  #reader-text-view .reader-text-top { align-items: flex-start; }
}
@media (forced-colors: active) {
  #reader-text-view :focus-visible { outline-color: Highlight; }
}
