/* ============================================================
 *  CONGO SCIENTIFIC RESEARCH — WEBSITE THEME
 *  Version 4.0  ·  Maximum compatibility · Archive-safe
 * ============================================================
 *
 *  DESIGN GOALS
 *  ------------
 *  - NO external dependencies (no CDN, fonts or scripts).
 *    Works fully offline: USB, local media, museum kiosk.
 *  - NO modern CSS selectors (no :has(), :is(), clamp()).
 *    Only selectors that work in every browser since ~2010,
 *    so the layout also holds up on old/unknown systems.
 *  - Styling via class names rather than structural selectors.
 *    A class has worked since 1996 in all browsers; that is
 *    more robust than a modern selector that may fail on old
 *    systems.
 *  - Typography: system fonts only (UI sans-serif stack).
 *  - Fixed text sizes (rem/px), no fluid clamp().
 *
 *  CONTENTS
 *  --------
 *   1. Variables        7. Publication grid
 *   2. Reset & base     8. Article view
 *   3. Typography       9. Sidebar
 *   4. Header & nav    10. Tags
 *   5. Hero            11. Footer
 *   6. Numbers         12. Responsive
 * ============================================================ */


/* ── 1. VARIABLES ───────────────────────────────────────── */

/* Zelf-gehoste lettertypes (bestanden in css/fonts/, geen CDN-aanroep) --
   zodat de site op elk toestel exact hetzelfde lettertype toont i.p.v.
   het toevallige resultaat van de vroegere systeemfont-stack (San
   Francisco op Mac/iOS, Segoe UI op Windows, Roboto op Android). Enkel de
   "latin"-subset (dekt ook Æ, é, è, ê, ç, ... -- alles binnen U+00FF),
   voldoende voor de Franse/Engelse/Nederlandse inhoud van deze site. */
@font-face {
  font-family: "Crimson Pro";
  src: url("fonts/CrimsonPro-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("fonts/CrimsonPro-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --bg-dark/--bg-nav/--bg-nav-active/--sand blijven de oorspronkelijke
     bruin/zand-tinten -- die kleuren de hero, het cijferblok, de footer en
     tabelkoppen (th), niets daarvan werd door de klant ter discussie
     gesteld. Enkel de echte navigatiebalk (.gen-header) kreeg een eigen
     --nav-* set, zie verderop. */
  --bg-dark:#2C1A0E; --bg-nav:#3D2410; --bg-nav-active:#4A2D15;
  --border:#7A4A28;  --border-light:#C8A882; --sand:#C8A882;
  /* Klantfeedback 2026-08-21: paginaäctergrond en kaders (.card, sidebar,
     ...) naar hetzelfde neutrale lichtgrijs/wit als de Tempels-site, i.p.v.
     de zand-/crèmetinten die bij sommige gebruikers (Afrikanistiek) als
     "safari"-thema overkwamen. */
  --bg-light:#F4F4F4; --bg-card:#FFFFFF;
  /* Linkkleur nu gelijk aan de (eveneens aangepaste) linkkleur op de
     Tempels-site -- expliciet gevraagd voor herkenbaarheid tussen beide
     sites. */
  --river:#336699; --river-hover:#990033; --river-light:#E3ECF3;
  --moss:#6B8F6B;  --moss-light:#E8F0E8;
  /* Lopende tekst en kopjes naar hetzelfde neutrale zwart/antraciet als de
     Tempels-site (was een bruine tint) -- zelfde "safari"-overweging als
     hierboven. --text-soft (meta/voetnoottekst) blijft bewust de oude
     zandtint: die kleur wordt ook op de donkere hero/cijferblok/footer
     gebruikt (als lichte tekst op donkere achtergrond) en zou daar
     onleesbaar worden als hij hier ook naar antraciet zou verschuiven. */
  --text:#333333; --text-soft:#9B7A5A; --text-dark:#1A1A1A;
  /* Navigatiebalk bovenaan (.gen-header e.a.): het bordeauxrood van de
     oorspronkelijke site terug, apart van --bg-nav (die kleurt nog altijd
     de hero/cijferblok/tabelkoppen en bleef dus ongewijzigd). */
  --nav-bg:#800000; --nav-bg-hover:#9C2B2B; --nav-text:#F4F4F4;
  /* Fallback-stack blijft staan na de zelf-gehoste naam, voor het
     zeldzame geval dat een fontbestand niet laadt. */
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --ui: "Inter", -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}


/* ── 2. RESET & BASE ────────────────────────────────────── */

* { box-sizing: border-box; }

html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
  padding: 0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-light);
  color: var(--text);
  font-family: var(--ui);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  /* Sommige oudere pagina's gebruiken een lange rits em-dashes als
     platte-tekst-scheidingslijn (bv. "——————...", tempels/index.md) --
     zonder spaties kan die niet afbreken en duwde de pagina op smalle
     schermen breder dan de viewport (horizontale scroll). */
  overflow-wrap: break-word;
}

