﻿/* ============================================================
   VARIABELEN
   ============================================================ */
/* Definieer herbruikbare waarden centraal */
:root {
  --main-font: Georgia, "Times New Roman", Times, serif;
  --secondary-font: 'Work Sans', sans-serif;
  --text-color: #222;
  --background-color: #f9f9f9;
  --container-bg: #fffdf9;
  --line-height-base: 1.45;
}


/* ============================================================
   GENERAL TYPOGRAPHY & LAYOUT RESET
   ============================================================ */
/* Body beheert alleen globale, site-wijde stijlen */
body {
  font-family: var(--main-font);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: var(--line-height-base);
  text-align: justify;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-weight: normal;
  text-align: center;
  margin: 1.5em 0 1em;
}

h1 { font-size: 1.4em; }
h2 { font-size: 1.2em; }

p {
  margin: 0 0 1em;
  /* line-height hier verwijderd - erft van body */
}

h3 + p {
  text-indent: 2em;
}

/* Algemene space klasse voor Georgia (standaard) */
span.space {
  letter-spacing: 0.15em;
}

/* specifieke voor Work sans */
.translation .space,
.textblock .space {
  letter-spacing: 0.04em; 
  font-weight: 400;   
}

/* ============================================================
   PAGE CONTAINER (Layout Centering)
   ============================================================ */
/* De container definieert de maximale breedte, centrering en padding */
.container { width: 90%; max-width: 1024px; margin: 0 auto; 

  padding: 3rem 2.5rem;
  background: var(--container-bg);
  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);
}


/* ============================================================
   SPECIFIEKE TYPOGRAFIE KLASSEN
   ============================================================ */

/* Combineert gemeenschappelijke stijlen voor .translation en .textblock */
.translation, .textblock {
  font-family: var(--secondary-font);
  margin: 0.6em 0 1.6em;
  color: var(--text-color);
}

.translation {
  font-weight: 300;
  font-size: 0.95em;
  padding-left: 0.75em;
}


.textblock {
  font-weight: 400;
  font-size: 0.95em;
}

.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;
}

.work-sans {
  font-family: var(--secondary-font);
}


/* ============================================================
   TABLE OF CONTENTS (COLLAPSIBLE)
   ============================================================ */
#new-toc {
  margin: 1em 0;
  font-family: var(--secondary-font);
  font-size: 0.95rem;
  line-height: 1.3;
}

#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,
.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;
  }
}

.parallel-columns:has(.translation .placeholder) {
  display: none;
}

/*image */
.responsive-image {
  /* Set maximum width */
  max-width: 600px; 
  
  /* Ensure the image scales down on smaller screens */
  width: 100%; 
  
  /* Treat the image as a block element */
  display: block; 
  
  /* Auto margins center a block element horizontally */
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   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;
  }
}
