/* Minimal tweaks */
:root { scroll-behavior: smooth; }
.navbar-brand { font-weight: 700; }
.quarto-title-banner { background: linear-gradient(120deg, #2b7, #06f); color: white; }
footer { opacity: 0.85; }

/* Background color for the entire site */
body {
  background-color: #e7af5b;
}

/* Optional: Different background for main content area */
#quarto-content {
  background-color: #fff3e0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1300px;
  padding: 1rem;
}

/* Section titles in light orange textboxes - ONLY for newsletter pages */
body[data-page*="nieuws"] #quarto-document-content h2,
.newsletter-content h2 {
  background-color: #ffcc80; /* Light orange */
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  margin: 2rem 0 1rem 0;
  border-left: 4px solid #ff9800; /* Darker orange accent */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Remove black margins/borders from icons in titles */
#quarto-document-content h2 img {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Image row styling */
.image-row {
  display: flex;
  justify-content: space-between; /* horizontal alignment */
  gap: 20px;                     /* increase this for more space */
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

.image-row img {
  width: 20%;                     /* adjust width to fit gap */
  border-radius: 8px;
  max-width: 100%;                /* responsive */
}

/* Table of Content */
    /* Make TOC more compact */
#quarto-sidebar-toc-right {
  font-size: 0.85rem;
}

#quarto-sidebar-toc-right img {
  width: 20px !important;
  height: auto;
  vertical-align: middle;
  margin-right: 5px;
}

#quarto-sidebar-toc-right h2 {
  font-size: 1rem;
}

/* Larger images in main content h2 headings */
main h2 img, #quarto-document-content h2 img {
  width: 55px !important;
  height: auto;
  vertical-align: middle;
  margin-right: 8px;
}

/* Tables */

table {
  margin: 1.5rem auto;
  border-collapse: collapse;
}

table td {
  padding: 8px 16px;
  border-bottom: 1px solid #e0e0e0;
}

table tr:hover {
  background-color: #f5f5f5;
}

/* Two-column layout for demographic tables */
.demographics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.demographics-grid > div {
  background-color: #fafafa;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Single column spans full width */
.demographics-grid .full-width {
  grid-column: 1 / -1;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .demographics-grid {
    grid-template-columns: 1fr;
  }
}

/* Collapsible subsection (details/summary) styling */
details summary {
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0;
  margin: 0;
}

/* Make the heading inside the summary appear inline */
details summary h3 {
  display: inline-block;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Hide the browser default disclosure triangle and use a custom caret */
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "▾";
  font-size: 0.92rem;
  color: #333;
  transition: transform 0.18s ease;
  margin-left: 0.5rem;
}
details[open] summary::after { transform: rotate(180deg); }

/* Tweak inner content spacing when opened */
details > *:not(summary) {
  margin-top: 0.6rem;
}

/* Utility: visually hidden for TOC anchors (keeps semantics but hides from view) */
.visually-hidden {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}