img, video, figure { max-width: 100%; height: auto; display: block; }

/* Centred content width. The full background colour sits on the
   outer wrapper; .wrap keeps the content readable. */
.wrap {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}


/* ── 3. TYPOGRAPHY ──────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  line-height: 1.2;
}
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
}
h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
}

h1 { font-size: 36px; }
h2 { font-size: 25px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 15px; }

/* Sectiekoppen in de lopende inhoud hebben verticaal ritme nodig: de
   reset (sectie 1) nult alle heading-marges, en alleen losse contexten
   zetten die terug. Scoped op <main> zodat enkel echte inhoudskoppen
   geraakt worden. Diepere niveaus (h5/h6) iets krapper. */
main h2, main h3, main h4 { margin: 32px 0 16px; }
main h5, main h6 { margin: 24px 0 16px; }
main.page-content > h2:first-child { margin-top: 0; }

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--river); text-decoration: none; }
a:hover { color: var(--river-hover); text-decoration: underline; }

/* Lange, tekstzware pagina's (bv. biografieën/citatenlijsten) staan vaak
   vol met inline links -- namen, voetnootverwijzingen als "[1]" -- die in
   de brontekst soms zonder spatie tegen de omringende tekst/leestekens
   aan staan (bv. "...het woord."[5](#5)"). Wat extra horizontale
   witruimte errond maakt zulke pagina's rustiger leesbaar, zonder de
   navigatie-pillen (die al hun eigen padding hebben) te raken. */
main.page-content a { margin: 0 2px; }

strong { font-weight: bold; }
/* Er is maar een cursieve variant meegeleverd (400) voor zowel Inter als
   Crimson Pro -- de basis-lopende tekst is echter gewicht 500, dus een kaal
   <em> vroeg om "500 cursief" en de browser synthetiseerde het verschil.
   Expliciet terug naar 400 voor de echte cursief-face. */
em { font-weight: 400; }
strong em, em strong { font-weight: bold; }
time { font-family: var(--ui); }

ul, ol { padding-left: 24px; }
li { margin-bottom: 8px; }

blockquote {
  border-left: 3px solid var(--border);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--bg-card);
}
blockquote p {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 400;          /* enkel 400-cursief meegeleverd, zie em hierboven */
  color: var(--text-dark);
  margin: 0;
}
blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--ui);
  font-size: 14px;
  font-style: normal;
  color: var(--text-soft);
}

/* Een blockquote met meerdere losse citaten/lijst-items (bv. een
   literatuurlijst) is geen pull-quote -- de grote cursieve stijl
   hierboven is daar niet voor bedoeld en liet de pagina er vanaf dat
   punt uitzien als een andere lay-out. Zie
   mark_multi_paragraph_blockquotes() in convert_markdown_to_html5.py. */
blockquote.blockquote-list {
  padding: 12px 20px;
}
blockquote.blockquote-list p {
  font-family: var(--ui);
  font-size: 15px;
  font-style: normal;
  color: var(--text);
  margin-bottom: 10px;
}
blockquote.blockquote-list p:last-child { margin-bottom: 0; }

/* Toon op een geforceerd-Engelse "kopie"-pagina (Franse content zonder
   eigen Engelse vertaling, zie find_fr_only_en_reachable()/
   convert_file_custom() in convert_mdv2_to_html5.py) dat deze pagina zelf
   niet in het Engels bestaat en de Franse inhoud getoond wordt -- anders
   lijkt de plotse taalwissel in de lopende tekst een fout i.p.v. bewust
   gedrag. Zit tussen broodkruimel en H1. */
