/* ==========================================================================
   copernicus-prim — Nicolaus Copernicus, primary sources
   Collection layer on top of the shared book-sheet (pdai-page.css).
   Only the apparatus zones this collection adds are styled here:
   footnotes (one note per line), the line-keyed critical apparatus, and
   the table of contents. Typographic differentiation only.
   ========================================================================== */

.pdai-page-structured [data-el="footnotes"] {
  margin-top: 1.4rem;
  padding-top: 0.5rem;
  border-top: 0.5px solid currentColor;
  width: 100%;
  font-size: 0.82rem;
  line-height: 1.45;
}

.pdai-page-structured [data-el="footnotes"] [data-el="footnote"] {
  display: block;
  margin: 0 0 0.25rem 0;
  padding-left: 1.6em;
  text-indent: -1.6em;
}

.pdai-page-structured [data-el="footnote"] .repro-fn-n {
  display: inline-block;
  min-width: 1.4em;
  font-variant-numeric: lining-nums tabular-nums;
}

.pdai-page-structured [data-el="footnote"][data-cont="true"] {
  padding-left: 0;
  text-indent: 0;
}

.pdai-page-structured [data-el="fnref"] {
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
  padding-left: 0.05em;
}

/* Critical apparatus: line-keyed, set smaller than the text, run-in per block. */
.pdai-page-structured [data-el="apparatus"] {
  display: block;
  margin-top: 1.1rem;
  padding-top: 0.4rem;
  border-top: 0.5px solid currentColor;
  font-size: 0.8rem;
  line-height: 1.45;
}

.pdai-page-structured [data-el="app"] {
  display: block;
  margin: 0 0 0.3rem 0;
}

.pdai-page-structured [data-el="app"] [data-el="app-label"] {
  font-style: italic;
}

.pdai-page-structured [data-el="app"] [data-el="app-n"] {
  font-style: italic;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Table of contents: title left, page reference right, no dot leaders. */
.pdai-page-structured [data-el="toc"] {
  display: block;
  margin: 0.6rem 0;
}

.pdai-page-structured [data-el="toc-entry"] {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin: 0.15rem 0;
}

.pdai-page-structured [data-el="toc-entry"][data-level="2"] { padding-left: 1.5em; }
.pdai-page-structured [data-el="toc-entry"][data-level="3"] { padding-left: 3em; }

.pdai-page-structured [data-el="toc-entry"] [data-el="label"] {
  min-width: 2.5em;
}

.pdai-page-structured [data-el="toc-entry"] [data-el="title"] {
  flex: 1 1 auto;
}

.pdai-page-structured [data-el="toc-entry"] [data-el="pageref"] {
  font-variant-numeric: lining-nums tabular-nums;
  text-align: right;
}

/* Margins: geometry from pdai-page.css (page language). Copernicus sets the
   typography of its line counts only. */
.page-sheet span[data-el="marginal"][data-type="line-number"] {
  font-family: inherit !important;
  font-style: italic !important;
  font-variant-numeric: lining-nums tabular-nums;
}

/* The canons (chords, star catalogue, Werner) are page-wide in print: let the
   headers wrap to the page instead of the shared plate's max-content width. */
.pdai-page-structured .repro-table-plate [data-el="table"] {
  width: auto !important;
}
