/* The index of entries, as the contents pages of a book */
.bk-intro { margin-bottom: 0.5em; color: var(--ink-soft); font-size: 17px; }
.bk-letter { margin-top: 0.2em; font-size: 1.15em; color: var(--cocoa); }
.bk-toc { display: flex; align-items: baseline; gap: 6px; margin: 0.25em 0 0; font-weight: 700; }
.bk-toc a { text-decoration: none; }
.bk-toc a:hover { text-decoration: underline; }
.bk-toc__dates { font-size: 15px; font-weight: 400; color: var(--ink-soft); white-space: nowrap; }
.bk-toc__dots { flex: 1; min-width: 1.5em; border-bottom: 1.5px dotted #9a8f84; transform: translateY(-0.3em); }
.bk-toc__n { font-weight: 400; }
.bk-toc--see { font-weight: 400; }
.bk-toc--see a { font-weight: 700; }
.bk-toc__teaser { padding-inline-start: 1em; font-size: 15.5px; line-height: 1.9; color: var(--ink-soft); }
.encyclopedia-index .bk-part { padding-top: 2em; }
.encyclopedia-turn { display: flex; justify-content: space-between; gap: 12px; margin: -4px auto 48px; font-size: 15px; }
@media (max-width: 560px) {
  .bk-toc__dates { display: none; }
  .bk-toc__teaser { font-size: 14px; }
  .encyclopedia-turn { flex-wrap: wrap; font-size: 14px; }
}

/* An entry as book pages (editorial/book.js), set like the Word book */
/* the page number on the outer edge, as in a Persian book: left on odd pages, right on even ones */
.encyclopedia-book .book-sheet.is-even .running-header { flex-direction: row-reverse; }
.encyclopedia-entry { padding-top: 16px; }
.encyclopedia-entry__divan { margin: 4px 0 18px; font-size: 14px; }
.encyclopedia-book .book-sheet { padding-top: 76px; padding-bottom: 96px; }  /* a book page's head and foot margins */
.encyclopedia-book .book-body { margin-top: 10px; }  /* the first line close under the running header */
.encyclopedia-book .bk-part { padding: 3.2em 0 0.6em; }
.encyclopedia-book .bk-part--sec { padding-top: 2.4em; font-size: 30px; }
.encyclopedia-book .bk-sec { margin: 0.6em 0 0.3em; }
.bk-h { margin: 0; font-size: 1em; font-weight: 700; line-height: inherit; }
.bk-h--small { color: var(--ink-soft); }
.bk-item strong { font-weight: 700; }
.bk-note { padding-inline-start: 1.2em; }
/* مآخذ: 2 cm in from the right (from the left for a European line, which reads left to right), a dash before each
   source with the lines after it hanging under the text, and the work's title bold and italic */
.bk-source { margin-inline-start: 2cm; padding-inline-start: 1em; text-indent: -1em; font-size: 17px; text-align: start; }
.bk-source::before { content: "–\a0 "; }
.bk-source.bk-cont { text-indent: 0; }
.bk-source.bk-cont::before { content: none; }
.bk-source[dir="ltr"] { text-align: left; }
.bk-src-title { font-style: italic; font-weight: 700; }
.encyclopedia-book .bk-ref { margin: 0; }
.encyclopedia-book a { color: inherit; text-decoration-color: rgba(42, 22, 12, 0.3); }
@media (max-width: 560px) {
  .encyclopedia-book .book-sheet { padding-top: 44px; padding-bottom: 56px; }
  .encyclopedia-book .book-body { margin-top: 6px; }
  .encyclopedia-book .bk-part { padding-top: 2.2em; }
  .encyclopedia-book .bk-part--sec { font-size: 25px; }
  .bk-source { margin-inline-start: 1cm; font-size: 15.5px; }
}

/* While book.js cuts the pages (data-measure) the page has the desktop measure and type on every screen, so that the
   pages, and their numbers, are the same everywhere; a phone then shows each page taller. Keep in step with the
   desktop values above and in core/css/site.css (.book-body, .bk-part, .bk-poet). */
.encyclopedia-book.bk-measure .book-body, .encyclopedia-book.bk-measure .book-flow { width: 590px; margin-top: 10px; font-size: 21px; line-height: 1.7; }
.encyclopedia-book.bk-measure .bk-part { padding: 3.2em 0 0.6em; font-size: 34px; }
.encyclopedia-book.bk-measure .bk-part--sec { padding-top: 2.4em; font-size: 30px; }
.encyclopedia-book.bk-measure .bk-part__by { font-size: 20px; }
.encyclopedia-book.bk-measure .bk-poet { font-size: 27px; }
.encyclopedia-book.bk-measure .bk-source { margin-inline-start: 2cm; font-size: 17px; }

/* Samples of the poet's verse (Life.samples), in the entry and on the poet's page */
.bk-sample-title { font-weight: 700; margin-top: 0.3em; }
.bk-sample-about { color: var(--ink-soft); font-size: 17px; }
.encyclopedia-book.bk-measure .bk-poem .poem-body { font-size: 22px; }
/* articles that are not biographies: tables of figures, notes under them, «نیز نگاه کنید به» */
.bk-table { border-collapse: collapse; margin: 0.4em auto 0.6em; font-size: 17px; line-height: 1.5; }
.bk-table th, .bk-table td { border-bottom: 1px solid var(--line, #ddd); padding: 0.15em 0.8em; text-align: center; }
.bk-table th { font-weight: 700; border-bottom-width: 2px; }
.bk-table td:first-child, .bk-table th:first-child { text-align: start; }
.bk-table-note { color: var(--ink-soft); font-size: 16px; }
.bk-see { font-size: 18px; }
@media (max-width: 720px) { .bk-table { font-size: 15px; } .bk-table th, .bk-table td { padding: 0.1em 0.45em; } }
