/* NVHP Syllabus — huisstijl overgenomen van hypothecairplanner.nl (navy #234765, rood #e7443b, Roboto) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
  color-scheme: light;
  --nvhp-navy: #234765;
  --nvhp-navy-light: #2e5878;
  --nvhp-navy-dark: #1c3951;
  --nvhp-red: #e7443b;
  --nvhp-red-dark: #c23128;
  --nvhp-green: #22b962;
  --nvhp-orange: #ec9431;
  --nvhp-bg: #f5f6f8;
  --nvhp-paper: #ffffff;
  --nvhp-text: #1e2230;
  --nvhp-muted: #5d6270;
  --nvhp-border: #e1e4ea;
  --nvhp-font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--nvhp-font);
  background: var(--nvhp-bg);
  color: var(--nvhp-text);
  line-height: 1.55;
}

a { color: var(--nvhp-red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--nvhp-navy-dark), var(--nvhp-navy));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(12,22,34,.18);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 12px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
}
.brand-text { white-space: normal; }
@media (min-width: 560px) {
  .brand { flex: 0 0 auto; }
  .brand-text { white-space: nowrap; }
}
.brand:hover { text-decoration: none; opacity: .88; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-text { line-height: 1.15; }

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  order: 2;
  flex: 1 1 auto;
  margin-left: 8px;
}
.header-nav a {
  color: #e9edf3;
  font-size: .88rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 7px;
  white-space: nowrap;
}
.header-nav a:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.header-nav a:focus-visible, .header-search input[type="search"]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.header-search {
  position: relative;
  order: 3;
  flex: 1 1 100%;
  max-width: none;
  margin-left: 0;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.header-search-form {
  display: flex;
  width: 100%;
  gap: 8px;
}
.header-search input[type="search"] {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 8px;
  padding: 9px 14px;
  font-family: var(--nvhp-font);
  font-size: .9rem;
}
.header-search input[type="search"]::placeholder { color: #cfd5e0; }
.header-search input[type="search"]:focus {
  outline: none;
  background: #fff;
  color: var(--nvhp-text);
  border-color: #fff;
}
.header-search-btn {
  flex: 0 0 auto;
  background: var(--nvhp-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: var(--nvhp-font);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.header-search-btn:hover { background: var(--nvhp-red-dark); }
.header-search-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: var(--nvhp-paper);
  color: var(--nvhp-text);
  border: 1px solid var(--nvhp-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(20,24,39,.22);
  max-height: 70vh;
  overflow-y: auto;
  z-index: 50;
}
.search-results[hidden] { display: none; }
.sr-item {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--nvhp-border);
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item.is-active { background: var(--nvhp-bg); text-decoration: none; }
.sr-book { font-size: .72rem; font-weight: 700; color: var(--nvhp-red-dark); text-transform: uppercase; letter-spacing: .04em; }
.mc-filter { max-width: 420px; margin: 0 0 24px; }
.mc-filter input {
  width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--nvhp-border);
  font-family: var(--nvhp-font); font-size: .92rem; background: var(--nvhp-paper);
}
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 24px 0; }
.mc-card {
  background: var(--nvhp-paper); border: 1px solid var(--nvhp-border); border-radius: 10px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 2px rgba(20,24,39,.05);
}
.mc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mc-card-badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--nvhp-navy); padding: 3px 9px; border-radius: 20px;
}
.mc-card-badge.opleiding { background: var(--nvhp-red); }
.mc-card-points { font-size: .76rem; color: var(--nvhp-muted); font-weight: 600; }
.mc-card h3 { margin: 0; font-size: 1.02rem; color: var(--nvhp-navy); }
.mc-card p { margin: 0; font-size: .87rem; color: var(--nvhp-text); line-height: 1.5; flex: 1; }
.mc-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: .84rem; }
.mc-card-price { color: var(--nvhp-muted); font-weight: 600; }
.mc-card-link { font-weight: 600; }
.mc-empty { color: var(--nvhp-muted); grid-column: 1 / -1; text-align: center; padding: 24px; }

.sr-item-mc { background: #fff8f0; }
.sr-item-mc .sr-book { color: var(--nvhp-navy); }
.sr-item-mc:hover, .sr-item-mc.is-active { background: #fdeee0; }
.sr-title { color: var(--nvhp-navy); font-weight: 600; font-size: .92rem; margin: 2px 0 3px; }
.sr-snippet { color: var(--nvhp-muted); font-size: .8rem; line-height: 1.4; }
.sr-snippet mark { background: #fde3a1; color: inherit; border-radius: 2px; }
.sr-empty, .sr-loading { padding: 14px; color: var(--nvhp-muted); font-size: .85rem; text-align: center; }

/* ---------- faq ---------- */
.faq-section details {
  background: var(--nvhp-paper);
  border: 1px solid var(--nvhp-border);
  border-radius: 8px;
  padding: 2px 18px;
  margin: 10px 0;
}
.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--nvhp-navy);
  padding: 14px 0;
  list-style: none;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--nvhp-red-dark);
  font-weight: 700;
}
.faq-section details[open] summary::before { content: "–"; }
.faq-section details p {
  margin: 0 0 16px 1.1em;
  color: var(--nvhp-text);
}