p.lang-unavailable-notice {
  background: var(--river-light);
  border-left: 3px solid var(--river);
  border-radius: 4px;
  padding: 10px 14px;
  margin: 0 0 20px;
  font-family: var(--ui);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;          /* enkel 400-cursief meegeleverd, zie em hierboven */
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 24px;
}
th {
  background: var(--bg-nav);
  color: var(--sand);
  font-family: var(--ui);
  font-weight: bold;
  text-align: left;
  padding: 12px 16px;
}
td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); }


/* ── 4. HEADER & NAVIGATION ─────────────────────────────── */

.site-header {
  background: var(--bg-nav);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  min-height: 56px;
}

.logo {
  font-family: var(--ui);
  font-size: 18px;
  color: var(--sand);
  white-space: nowrap;
}
.logo:hover { color: var(--bg-light); text-decoration: none; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--sand);
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  line-height: 56px;
  padding: 0 16px;
  font-family: var(--ui);
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover {
  color: var(--sand);
  background: var(--bg-nav-active);
  text-decoration: none;
}
.main-nav a[aria-current="page"] {
  color: var(--sand);
  background: var(--bg-nav-active);
  border-bottom-color: var(--border);
}


/* ── 5. HERO ────────────────────────────────────────────── */

.hero {
  background: var(--bg-dark);
  padding: 64px 0;
  border-bottom: 3px solid var(--border);
}
.hero .kicker {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--sand);
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 24px;
}
.hero .intro {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero .buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0;
}
.hero .buttons .btn { margin-right: 16px; margin-bottom: 8px; }


/* Buttons (general) */
.btn {
  display: inline-block;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: bold;
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--sand);
}
.btn:hover { background: var(--bg-nav-active); text-decoration: none; color: var(--sand); }
.btn-secondary { border-color: var(--text-soft); }

.btn-outlined {
  border-color: var(--river);
  color: var(--river);
}
.btn-outlined:hover { background: var(--river-light); color: var(--river-hover); }


/* ── 6. NUMBERS ─────────────────────────────────────────── */

