﻿/* ============================================================
   VARIABELEN
   ============================================================ */
:root {
  --main-font: Georgia, "Times New Roman", Times, serif;
  --text-color: #222;
  --background-color: #f9f9f9;
  --container-bg: #fffdf9;

  /* Typografisch afgestemde line-heights */
  --line-height-serif: 1.38;
  --line-height-sans: 1.38;
}


/* ============================================================
   GENERAL TYPOGRAPHY & LAYOUT RESET
   ============================================================ */
body {
  font-family: var(--main-font);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: var(--line-height-serif);
  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;
}


/* ============================================================
   SPACING & INLINE ELEMENTS
   ============================================================ */

/* Superscripts: stabiel voor line boxes */
sup {
  font-size: 70%;
  vertical-align: super;
  line-height: 1;
}


/* ============================================================
   PAGE CONTAINER
   ============================================================ */
.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);
}




/* ============================================================
   TITLEBAR & NAV
   ============================================================ */
.titlebar {
  font-size: 1.2rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #ddd;
  font-family: serif;
}

.titlebar .work {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: #444;
  margin-bottom: 0.5rem;
}

.topnav {
  font-size: 0.95rem;
}

.topnav a {
  text-decoration: none;
  color: #666;
  margin-right: 0.9rem;
}

.topnav a:hover {
  color: #000;
}

.topnav a.active {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}


/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
#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; }
#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 ul {
  margin: 0.35em 0 0.6em;
  padding: 0;
}

#new-toc li {
  list-style: none;
  margin: 0.12em 0;
}


/* ============================================================
   PARALLEL COLUMNS
   ============================================================ */
.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;
}


/* ============================================================
   IMAGES
   ============================================================ */
.responsive-image {
  max-width: 400px; 
  width: 100%; 
  display: block; 
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   PRINT
   ============================================================ */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .translation {
    border-left: 2px solid #aaa;
    background: none;
  }

  #new-toc {
    border: none;
    box-shadow: none;
    background: #fff;
  }
}
