﻿/* ============================================================
   FONT IMPORTS (altijd bovenaan)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans&display=swap');


/* ============================================================
   GENERAL TYPOGRAPHY & LAYOUT
   ============================================================ */
body {
  font-family: Georgia, "Times New Roman", Times, serif;
  max-width: 980px;
  margin: 2rem auto;   /* alleen centreren + verticale lucht */
  padding: 0;          /* géén extra binnenruimte meer */
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.45;
  text-align: justify;
}

h1, h2, h3 {
  font-weight: normal;
  text-align: center;
  margin: 2em 0 1em;
}

h1 { font-size: 1.4em; }
h2 { font-size: 1.2em; }

p {
  margin: 0 0 1em;
  line-height: 1.45;
}

h3 + p {
  text-indent: 2em;
}

span.space {
  letter-spacing: 0.13em;
}

.work-sans {
  font-family: 'Work Sans', sans-serif;
}


/* ============================================================
   PAGE CONTAINER
   ============================================================ */

/* Oude container bewaard als commentaar — correct gesloten */
/*
.container {
  max-width: 980px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 4px;
}
*/
.container {
  max-width: 900px;
  margin: 2.5rem auto;       /* nette, rustige buitenruimte */
  padding: 3rem 2.4rem;      /* royale binnenruimte: fijn lezen */

  background: #fffdf9;
  border: 1px solid #ddd;
  border-radius: 8px;

  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 16px rgba(0,0,0,0.03);
}


/* ============================================================
   DUTCH TRANSLATION STYLING
   ============================================================ */
.translation {
  font-family: 'Work Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 0.95em;
  line-height: 1.45;
  margin: 0.6em 0 1.6em;
  padding-left: 0.75em;
}

.textblock {
  font-family: 'Work Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 0.95em;
  line-height: 1.45;
  color: #222;
  margin: 0.6em 0 1.6em;
}

.vertaal-opmerking {
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 0.6em 0.9em;
  margin: 1em 0;
  border-left: 2px solid #ddd;
  line-height: 1.35;
}



/* ============================================================
   TABLE OF CONTENTS (COLLAPSIBLE)
   ============================================================ */
#new-toc {
  margin: 1em 0;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.3;
}

#new-toc h2 {
  margin: 0 0 0.5em;
  font-family: 'EB Garamond', serif;
  font-weight: normal;
  text-align: left;
}

#new-toc details {
  margin: 0.3em 0;
  border: 0;
}

#new-toc summary {
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  list-style: none;
}

#new-toc summary::marker,
#new-toc summary::-webkit-details-marker {
  display: none;
}

#new-toc .toc-jump {
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
}

#new-toc .toc-jump:hover {
  text-decoration: underline;
  opacity: 1;
}

#new-toc ul {
  margin: 0.35em 0 0.6em;
  padding: 0;
}

#new-toc li {
  list-style: none;
  margin: 0.12em 0;
}

#new-toc a {
  color: inherit;
  text-decoration: none;
}

#new-toc a:hover {
  text-decoration: underline;
}

#new-toc details[open] summary a {
  font-style: italic;
}



/* ============================================================
   PARALLEL COLUMNS (BILINGUAL LAYOUT)
   ============================================================ */
.parallel-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.1rem;
  align-items: start;
  margin-top: 20px;
}

.parallel-columns .column {
  text-align: justify;
  margin-top: 0;
  padding-top: 0;
}

.parallel-columns .translation {
  margin-top: 0;
  padding-top: 0;
}

@media (max-width: 800px) {
  .parallel-columns {
    grid-template-columns: 1fr;
  }

  .parallel-columns .translation {
    padding-left: 0;
  }
}

.sync-spacer {
  display: block;
}

@media (max-width: 900px) {
  .sync-spacer {
    height: 0 !important;
  }
}

/* Je wilde deze behouden */
.parallel-columns:has(.translation .placeholder) {
  display: none;
}



/* ============================================================
   PRINT OPTIMIZATION
   ============================================================ */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .translation {
    border-left: 2px solid #aaa;
    background: none;
  }

  #new-toc {
    border: none;
    box-shadow: none;
    background: #fff;
  }
}
