/* Encyclopedische wiki opmaak (wit en diep donkergroen, volledig mobiel geoptimaliseerd) */

:root {
  --bg-page: #ffffff;
  --bg-subtle: #f5f8f6;
  --bg-tint: #eaf1ec;
  --bg-header: #0f3a28;
  --border-strong: #b8c9be;
  --border-light: #dce5df;
  --ink-main: #1d2320;
  --ink-heading: #0e1c15;
  --ink-muted: #526158;
  --green-link: #145238;
  --green-link-hover: #0a3322;
  --green-link-visited: #275c44;
  --green-accent: #134731;
  --font-serif: "Linux Libertine", Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink-main);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  overflow-x: clip;
}

a {
  color: var(--green-link);
  text-decoration: none;
}

a:visited {
  color: var(--green-link-visited);
}

a:hover,
a:focus-visible {
  color: var(--green-link-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green-accent);
  outline-offset: 2px;
}

code {
  font-size: 0.9em;
  background: var(--bg-subtle);
  padding: 1px 5px;
  border: 1px solid var(--border-light);
  overflow-wrap: anywhere;
}

/* Bovenste wiki balk */
.site-topbar {
  border-top: 3px solid var(--bg-header);
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg-subtle);
}

.site-topbar-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  min-width: 0;
  flex-shrink: 0;
}

.site-brand-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--bg-header);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.site-brand-sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-size: 13.5px;
}

.site-nav a {
  color: var(--ink-main);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--green-link);
  text-decoration: none;
  border-bottom-color: var(--green-accent);
}

.site-nav a[aria-current="page"] {
  color: var(--green-accent);
  font-weight: 600;
  border-bottom-color: var(--green-accent);
}

.nav-toggle {
  display: none;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  color: var(--ink-heading);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Hoofdvak */
.wiki-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 24px 56px;
}

.wiki-crumbs {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.wiki-crumbs span[aria-hidden="true"] {
  color: #93a69b;
}

.article-head {
  margin-bottom: 16px;
}

.article-head h1 {
  font-family: var(--font-serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.24;
  color: var(--ink-heading);
  margin: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border-strong);
  overflow-wrap: break-word;
}

.article-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* Artikeltekst */
.article-body::after {
  content: "";
  display: table;
  clear: both;
}

.article-body p {
  margin: 0 0 14px;
  overflow-wrap: break-word;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink-heading);
  margin: 28px 0 11px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-strong);
  scroll-margin-top: 24px;
  overflow: hidden;
  overflow-wrap: break-word;
}

.article-body h3 {
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-heading);
  margin: 20px 0 8px;
  scroll-margin-top: 24px;
  overflow-wrap: break-word;
}

.article-body ul,
.article-body ol {
  margin: 0 0 15px 22px;
  padding: 0;
}

.article-body li {
  margin-bottom: 6px;
  overflow-wrap: break-word;
}

/* Wikipedia-stijl Infobox rechts */
.infobox {
  float: right;
  clear: right;
  width: 308px;
  max-width: 100%;
  margin: 2px 0 20px 28px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--ink-main);
}

.infobox-title {
  background: var(--bg-header);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 8px 12px;
}

.infobox-sub {
  background: var(--bg-tint);
  color: var(--ink-muted);
  font-size: 12px;
  text-align: center;
  padding: 5px 10px;
  border-bottom: 1px solid var(--border-strong);
}

.infobox-diagram {
  background: #ffffff;
  padding: 12px 14px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.infobox-diagram svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.infobox-caption {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 5px;
}

.infobox table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.infobox th,
.infobox td {
  padding: 6px 10px;
  vertical-align: top;
  text-align: left;
  border-top: 1px solid var(--border-light);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.infobox tr:first-child th,
.infobox tr:first-child td {
  border-top: 0;
}

.infobox th {
  width: 44%;
  font-weight: 600;
  color: var(--ink-muted);
}

.infobox-sec {
  background: var(--bg-tint);
  color: var(--ink-heading);
  font-weight: 700;
  font-size: 12.5px;
  text-align: center;
  padding: 5px 10px;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-light);
}

.infobox-links {
  margin: 0 !important;
  padding: 8px 12px !important;
  list-style: none !important;
}

.infobox-links li {
  margin: 0 0 4px !important;
}

.infobox-links li:last-child {
  margin-bottom: 0 !important;
}

/* Inhoudsopgave */
.toc-box {
  display: inline-block;
  min-width: 240px;
  max-width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  padding: 12px 18px 12px 16px;
  margin: 8px 0 20px;
  font-size: 13.5px;
  line-height: 1.58;
}

.toc-title {
  font-weight: 700;
  text-align: center;
  color: var(--ink-heading);
  margin-bottom: 7px;
  font-size: 14px;
}

.toc-box ol {
  margin: 0;
  padding-left: 20px;
}

.toc-box li {
  margin-bottom: 3px;
}

/* Redactionele notitie */
.wiki-note {
  background: var(--bg-subtle);
  border-left: 3px solid var(--green-accent);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 11px 15px;
  margin: 16px 0 18px;
  font-size: 14.5px;
  overflow: hidden;
}

.wiki-note strong {
  color: var(--ink-heading);
}

/* Encyclopedische tabellen */
.table-wrap {
  clear: right;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0 20px;
}

.wiki-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  background: #ffffff;
  border: 1px solid var(--border-strong);
}

