/* Patrologia — the look of a finely set scholarly book.
   One accent (rubric red, for Scripture and small ornaments), ink on warm paper,
   EB Garamond for English and Latin, GFS Didot for Greek. Logical properties
   throughout so that right-to-left source languages work unchanged. */

/* ---------------------------------------------------------------- fonts */
@font-face { font-family: "EB Garamond"; src: url("../fonts/EBGaramond-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/EBGaramond-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/EBGaramond-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/EBGaramond-SemiBoldItalic.woff2") format("woff2"); font-weight: 600 700; font-style: italic; font-display: swap; }
/* GFS Didot has a much larger x-height than EB Garamond (Greek ο 473 vs Latin o 414 units):
   scale it so that the two faces share an x-height on the same nominal size. */
@font-face { font-family: "GFS Didot"; src: url("../fonts/GFSDidot-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; size-adjust: 88.5%; }
@font-face { font-family: "GFS Didot"; src: url("../fonts/GFSDidot-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; size-adjust: 88.5%; }
@font-face { font-family: "GFS Didot"; src: url("../fonts/GFSDidot-Bold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; size-adjust: 88.5%; }
/* Ponomar Unicode (Church Slavonic, Synodal type): x-height 437 units against EB Garamond's 400
   (o 447 vs 414), scaled to share the x-height. One face only: Church Slavonic has no italic or
   bold. The unicode-range (= patrologia.site.fonts.SLAVONIC_RANGE) leaves Latin letters to EB Garamond. */
@font-face { font-family: "Ponomar Unicode"; src: url("../fonts/PonomarUnicode.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; size-adjust: 92.5%;
  unicode-range: U+0020-0040, U+005B-0060, U+007B-007E, U+00A0-00BF, U+00D7, U+00F7, U+02B9-02DD, U+0300-036F, U+0400-052F, U+1C80-1C8F, U+1DC0-1DFF, U+2000-206F, U+20DD-20E4, U+2DE0-2DFF, U+2E00-2E7F, U+A640-A69F, U+FE20-FE2F, U+1F540-1F545; }
/* Noto Sans Syriac (SIL OFL; the Noto Project): the three hands of Syriac, chosen per work by `hand:` in
   work.yaml (patrologia.syriac.HANDS): Estrangela (the default), Eastern and Western. Their letters stand
   about 7% taller than EB Garamond's x-height (body height 430-440 units against 405), which suits a
   script whose points need room, so no size-adjust; the Western letters are 414 high and a little lighter,
   hence 106%. The unicode-range (= patrologia.site.fonts.SYRIAC_RANGE)
   leaves Latin letters to EB Garamond. */
@font-face { font-family: "Noto Sans Syriac"; src: url("../fonts/NotoSansSyriac-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0700-074F, U+0300-036F, U+060C, U+061B, U+061F, U+200C-200F, U+2060, U+25CC; }
@font-face { font-family: "Noto Sans Syriac Eastern"; src: url("../fonts/NotoSansSyriacEastern-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0700-074F, U+0300-036F, U+060C, U+061B, U+061F, U+200C-200F, U+2060, U+25CC; }
@font-face { font-family: "Noto Sans Syriac Western"; src: url("../fonts/NotoSansSyriacWestern-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; size-adjust: 106%;
  unicode-range: U+0700-074F, U+0300-036F, U+060C, U+061B, U+061F, U+200C-200F, U+2060, U+25CC; }

/* ---------------------------------------------------------------- tokens */
:root {
  --font-latin: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-greek: "GFS Didot", "EB Garamond", "Gentium Plus", "New Athena Unicode", "Palatino Linotype", serif;
  /* Syriac: the three hands, self-hosted (Noto Sans Syriac, Eastern, Western); .hand-eastern / .hand-western on
     the page body, or data-hand on a listed title, pick the other two */
  --font-syriac: "Noto Sans Syriac", "Estrangelo Edessa", "Noto Sans Syriac Eastern", "Noto Sans Syriac Western", "EB Garamond", serif;
  --font-syriac-eastern: "Noto Sans Syriac Eastern", "Noto Sans Syriac", "Estrangelo Edessa", "EB Garamond", serif;
  --font-syriac-western: "Noto Sans Syriac Western", "Noto Sans Syriac", "Estrangelo Edessa", "EB Garamond", serif;
  /* placeholders: system fonts until faces are chosen and self-hosted */
  --font-coptic: "Antinoou", "Noto Sans Coptic", "New Athena Unicode", serif;
  --font-armenian: "Noto Serif Armenian", "Sylfaen", serif;
  --font-slavonic: "Ponomar Unicode", "EB Garamond", "Noto Serif", serif;
  --font-arabic: "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;
  --font-ethiopic: "Abyssinica SIL", "Noto Serif Ethiopic", serif;
  --font-georgian: "Noto Serif Georgian", "Sylfaen", serif;

  --fs: 1.1875rem;          /* 19px: Garamond has a small x-height */
  --lh: 1.58;
  --measure: 36rem;

  --paper: #f7f2e7;
  --paper-2: #fcf9f2;
  --ink: #251f1a;
  --ink-2: #4b4139;
  --muted: #74675a;
  --rule: #d6c9b4;
  --rule-2: #e6dccb;
  --rubric: #a6271b;
  --father: #1c5670;
  --other: #85631a;
  --hl: #efdba2;
  --hl-2: #e6c66e;
  --peer: rgba(70, 52, 30, .055);
  --tgt: #f5e6d8;
  --focus: #1c5670;
  --shadow: 0 12px 32px -14px rgba(45, 30, 15, .38), 0 1px 3px rgba(45, 30, 15, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #191613; --paper-2: #221e1a; --ink: #e7ddcc; --ink-2: #c9bca8; --muted: #9b8e7c;
    --rule: #40382f; --rule-2: #2d2823; --rubric: #e07a63; --father: #7cb7cf; --other: #d3ae62;
    --hl: #4d4123; --hl-2: #6b5a2c; --peer: rgba(231, 221, 204, .06); --tgt: #2f241e; --focus: #7cb7cf;
    --shadow: 0 14px 36px -12px rgba(0, 0, 0, .7), 0 1px 3px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #191613; --paper-2: #221e1a; --ink: #e7ddcc; --ink-2: #c9bca8; --muted: #9b8e7c;
  --rule: #40382f; --rule-2: #2d2823; --rubric: #e07a63; --father: #7cb7cf; --other: #d3ae62;
  --hl: #4d4123; --hl-2: #6b5a2c; --peer: rgba(231, 221, 204, .06); --tgt: #2f241e; --focus: #7cb7cf;
  --shadow: 0 14px 36px -12px rgba(0, 0, 0, .7), 0 1px 3px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
/* EB Garamond's Latin locale forms turn u into v (classical capitals style); editions print u */
[lang="la"] { font-feature-settings: "locl" 0; }
/* Church Slavonic: the font's ccmp/mark/mkmk do the work; nothing may disturb them (no fake
   italic or bold, no letter-spacing, no case changes, no small capitals). Line-end hyphen: the
   Synodal underscore-shaped sign. */
[lang="cu"] {
  font-synthesis: none; font-style: normal; letter-spacing: 0; text-transform: none;
  font-variant: normal; font-feature-settings: normal;
  -webkit-hyphenate-character: "_"; hyphenate-character: "_";
}
/* Syriac: a right-to-left script whose joining and points the font's ccmp/mark/mkmk place: no fake italic or
   bold, no letter-spacing (it would break the joins), no case change, no hyphenation (the builder inserts no
   soft hyphens; kashida is not used). The hand is the work's own (`hand:`). */
[lang="syc"] {
  font-synthesis: none; font-style: normal; letter-spacing: 0; text-transform: none;
  font-variant: normal; font-feature-settings: normal; hyphens: none; -webkit-hyphens: none; word-spacing: .06em;
}
.hand-eastern [lang="syc"], [lang="syc"][data-hand="eastern"] { font-family: var(--font-syriac-eastern); }
.hand-western [lang="syc"], [lang="syc"][data-hand="western"] { font-family: var(--font-syriac-western); }
/* Syriac inside English (notes, references, titles): isolated, so its marks and its numbers keep their place */
bdi[lang="syc"] { unicode-bidi: isolate; font-size: 1.04em; line-height: 1; }
/* the segment figures, margin labels and section numbers of a right-to-left column stay left to right and in the
   outer margin */
.src .sn, .src .pg, .src .secno { direction: ltr; unicode-bidi: isolate; }
.src .sn { display: inline-block; }
/* rubrics (kinovar): red text of the source, ⟦…⟧ in the .pat format */
.rb { color: var(--rubric); }
.rb.ini { font-size: 1.2em; line-height: 0; }
.k-bible { --kc: var(--rubric); }
.k-father { --kc: var(--father); }
.k-other { --kc: var(--other); }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: var(--fs);
  line-height: 1.5;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
b, strong { font-weight: 600; }
kbd { font-family: inherit; font-size: .82em; font-variant-numeric: lining-nums; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 3px; padding: 0 .3em; background: var(--paper-2); }
svg { flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.no-js .js-only { display: none !important; }
.skip { position: absolute; inset-inline-start: -999px; top: .5rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .4rem .8rem; border-radius: 3px; }
.skip:focus { inset-inline-start: .5rem; }
.sc-h {
  font-weight: 400; font-size: 1rem; line-height: 1.3;
  font-variant-caps: all-small-caps; letter-spacing: .16em; color: var(--ink-2);
  margin: 0 0 1rem;
}
.empty { text-align: center; color: var(--muted); font-style: italic; margin: 3rem auto; }

/* ornament: hairline — fleuron — hairline */
.orn { display: flex; align-items: center; justify-content: center; gap: .85rem; max-width: 15rem; margin: 1.1rem auto; color: var(--rubric); line-height: 1; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.orn span { font-size: 1.25rem; display: block; }
.orn svg { width: .8rem; height: .8rem; display: block; }

/* ---------------------------------------------------------------- site header & footer */
.site-h {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.4rem; flex-wrap: wrap;
  padding: .7rem 1.5rem; border-bottom: 1px solid var(--rule-2);
}
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-variant-caps: all-small-caps; letter-spacing: .2em; font-size: 1.1rem; color: var(--ink); }
.brand-x { width: .72rem; height: .72rem; color: var(--rubric); }
.site-nav { display: flex; align-items: center; gap: .2rem 1.15rem; flex-wrap: wrap; font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: 1rem; }
.site-nav a { text-decoration: none; color: var(--ink-2); padding-block: .2rem; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--rubric); }
.theme-t { appearance: none; background: none; border: 0; padding: .3rem; margin: -.3rem; color: var(--ink-2); cursor: pointer; display: inline-flex; border-radius: 50%; }
.theme-t svg { width: 1rem; height: 1rem; }
.theme-t:hover { color: var(--ink); }
.site-f { text-align: center; color: var(--muted); font-size: .85rem; line-height: 1.5; padding: 1.5rem 1.5rem 2.5rem; max-width: 40rem; margin-inline: auto; }
.site-f p { margin: .3rem 0; }
.site-f .orn { margin: .3rem auto 1rem; }
.crumbs { font-size: .85rem; color: var(--muted); padding: .9rem 1.5rem 0; font-variant-caps: all-small-caps; letter-spacing: .08em; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.toast {
  position: fixed; inset-inline-start: 50%; bottom: 1.4rem; z-index: 90; translate: -50% 0;
  background: var(--ink); color: var(--paper); font-size: .9rem; padding: .35rem .9rem; border-radius: 3px;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.toast.on { opacity: 1; }

/* ---------------------------------------------------------------- home */
.masthead { text-align: center; padding: 4.2rem 1.25rem 1.6rem; max-width: 46rem; margin-inline: auto; }
.mh-series { font-variant-caps: all-small-caps; letter-spacing: .34em; color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.mh-title {
  font-weight: 400; font-size: clamp(2.6rem, 1.2rem + 6.4vw, 5.4rem); line-height: 1;
  text-transform: uppercase; letter-spacing: .15em; margin: 0 -.15em 0 0; font-variant-numeric: lining-nums;
  font-feature-settings: "case" 1, "kern" 1;
}
.mh-orn { max-width: 20rem; margin-block: 1.5rem 1.4rem; }
.mh-purpose { font-size: 1.2rem; line-height: 1.5; font-style: italic; color: var(--ink-2); margin: 0 auto; max-width: 31rem; text-wrap: balance; }
.mh-stats { color: var(--muted); font-size: .92rem; margin: 1.1rem 0 0; }

.library { max-width: 46rem; margin: 2.2rem auto 3.5rem; padding-inline: 1.25rem; }
.lib-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--ink-2); padding-bottom: .35rem; margin-bottom: .4rem; }
.lib-head .sc-h { margin: 0; }
.lib-filter { display: flex; align-items: baseline; gap: .7rem; flex: 1 1 14rem; justify-content: flex-end; }
.lib-filter input {
  font: inherit; font-size: .95rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: .15rem .1rem; width: min(100%, 17rem); border-radius: 0;
}
.lib-filter input:focus { outline: none; border-bottom-color: var(--ink); }
.lib-filter input::placeholder { color: var(--muted); font-style: italic; opacity: 1; }
.lib-count { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.az { display: flex; flex-wrap: wrap; gap: .15rem .7rem; justify-content: center; font-variant-caps: all-small-caps; letter-spacing: .08em; margin: .9rem 0 0; }
.az a { text-decoration: none; color: var(--ink-2); }
.shelf-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.6rem; margin: 1rem 0 0; font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: 1.05rem; }
.shelf-nav a { text-decoration: none; color: var(--ink-2); }
.shelf-nav a:hover { color: var(--rubric); }
.shelf-n { color: var(--muted); font-size: .85em; letter-spacing: 0; font-variant-numeric: lining-nums; }
.shelf { margin-block: 3rem 0; scroll-margin-top: 1rem; }
.shelf-nav + .shelf, .lib-head + .shelf { margin-block-start: 2.2rem; }
.shelf-head { text-align: center; border-bottom: 1px solid var(--rule); padding-bottom: .7rem; }
.shelf-h { font-weight: 400; font-size: 1.75rem; line-height: 1.2; margin: 0; letter-spacing: .01em; color: var(--ink); }
.shelf-h::before { content: "\2767"; display: block; color: var(--rubric); font-size: 1rem; line-height: 1; margin-bottom: .35rem; }
.shelf-b { margin: .25rem 0 0; color: var(--muted); font-style: italic; font-size: .98rem; }
.shelf-head + .ag { margin-block-start: 1.4rem; }
.shelf-head + .ag-plain { margin-block-start: .6rem; }
.ag-plain .wl > .wk:first-child { border-top: 0; }
.ag { margin-block: 1.9rem 0; scroll-margin-top: 1rem; }
.ag-h {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .75rem;
  font-weight: 400; font-size: 1.28rem; line-height: 1.3; margin: 0 0 .15rem;
  font-variant-caps: small-caps; letter-spacing: .035em;
}
.ag-h a { text-decoration: none; color: var(--ink); }
.ag-h a:hover { color: var(--rubric); }
.ag-src { font-size: 1.02rem; color: var(--ink-2); font-variant-caps: normal; letter-spacing: 0; }
.ag-d { margin-inline-start: auto; font-size: .9rem; color: var(--muted); font-variant-caps: normal; letter-spacing: 0; }
.wl { list-style: none; margin: 0; padding: 0; }
.wk { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.2rem; padding: .45rem 0 .5rem; border-top: 1px solid var(--rule-2); line-height: 1.4; }
.wl > .wk:first-child { border-top-color: var(--rule); }
.wk-1 { grid-column: 1; min-width: 0; }
.wk > .status { grid-column: 2; grid-row: 1; align-self: baseline; padding-top: .2rem; }
.wk-t { font-size: 1.14rem; text-decoration: none; color: var(--ink); }
.wk-t:hover { text-decoration: underline; text-decoration-color: var(--rule); }
.wk-src { color: var(--ink-2); margin-inline-start: .3rem; font-size: 1.02rem; }
.wk-x { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-2); font-style: italic; }
.wk-m { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
.wk-m > span + span::before, .tb-meta > span + span::before, .tb-cite > span + span::before { content: " · "; }
.lib-none { color: var(--muted); font-style: italic; text-align: center; }

/* status: three dots, filled by how far the translation has been checked */
.status { display: inline-flex; align-items: center; gap: .45em; font-size: .86rem; font-variant-caps: all-small-caps; letter-spacing: .07em; color: var(--ink-2); white-space: nowrap; }
.meter { display: inline-flex; gap: 2px; }
.meter i { display: block; width: .44em; height: .44em; border-radius: 50%; border: 1px solid currentColor; }
.meter i.on { background: currentColor; }
.s-pending { color: var(--muted); }
.status-n { font-variant-caps: normal; letter-spacing: 0; color: var(--muted); white-space: normal; font-size: 1rem; }

/* ---------------------------------------------------------------- title blocks */
.title-block { text-align: center; max-width: 46rem; margin: 2.6rem auto 1.8rem; padding-inline: 1.25rem; }
.tb-author { font-variant-caps: all-small-caps; letter-spacing: .16em; font-size: 1.1rem; color: var(--rubric); margin: 0 0 .5rem; }
.tb-author a { text-decoration: none; }
.tb-author a:hover { text-decoration: underline; }
.tb-title { font-weight: 400; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.2rem); line-height: 1.08; margin: 0; text-wrap: balance; }
.tb-src { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.8rem); line-height: 1.25; margin: .45rem 0 0; color: var(--ink-2); }
.tb-sub { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); font-style: italic; line-height: 1.3; margin: .6rem 0 0; color: var(--ink-2); text-wrap: balance; }
.tb-extent { font-size: 1rem; line-height: 1.35; margin: .7rem 0 0; color: var(--ink-2); text-wrap: balance; }
.tb-cite { font-size: 1rem; color: var(--ink-2); margin: .2rem 0; font-variant-numeric: lining-nums; letter-spacing: .02em; }
.tb-meta { font-size: .98rem; color: var(--muted); margin: .2rem 0; }
.tb-note { font-size: .9rem; color: var(--muted); font-style: italic; margin: .5rem auto 0; max-width: 34rem; }
.tb-status { margin: 1rem auto 0; max-width: 34rem; }
.tb-status .status { white-space: normal; display: inline; }
.tb-status .meter { margin-inline-end: .35em; vertical-align: .05em; }
.tb-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1.4rem 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: .45em; text-decoration: none; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 2px; padding: .32rem .8rem .36rem; font-size: .98rem;
  font-variant-caps: all-small-caps; letter-spacing: .08em; background: var(--paper-2);
}
.btn svg { width: .85rem; height: .85rem; color: var(--rubric); }
.btn:hover { border-color: var(--ink-2); }
.btn-q { background: none; border-color: transparent; color: var(--ink-2); }
.btn-q:hover { border-color: var(--rule); }

/* ---------------------------------------------------------------- prose: introductions, about */
.prose { max-width: var(--measure); margin-inline: auto; padding-inline: 1.25rem; line-height: 1.55; hyphens: auto; -webkit-hyphens: auto; }
.prose p { margin: 0; text-align: justify; text-wrap: pretty; }
.prose p + p { text-indent: 1.4em; }
.prose h3 { font-weight: 400; font-style: italic; font-size: 1.08em; margin: 1.3em 0 .35em; }
.prose h2.sc-h { text-align: center; margin: 2.6rem 0 1rem; }
.prose ul { margin: .6em 0 .9em; padding-inline-start: 1.2em; }
.prose li { margin-bottom: .3em; }
.prose li::marker { color: var(--rubric); }
.intro { margin-block: 2.6rem 1rem; }
.intro h2.sc-h { margin-top: 0; }
.intro > p:first-of-type::first-line { font-variant-caps: small-caps; letter-spacing: .02em; }
.author-blurb { text-align: center; font-style: italic; color: var(--ink-2); }
.author-blurb p { text-align: center; }
.about .lede::first-line { font-variant-caps: small-caps; letter-spacing: .02em; }
.about-toc { text-align: center; font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.about-toc a { color: var(--ink-2); }
.status-list > div, .colophon dl > div { display: grid; grid-template-columns: 11.5rem 1fr; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--rule-2); }
.status-list { margin: 0 0 1rem; }
.status-list dd, .colophon dd { margin: 0; }
.lic-list li { margin-bottom: .55em; }

/* contents of a work */
.toc { max-width: var(--measure); margin: 1.5rem auto 0; padding-inline: 1.25rem; }
.toc h2 { text-align: center; }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2 16rem; column-gap: 2.5rem; }
.toc li { break-inside: avoid; margin-bottom: .3rem; }
.toc a { display: flex; gap: .7rem; text-decoration: none; align-items: baseline; flex-wrap: wrap;
  padding-inline-start: 2.5rem; }  /* hanging indent: a source title that wraps lines up with the title */
.toc a:hover .toc-t { text-decoration: underline; text-decoration-color: var(--rule); }
.toc-n { color: var(--rubric); min-width: 1.8rem; text-align: end; margin-inline-start: -2.5rem; }
.toc-s { color: var(--muted); font-size: .95em; }
.toc ol ol { columns: auto; margin: .15rem 0 .2rem 1.1rem; }  /* the sub-sections of a section, indented */
.toc ol ol li { margin-bottom: .15rem; font-size: .96em; }

/* ---------------------------------------------------------------- reading toolbar */
.toolbar { position: sticky; top: 0; z-index: 30; background: var(--paper); border-block: 1px solid var(--rule-2); margin-top: 2.4rem; transition: transform .2s ease-out; }
.toolbar.tb-away { transform: translateY(-110%); }
.tb-in { max-width: 96rem; margin-inline: auto; padding: .3rem 1.5rem; display: flex; align-items: center; gap: .3rem 1.4rem; flex-wrap: wrap; min-height: 2.6rem; }
.tb-name { flex: 1 1 8rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-style: italic; font-size: .95rem; }
.tb-cols { display: flex; gap: .2rem 1.1rem; flex-wrap: wrap; }
.tg, .key > summary {
  appearance: none; background: none; border: 0; font: inherit; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: .45em; padding: .25rem 0;
  font-variant-caps: all-small-caps; letter-spacing: .08em; font-size: 1rem; line-height: 1.2; white-space: nowrap;
}
.tg::before { content: ""; width: .62em; height: .62em; border: 1px solid currentColor; border-radius: 1px; }
.tg[aria-pressed="true"] { color: var(--ink); }
.tg[aria-pressed="true"]::before { background: currentColor; box-shadow: inset 0 0 0 1.5px var(--paper); }
.tg:hover, .key > summary:hover { color: var(--ink); }
.key { position: relative; }
.key > summary { list-style: none; }
.key > summary::-webkit-details-marker { display: none; }
.key > summary::after { content: ""; width: .38em; height: .38em; border-inline-end: 1px solid currentColor; border-block-end: 1px solid currentColor; rotate: 45deg; translate: 0 -.12em; }
.key[open] > summary::after { rotate: 225deg; translate: 0 .1em; }
.key-p {
  position: absolute; inset-inline-end: 0; top: calc(100% + .5rem); z-index: 35; width: min(30rem, calc(100vw - 2rem));
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--shadow);
  padding: .9rem 1.1rem 1rem; font-size: .92rem; line-height: 1.4; max-height: 75vh; overflow: auto;
}
.key-kb { margin: .8rem 0 0; color: var(--ink-2); font-size: .9rem; }

/* legend (reader key and about page) */
.legend { margin: 0; display: grid; gap: .5rem; }
.legend > div { display: grid; grid-template-columns: 8.2rem 1fr; gap: .8rem; align-items: baseline; }
.legend dt { text-align: end; display: flex; justify-content: flex-end; align-items: baseline; gap: .4em; white-space: nowrap; }
.legend dd { margin: 0; color: var(--ink-2); }
.prose .legend { margin: 1.2rem 0; text-align: start; }
.lg-s { color: var(--kc); display: inline-flex; }
.lg-s svg, .lg-m svg { width: .75em; height: .75em; }
.legend dt:has(.lg-s) { color: var(--ink); }
.lg-u { text-decoration: underline var(--kc); text-underline-offset: .22em; }
.lg-u.m-quote { text-decoration-style: solid; text-decoration-thickness: 1px; }
.lg-u.m-allusion { text-decoration-style: dotted; text-decoration-thickness: 2px; }
.lg-m { color: var(--kc); font-size: .9em; }
.lg-fn { font-feature-settings: "sups" 1; font-size: 1.1em; }
.lg-sn { font-size: .68rem; color: var(--muted); font-variant-numeric: lining-nums; }
.lg-pg { font-size: .78rem; color: var(--muted); font-variant-numeric: lining-nums; letter-spacing: .02em; white-space: nowrap; }
.lg-hl { background: var(--hl); border-radius: 2px; box-shadow: 0 0 0 .12em var(--hl); }

/* ---------------------------------------------------------------- the reader */
.reader {
  --mw: 5.6rem;    /* outer margin: Migne columns, section numbers */
  --aw: 15rem;     /* apparatus of references */
  --gap: 2.3rem;
  --n: 2;          /* visible text columns (set by reader.js) */
  max-width: 96rem; margin-inline: auto; padding: 0 1.5rem 1rem;
  scroll-margin-top: 2.8rem;  /* clear the sticky toolbar */
}
.row {
  position: relative;  /* containing block for marginal notes: always the page's inline-start */
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr)) var(--aw);
  column-gap: var(--gap);
  padding-inline-start: var(--mw);
}
.reader.no-refs .row, .reader.no-app .row { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.reader.no-app .row > .app { display: none; }
.cell { min-width: 0; margin: 0; }
.row > .app { grid-column: -2 / -1; border-inline-start: 1px solid var(--rule-2); padding-inline-start: 1rem; }
.reader.no-refs .app { display: none; }
.aux { display: none; }
.reader.hide-src .row > .src, .reader.hide-tr .row > .tr { display: none; }
.reader:not(.hide-src) .pg-dup, .reader:not(.hide-src) .secno-dup { display: none; }

.colhead > .cell {
  padding-block: 1.3rem .5rem; font-variant-caps: all-small-caps; letter-spacing: .16em; font-size: .9rem; color: var(--muted);
  border-bottom: 1px solid var(--rule-2);
}
.colhead > .app { border-bottom: 0; }

.par > .cell { padding-block-end: 1.05em; }
.par > .src, .par > .tr, .par > .aux { line-height: var(--lh); }
.par > .tr { hyphens: auto; -webkit-hyphens: auto; }
.par > .src { hyphens: manual; -webkit-hyphens: manual; }  /* soft hyphens inserted by the builder */
.par > .aux { hyphens: auto; -webkit-hyphens: auto; }
@media (min-width: 1180px) {
  .par > .tr, .par > .src, .par > .aux { text-align: justify; text-wrap: pretty; }
}
.sec { scroll-margin-top: 3.5rem; }
/* long works: far-away sections are neither laid out nor painted until they come near */
.reader.long .sec { content-visibility: auto; contain-intrinsic-size: auto 1400px; }
.sec-h > .cell { padding-block: 2.4rem .9rem; line-height: 1.3; }
.sec:first-of-type .sec-h > .cell { padding-top: 1.4rem; }
.sec-h > .tr { font-weight: 400; font-size: 1.12em; font-variant-caps: all-small-caps; letter-spacing: .1em; color: var(--ink); }
.sec-h > .tr em { font-style: italic; }
.sec-h > .src { font-size: 1.12em; color: var(--ink); }
/* sub-heading inside a section: the same cells as .sec-h, smaller */
.sub-h { scroll-margin-top: 3.5rem; break-after: avoid; }
.sub-h > .cell { padding-block: 1.7rem .6rem; line-height: 1.3; }
.sub-h > .tr { font-weight: 400; font-size: 1rem; font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--ink); margin: 0; }
.sub-h > .src { font-size: 1.02em; color: var(--ink); margin: 0; }
.sub-h .secno { font-size: 1.1rem; }
.secno {
  position: absolute; inset-inline-start: 0; width: calc(var(--mw) - 1.2rem); text-align: end;
  color: var(--rubric); font-family: var(--font-latin); font-size: 1.45rem; line-height: 1.05; margin-top: -.05em;
  font-variant-caps: normal; letter-spacing: 0; font-variant-numeric: oldstyle-nums;
}
.aux-head { display: none; }

/* segments */
.seg { scroll-margin-top: 4.5rem; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.seg.peer { background: var(--peer); box-shadow: 0 0 0 .12em var(--peer); }
.seg.tgt { background: var(--tgt); box-shadow: 0 0 0 .14em var(--tgt); }
.seg:target { background: var(--tgt); }
.sn {
  font-family: var(--font-latin); font-size: .6rem; line-height: 0; vertical-align: .62em;
  font-variant-numeric: lining-nums; letter-spacing: .02em; color: var(--muted);
  text-decoration: none; margin-inline-end: .28em; padding: .1em .05em; border-radius: 2px;
}
.tr .sn { cursor: copy; }
.sn:hover, .seg.tgt > .sn { color: var(--rubric); }
.pg {
  position: absolute; inset-inline-start: 0; width: calc(var(--mw) - 1.2rem); text-align: end;
  font-family: var(--font-latin); font-size: .72rem; line-height: calc(var(--fs) * var(--lh)); padding-top: .2em;
  color: var(--muted); font-variant-numeric: lining-nums; letter-spacing: .03em; white-space: nowrap;
  font-style: normal; font-weight: 400;
}
.pending .tbd { color: var(--muted); font-style: italic; font-size: .9em; }
.pending .tbd::before, .pending .tbd::after { content: " — "; font-style: normal; color: var(--rule); }

/* words and phrases */
.src .w { cursor: pointer; border-radius: 2px; }
.w, [data-a] { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.w.hl, [data-a].hl { background: var(--hl); box-shadow: 0 0 0 .1em var(--hl); border-radius: 2px; }
.w.sel { background: var(--hl-2); box-shadow: 0 0 0 .1em var(--hl-2); border-radius: 2px; }
.w:focus-visible, [data-a]:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* references: colour = kind, line = mode */
.r { text-decoration-color: var(--kc); text-underline-offset: .26em; text-decoration-skip-ink: auto; }
.r.m-quote { text-decoration-line: underline; text-decoration-style: solid; text-decoration-thickness: 1px; }
.r.m-allusion { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; }
.tr .r.k-bible.m-quote { font-style: italic; }
.tr .r.k-bible.m-quote em { font-style: normal; }
.tr .r { cursor: pointer; }
.r.on { background: color-mix(in srgb, var(--kc) 13%, transparent); box-shadow: 0 0 0 .1em color-mix(in srgb, var(--kc) 13%, transparent); border-radius: 2px; text-decoration-thickness: 2px; }
.reader.no-refs .r { text-decoration: none; font-style: inherit; cursor: auto; }
.reader.no-refs .rm { display: none !important; }

.rm {
  display: none; appearance: none; border: 0; background: none; margin: 0 -.04em 0 .02em; padding: .04em .06em; font: inherit;
  color: var(--kc); cursor: pointer; vertical-align: .52em; line-height: 0; border-radius: 2px;
}
.rm svg { width: .6em; height: .6em; display: block; }
.rm.m-cf, .rm.rm-w { display: inline-block; }
.rm:hover { background: color-mix(in srgb, var(--kc) 14%, transparent); }

.fn {
  /* inline, not inline-block: an atomic inline is a place where the line may break, so a mark could start a line */
  display: inline; text-decoration: none; color: var(--ink); line-height: 1; padding: 0 .04em;
  font-feature-settings: "sups" 1, "lnum" 1; font-size: 1.05em; border-radius: 2px; margin: 0;
}
.fn:hover, .fn.on { background: var(--hl); }

/* apparatus */
.app ol { list-style: none; margin: 0; padding: 0; }
.reader.app-flow .par > .app > ol { position: absolute; width: calc(var(--aw) - 1rem); }
.ae { font-size: .8rem; line-height: 1.36; color: var(--ink-2); padding: .15rem .4rem .2rem; margin: 0 0 .5rem -.4rem; border-radius: 3px; transition: background-color .12s; }
.ae.on { background: color-mix(in srgb, var(--kc) 11%, transparent); }
.ae-b {
  appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit;
  text-align: start; cursor: pointer; display: inline; line-height: inherit;
}
.ae-sn { font-size: .68rem; color: var(--muted); font-variant-numeric: lining-nums; margin-inline-end: .4em; }
.ae .ki { width: .72em; height: .72em; color: var(--kc); margin-inline-end: .3em; vertical-align: -.02em; display: inline-block; }
.ae-t { color: var(--kc); font-size: .88rem; }
.ae-b:hover .ae-t { text-decoration: underline; text-underline-offset: .18em; }
.ae-m { font-style: italic; color: var(--muted); }
.ae-q { display: block; color: var(--ink-2); font-size: .86rem; }
.ae-e { display: none; }
.ae-n { display: block; }

/* the floating pieces: tooltip, popover, word panel */
.tip {
  position: absolute; z-index: 40; top: 0; left: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); border-radius: 3px; padding: .18rem .55rem .24rem;
  font-size: 1.02rem; line-height: 1.3; white-space: nowrap; max-width: min(30rem, calc(100vw - 1.5rem)); overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .07s linear; font-variant-numeric: oldstyle-nums;
}
.tip.on { opacity: 1; }
.tip .tip-g { font-style: italic; }
.tip .tip-l { opacity: .78; margin-inline-end: .45em; }
.tip .tip-x { opacity: .6; }

.pop {
  position: absolute; z-index: 50; top: 0; left: 0; width: min(23rem, calc(100vw - 1.5rem));
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); border-top: 2px solid var(--kc, var(--rule));
  border-radius: 3px; box-shadow: var(--shadow); padding: .7rem .95rem .8rem; font-size: .95rem; line-height: 1.45;
}
.pop[hidden] { display: none; }
.pop:focus { outline: none; }
.pop-k { display: flex; align-items: center; gap: .4em; font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: .9rem; color: var(--kc, var(--muted)); margin: 0; }
.pop-k svg { width: .75em; height: .75em; }
.pop-k .pop-m { color: var(--muted); }
.pop-t { font-size: 1.3rem; line-height: 1.25; margin: .15rem 0 .25rem; font-weight: 400; }
.pop-q { margin: .2rem 0; color: var(--ink-2); }
.pop-e { margin: 0 0 .2rem; font-style: italic; color: var(--ink-2); }
.pop-n { margin: .45rem 0 0; }
.pop-links { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: .65rem 0 0; padding-top: .5rem; border-top: 1px solid var(--rule-2); font-size: .9rem; }
.pop-links a { color: var(--ink); }
.pop-note { font-size: .98rem; }
.pop-note p { margin: .2rem 0 0; }
.pop-sep { border: 0; border-top: 1px solid var(--rule-2); margin: .75rem 0 .6rem; }
.r.onq { text-decoration-thickness: 2px; }
.pop-note .pop-k { color: var(--muted); }
.pop-x { position: absolute; top: .35rem; inset-inline-end: .35rem; appearance: none; border: 0; background: none; color: var(--muted); padding: .25rem; cursor: pointer; display: inline-flex; border-radius: 2px; }
.pop-x svg { width: .8rem; height: .8rem; }
.pop-x:hover { color: var(--ink); }

.wp {
  position: fixed; z-index: 60; top: 0; bottom: 0; inset-inline-end: 0; width: min(26.5rem, 100vw);
  display: flex; flex-direction: column; background: var(--paper-2); color: var(--ink);
  border-inline-start: 1px solid var(--rule); box-shadow: -16px 0 36px -22px rgba(0, 0, 0, .45);
  transform: translateX(100%); visibility: hidden; transition: transform .2s ease-out, visibility 0s linear .2s;
}
.wp.open { transform: none; visibility: visible; transition: transform .2s ease-out, visibility 0s; }
.wp-bar { display: flex; align-items: center; justify-content: space-between; padding: .55rem .8rem .55rem 1.3rem; border-bottom: 1px solid var(--rule-2); }
.wp-k { margin: 0; font-weight: 400; font-size: .92rem; font-variant-caps: all-small-caps; letter-spacing: .16em; color: var(--muted); }
.wp-x { appearance: none; border: 0; background: none; color: var(--ink-2); padding: .45rem; cursor: pointer; display: inline-flex; border-radius: 2px; }
.wp-x svg { width: 1rem; height: 1rem; }
.wp-x:hover { color: var(--ink); background: var(--peer); }
.wp-b { overflow: auto; overscroll-behavior: contain; padding: 1.1rem 1.3rem 2rem; flex: 1; }
.wp-b:focus { outline: none; }
.wp-form { font-size: 2.2rem; line-height: 1.15; margin: 0; font-weight: 400; overflow-wrap: anywhere; }
.wp-form[lang="syc"] { font-size: 2.5rem; line-height: 1.6; }
.wp-lemma [lang="syc"], .wp-occ [lang="syc"] { font-size: 1.12em; }
.wp-lemma { margin: .35rem 0 0; font-size: 1.02rem; color: var(--ink-2); }
.wp-lemma .lbl, .wp-dt { font-variant-caps: all-small-caps; letter-spacing: .1em; color: var(--muted); font-size: .92em; margin-inline-end: .4em; }
.wp-morph { margin: .15rem 0 0; font-style: italic; color: var(--ink-2); font-size: 1rem; }
.wp-gloss { margin: .7rem 0 0; font-size: 1.1rem; }
.wp-gloss q { quotes: "“" "”"; }
.wp-sec { margin-top: 1.25rem; padding-top: .8rem; border-top: 1px solid var(--rule-2); }
.wp-sec > h3 { margin: 0 0 .45rem; font-weight: 400; font-size: .9rem; font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--muted); }
.wp-refs { list-style: none; padding: 0; margin: 0; }
.wp-refs button { appearance: none; border: 0; background: none; padding: .1rem 0; font: inherit; color: var(--kc); cursor: pointer; text-align: start; display: inline-flex; align-items: baseline; gap: .35em; }
.wp-refs svg { width: .72em; height: .72em; }
.wp-refs .ae-m { color: var(--muted); }
.wp-none { color: var(--muted); font-style: italic; margin: 0; }
.wp-occ { margin: 0; color: var(--ink-2); }
.wp-occ a { font-variant-numeric: lining-nums; font-size: .92em; margin-inline-end: .55em; white-space: nowrap; }
.wp-occ a[aria-current] { color: var(--muted); text-decoration: none; }
.wp-ext { display: inline-flex; align-items: center; gap: .35em; font-size: .95rem; }
.wp-ext svg { width: .75em; height: .75em; }
.lex-short { margin: 0 0 .5rem; }
.lex-body { max-height: 46vh; overflow: auto; border: 1px solid var(--rule-2); border-radius: 2px; padding: .55rem .75rem; font-size: .9rem; line-height: 1.45; background: var(--paper); overscroll-behavior: contain; }
.lex-body ol, .lex-body ul { margin: .25rem 0; padding-inline-start: 1.15rem; }
.lex-body > ul, .lex-body > ol { padding-inline-start: 0; }
.lex-body ul.lex-senses, .lex-body ol.lex-senses { list-style: none; }
.lex-body li { margin: .3rem 0; }
.lex-body p { margin: 0 0 .35rem; }
.lex-head { color: var(--ink-2); }
.lex-orth { font-weight: 600; }
.lex-n { font-weight: 600; color: var(--ink-2); margin-inline-end: .2em; }
.lex-tr, .lex-body b { font-weight: 600; }
.lex-cit { color: var(--muted); font-size: .92em; }
.lex-more { color: var(--muted); font-style: italic; }
.lex-src { font-size: .82rem; color: var(--muted); margin: .4rem 0 0; }

/* ---------------------------------------------------------------- end matter */
.endmatter { max-width: 48rem; margin: 2rem auto 3rem; padding-inline: 1.25rem; }
.endmatter > section { margin-top: 2.4rem; }
.endmatter .sc-h { text-align: center; }
.notes { margin: 0; padding-inline-start: 1.8rem; font-size: .98rem; line-height: 1.5; }
.notes li { margin-bottom: .55rem; scroll-margin-top: 4rem; padding-inline-start: .3rem; }
.notes li::marker { color: var(--muted); }
.notes li:target { background: var(--tgt); border-radius: 2px; }
.back { font-size: .8rem; color: var(--muted); text-decoration: none; white-space: nowrap; font-variant-numeric: lining-nums; margin-inline-start: .3em; display: inline-flex; align-items: center; gap: .2em; }
.back svg { width: .85em; height: .85em; }
.back:hover { color: var(--ink); }
.wrefs { margin: 0; }
.wrefs > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1.1rem; padding: .35rem 0; border-top: 1px solid var(--rule-2); }
.wrefs dt { font-variant-caps: small-caps; letter-spacing: .03em; color: var(--rubric); text-align: end; }
.wrefs dd { margin: 0; }
.wr-l { color: var(--ink); }
.wr-s { font-size: .78rem; color: var(--muted); font-variant-numeric: lining-nums; text-decoration: none; }
.wr-s:hover { color: var(--ink); text-decoration: underline; }
.wr-m { font-style: italic; color: var(--muted); font-size: .92em; }
.sep { color: var(--rule); }
.wcited { list-style: none; margin: 0; padding: 0; }
.wcited li { padding: .35rem 0; border-top: 1px solid var(--rule-2); }
.wcited .ki { width: .72em; height: .72em; color: var(--kc); margin-inline-end: .5em; display: inline-block; }
.wcited a:first-of-type { color: var(--ink); }
.colophon dl { margin: 0; font-size: .95rem; }
.colophon dt { font-variant-caps: all-small-caps; letter-spacing: .1em; color: var(--muted); text-align: end; }
.lic { color: var(--muted); }

/* ---------------------------------------------------------------- indexes */
.bk-nav { max-width: 50rem; margin: 0 auto 1.5rem; padding-inline: 1.25rem; text-align: center; font-size: 1rem; }
.bk-nav p { margin: .4rem 0; }
.bk-nav a { margin-inline: .3em; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.bk-nav a:hover { color: var(--rubric); text-decoration: underline; }
.bk-t { display: block; font-variant-caps: all-small-caps; letter-spacing: .16em; color: var(--muted); font-size: .88rem; }
.index { max-width: 50rem; margin: 0 auto 4rem; padding-inline: 1.25rem; }
.bk, .ca { scroll-margin-top: 1rem; }
.bk-h { font-weight: 400; font-size: 1.32rem; line-height: 1.3; font-variant-caps: small-caps; letter-spacing: .05em; color: var(--rubric); margin: 2.2rem 0 .3rem; padding-bottom: .25rem; border-bottom: 1px solid var(--rule); }
.ck-h { display: flex; align-items: center; justify-content: center; gap: .5em; font-weight: 400; font-size: 1rem; font-variant-caps: all-small-caps; letter-spacing: .16em; color: var(--kc); margin: 2.6rem 0 0; }
.ck-h .ki { width: .8em; height: .8em; }
.ck .bk-h { color: var(--ink); }
.idx { margin: 0; }
.ie { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.2rem; padding: .32rem .2rem; border-bottom: 1px solid var(--rule-2); scroll-margin-top: 1rem; border-radius: 2px; }
.idx-c .ie { grid-template-columns: 13rem minmax(0, 1fr); }
.ie:target { background: var(--tgt); }
.ie dt { text-align: end; }
.ie dd { margin: 0; }
.ie ul { list-style: none; margin: 0; padding: 0; }
.ie li { padding: .02rem 0; }
.ie a { color: var(--ink); text-decoration-color: var(--rule); }
.ix-s { font-variant-numeric: lining-nums; font-size: .85em; color: var(--muted); }
.ix-m { font-style: italic; color: var(--muted); font-size: .92em; }
.ix-n { color: var(--ink-2); font-size: .92em; }

/* ---------------------------------------------------------------- responsive */
@media screen and (max-width: 1179.98px) {
  .reader { --mw: 4.4rem; --gap: 2rem; padding-inline: 1.25rem; }
  .row { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .row > .app { display: none; }
  .rm { display: inline-block; }
}
@media screen and (max-width: 759.98px) {
  :root { --fs: 1.125rem; --lh: 1.55; }
  .site-h { padding: .6rem 1rem; }
  .site-nav { gap: .1rem .85rem; font-size: .95rem; }
  .hide-s { display: none; }
  .crumbs { padding-inline: 1rem; }
  .title-block { margin-top: 1.8rem; }
  .masthead { padding-top: 2.6rem; }
  .mh-title { letter-spacing: .1em; margin-inline-end: -.1em; }
  .tb-in { padding: .2rem 1rem; gap: 0 .85rem; min-height: 2.3rem; }
  .tb-name { display: none; }
  .tb-cols { gap: 0 .85rem; }
  .tg, .key > summary { font-size: .92rem; letter-spacing: .05em; }
  .reader { scroll-margin-top: 4.6rem; }
  .prose p { text-align: start; }
  .key { margin-inline-start: auto; }
  .key-p { position: fixed; top: auto; bottom: 0; inset-inline: 0; width: auto; border-radius: 12px 12px 0 0; max-height: 70vh; }
  .reader { padding-inline: 1rem; }
  .row { display: flex; flex-direction: column; padding-inline-start: 0; }
  .row > .tr { order: -1; }
  .colhead { display: none; }
  .par > .cell { padding-block-end: .55em; }
  .par > .src, .par > .aux { font-size: .96em; color: var(--ink-2); border-inline-start: 2px solid var(--rule-2); padding-inline-start: .75rem; margin-block-end: .9rem; padding-block-end: .1em; }
  .reader.hide-tr .par > .src, .reader.hide-tr .par > .aux { border-inline-start: 0; padding-inline-start: 0; color: var(--ink); font-size: 1em; }
  .par > .tr { text-align: start; }
  .sec-h > .cell { padding-block: 1.6rem 0; }
  .sec-h > .src { padding-top: .2rem; padding-bottom: .9rem; color: var(--ink-2); }
  .sec-h > .aux, .sub-h > .aux { display: none !important; }
  .sub-h > .cell { padding-block: 1.2rem 0; }
  .sub-h > .src { padding-top: .2rem; padding-bottom: .6rem; color: var(--ink-2); }
  .reader:not(.hide-src) .sub-h > .src .secno { display: none; }
  .secno, .pg { position: static; display: inline; width: auto; }
  .secno { font-size: 1.15em; margin-inline-end: .45em; line-height: inherit; }
  .reader:not(.hide-src) .secno-dup { display: inline; }
  .reader:not(.hide-src) .sec-h > .src .secno { display: none; }
  .pg { font-size: .68rem; padding: 0; margin-inline-end: .35em; line-height: 1; }
  .pg::before { content: "["; } .pg::after { content: "]"; }
  .wk { grid-template-columns: minmax(0, 1fr); }
  .wk > .status { grid-column: 1; grid-row: auto; padding-top: .1rem; }
  .ag-d { margin-inline-start: 0; flex-basis: 100%; }
  .ie, .idx-c .ie { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .8rem; }
  .wrefs > div, .status-list > div, .colophon dl > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .wrefs dt, .colophon dt { text-align: start; }
  .legend > div { grid-template-columns: 5.6rem 1fr; }
  .wp {
    top: auto; inset-inline: 0; width: auto; max-height: min(75vh, 38rem);
    border-inline-start: 0; border-top: 1px solid var(--rule); border-radius: 14px 14px 0 0;
    box-shadow: 0 -16px 36px -20px rgba(0, 0, 0, .5); transform: translateY(100%);
  }
  .wp-bar { position: relative; padding-top: .9rem; }
  .wp-bar::before { content: ""; position: absolute; top: .38rem; left: 50%; translate: -50% 0; width: 2.4rem; height: 4px; border-radius: 2px; background: var(--rule); }
  .wp-form { font-size: 1.9rem; }
  .wp-form[lang="syc"] { font-size: 2.1rem; }
  .lex-body { max-height: 32vh; }
}
/* larger hit areas for the small markers, without moving any text */
.fn, .rm { position: relative; }
.fn::after, .rm::after { content: ""; position: absolute; inset: -.45em -.06em; }


/* Scripture in another English Bible: a quotation shown in the chosen version carries a small label */
.bvsel { display: inline-flex; align-items: baseline; gap: .45em; font-size: 1rem; color: var(--muted); letter-spacing: .02em; }
.bvsel-l { font-variant-caps: all-small-caps; letter-spacing: .12em; font-size: .92em; }
.bvsel select {
  font: inherit; font-size: .95em; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 3px;
  padding: .05em .35em .08em; max-width: 100%; text-overflow: ellipsis; cursor: pointer;
}
.bvsel select:hover { border-color: var(--muted); }
.bvsel select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.bq-o[hidden] { display: none; }
.bv { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.bv-l {
  display: inline; margin: 0 .05em 0 .18em; padding: .02em .22em .04em; font: inherit; font-style: normal;
  font-size: .56em; font-weight: 600; font-variant-numeric: lining-nums; letter-spacing: .1em; line-height: 1;
  color: var(--kc, var(--rubric)); border: 1px solid color-mix(in srgb, var(--kc, var(--rubric)) 55%, transparent); border-radius: 2px;
  vertical-align: .55em; cursor: pointer; white-space: nowrap; position: relative; user-select: none; -webkit-user-select: none;
}
.bv-l::before { content: attr(data-v); }
.bv-l:hover, .bv-l:focus-visible { background: color-mix(in srgb, var(--kc, var(--rubric)) 14%, transparent); }
.bv-l::after { content: ""; position: absolute; inset: -.5em -.3em; }
.reader.no-refs .bv-l { color: var(--muted); border-color: var(--rule); }
.tip.tip-wrap { white-space: normal; max-width: min(27rem, calc(100vw - 1.5rem)); overflow: visible; text-overflow: clip; font-size: .98rem; line-height: 1.38; padding: .3rem .6rem .36rem; }
.tip .tip-r { font-variant-numeric: lining-nums; font-weight: 600; }
.pop-v { margin-top: .35rem; }
.pop-vl { display: inline-block; font-size: .66em; font-weight: 600; letter-spacing: .1em; padding: 0 .3em; border: 1px solid currentColor; border-radius: 2px; vertical-align: .18em; margin-inline-end: .35em; font-style: normal; color: var(--kc, var(--rubric)); }
.pop-vn { color: var(--muted); font-size: .88em; }
.bv-undo { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--father); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.lg-bv { display: inline-block; font-size: .62em; font-weight: 600; letter-spacing: .1em; padding: 0 .3em; border: 1px solid var(--rubric); color: var(--rubric); border-radius: 2px; vertical-align: .3em; }
@media screen and (max-width: 759.98px) {
  .bvsel { flex: 1 1 100%; order: 3; }
  .bvsel select { flex: 1 1 auto; min-width: 0; }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- print: a clean parallel text */
@media print {
  :root, :root[data-theme="dark"] {
    --paper: #fff; --paper-2: #fff; --ink: #000; --ink-2: #222; --muted: #555; --rule: #bbb; --rule-2: #ccc;
    --rubric: #a6271b; --father: #1c5670; --other: #85631a; --fs: 10.5pt; --tgt: transparent; --peer: transparent;
    color-scheme: light;
  }
  @page { margin: 16mm 14mm 18mm; }
  body { background: #fff; }
  .site-h, .site-f, .crumbs, .toolbar, .tb-actions, .tb-status .status-n, .wp, .tip, .pop, .toast, .rm, .colhead, .skip, .sprite, .key, .orn::before, .orn::after { display: none !important; }
  .reader { max-width: none; padding: 0 !important; --mw: 3.6rem; --gap: 1.4rem; break-before: page; }
  .sec { padding-bottom: 0 !important; }
  .row, .reader.no-refs .row { grid-template-columns: repeat(var(--n), minmax(0, 1fr)) 9rem; }
  .row > .app { display: block; font-size: 8pt; }
  .reader.app-flow .par > .app > ol { position: static; width: auto; }
  .ae { margin-top: 0 !important; }
  .par { break-inside: avoid-page; }
  .sec-h, .sub-h { break-after: avoid-page; }
  .w.hl, [data-a].hl, .w.sel, .seg.peer, .seg.tgt, .r.on { background: none !important; box-shadow: none !important; }
  .par > .tr, .par > .src { text-align: justify; }
  a { text-decoration: none; }
  .title-block { margin-top: 0; }
  .endmatter { break-before: page; }
  .reader.long .sec { content-visibility: visible; }
}

/* generated from patrologia.langs */
[lang="ar"]{font-family:var(--font-arabic)}
.reader.show-ar .aux-ar{display:block}
[lang="cop"]{font-family:var(--font-coptic)}
.reader.show-cop .aux-cop{display:block}
[lang="cu"]{font-family:var(--font-slavonic)}
.reader.show-cu .aux-cu{display:block}
[lang="gez"]{font-family:var(--font-ethiopic)}
.reader.show-gez .aux-gez{display:block}
[lang="grc"]{font-family:var(--font-greek)}
.reader.show-grc .aux-grc{display:block}
[lang="la"]{font-family:var(--font-latin)}
.reader.show-la .aux-la{display:block}
[lang="oge"]{font-family:var(--font-georgian)}
.reader.show-oge .aux-oge{display:block}
[lang="syc"]{font-family:var(--font-syriac)}
.reader.show-syc .aux-syc{display:block}
[lang="xcl"]{font-family:var(--font-armenian)}
.reader.show-xcl .aux-xcl{display:block}