.print-btn {
  order: 1;
  background: var(--nvhp-red);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--nvhp-font);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
}
.print-btn:hover { background: var(--nvhp-red-dark); }

/* ---------- layout ---------- */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
  padding: 24px;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .content { order: 1; }
}

.book-intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.sidebar {
  background: var(--nvhp-paper);
  border: 1px solid var(--nvhp-border);
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.back-link {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--nvhp-navy);
}
.book-label {
  font-size: 1rem;
  color: var(--nvhp-navy);
  margin: 0 0 14px;
  border-bottom: 2px solid var(--nvhp-red);
  padding-bottom: 10px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 2px 0; }
.toc a { color: var(--nvhp-text); font-size: .85rem; display: block; padding: 3px 6px; border-radius: 4px; }
.toc a:hover { background: var(--nvhp-bg); text-decoration: none; }
.toc-deel a { font-weight: 700; color: var(--nvhp-navy); margin-top: 10px; text-transform: uppercase; font-size: .78rem; letter-spacing: .03em; }
.toc-chap a { font-weight: 600; padding-left: 6px; }
.toc-sec a { padding-left: 20px; font-size: .82rem; }
.toc-sub a { padding-left: 34px; font-size: .78rem; color: var(--nvhp-muted); }

.content {
  background: var(--nvhp-paper);
  border: 1px solid var(--nvhp-border);
  border-radius: 10px;
  padding: 40px 56px;
  min-width: 0;
}
.book-title {
  color: var(--nvhp-navy);
  font-size: 1.9rem;
  margin: 0 0 4px;
}
.book-subtitle {
  color: var(--nvhp-muted);
  font-size: 1rem;
  margin: 0 0 18px;
}
.copyright-note {
  font-size: .78rem;
  color: var(--nvhp-muted);
  background: var(--nvhp-bg);
  border: 1px solid var(--nvhp-border);
  border-top: 3px solid var(--nvhp-red);
  padding: 8px 14px;
  margin: 0 0 32px;
  border-radius: 6px;
}

/* ---------- masterclass promo ---------- */
.mc-promo {
  background: var(--nvhp-paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,24,39,.06), 0 6px 18px rgba(20,24,39,.08);
  margin: 0 0 32px;
}
.mc-promo-header {
  background: var(--nvhp-navy);
  padding: 13px 22px;
}
.mc-badge {
  display: inline-block;
  background: var(--nvhp-red);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 10px;
}
.mc-promo-title {
  font-weight: 700;
  color: #fff;
  font-size: .95rem;
}
.mc-promo-body { padding: 20px 22px; }
.mc-promo-body.has-cover {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 26px;
}
.mc-promo-cover {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
}
.mc-promo-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mc-promo-text { flex: 1 1 auto; min-width: 0; }
@media (max-width: 560px) {
  .mc-promo-body.has-cover { flex-direction: column; text-align: center; }
  .mc-promo-cover { width: 130px; height: 130px; }
}
.mc-promo-intro {
  font-size: .88rem;
  color: var(--nvhp-text);
  margin: 0 0 14px;
}
.mc-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.mc-list li {
  position: relative;
  background: var(--nvhp-bg);
  border: 1px solid var(--nvhp-border);
  border-left: 3px solid var(--nvhp-red);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  transition: background .12s, border-color .12s;
}
.mc-list li:hover {
  background: #fff;
  border-color: var(--nvhp-red);
}
.mc-list a, .mc-list-title {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--nvhp-navy);
  margin-bottom: 4px;
}
.mc-list-title { cursor: default; }
.mc-list a:hover { color: var(--nvhp-red-dark); text-decoration: none; }
.mc-list-meta {
  display: inline-block;
  font-size: .7rem;
  color: var(--nvhp-navy);
  background: var(--nvhp-paper);
  border: 1px solid var(--nvhp-border);
  font-weight: 700;
  letter-spacing: .02em;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.mc-list-desc {
  display: block;
  font-size: .81rem;
  color: var(--nvhp-muted);
  line-height: 1.5;
}
.mc-promo-foot {
  font-size: .88rem;
  color: var(--nvhp-muted);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--nvhp-border);
}
.mc-promo-foot a { font-weight: 600; }