.numbers {
  background: var(--bg-dark);
  padding: 48px 0;
}
.numbers h2 {
  color: var(--sand);
  text-align: center;
  font-family: var(--ui);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.numbers dl {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -8px;
}
.numbers dl > div {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 200px;
  flex: 1 1 200px;
  margin: 8px;
  background: var(--bg-nav);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.numbers dd {
  font-family: var(--ui);
  font-size: 36px;
  color: var(--sand);
  line-height: 1;
  margin: 0 0 8px;
}
.numbers dt {
  font-family: var(--ui);
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* Section divider with label */
.field-line {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--border);
  padding-top: 16px;
  margin-bottom: 32px;
  border-top: 3px solid var(--border);
}


/* ── 7. PUBLICATION GRID ────────────────────────────────── */

.publications { padding: 48px 0; }

.cards {
  list-style: none;
  margin: 0 -12px;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.cards > li {
  margin: 0;
  padding: 12px;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 300px;
  flex: 1 1 300px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  -webkit-box-shadow: 0 2px 8px rgba(44,26,14,.12);
  box-shadow: 0 2px 8px rgba(44,26,14,.12);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
}
.card-featured { border-color: var(--border); border-width: 2px; }
.card-featured h3 { font-size: 24px; }

/* Image placeholder — replace <figure> with <img> once a real
   image is available; the rest of the styling stays the same. */
.placeholder {
  background: var(--bg-nav);
  height: 0;
  padding-top: 56.25%;          /* 16:9 without aspect-ratio() */
  position: relative;
  margin: 0;
}
.placeholder figcaption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.card-tags {
  padding: 24px 24px 0;
  margin: 0 0 12px;
}
.card h3 { padding: 0 24px; margin-bottom: 12px; line-height: 1.3; }
.card h3 a { color: var(--text-dark); }
.card h3 a:hover { color: var(--river); }
.excerpt {
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  margin-bottom: 16px;
}
.card-foot {
  margin: 0 24px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border-light);
  font-family: var(--ui);
  font-size: 12px;
  color: var(--text-soft);
}
.card-foot span, .card-foot time { margin-right: 8px; }

mark {
  background: var(--moss);
  color: #fff;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
}

.more { text-align: center; margin: 32px 0 0; }


/* ── 8. ARTICLE VIEW ────────────────────────────────────── */

.article-view {
  background: var(--bg-card);
  padding: 48px 0;
}

.article-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -16px;
}
.article {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 520px;
  flex: 1 1 520px;
  margin: 0 16px;
  min-width: 0;
}
.sidebar {
  -ms-flex: 0 0 280px;
  flex: 0 0 280px;
  margin: 0 16px;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-family: var(--ui);
  font-size: 14px;
  color: var(--text-soft);
}
.breadcrumbs li { display: inline; margin: 0; }
.breadcrumbs li + li:before {
  content: "› ";
  color: var(--border-light);
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}
.article-header h3 { font-size: 32px; margin-bottom: 16px; }
.article-header .card-tags { padding: 0; margin-bottom: 16px; }
.meta {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}
.meta span, .meta time { margin-right: 12px; }

.article-body h4 { margin: 32px 0 16px; }
.article-body a { text-decoration: underline; }


/* ── 8b. GENERATED PAGES — PAGE STRUCTURE ────────────────── */

/* Base <main> (old format, pages without .page-content) */
main {
  display: block;
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}
main:after {
  content: "";
  display: table;
  clear: both;
}
main > h1 { margin-bottom: 16px; }
main > .top-menu,
main > .breadcrumb {
  clear: both;
  font-family: var(--ui);
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-soft);
}
main > .top-menu a,
main > .breadcrumb a { color: var(--river); }
main.no-side {
  max-width: 760px;
}
main > .side-menu,
nav.side-menu,
p.nav-sidemenu + ul {
  float: left;
  width: 230px;
  margin: 0 32px 24px 0;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-family: var(--ui);
  font-size: 14px;
  list-style: none;
}
main > .side-menu ul,
nav.side-menu ul,
p.nav-sidemenu + ul ul { list-style: none; margin: 0; padding-left: 0; }
main > .side-menu ul ul,
nav.side-menu ul ul,
p.nav-sidemenu + ul ul ul { padding-left: 16px; margin-top: 4px; margin-bottom: 8px; }
main > .side-menu li,
nav.side-menu li,
p.nav-sidemenu + ul li { margin-bottom: 6px; }
main > .side-menu > ul > li > strong,
nav.side-menu > ul > li > strong,
p.nav-sidemenu + ul > li > strong {
  display: block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}
main > .side-menu a,
nav.side-menu a,
p.nav-sidemenu + ul a { color: var(--text); }
main > .side-menu a:hover,
nav.side-menu a:hover,
p.nav-sidemenu + ul a:hover { color: var(--river); }
p.nav-sidemenu { display: none; }

@media (max-width: 860px) {
  main > .side-menu,
  nav.side-menu,
  p.nav-sidemenu + ul { float: none; width: auto; margin-right: 0; }
}

/* ── New page structure: header + 2 columns + footer ── */

