/* =====================================================================
   Literata – zelf gehost voor pe1hvh.nl
   Lettertype: Literata (The Literata Project Authors), SIL Open Font License 1.1
   Subset: Latin (dekt Nederlands incl. é, ë, ï, ü en de gangbare leestekens)
   Staat op de site als style/literata.css + style/fonts/
   ===================================================================== */

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/literata-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/literata-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/literata-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/literata-latin-700-italic.woff2") format("woff2");
}

/* ---------------------------------------------------------------------
   Toepassing op pe1hvh.nl. Wordt ná pe1hvh.css geladen (templates in
   template_v2/), zodat deze regels voorgaan.
   --------------------------------------------------------------------- */
body {
  /* Georgia eerst; Literata alleen waar Georgia ontbreekt (Linux, Android).
     De browser downloadt Literata dan ook alleen op die apparaten. */
  font-family: Georgia, "Literata", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
}

/* Koppen: dezelfde letterstapel als de lopende tekst */
#page h1, #page h2, #page h3, #page h4,
#page .kop-klein {
  font-family: Georgia, "Literata", "Times New Roman", serif;
}

/* Lopende tekst uit de database (Content.class.php: div.pe-tekst):
   ca. 60-75 tekens per regel, gecentreerd onder de titel.
   Lijsten, datatabellen, navigatie en footer vallen hierbuiten. */
#page .pe-tekst {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* NL Repeaters (tekst/x33.inc, NLRepeaters.class.php) en CHIRP-lijsten
   (tekst/chirp_lijsten.inc): de tekst boven de lijst, gecentreerd zoals de
   andere tekstblokken; de repeatertabel blijft volle breedte. */
#page .repeater-intro,
#page .repeaterlijst > .repeater-mutaties,
#page .repeaterlijst > .repeater-banden {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* CHIRP-lijsten (tekst/chirp_lijsten.inc): de tabel met lijsten gecentreerd;
   de koppen in de tabel blijven links. De begeleidende tekst gebruikt het
   blok .repeater-intro hierboven. */
#page .chirp-lijsten {
  margin-left: auto;
  margin-right: auto;
}

/* Lijstblok zo breed als de tabel; de bronvermelding (laatste alinea) loopt
   over die breedte en telt zelf niet mee voor de breedte. */
#page .repeaterlijst {
  width: fit-content;
  max-width: 100%;
}
#page .repeaterlijst > p:last-child {
  width: 0;
  min-width: 100%;
}

/* Tabellen in Literata: cijfers even hoog en recht onder elkaar
   (Georgia heeft alleen mediëvale cijfers).
   Grootte en regelafstand blijven de oude waarden (pe1hvh.css: 16px / 22px):
   de tabellen zijn op die maat afgestemd. */
#page table {
  font-family: "Literata", Georgia, serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 16px;
  line-height: 22px;
}

/* Uitzondering: het examenformulier (SetForm.class.php) is een layouttabel
   met lopende tekst; dat houdt de letter van de lopende tekst. */
#page .pe-inhoud > table[style*="max-width:800px"],
#page .pe-inhoud > table[style*="max-width:800px"] table {
  font-family: inherit;
  font-variant-numeric: normal;
}