.ehp-promo {
  background: linear-gradient(135deg, var(--nvhp-navy), var(--nvhp-navy-dark, #1c3951));
  color: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  margin: 48px 0 0;
}
.ehp-promo h2 { color: #fff; margin: 0 0 10px; font-size: 1.3rem; }
.ehp-promo p { color: #d7dde6; font-size: .95rem; max-width: 720px; margin: 0 0 10px; }
.ehp-promo .ehp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.ehp-promo .ehp-btn {
  display: inline-block;
  background: var(--nvhp-red);
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  padding: 10px 18px;
  border-radius: 7px;
}
.ehp-promo .ehp-btn:hover { background: var(--nvhp-red-dark); text-decoration: none; }
.ehp-promo .ehp-btn.secondary { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); }
.ehp-promo .ehp-btn.secondary:hover { background: rgba(255,255,255,.2); }

.mc-inline-note {
  font-size: .85rem;
  color: var(--nvhp-muted);
  background: var(--nvhp-bg);
  padding: 10px 16px;
  margin: 0 0 16px;
}
.mc-inline-note a { font-weight: 600; }

.content h2.deel {
  color: #fff;
  background: var(--nvhp-navy);
  padding: 14px 20px;
  border-radius: 8px;
  margin: 48px 0 24px;
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.content h3.chapter {
  color: var(--nvhp-navy);
  border-bottom: 2px solid var(--nvhp-red);
  padding-bottom: 8px;
  margin: 40px 0 16px;
  font-size: 1.35rem;
}
.content h3:not(.chapter) {
  color: var(--nvhp-navy);
  margin: 30px 0 10px;
  font-size: 1.1rem;
}
.content h4 {
  color: var(--nvhp-red-dark);
  margin: 22px 0 8px;
  font-size: .98rem;
}
.content p {
  margin: 0 0 14px;
  font-size: .97rem;
  text-align: justify;
  hyphens: auto;
}

/* ---------- index / home ---------- */
.hero {
  background: linear-gradient(135deg, var(--nvhp-navy), #1c2238);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.hero h1 { font-size: 2.1rem; margin: 0 0 10px; }
.hero p { color: #c7cbd6; max-width: 640px; margin: 0 auto; font-size: 1rem; }

.books-grid {
  max-width: 1100px;
  margin: -28px auto 48px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.book-card {
  background: var(--nvhp-paper);
  border: 1px solid var(--nvhp-border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 6px 18px rgba(20,24,39,.08);
  display: block;
  color: var(--nvhp-text);
}
.book-card:hover { text-decoration: none; box-shadow: 0 10px 24px rgba(20,24,39,.14); transform: translateY(-2px); transition: all .15s; }
.book-card .num {
  display: inline-block;
  background: var(--nvhp-red);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.book-card h2 { color: var(--nvhp-navy); font-size: 1.2rem; margin: 0 0 8px; }
.book-card p { color: var(--nvhp-muted); font-size: .88rem; margin: 0; }

.index-copyright {
  max-width: 700px;
  margin: 0 auto 32px;
  padding: 0 24px;
  text-align: center;
  color: var(--nvhp-muted);
  font-size: .82rem;
  line-height: 1.6;
}

/* ---------- rich footer ---------- */
.site-footer-rich {
  background: linear-gradient(135deg, var(--nvhp-navy-dark), var(--nvhp-navy));
  color: #c7cbd6;
  margin-top: 32px;
  position: relative;
  z-index: 1;
  transform: translateZ(0);
}
.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px 32px;
}
@media (max-width: 760px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
}
.footer-brand-col .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.footer-brand-col .brand-logo { height: 46px; width: auto; display: block; }
.footer-brand-col p {
  font-size: .85rem;
  line-height: 1.6;
  color: #aeb4c2;
  margin: 0 0 14px;
  max-width: 320px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}
.footer-social a:hover { background: var(--nvhp-red); text-decoration: none; }
.footer-col h3 {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: #c7cbd6;
  font-size: .87rem;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact-col address { font-style: normal; font-size: .85rem; line-height: 1.75; color: #c7cbd6; }
.footer-contact-col a { color: #c7cbd6; }
.footer-contact-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: .76rem;
  color: #8c92a3;
}
.footer-bottom-inner a { color: #8c92a3; text-decoration: underline; }
.footer-bottom-inner a:hover { color: #fff; }
.footer-legal {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 20px;
  font-size: .74rem;
  line-height: 1.6;
  color: #747a8c;
}

/* ---------- mobiel: smallere marges, bredere leeskolom ---------- */
@media (max-width: 680px) {
  .header-inner { padding: 14px 16px; }
  .layout { padding: 12px; gap: 16px; }
  .book-intro { padding: 16px 16px 0; }
  .content { padding: 22px 18px; }
  .content p { text-align: left; }
  .sidebar { padding: 16px; }
  .hero { padding: 40px 16px; }
  .books-grid { padding: 0 16px; gap: 14px; }
  .book-card { padding: 20px 18px; }
  .ehp-promo { padding: 24px 20px; }
  .mc-promo-body { padding: 18px 16px; }
  .mc-promo-body.has-cover { padding: 20px 16px; }
  .mc-promo-header { padding: 12px 16px; }
  .faq-section details { padding: 2px 14px; }
  .mc-grid { gap: 14px; }
  .mc-card { padding: 16px 16px; }
  .footer-main { padding: 32px 16px 20px; }
  .footer-legal, .footer-bottom-inner { padding-left: 16px; padding-right: 16px; }
  .index-copyright { padding: 0 16px; }
}

/* ---------- print ---------- */
@page {
  size: A4;
  margin: 22mm 18mm 20mm 18mm;
  @top-left { content: "NVHP · Leergang Hypothecaire Planning"; font-size: 8pt; color: #5d6270; font-family: Roboto, Arial, sans-serif; }
  @bottom-center { content: "Pagina " counter(page) " van " counter(pages); font-size: 8pt; color: #5d6270; font-family: Roboto, Arial, sans-serif; }
}
/* title/cover page carries no running header or page number */
@page cover { @top-left { content: ""; } @bottom-center { content: ""; } }

@media print {
  .no-print { display: none !important; }
  .mc-promo, .ehp-promo, .mc-inline-note { display: none !important; }
  body { background: #fff; font-size: 10.5pt; }
  a { color: var(--nvhp-text); text-decoration: none; }

  /* stack: cover/TOC (sidebar) above the book content, full width */
  .layout { display: block; grid-template-columns: 1fr; padding: 0; gap: 0; }

  /* ---- cover page (book-title / subtitle / copyright block) ---- */
  .content { border: none; padding: 0; box-shadow: none; }
  .book-intro {
    page: cover;
    page-break-after: always;
    break-after: page;
    max-width: none;
    padding: 0;
  }
  .book-title {
    margin-top: 32vh;
    text-align: center;
    font-size: 2.1rem;
  }
  .book-title::before {
    content: "NEDERLANDSE VERENIGING VAN HYPOTHECAIR PLANNERS";
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--nvhp-muted);
    margin-bottom: 28px;
  }
  .book-subtitle { text-align: center; font-size: 1.05rem; }
  .copyright-note {
    max-width: 420px;
    margin: 48px auto 0;
    text-align: center;
    border: none;
    border-top: 3px solid var(--nvhp-red);
    padding: 16px 0 0;
    background: none;
  }

  /* ---- printed table of contents (reuses the on-screen sidebar) ---- */
  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    border: none;
    padding: 0;
    page-break-after: always;
    break-after: page;
  }
  .sidebar .back-link { display: none; }
  .sidebar .book-label {
    text-align: center;
    font-size: 1.6rem;
    border-bottom: none;
    margin-bottom: 4px;
  }
  .sidebar .book-label::before { content: "Inhoudsopgave"; display: block; color: var(--nvhp-red); font-size: .85rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 18px; }
  .sidebar .toc { column-count: 1; }
  .sidebar .toc a { color: var(--nvhp-text); }
  /* Houd de gedrukte inhoudsopgave beknopt: tot op paragraafniveau (subparagrafen
     blijven in de digitale inhoudsopgave en via de links in de hoofdtekst). */
  .sidebar .toc-sub { display: none; }

  /* ---- chapter content ---- */
  .content h2.deel {
    background: #fff;
    color: var(--nvhp-navy);
    border: none;
    border-top: 3px solid var(--nvhp-navy);
    border-bottom: 3px solid var(--nvhp-navy);
    padding: 10px 0;
    text-align: center;
    page-break-before: always;
    break-before: page;
  }
  .content h3.chapter {
    page-break-before: always;
    break-before: page;
    padding-top: 6mm;
  }
  .content h2, .content h3, .content h4 { page-break-after: avoid; break-after: avoid; }
  .content p { text-align: left; orphans: 3; widows: 3; }
  .content p, .content h2, .content h3, .content h4 { break-inside: avoid-page; }
}