.gen-header {
  background: var(--nav-bg);
  border-bottom: 3px solid var(--border);
}
.gen-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.gen-logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-decoration: none;
  margin-right: 24px;
  white-space: nowrap;
}
.gen-logo-text {
  /* Wordmark in het schreef-lettertype (net als de koppen) i.p.v. het
     interface-lettertype van de rest van de nav -- klassiek patroon:
     logo krijgt karakter, het klikbare menu blijft op Inter voor
     scherpte op klein formaat. */
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  font-style: normal;
  color: var(--nav-text);
}
.gen-logo:hover .gen-logo-text { color: #FFFFFF; }

.gen-header .top-menu {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
}
.gen-header .top-menu ul {
  list-style: none;
  margin: 0 -3px;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  /* verticaal centreren i.p.v. de standaard "stretch": items met een
     afwijkende hoogte (icoon-only links, of de kleinere Æquatoria-
     terugkeerlink op Tempels) blijven zo op één lijn met de tekst-items. */
  -ms-flex-align: center;
  align-items: center;
}
.gen-header .top-menu li { margin: 3px 2px; }
.gen-header .top-menu a {
  /* flex i.p.v. block: het Home-huisicoon en Contact-envelopicoon
     (_new_nav_icon_svg() in convert_markdown_to_html5.py) zijn SVG's zonder
     omringende tekst, en hingen met enkel `vertical-align` een paar pixels
     te laag t.o.v. de tekst-items ernaast (de grote regelhoogte van 1.75
     op een 13px-lettertype liet daar geen betrouwbare uitlijning toe).
     align-items:center centreert zowel tekst als icoon verticaal exact
     hetzelfde, ongeacht content-type. */
  display: flex;
  align-items: center;
  font-family: var(--ui);
  font-size: 13px;
  /* Krap genoeg om de 9 items (incl. het huisicoon + het envelopicoon voor
     Contact, zie build_page_structure()/_tidy_main_topmenu() in
     convert_markdown_to_html5.py) net op 1 lijn te houden tot op de volle
     containerbreedte (1160px) -- bij de vorige 11px zat het menu daar nog
     enkele pixels te krap en sloeg het onnodig om naar 2 lijnen. */
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--nav-text);
  text-decoration: none;
}
.gen-header .top-menu a:hover {
  background: var(--nav-bg-hover);
  border-color: var(--border);
  color: #FFFFFF;
  text-decoration: none;
}

/* Taalkeuze (EN<->FR): apart van het gewone menu, altijd uiterst rechts in
   de header -- laatste flex-kind van .gen-header-inner, en .top-menu ernaast
   heeft flex:1, dus die duwt dit vanzelf helemaal naar rechts. */
.gen-header .lang-switch {
  margin-left: 12px;
  flex-shrink: 0;
}
.gen-header .lang-switch a {
  display: block;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--nav-text);
  color: var(--nav-text);
  text-decoration: none;
  white-space: nowrap;
}
.gen-header .lang-switch a:hover {
  background: var(--nav-text);
  color: var(--nav-bg);
  text-decoration: none;
}

/* Enkel zichtbaar binnen de mobiel/tablet-mediaquery hieronder -- op
   desktop staat het topmenu altijd al volledig uitgeklapt, dan is er
   niets om open/dicht te plooien. */
/* font-family: een <button> erft dat niet vanzelf -- zonder dit rendert het
   ☰-teken in Arial i.p.v. de site-UI-letter. */
.menu-toggle { display: none; font-family: inherit; }

.gen-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.left-col {
  width: 230px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin-right: 32px;
}

