/* Typeset book proof of the study editions. Panel, desk and sheets follow the other reading pages
   (lezen/apostolische-vaders, lezen/taurat-en-injil); the fonts are the shared ones in lezen/fonts/. */
@font-face { font-family:'EB Garamond'; src:url('../fonts/eb-garamond-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'EB Garamond'; src:url('../fonts/eb-garamond-400-italic.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'EB Garamond'; src:url('../fonts/eb-garamond-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'EB Garamond'; src:url('../fonts/eb-garamond-500-italic.woff2') format('woff2'); font-weight:500; font-style:italic; font-display:swap; }
@font-face { font-family:'EB Garamond'; src:url('../fonts/eb-garamond-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'EB Garamond'; src:url('../fonts/eb-garamond-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Fira Sans'; src:url('../fonts/fira-sans-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Fira Sans'; src:url('../fonts/fira-sans-400-italic.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'Fira Sans'; src:url('../fonts/fira-sans-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Fira Sans'; src:url('../fonts/fira-sans-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Fira Sans'; src:url('../fonts/fira-sans-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Lexend'; src:url('../fonts/lexend-300.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'Lexend'; src:url('../fonts/lexend-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Lexend'; src:url('../fonts/lexend-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
/* The Hebrew file with vowel points and cantillation marks; the file ending in -400 has bare consonants only. */
@font-face { font-family:'Noto Serif Hebrew'; src:url('../fonts/noto-serif-hebrew.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
/* The signs of the lexicons that the book letter does not hold: dagger, double dagger, per mille, root. */
@font-face { font-family:'Lexicontekens'; src:url('../fonts/amiri-regular.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:swap; unicode-range:U+2020-2021,U+2030,U+221A; }
@font-face { font-family:'Noto Serif Greek'; src:url('../fonts/noto-serif-greek-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
/* The same two files for Hebrew and Greek only. This name stands first in a row of letters, so that no
   Hebrew or Greek sign is drawn by a book letter or a system letter that happens to hold it. */
@font-face { font-family:'Grondschrift'; src:url('../fonts/noto-serif-hebrew.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; unicode-range:U+0590-05FF,U+FB1D-FB4F; }
@font-face { font-family:'Grondschrift'; src:url('../fonts/noto-serif-greek-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; unicode-range:U+0370-03FF,U+1F00-1FFF; }

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

:root {
  --ui: 'Grondschrift', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --accent:#0f2f4f;
  --zeegroen:#245d62;
  --goud:#ad8837;
  --goudlijn:#cfbb8d;
  --nr-kleur:#4d6763;
  --inkt-zacht:#5b5344;
  /* the letters of the ground text; what they do not hold (a space, a bracket) comes from the book letter */
  --grondletter:'Noto Serif Hebrew','Noto Serif Greek';
  /* set by the script from the panel */
  --vel-b:210mm; --vel-h:297mm;
  --m-binnen:20mm; --m-buiten:14mm; --m-boven:18mm; --m-onder:19mm;
  --boek:'Grondschrift','EB Garamond','Noto Serif Hebrew','Noto Serif Greek','Lexicontekens',Georgia,serif;
  --korps:9.75pt; --regel:12pt;
  --grond:10.5pt; --woord-h:13.5pt; --grondregel:16.8pt; --nr:5.8pt; --nr-h:6.4pt; --nr-wit:0pt; --regelwit:2.4pt; --woordwit:.3em; --grieks:.8;
  --kolomwit:8mm; --kol-gt:94mm; --rug:7mm; --nr-goot:1.8em; --verswit:5.5pt; --vn:8.5pt;

  /* ---- De bladzijde 'nummers in de tekst': elke maat staat op één plaats ----
     Uit het paneel komen, met hun beginwaarden per formaat in MEASURES (reader.js): --korps en --regel
     (Nederlands), --grond en --grondregel (grondtekst), --nr en --nr-kleur (nummers) en de marges
     --m-binnen, --m-buiten, --m-boven en --m-onder. De maten hieronder staan alleen hier. Een waarde
     wijzigen is genoeg: de zetter meet ermee en zet de bladzijden opnieuw. */
  --nr-hoog:.3;            /* hoe hoog een nummer achter een Nederlands woord staat, in delen van het korps */
  --nr-hoog-he:.42;        /* hetzelfde achter een Hebreeuws woord, in delen van de Hebreeuwse letter */
  --nr-hoog-grc:.34;       /* hetzelfde achter een Grieks woord, in delen van de Griekse letter */
  --nr-gewicht:600;        /* vetheid van de nummers: 400, 500, 600 of 700 */
  --nr-voor:.048;          /* wit tussen een Nederlands woord en zijn nummer, in delen van het korps */
  --nr-na-f:.1;            /* extra wit achter een f, waarvan de vlag over het nummer hangt, in delen van het korps */
  --nr-voor-grc:.05;       /* wit tussen een Grieks woord en zijn nummer, in delen van de Griekse letter */
  --nr-voor-he:.12;        /* wit tussen een Hebreeuws woord en zijn nummer, links van de slotletter, in delen van de Hebreeuwse letter */
  --nr-na-accent:.14;      /* extra wit waar een accent van de slotletter naar het nummer overhangt (pasjta, segolta, revia, kadma, telisja ketanna) */
  --nr-punt:.1em;          /* wit aan weerszijden van de punt tussen twee nummers van één woordgroep, in delen van het nummer */
  --nr-lucht:.8pt;         /* het minste wit tussen een nummer en de regel erboven; zo ver gaan de regels open */
  --vers-wit:.55;          /* wit tussen twee verzen, in regels van het Nederlands */
  --binnen-wit:.1;         /* wit tussen het Nederlandse vers en zijn grondtekst, in regels van het Nederlands */
  --woord-wit-he:.32em;    /* wit dat tussen twee Hebreeuwse woorden bij de spatie komt, in delen van de letter */
  --woord-wit-grc:.24em;   /* hetzelfde tussen twee Griekse woorden */
  --grond-kleur:#1d2730;   /* kleur van de grondtekst */
  --los-kleur:#8a8a8a;     /* kleur van een nummer zonder eigen Nederlands woord */
  --bijlage-regel:1.24;    /* regelafstand van de lexiconbijlage bij deze bladzijde, in delen van haar letter */
}

[hidden] { display:none !important; }

body {
  background:#8e8e93;
  font-family:var(--ui);
  display:flex;
  min-height:100vh;
}

/* ---------------- panel ---------------- */
#panel {
  width:290px; flex:0 0 290px;
  background:#1b1d20; color:#e8e8ea;
  padding:16px 16px 60px; overflow-y:auto;
  height:100vh; position:sticky; top:0;
  font-size:12px; line-height:1.45;
}
#panel h1 { font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:#9fb4c8; margin-bottom:2px; }
#panel .sub { font-size:11px; color:#7b8590; margin-bottom:16px; }
#panel fieldset { border:0; border-top:1px solid #33363b; padding:12px 0 4px; min-width:0; }
#panel legend { font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:#7b8590; padding-right:8px; }
.row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:7px 0; }
.row label { flex:1; color:#c9ced4; }
.row output { font-variant-numeric:tabular-nums; color:#8fd0ff; min-width:44px; text-align:right; font-size:11px; }
#panel input[type=range] { width:110px; accent-color:#4a9eda; }
#panel select, #panel input[type=search] { background:#2a2d32; color:#e8e8ea; border:1px solid #3d4148; border-radius:4px; padding:3px 6px; font-size:11px; font-family:var(--ui); max-width:150px; }
#panel input[type=checkbox] { accent-color:#4a9eda; width:14px; height:14px; }
#panel :is(select,input,button,a):focus-visible { outline:2px solid #8fd0ff; outline-offset:2px; }
#panel :is(select,input):disabled { opacity:.45; }
.hint { color:#6d757e; font-size:10.5px; margin-top:4px; display:block; line-height:1.4; }
.hint a { color:#9fd0ff; }
.warn { color:#e0a458; }
#meting { background:#22262b; border-radius:6px; padding:10px 11px; margin-top:14px; font-size:11px; line-height:1.6; }
#meting b { color:#8fd0ff; font-variant-numeric:tabular-nums; }
#meting .big { font-size:19px; color:#8fd0ff; font-weight:600; }
/* what is being set and how far it is: in view wherever the panel has been scrolled to */
#zetstrook { position:sticky; top:0; z-index:2; margin:0 -16px 12px; padding:8px 16px 9px; background:#1b1d20; border-top:1px solid #33363b; border-bottom:1px solid #33363b; }
#zetstrook button.act { margin-top:7px; padding:6px; }
#voortgang { display:block; width:100%; height:4px; margin:0 0 6px; accent-color:#4a9eda; }
#zet-status { color:#c9ced4; min-height:1.45em; }
#zet-status.fout { color:#ffb4a8; }
button.act { width:100%; background:#2f6da8; color:#fff; border:0; border-radius:5px; padding:8px; font-size:12px; cursor:pointer; margin-top:10px; font-family:var(--ui); }
button.act:hover { background:#3a82c4; }
button.act:disabled { opacity:.5; cursor:default; }
button.act.ghost { background:#2a2d32; }
button.act.ghost:hover { background:#363a41; }
.melding { background:#2b2620; border-left:3px solid #e0a458; border-radius:4px; padding:9px 10px 10px; margin-top:10px; color:#e8dccb; font-size:11.5px; line-height:1.45; }
.melding button.act { margin-top:7px; padding:6px; font-size:11.5px; }
.stappen { display:flex; gap:6px; }
.stappen button { flex:1; margin-top:2px; padding:5px; font-size:11px; }
.paneel-knop { display:none; }
.terug { display:inline-block; color:#9fd0ff; text-decoration:none; font-size:12px; margin:0 0 10px; }
.terug:hover, .terug:focus-visible { text-decoration:underline; }
.imprint { font-size:10.5px; letter-spacing:.08em; color:#7b8590; margin:-2px 0 12px; }

/* looking up a word: on screen only */
#panel #lexicon-search { width:100%; max-width:none; padding:6px 8px; font-size:12px; margin-top:4px; }
#search-status { margin-top:6px; }
.search-results { list-style:none; margin-top:6px; }
.search-results button {
  display:grid; grid-template-columns:4.6em 1fr; gap:6px; width:100%; text-align:left;
  background:none; border:0; border-top:1px solid #2c2f34; color:#c9ced4; padding:5px 2px; font:inherit; cursor:pointer;
}
.search-results button:hover { background:#25282d; color:#fff; }
.search-results .result-id { color:#8fd0ff; font-variant-numeric:tabular-nums; }

/* ---------------- desk and sheets ---------------- */
#doek { flex:1; min-width:0; padding:34px 30px 90px; overflow-y:auto; height:100vh; }
#vellen { display:flex; flex-wrap:wrap; gap:26px; justify-content:center; align-items:flex-start; transform-origin:0 0; }
#vellen-maat.geschaald { margin:0 auto; overflow:hidden; }
/* an opened book: the even page on the left, the odd page on the right, the cover on the right */
body.boekje #vellen { display:grid; grid-template-columns:var(--vel-b) var(--vel-b); justify-content:center; column-gap:0; row-gap:26px; }
body.boekje #vellen > .vel.verso { grid-column:1; box-shadow:-2px 3px 14px rgba(0,0,0,.30); }
body.boekje #vellen > .vel.recto { grid-column:2; box-shadow:2px 3px 14px rgba(0,0,0,.30), inset 10px 0 14px -12px rgba(0,0,0,.28); }
.proef-fout { background:#fff; padding:20px; border-radius:6px; color:#8a1c1c; font:13px/1.5 var(--ui); max-width:600px; margin:26px auto 0; }
.proef-fout button { margin-top:12px; width:auto; padding:7px 14px; }

.vel {
  width:var(--vel-b); height:var(--vel-h);
  background:#fff; position:relative;
  box-shadow:0 3px 20px rgba(0,0,0,.30), 0 1px 4px rgba(0,0,0,.18);
  flex-shrink:0; overflow:hidden; contain:strict;
  color:#111; font-family:var(--boek); font-size:var(--korps); line-height:var(--regel);
  font-kerning:normal; font-variant-ligatures:common-ligatures; font-variant-numeric:lining-nums;
}
/* the sheet under construction is measured off screen, in true size */
#zetbank { position:absolute; left:-99999px; top:0; visibility:hidden; pointer-events:none; }
#zetbank .vel { box-shadow:none; }

.venster { position:absolute; top:var(--m-boven); bottom:var(--m-onder); display:flex; flex-direction:column; }
.verso .venster, .verso .kopband { left:var(--m-buiten); right:var(--m-binnen); }
.recto .venster, .recto .kopband { left:var(--m-binnen); right:var(--m-buiten); }
.spanne { flex:none; }
.kolommen { flex:1 1 0; min-height:0; display:flex; gap:var(--kolomwit); position:relative; }
/* a word without a place to break (an address, a checksum) breaks where the line ends */
.kolom { flex:1 1 0; min-width:0; overflow-wrap:anywhere; }
/* a hairline in the column gap, as the gold middle line of the bilingual editions */
.kolommen.twee::before { content:''; position:absolute; left:50%; top:.6mm; bottom:.6mm; width:.4px; background:var(--goud); opacity:.5; }
.hulp .venster { outline:1px dashed rgba(200,40,40,.45); }
.hulp .kolom { outline:1px dotted rgba(200,40,40,.35); }

/* running head and page number */
.kopband {
  position:absolute; top:calc(var(--m-boven) - 7mm); height:5mm; display:flex; justify-content:space-between; gap:5mm;
  border-bottom:.35px solid rgba(36,93,98,.48);
  color:var(--zeegroen); font-size:calc(var(--korps) * .82); line-height:4mm; letter-spacing:.055em; white-space:nowrap;
}
.recto .kopband { flex-direction:row-reverse; }
.kopregel-buiten { flex:none; font-weight:600; text-transform:uppercase; }
.kopregel-binnen { flex:0 1 auto; min-width:0; overflow:hidden; color:#5f756f; font-style:italic; letter-spacing:.025em; }
.kop-gt { font-family:var(--grondletter),var(--boek); font-style:normal; letter-spacing:0; }
.kop-gt[lang=he] { font-size:1.06em; }
.kop-gt[lang=grc] { font-size:calc(var(--grieks) * 1em); }
.kopregel-rozet { position:absolute; left:50%; bottom:-1.5mm; transform:translateX(-50%); padding:0 1.2mm; background:#fff; height:3mm; display:flex; align-items:center; }
.rozet { width:2.1mm; height:2.1mm; fill:var(--goud); display:block; flex:none; }
.folio {
  position:absolute; bottom:calc(var(--m-onder) - 8mm);
  font-size:calc(var(--korps) * .87); color:var(--zeegroen); font-weight:600; letter-spacing:.08em; line-height:1;
}
.verso .folio { left:var(--m-buiten); }
.recto .folio { right:var(--m-buiten); }

/* ---------------- cover, title page, part title page ---------------- */
.beeldvel { background:#16202b; }
.beeldvel img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 50%; display:block; }
.titelvel .tp, .deelvel .dp {
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center; padding:0 12%;
}
.tp .reeks, .dp .boven {
  font-size:9pt; letter-spacing:.3em; text-indent:.3em; text-transform:uppercase; color:var(--goud); margin-bottom:9mm;
}
.tp .grondnaam, .dp .grondnaam { font-family:var(--grondletter),var(--boek); color:var(--accent); line-height:1.25; }
.dp .boven .gt { font-family:var(--grondletter),var(--boek); letter-spacing:0; font-size:1.3em; margin-left:.7em; }
.tp .grondnaam[lang=he] { font-size:46pt; }
.tp .grondnaam[lang=grc] { font-size:24pt; }
.a5 .tp .grondnaam[lang=he] { font-size:38pt; }
.a5 .tp .grondnaam[lang=grc] { font-size:19pt; }
.tp h2 { font-size:19pt; font-weight:500; letter-spacing:.2em; text-indent:.2em; text-transform:uppercase; line-height:1.3; margin-top:3mm; }
.a5 .tp h2 { font-size:15pt; }
.tp .deel { font-size:11pt; color:#444; letter-spacing:.05em; line-height:1.5; }
.tp .keuze { font-size:11pt; color:var(--accent); margin-top:5mm; line-height:1.5; }
.sier { display:flex; align-items:center; justify-content:center; gap:1.4mm; margin:8mm 0; }
.sier span { width:13mm; height:.35px; background:var(--goud); opacity:.8; }
.tp .voet { position:absolute; bottom:18mm; left:0; right:0; font-size:8pt; color:#666; letter-spacing:.14em; }
.voet .drukkersmerk { height:5.2mm; width:5.2mm; vertical-align:-1.6mm; margin-right:1.6mm; }
.dp { justify-content:flex-start; padding-top:22%; }
.dp .grondnaam { font-size:42pt; }
.a5 .dp .grondnaam { font-size:32pt; }
.dp h2 { font-size:17pt; font-weight:500; letter-spacing:.22em; text-indent:.22em; text-transform:uppercase; color:#111; line-height:1.3; margin-top:2mm; }
.a5 .dp h2 { font-size:14pt; }
/* the name of a group of the house list keeps its own capitals */
.dp h2.eigen { text-transform:none; letter-spacing:.1em; text-indent:.1em; font-size:20pt; }
.a5 .dp h2.eigen { font-size:16pt; }
.dp .rest { font-size:11pt; font-style:italic; color:var(--inkt-zacht); line-height:1.4; margin-top:2.5mm; }
.a5 .dp .rest { font-size:9.6pt; }
.dp .boeken { font-size:10pt; line-height:1.75; color:var(--inkt-zacht); text-align:left; column-gap:10mm; }
.dp .boeken.twee { column-count:2; }
.dp .boeken p { display:flex; justify-content:space-between; align-items:baseline; gap:6mm; break-inside:avoid; }
.dp .boeken .gt { font-family:var(--grondletter),var(--boek); color:var(--accent); }
.dp .boeken i { font-size:.84em; margin-left:.9em; color:#7a7263; }
.a5 .dp .boeken { font-size:8.8pt; column-gap:7mm; }

/* ---------------- book opening and chapter head ---------------- */
.boekkop { text-align:center; padding-top:6mm; margin-bottom:8mm; }
.a5 .boekkop { padding-top:3mm; margin-bottom:6mm; }
.boekkop .deel { font-size:.86em; letter-spacing:.34em; text-indent:.34em; text-transform:uppercase; color:var(--goud); line-height:1.3; margin-bottom:.8em; }
.boekkop .deel .gt { font-family:var(--grondletter),var(--boek); letter-spacing:0; font-size:1.25em; margin-left:.5em; }
.boekkop .deel.eigen { text-transform:none; letter-spacing:.16em; text-indent:.16em; font-size:.95em; }
.boekkop .grondnaam { font-family:var(--grondletter),var(--boek); color:var(--accent); line-height:1.2; }
.boekkop .grondnaam[lang=he] { font-size:2.9em; }
.boekkop .grondnaam[lang=grc] { font-size:1.75em; line-height:1.35; }
.boekkop h3 { font-size:2em; font-weight:500; letter-spacing:.22em; text-indent:.22em; text-transform:uppercase; line-height:1.25; margin-top:.12em; }
.a5 .boekkop h3 { font-size:1.7em; }
/* the presumed time of writing of the book, as the list of the house gives it for its group */
.boekkop .schrijftijd { font-size:.9em; font-style:italic; color:var(--inkt-zacht); line-height:1.3; margin-top:.55em; }
.boekkop .sier { margin:1.1em 0 0; }

.hst { font-style:italic; font-size:.89em; line-height:1.24; color:#3a3a3a; text-align:left; hyphens:manual; }
.hst::after { content:''; display:block; clear:both; }
/* two lines high: its head level with the capitals of the first line, its foot on the second */
.hst-nr {
  float:left; font-style:normal; font-weight:600; color:var(--accent);
  font-size:2.9em; line-height:.855; height:.855em; margin:-.01em .14em 0 0;
}
.hst .iv { font-style:normal; font-weight:600; font-size:.78em; color:var(--accent); margin-right:.12em; }
.hst.kaal { min-height:2.3em; }
.kolom > * + .hst { margin-top:calc(var(--regel) * 1.5 + var(--rek, 0px)); }
.kolom > .hst + * { margin-top:calc(var(--regel) * .6); }

/* ---------------- ground words: each word with its number under it ---------------- */
.gw { font-family:var(--grondletter),var(--boek); font-size:var(--grond); line-height:0; word-spacing:var(--woordwit); text-align:start; hyphens:none; }
/* a column per word; its baseline is that of the word, so that word, verse number and Dutch share one line */
.t { display:inline-flex; flex-direction:column; align-items:center; vertical-align:baseline; word-spacing:0; margin-bottom:var(--regelwit); }
.t > span { flex:none; white-space:nowrap; }
.t .w { height:var(--woord-h); line-height:var(--woord-h); }
.t .w i { font-style:normal; color:#8a8a8a; }
.t .n {
  font-family:'Fira Sans',sans-serif; font-weight:600; font-size:var(--nr); height:var(--nr-h); line-height:var(--nr-h);
  color:var(--nr-kleur); direction:ltr; unicode-bidi:isolate; letter-spacing:.015em; font-variant-numeric:lining-nums proportional-nums;
  margin-top:var(--nr-wit);
}
.t .n .lm { font-weight:400; }
.t .n .lm::before { content:'\203A'; margin:0 .14em; }
.t .n .n2 { margin-left:.12em; }
.t .n .vc { font-weight:400; margin-left:.25em; }
.t .tr { font-family:var(--boek); font-style:italic; font-size:calc(var(--nr) * 1.18); height:calc(var(--nr-h) * 1.2); line-height:calc(var(--nr-h) * 1.2); color:#444; direction:ltr; }
.t .mf { font-family:'Fira Sans',sans-serif; font-size:calc(var(--nr) * .88); height:var(--nr-h); line-height:var(--nr-h); color:#777; direction:ltr; unicode-bidi:isolate; letter-spacing:.01em; }
/* the first word of a line stands on the margin, also where its number is wider */
.t.rand { align-items:flex-start; }
.scherm .t[data-s] { cursor:pointer; }
/* a word the reader points at or has come to with the keyboard is marked on screen, never in print */
@media screen {
  .scherm .t[data-s]:hover .n, .scherm .t[data-s]:focus-visible .n { color:var(--accent); text-decoration:underline; text-underline-offset:1px; }
  .scherm .t:focus-visible { outline:1px solid var(--zeegroen); outline-offset:1px; }
}

.nl { text-align:left; hyphens:manual; -webkit-hyphens:manual; text-wrap:pretty; }
.uitvul .nl, .uitvul .alinea { text-align:justify; hyphens:auto; -webkit-hyphens:auto; text-wrap:wrap; -webkit-hyphenate-limit-before:3; -webkit-hyphenate-limit-after:3; hyphenate-limit-chars:6 3 3; }
/* a narrow column beside the ground words is hyphenated but not stretched */
.uitvul.smal .rij .nl { text-align:left; }
.noot, .leemte { font-style:italic; font-size:.85em; line-height:1.25; color:var(--inkt-zacht); text-align:left; hyphens:manual; }

/* layout "onder elkaar": the verse, and under it its words */
.vers { padding-left:var(--nr-goot); position:relative; }
.kolom > .vers + .vers { margin-top:calc(var(--verswit) + var(--rek, 0px)); }
.vers .gw { margin-top:calc(var(--regel) * .12 + .5pt); }
.vers .noot, .vers .leemte { margin-top:.1em; }
/* the verse number hangs outside the text: the numbers form one ladder along the column. A number of
   three figures stays one number: it is never broken where its room ends */
.vnr {
  display:inline-block; width:var(--nr-goot); margin-left:calc(-1 * var(--nr-goot)); padding-right:.42em;
  text-align:right; font-weight:600; font-size:.9em; line-height:1; color:var(--accent); font-variant-numeric:lining-nums tabular-nums;
  white-space:nowrap; overflow-wrap:normal;
}
.vers.vervolg .gw { margin-top:0; }
.vnr-vervolg {
  position:absolute; left:0; top:0; width:var(--nr-goot); padding-right:.5em; text-align:right;
  font-size:.72em; line-height:var(--woord-h); color:#8a8a8a; font-variant-numeric:lining-nums tabular-nums;
  white-space:nowrap; overflow-wrap:normal;
}

/* layout "nummers in de tekst": the Dutch verse and under it the ground text, both running on, each
   number raised behind its word. Every measure is a setting: of the panel, or of the block at the head
   of this file. A raised number has no height of its own and is moved up without taking part in the
   line, so that every line of a paragraph is as high as the next, however high the numbers stand. */
.sn, .intekst .t .n {
  font-family:'Fira Sans',sans-serif; font-weight:var(--nr-gewicht); font-size:var(--nr); font-style:normal; line-height:0; height:auto;
  color:var(--nr-kleur); letter-spacing:.01em; font-variant-numeric:lining-nums proportional-nums; white-space:nowrap;
  position:relative; vertical-align:baseline;
}
/* a number never stands at the start of a line away from its word: an invisible joiner ties the row to
   the word, and each number to the one before it. Only a row that is longer than a whole line breaks,
   between two numbers. */
.sr::before, .sr.voor::after { content:'\2060'; }
.sr.voor::before { content:none; }
.sn { top:calc(var(--korps) * var(--nr-hoog) * -1); margin-left:calc(var(--korps) * var(--nr-voor)); }
.sr.voor .sn:last-child { margin-right:calc(var(--korps) * var(--nr-voor)); }
/* behind a letter whose ink hangs over, the row stands that much further off */
.sr.over > .sn:first-child { margin-left:calc(var(--korps) * (var(--nr-voor) + var(--nr-na-f))); }
.sn + .sn { margin-left:0; }
.sn + .sn::before { content:'\2060\00B7\2060'; font-weight:400; margin:0 var(--nr-punt); }
.sn .lm, .intekst .t .n .lm { font-weight:400; }
.sn .lm::before { content:'\203A'; margin:0 .14em; }
/* the number of a ground word without a Dutch word of its own is set lighter */
.sn.los { font-weight:400; color:var(--los-kleur); }
.intekst .nl { text-align:left; hyphens:manual; -webkit-hyphens:manual; text-wrap:pretty; }
.intekst .kolom > .vers + .vers { margin-top:calc(var(--verswit-nr, calc(var(--regel) * var(--vers-wit))) + var(--rek, 0px)); }
.intekst .vers .gw { line-height:var(--grondregel); margin-top:var(--binnen, calc(var(--regel) * var(--binnen-wit))); color:var(--grond-kleur); }
.intekst .gw[lang=he] { --nr-hoog-grond:var(--nr-hoog-he); --nr-voor-grond:var(--nr-voor-he); word-spacing:var(--woord-wit-he); }
.intekst .gw[lang=grc] { --nr-hoog-grond:var(--nr-hoog-grc); --nr-voor-grond:var(--nr-voor-grc); word-spacing:var(--woord-wit-grc); }
.intekst .t { display:inline; margin:0; white-space:nowrap; }
.intekst .t .w { height:auto; line-height:inherit; }
.intekst .t .n { top:calc(var(--grond) * var(--nr-hoog-grond) * -1); margin:0 0 0 calc(var(--grond) * var(--nr-voor-grond)); }
.intekst .gw[dir=rtl] .t .n { margin:0 calc(var(--grond) * var(--nr-voor-grond)) 0 0; }
/* an accent that is written after the last letter hangs over towards the number: the number stands that much further off */
.intekst .gw[dir=rtl] .t.over .n { margin-right:calc(var(--grond) * (var(--nr-voor-grond) + var(--nr-na-accent))); }
/* the rest of a verse opens a column with the rest of its Dutch or with lines of its ground text */
.intekst .vers.vervolg > .vnr-vervolg + .gw { margin-top:0; }
.intekst .vnr-vervolg { line-height:var(--grondregel); }
.intekst .vers.vervolg:has(> .nl) > .vnr-vervolg { line-height:var(--regel); }
/* beside this page the appendix keeps a leading of its own: its lines carry no raised numbers */
.intekst.lexicon .kolom { line-height:calc(var(--korps) * .88 * var(--bijlage-regel)); }
.scherm .sn { cursor:pointer; }
/* a number the reader points at, and the same number at the other place in the verse: on screen only */
@media screen {
  .scherm .sn:hover, .scherm .sn:focus-visible { color:var(--accent); text-decoration:underline; text-underline-offset:1px; }
  .scherm .sn:focus-visible { outline:1px solid var(--zeegroen); outline-offset:1px; }
  .scherm .sn.licht, .scherm .t.licht .n { color:#fff; background:var(--accent); box-shadow:0 0 0 1.5px var(--accent); border-radius:1.5px; text-decoration:none; }
  .scherm .t.licht .w { background:rgba(173,136,55,.24); box-shadow:0 0 0 1.5px rgba(173,136,55,.24); border-radius:1.5px; }
}

/* layout "parallel": ground words | verse number on the gold line | Dutch */
.rij { display:grid; grid-template-columns:var(--kol-gt) var(--rug) minmax(0,1fr); align-items:baseline; position:relative; }
.kolom > .rij + .rij { margin-top:calc(var(--verswit) + var(--rek, 0px)); }
.rij > .gw { grid-column:1; grid-row:1; }
.rij > .vn { grid-column:2; grid-row:1; }
.rij > .dl { grid-column:3; grid-row:1; }
.vn { text-align:center; position:relative; z-index:1; line-height:1; }
.vn b { display:block; background:#fff; font-size:var(--vn); font-weight:600; color:var(--accent); letter-spacing:.01em; padding:.7mm 0 .6mm; margin-top:-.7mm; }
.rij.vervolg .vn b { font-size:calc(var(--vn) * .8); font-weight:400; color:#8a8a8a; }
/* the gold line runs from verse number to verse number and ends with the last verse of a chapter;
   it begins behind the first number of a run, so that nothing of it stands above that number */
.rij.lijn::before { content:''; position:absolute; left:calc(var(--kol-gt) + var(--rug) / 2); width:.4px; top:0; bottom:calc(-1 * (var(--verswit) + var(--rek, 0px))); background:var(--goudlijn); }
.rij.lijn:last-child::before, .rij.lijn:has(+ :not(.rij))::before { bottom:0; }
.vel:not(.huisvorm) .kolom > .rij.lijn:first-child::before, .vel:not(.huisvorm) .kolom > :not(.rij) + .rij.lijn::before { top:calc(var(--woord-h) * .5); }
/* the house form: Dutch on the left, the original on the right, each with its own verse number */
.huisvorm .rij { grid-template-columns:minmax(0,1fr) var(--rug) var(--kol-gt); }
.huisvorm .rij > .gw { grid-column:3; }
.huisvorm .rij > .dl { grid-column:1; }
.huisvorm .rij.lijn::before { left:auto; right:calc(var(--kol-gt) + var(--rug) / 2); }
.huisvorm .vnr { display:inline; width:auto; margin:0 .25em 0 0; padding:0; font-size:.72em; vertical-align:.38em; line-height:0; }
.gw .gnr { display:inline-block; vertical-align:top; font-family:var(--boek); font-size:calc(var(--vn) * .82); font-weight:600; color:var(--goud); height:var(--woord-h); line-height:var(--woord-h); direction:ltr; unicode-bidi:isolate; word-spacing:0; }
.gw .gnr.grijs { color:#8a8a8a; font-weight:400; }
/* the chapter head keeps to the same axis: the numeral beside the line, the summary in the Dutch column */
.hst.rijkop { display:grid; grid-template-columns:var(--kol-gt) var(--rug) minmax(0,1fr); font-size:inherit; line-height:inherit; }
.hst.rijkop::after { content:none; }
.hst.rijkop .hst-zij { grid-column:1; text-align:right; }
.hst.rijkop .hst-nr { float:none; display:block; margin:0; font-size:var(--hst-nr, 2.3em); }
.hst.rijkop .hst-inl { grid-column:3; font-size:.89em; line-height:1.24; }
.huisvorm .hst.rijkop { grid-template-columns:minmax(0,1fr) var(--rug) var(--kol-gt); }
.huisvorm .hst.rijkop .hst-zij { grid-column:3; grid-row:1; text-align:left; }
.huisvorm .hst.rijkop .hst-inl { grid-column:1; grid-row:1; }
/* the chapter number in Hebrew letters (Torah): beside the number, in the letter of the ground text */
.hst-he { font-family:'Noto Serif Hebrew',var(--boek); font-style:normal; font-weight:400; color:var(--accent); line-height:1; unicode-bidi:isolate; }
.hst > .hst-he { float:right; font-size:1.7em; margin:.05em 0 0 .3em; }
.hst.rijkop .hst-he { display:block; font-size:1.25em; margin-top:.2em; }
.huisvorm .hst.rijkop .hst-zij { display:flex; align-items:baseline; justify-content:space-between; }
/* the numbers in the text beside each other (Torah): both texts run on, every number raised behind its word */
.intekst .rij .gw { line-height:var(--grondregel); color:var(--grond-kleur); }
.intekst .gw .gnr { height:auto; line-height:inherit; vertical-align:baseline; }
.intekst .t .sp { font-family:'Noto Serif Hebrew',var(--boek); }
/* who speaks, as in the anthology: the words of God red, of an angel blue, of the devil grey, all speech in italics */
.kleurcit :is(.god-speaks, .angel-speaks, .devil-speaks, .direct-speech) { font-style:italic; }
.kleurcit .god-speaks { color:#b03a2e; }
.kleurcit .devil-speaks { color:#6b7280; }
.kleurcit .angel-speaks { color:#1f77b4; }

/* ---------------- front matter, contents, lexicon ---------------- */
.vw-titel { text-align:center; font-weight:600; letter-spacing:.13em; text-indent:.13em; text-transform:uppercase; color:var(--accent); line-height:1.3; }
.vw-boven { text-align:center; font-size:.78em; letter-spacing:.3em; text-indent:.3em; text-transform:uppercase; color:var(--goud); margin-bottom:.3em; }
.vw-kop { font-weight:600; color:var(--accent); text-align:left; hyphens:manual; }
.koptekst { padding-top:5mm; margin-bottom:6mm; }
.koptekst .sier { margin:1em 0 0; }
.koptekst .vw-onder { text-align:center; font-style:italic; color:var(--inkt-zacht); margin-top:.7em; }
.koptekst .vw-melding { margin-top:.9em; font-size:.92em; line-height:1.3; color:#333; text-align:left; }
.klein { font-size:.9em; line-height:1.3; }
.alinea { text-align:left; hyphens:manual; }
/* every line of a paragraph is as high as the next, so that a paragraph can break between any two lines */
.alinea :is(b,i,em,strong,span,sup,sub,a) { line-height:0; }
.alinea sup, .alinea sub { font-size:.72em; }
/* the last line of the first half of a broken paragraph is a full line */
.uitvul .alinea.slot { text-align-last:justify; }
/* a word that was broken where the paragraph runs on in the next column keeps its hyphen */
.alinea.streep::after { content:'-'; }
.kolom > .vw-kop { margin-top:.9em; }
.kolom > .vw-kop:first-child { margin-top:0; }
.kolom > .vw-kop + .alinea { margin-top:.15em; }
.kolom > .alinea + .alinea { margin-top:.42em; }
.kolom > .alinea.vervolg { margin-top:0; }
.alinea.bron b { font-weight:600; }
.alinea a { color:inherit; text-decoration:none; }
.merk { display:flex; align-items:center; gap:2mm; color:var(--accent); margin-top:1.2em; }
.merk .drukkersmerk { width:6mm; height:6mm; flex:none; }
.merk span { font-size:.92em; letter-spacing:.14em; text-transform:uppercase; color:#555; }

/* the contents stand in one column of a readable width, in the middle of the page */
.inhoud .kolom { flex:0 1 118mm; margin:0 auto; }
.io-rij { display:grid; grid-template-columns:minmax(0,1fr) auto 2.6em; column-gap:.6em; align-items:baseline; line-height:1.42; }
.io-rij .gt { font-family:var(--grondletter),var(--boek); letter-spacing:0; font-weight:400; }
/* beside a book its presumed time of writing, in one column; beside a group what the list says of it */
.io-rij.met-tijd { grid-template-columns:9.4em minmax(0,1fr) auto 2.6em; }
.io-rij.io-deel.met-tijd { grid-template-columns:auto minmax(0,1fr) auto 2.6em; }
.io-tijd { font-size:.86em; font-style:italic; font-weight:400; letter-spacing:0; text-transform:none; color:var(--inkt-zacht); }
.a5 .io-rij.met-tijd { grid-template-columns:8.2em minmax(0,1fr) auto 2.3em; }
.io-rij.io-deel { font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); }
.io-rij.io-deel.eigen { text-transform:none; letter-spacing:.04em; }
.io-rij.io-deel .gt { color:var(--accent); }
.kolom > .io-deel { margin-top:.9em; }
.kolom > .io-deel:first-child { margin-top:0; }
.kolom > .io-deel + .io-rij { margin-top:.3em; }
.io-rij a { display:contents; color:inherit; text-decoration:none; }
.io-rij .gt { color:var(--inkt-zacht); font-size:.96em; }
.io-rij .gt[lang=grc] { font-size:calc(var(--grieks) * 1em); }
.io-rij .p { text-align:right; font-variant-numeric:lining-nums tabular-nums; color:var(--accent); font-size:.9em; letter-spacing:0; }
.io-rij.io-los { margin-top:.9em; font-weight:600; color:var(--accent); }
.io-rij.io-los + .io-los { margin-top:.3em; }
@media screen { .scherm .io-rij a:hover .io-naam { text-decoration:underline; } }

.lexicon .kolom { font-size:calc(var(--korps) * .88); line-height:calc(var(--regel) * .88); }
.lem-kop { font-weight:600; color:var(--accent); text-align:left; hyphens:manual; break-after:avoid; }
.kolom > * + .lem-kop { margin-top:calc(.75em + var(--rek, 0px)); }
.kolom > .lem-kop + * { margin-top:.1em; }
.lexicon .kolom > .alinea + .alinea { margin-top:.25em; }
.lexicon .kolom > .alinea.vervolg { margin-top:0; }
.alinea.samenvatting-label { font-family:'Fira Sans',sans-serif; font-size:.74em; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--zeegroen); }
.alinea.samenvatting { font-style:italic; }
.alinea.lem-noot { font-size:.92em; color:var(--inkt-zacht); }
.hebrew, .greek { font-family:var(--grondletter),var(--boek); font-style:normal; font-weight:400; }
.hebrew { font-size:1.08em; }
/* a letter stack of its own: only then the browser sets the point apart from the sign before it */
.punt { font-family:'Noto Serif Hebrew',var(--boek); font-style:normal; font-weight:400; }
.greek { font-size:calc(var(--grieks) * 1em); }

/* ---------------- word explanation ---------------- */
#lemma-dialog {
  margin:auto; width:min(640px, calc(100vw - 32px)); max-height:min(82vh, 900px); padding:0; border:0;
  background:#fff; color:#111; box-shadow:0 3px 20px rgba(0,0,0,.30), 0 1px 4px rgba(0,0,0,.18);
}
#lemma-dialog::backdrop { background:rgba(27,29,32,.55); }
#lemma-dialog .dialog-top { display:flex; justify-content:space-between; align-items:center; gap:12px; background:#1b1d20; color:#9fb4c8; padding:9px 16px; font:600 11px/1.4 var(--ui); letter-spacing:.08em; text-transform:uppercase; position:sticky; top:0; }
#close-lemma { background:#2a2d32; color:#e8e8ea; border:0; border-radius:4px; padding:5px 10px; font:12px var(--ui); cursor:pointer; }
#close-lemma:hover { background:#363a41; }
#lemma-dialog .dialog-body { padding:18px 26px 26px; font-family:'Grondschrift','EB Garamond','Noto Serif Hebrew','Noto Serif Greek','Lexicontekens',Georgia,serif; font-size:17px; line-height:1.42; }
#lemma-title { font-size:22px; font-weight:600; color:var(--accent); line-height:1.25; }
.token-context { font:12px/1.5 var(--ui); color:#555; margin:6px 0 12px; }
.token-context .gt { font-family:var(--grondletter),'EB Garamond',Georgia,serif; font-size:1.25em; color:#111; }
.token-context:empty { display:none; }
.definition p, .definition div, .definition li, .definition blockquote { margin-top:.5em; }
.definition ul, .definition ol { padding-left:1.2em; }
.definition .summary-label { font:600 11px/1.4 var(--ui); letter-spacing:.07em; text-transform:uppercase; color:var(--zeegroen); }
.definition .lemma-summary { border-left:1.5px solid var(--goud); padding-left:.7em; font-style:italic; }
.definition .small { font:12px/1.5 var(--ui); color:#555; }
.definition .error { color:#8a1c1c; }
.definition a { color:var(--zeegroen); }

.noscript { background:#fff; padding:20px; margin:30px; font:14px var(--ui); }

/* ---------------- narrow screens: the panel above the sheets, folded away ---------------- */
@media screen and (max-width: 860px) {
  body { display:block; }
  #panel { width:auto; height:auto; position:relative; overflow:visible; padding:12px 16px 14px; font-size:13px; }
  #panel .paneel-kop { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; }
  #panel .paneel-kop h1, #panel .paneel-kop .sub { flex:1 1 60%; margin-bottom:0; }
  .paneel-knop { display:inline-block; background:#2f6da8; color:#fff; border:0; border-radius:5px; padding:7px 12px; font:inherit; font-size:12px; cursor:pointer; }
  #panel:not(.open) #panel-inhoud { display:none; }
  #zetstrook { position:static; margin:10px -16px 0; }
  /* while the book is being set the strip stays in view at the foot of the screen */
  #zetstrook:has(#btn-stop:not([hidden])) { position:fixed; top:auto; left:0; right:0; bottom:0; margin:0; z-index:5; box-shadow:0 -2px 10px rgba(0,0,0,.35); }
  #panel-inhoud { margin-top:10px; }
  #panel input[type=range] { width:130px; }
  .terug { flex:1 1 100%; margin:0 0 2px; font-size:13px; }
  .imprint { display:none; }
  #doek { height:auto; overflow:visible; padding:16px 16px 60px; }
  #vellen { gap:14px; }
  body.boekje #vellen { row-gap:14px; }
}

@media print {
  html, body { width:var(--vel-b); overflow:hidden; }
  body { display:block; background:#fff; min-height:0; }
  #panel, #zetbank, #lemma-dialog, .proef-fout, .noscript { display:none !important; }
  #doek { padding:0; height:auto; overflow:visible; }
  #vellen, body.boekje #vellen { display:block; gap:0; transform:none !important; width:auto !important; }
  #vellen-maat { width:auto !important; height:auto !important; overflow:visible !important; margin:0 !important; }
  .vel, body.boekje #vellen > .vel { box-shadow:none; break-after:page; page-break-after:always; contain:layout paint; }
  #vellen > .vel:last-child { break-after:auto; page-break-after:auto; }
  .hulp .venster, .hulp .kolom { outline:none; }
  /* a word or number the reader had come to with the keyboard is printed as any other */
  .vel :focus, .vel :focus-visible { outline:none; }
  .beeldvel { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}