.wiki-table th {
  background: var(--bg-tint);
  color: var(--ink-heading);
  font-weight: 700;
  text-align: left;
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
}

.wiki-table td {
  padding: 8px 11px;
  border: 1px solid var(--border-light);
  vertical-align: top;
  word-break: break-word;
}

.wiki-table tbody tr:nth-child(even) {
  background: #fafcfb;
}

/* Diagram kader voor grafieken */
.wiki-figure {
  clear: right;
  margin: 18px 0 22px;
  padding: 14px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.wiki-figure svg {
  width: 100%;
  max-width: 660px;
  height: auto;
  display: block;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
}

.wiki-figure figcaption {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* Uitklapbare FAQ sectie */
.faq-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 24px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-strong);
  scroll-margin-top: 24px;
}

.faq-bar h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.faq-toggle-btn {
  background: none;
  border: 0;
  padding: 6px 0;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--green-link);
  cursor: pointer;
}

.faq-toggle-btn:hover {
  text-decoration: underline;
  color: var(--green-link-hover);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 4px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-heading);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--green-accent);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  padding-left: 8px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 2px 0 10px;
  color: var(--ink-main);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Navbox onderaan */
.navbox {
  clear: both;
  margin-top: 32px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  font-size: 13.5px;
}

.navbox-head {
  background: var(--bg-tint);
  color: var(--ink-heading);
  font-weight: 700;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
}

.navbox-row {
  display: grid;
  grid-template-columns: 185px 1fr;
  border-top: 1px solid var(--border-light);
}

.navbox-row:first-of-type {
  border-top: 0;
}

.navbox-label {
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 12px;
  border-right: 1px solid var(--border-light);
}

.navbox-links {
  padding: 8px 12px;
  line-height: 1.8;
}

.navbox-sep {
  color: #93a69b;
  margin: 0 7px;
}

/* Bronnen en voetnoot */
.ref-list {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.62;
}

.ref-list li {
  margin-bottom: 6px;
  word-break: break-word;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-size: 12.5px;
}

.site-footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px 24px 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Mobiele weergave (360px tot 820px) */
@media (max-width: 820px) {
  body {
    font-size: 16px;
    line-height: 1.68;
  }

  .site-topbar-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }

  .site-brand {
    flex: 1 1 0;
    min-height: 44px;
    justify-content: center;
  }

  .site-brand-title {
    font-size: 19px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
    font-size: 15px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-light);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a[aria-current="page"] {
    border-bottom: 2px solid var(--green-accent);
  }

  .wiki-wrap {
    padding: 16px 16px 44px;
  }

  .wiki-crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .article-head h1 {
    font-size: 25px;
    line-height: 1.25;
  }

  .article-body h2 {
    font-size: 20.5px;
    margin-top: 24px;
  }

  .article-body h3 {
    font-size: 16.5px;
  }

  .infobox {
    float: none;
    width: 100%;
    margin: 0 0 18px 0;
    font-size: 14px;
  }

  .infobox th,
  .infobox td {
    padding: 7px 10px;
  }

  .infobox-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .infobox-links li:last-child a {
    border-bottom: 0;
  }

  .toc-box {
    display: block;
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
    font-size: 14.5px;
  }

  .toc-box a {
    display: block;
    padding: 10px 0;
    line-height: 1.45;
  }

  .wiki-table {
    font-size: 13.5px;
  }

  .wiki-table:has(th:nth-child(3)) {
    min-width: 540px;
  }

  .wiki-table:has(th:nth-child(5)) {
    min-width: 660px;
  }

  .wiki-table th,
  .wiki-table td {
    padding: 7px 9px;
  }

  .wiki-figure {
    padding: 10px 10px;
  }

  .faq-toggle-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
  }

  .navbox-head a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .navbox-row {
    grid-template-columns: 1fr;
  }

  .navbox-label {
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
  }

  .navbox-sep {
    display: none;
  }

  .navbox-links {
    padding: 4px 12px;
    line-height: 1.45;
  }

  .navbox-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .navbox-links a:last-child {
    border-bottom: 0;
  }

  .site-footer-inner {
    padding: 16px 16px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media print {
  .site-topbar,
  .navbox,
  .faq-toggle-btn,
  .site-footer {
    display: none;
  }
  .wiki-wrap {
    max-width: 100%;
    padding: 0;
  }
}