.left-col > .side-menu {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-family: var(--ui);
  font-size: 14px;
}
.left-col > .side-menu ul { list-style: none; margin: 0; padding-left: 0; }
.left-col > .side-menu ul ul { padding-left: 16px; margin-top: 4px; margin-bottom: 8px; }
.left-col > .side-menu li { margin-bottom: 6px; }
.left-col > .side-menu > ul > li > strong {
  display: block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.left-col > .side-menu a { color: var(--text); }
.left-col > .side-menu a:hover { color: var(--river); }

main.page-content {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}
main.page-content:after { display: none; }
main.page-content > h1 { margin-bottom: 16px; }
main.page-content > .breadcrumb {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 12px;
}
main.page-content > .breadcrumb a { color: var(--river); }
main.page-content.no-side {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.gen-footer {
  background: var(--bg-dark);
  color: var(--text-soft);
  padding: 20px 24px;
  border-top: 3px solid var(--border);
  font-family: var(--ui);
  font-size: 13px;
  text-align: center;
}
.gen-footer a { color: var(--text-soft); }
.gen-footer a:hover { color: var(--sand); text-decoration: none; }

@media (max-width: 860px) {
  /* .gen-header-inner blijft een rij (net als op desktop) i.p.v. om te
     schakelen naar 1 kolom: logo + taalkeuze delen zo op natuurlijke
     wijze de eerste rij (allebei smal genoeg om naast elkaar te passen),
     en enkel het topmenu (width:100% hieronder, dus nooit smal genoeg om
     op diezelfde rij te passen) springt vanzelf naar een eigen volle rij
     dankzij flex-wrap. Voorheen forceerde flex-direction:column + een
     asymmetrische padding-right (om de taalkeuze plek te geven) dat het
     topmenu in een te smalle, niet-gecentreerde kolom kwam te staan. */
  .gen-header-inner { padding: 10px 16px; }
  .gen-logo { margin-right: 0; margin-bottom: 8px; }
  /* Knop (₊ taalkeuze) samen rechts op de eerste rij, net als voorheen --
     enkel margin-left:auto verhuisde van .lang-switch naar .menu-toggle,
     zodat die 2 nu als koppel naast elkaar rechts staan i.p.v. enkel de
     taalkeuze. Zie ook build_page_structure() in
     convert_markdown_to_html5.py voor de knop zelf. */
  .menu-toggle {
    display: block;
    -webkit-box-ordinal-group: 1;
    -ms-flex-order: 0;
    order: 0;
    margin-left: auto;
    background: none;
    border: 1px solid var(--nav-text);
    color: var(--nav-text);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 20px;
    line-height: 1.4;
    cursor: pointer;
  }
  .menu-toggle:hover { background: var(--nav-bg-hover); }
  .gen-header .lang-switch {
    -webkit-box-ordinal-group: 1;
    -ms-flex-order: 0;
    order: 0;
    margin-left: 8px;
    margin-top: 0;
  }
  .gen-header .top-menu {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    /* De onvoorwaardelijke regel hierboven (sectie 4) zet "flex: 1", d.i.
       flex-basis:0% -- die wint van een gewone "width", dus expliciet de
       flex-basis zelf op 100% zetten i.p.v. enkel width (anders bleef het
       topmenu smal/niet-gecentreerd naast logo+taalkeuze staan i.p.v. op
       een eigen volle rij). */
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    width: 100%;
    /* Standaard toegeplooid -- neemt anders altijd zijn volledige
       uitgeklapte hoogte in, nog vóór je de pagina zelf ziet. De
       .menu-toggle-knop (nav-toggle-scriptje, build_page_structure())
       hangt de klasse .is-open eraan om open te plooien. Bij elke nieuwe
       paginalaad (elke link is een volledige nieuwe laad, geen
       client-side routing) staat het dus vanzelf weer dicht. */
    display: none;
  }
  .gen-header .top-menu.is-open { display: block; }
  .gen-header .top-menu ul {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 0 -3px;
  }
  .gen-header .top-menu li { margin: 2px 3px; }
  /* justify-content i.p.v. het vroegere text-align: nu de "a" hierboven
     display:flex is (voor de iconen-uitlijning), doet text-align niets
     meer -- flex centreert zelf, ook bij een icoon zonder tekst. */
  .gen-header .top-menu a { padding: 12px 14px; justify-content: center; font-size: 18px; }
  .gen-layout {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 16px 16px 32px;
  }
  .left-col { width: 100%; margin-right: 0; margin-bottom: 16px; }
  /* .gen-layout--with-side: modifierklasse die build_page_structure() (zie
     convert_markdown_to_html5.py) enkel toevoegt op pagina's mét subnav
     (left-col) -- scoped zodat onderstaande regels de rest van de site met
     rust laten. stretch i.p.v. het overgeërfde flex-start (sectie 4): nodig
     zodat main's kinderen hieronder, eens "losgemaakt" van main, elk uit
     zichzelf de volledige breedte innemen i.p.v. hun eigen inhoud-breedte
     (voorheen deed de aparte "main.page-content { width:100% }" regel dat
     nog voor main als geheel). */
  .gen-layout--with-side {
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
  }

  /* .gen-layout is een flex-column met align-items:flex-start (zie de
     onvoorwaardelijke regel hierboven in sectie 4) -- zonder een expliciete
     breedte hier krijgt main dan een shrink-to-fit breedte in de kruisas
     (dus horizontaal) in plaats van de volledige containerbreedte, wat een
     brede afbeelding (bv. de Tempels-header) main tot aan zijn eigen
     max-width kon laten uitrekken en zo horizontale scroll veroorzaakte.
     (Blijft nuttig als fallback voor browsers zonder display:contents --
     zie hieronder.) */
  main.page-content { width: 100%; }

  /* De titel (h1, of h2 als er geen h1 is) moet net onder de broodkruimel
     en boven de subnav (left-col) staan, ook al staat left-col in de
     brontekst vóór main (nodig voor de kolomvolgorde op desktop: subnav
     links, hoofdtekst rechts, zie build_page_structure() in
     convert_markdown_to_html5.py). main.page-content "ontplooien"
     (display:contents) maakt zijn kinderen (broodkruimel, h1, p, ul, ...)
     individueel herschikbare flex-items binnen .gen-layout--with-side,
     zodat enkel broodkruimel+titel vóór left-col kunnen komen te staan
     i.p.v. heel main in zijn geheel. De broodkruimel (indien aanwezig)
     staat in de brontekst altijd al vóór de h1 (zie build_page_structure()),
     dus zelfde order-waarde volstaat om ze samen, in die volgorde, vóór
     left-col te krijgen. Browsers zonder display:contents-steun negeren
     deze regels gewoon en tonen nog altijd main als geheel (dus subnav
     onderaan) -- geen breuk, enkel geen herschikking. */
  .gen-layout--with-side > main.page-content { display: contents; }
  .gen-layout--with-side > main.page-content > * { order: 3; }
  .gen-layout--with-side > main.page-content > nav.breadcrumb,
  .gen-layout--with-side > main.page-content > h1,
  .gen-layout--with-side > main.page-content > h2:first-child {
    order: 1;
  }
  .gen-layout--with-side > .left-col { order: 2; }

  /* Sommige pagina's bevatten brede tabellen (meerdere kolommen) die op
     mobiele breedte niet kunnen krimpen zonder de data onleesbaar te maken
     -- laat de tabel zelf horizontaal scrollen i.p.v. de hele pagina. */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Zelfde centrering als het topmenu, nu voor het paginamenu links
     (bv. Publications, Chroniques, Archives) -- dat staat altijd al
     verticaal, maar kreeg tot nu toe geen gecentreerde tekst op mobiel. */
  .left-col > .side-menu li { text-align: center; }
}

/* Tablet (bv. iPad-formaat): zelfde verticale menu-opmaak als op
   smartphone (die op smartphone-formaat prima leesbaar is, bevestigd door
   de gebruiker), maar logo en topmenu-tekst iets groter -- op een fysiek
   veel groter scherm oogde dezelfde px-grootte als op smartphone te
   klein/schraal. */
@media (min-width: 481px) and (max-width: 860px) {
  .gen-logo-text { font-size: 28px; }
  .gen-header .top-menu a { font-size: 22px; padding: 14px 16px; }
  .left-col > .side-menu { font-size: 16px; }
  /* Zelfde redenering als hierboven, maar dan voor de lopende tekst --
     die bleef tot nu toe overal vast op de body-basis van 16px. */
  body { font-size: 18px; }
}


/* ── 8c. FOTO-GALERIJEN ─────────────────────────────────── */

.photo-gallery {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 24px -12px 0;
  padding: 0;
}
.photo-item {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 280px;
  flex: 1 1 280px;
  margin: 0 12px 32px;
}
.photo-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.photo-item figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
  font-style: italic;
  font-weight: 400;          /* enkel 400-cursief meegeleverd, zie em hierboven */
}


/* ── 9. SIDEBAR ─────────────────────────────────────────── */

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.widget h4 {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  margin: 0;
}
.link-list li:last-child { border-bottom: none; }
.link-list a { color: var(--text); }
.link-list a:hover { color: var(--river); }

.mini-numbers {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 -6px;
}
.mini-numbers > div {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  margin: 0 6px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.mini-numbers dd {
  font-family: var(--ui);
  font-size: 24px;
  color: var(--text-dark);
  line-height: 1;
  margin: 0 0 4px;
}
.mini-numbers dt {
  font-family: var(--ui);
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ── 10. TAGS ───────────────────────────────────────────── */

.tags {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.tags li { display: inline-block; margin: 0 6px 6px 0; }

.tag {
  display: inline-block;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 4px;
}
.tag:hover { text-decoration: none; opacity: 0.85; }

.tag-botany, .tag-flora, .tag-fauna, .tag-expedition {
  background: var(--moss-light); color: var(--moss);
}
.tag-cartography, .tag-geography, .tag-climate {
  background: var(--river-light); color: var(--river);
}
.tag-ethnography, .tag-archive, .tag-history {
  background: var(--bg-card);
  color: var(--border);
  border: 1px solid var(--border-light);
}


/* ── 11. FOOTER ─────────────────────────────────────────── */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-soft);
  padding: 48px 0 32px;
  border-top: 3px solid var(--border);
}
.footer-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -16px 32px;
}
.footer-brand {
  -webkit-box-flex: 2;
  -ms-flex: 2 1 280px;
  flex: 2 1 280px;
  margin: 0 16px 16px;
}
.footer-col {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 150px;
  flex: 1 1 150px;
  margin: 0 16px 16px;
}
.footer-brand .logo { display: inline-block; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-soft); line-height: 1.7; }

.footer-col h2 {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--text-soft);
}
.footer-col a:hover { color: var(--sand); text-decoration: none; }

.footer-bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--bg-nav);
  font-family: var(--ui);
  font-size: 12px;
  color: var(--text-soft);
  margin: 0;
}
.footer-bottom span { margin-right: 16px; }


/* ── 12. RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .hero h1 { font-size: 28px; }
  .article-header h3 { font-size: 24px; }

  .site-header .wrap {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .menu-btn { display: block; }

  .main-nav {
    display: none;
    -webkit-box-flex: 1;
    -ms-flex: 1 0 100%;
    flex: 1 0 100%;
  }
  .main-nav-open { display: block; }
  .main-nav ul {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .main-nav a {
    line-height: 1.5;
    padding: 12px 0;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding-left: 16px;
  }
  .main-nav a[aria-current="page"] {
    border-bottom: none;
    border-left-color: var(--border);
  }

  .footer-bottom { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
}


/* ============================================================
 *  EXTRA PAGES (article.html, collections.html)
 * ============================================================ */

/* ── Simple dark page header (no hero) ──────────────────── */
.page-header {
  background: var(--bg-dark);
  padding: 48px 0;
  border-bottom: 3px solid var(--border);
}
.page-header .kicker {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.page-header h1 { color: var(--sand); margin-bottom: 16px; }
.page-header .intro {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}


/* ── Reading page (full article) ────────────────────────── */
.reading-page { padding: 48px 0; }
.reading-page .wrap { max-width: 760px; }   /* narrow reading column */

.read-header { margin-bottom: 32px; }
.read-header .card-tags { padding: 0; margin-bottom: 16px; }
.read-header h1 { margin-bottom: 16px; line-height: 1.15; }
.read-intro {
  font-size: 20px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 20px;
}

.read-image {
  border-radius: 12px;
  margin-bottom: 32px;
}

.read-body { font-size: 17px; }
.read-body h2 { margin: 40px 0 12px; }
.read-body h3 { margin: 28px 0 10px; }
.read-body p { margin-bottom: 20px; }
.read-body a { text-decoration: underline; }
.read-body .more { text-align: left; margin-top: 32px; }
.read-body .more a { text-decoration: none; }


/* ── Filter bar (collections.html) ─────────────────────── */
.filter-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-btn {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: bold;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 6px 16px;
  margin: 0 8px 8px 0;
  cursor: pointer;
}
.filter-btn:hover {
  border-color: var(--border);
  color: var(--text-dark);
}
.filter-active {
  background: var(--bg-nav);
  border-color: var(--bg-nav);
  color: var(--sand);
}
.filter-count {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 24px;
}


/* ============================================================
 *  SEARCH PAGE (search.html)
 * ============================================================ */

.search-field { margin-bottom: 24px; }

.search-field input {
  width: 100%;
  font-family: var(--ui);
  font-size: 18px;
  color: var(--text-dark);
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 18px;
  -webkit-appearance: none;
  appearance: none;
}
.search-field input:focus {
  outline: none;
  border-color: var(--river);
}
.search-field input::-webkit-input-placeholder { color: var(--text-soft); }
.search-field input::placeholder { color: var(--text-soft); }

.no-results {
  font-family: var(--ui);
  font-size: 15px;
  color: var(--text-soft);
  text-align: center;
  padding: 32px 0;
}

/* Visually hidden but readable by screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
