* {
  box-sizing: border-box
}

:root {
  --paper: #f7f4ed;
  --ink: #292d31;
  --muted: #6d6a63;
  --green: #344b42;
  --green2: #263a33;
  --gold: #9a7040;
  --line: #d8d0c2
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: auto
}

.narrow {
  max-width: 1160px
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 237, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px)
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px
}

.brand {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--green2);
  text-decoration: none
}

nav {
  display: flex;
  gap: 25px
}

nav a {
  font-family: Arial, sans-serif;
  font-size: .83rem;
  color: #4c4e4c;
  text-decoration: none
}

nav a:hover {
  color: var(--gold)
}

.hero {
  padding: 82px 0 90px;
  background: linear-gradient(135deg, #f8f5ee 0%, #ece5d8 100%)
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr .72fr;
  align-items: start;
  gap: 70px
}

/* Familietakken: tekst begint steeds op dezelfde hoogte.
   Het familiewapen blijft optisch iets lager staan. */
.hero-grid .crest-card {
  margin-top: 34px;
}

.motto,
.section-label {
  margin: 0 0 13px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: bold;
  color: var(--gold)
}

h1,
h2,
h3 {
  font-weight: normal;
  line-height: 1.08
}

h1 {
  margin: 0;
  color: var(--green2);
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  letter-spacing: -.035em
}

h1 span {
  font-size: .55em
}

.intro {
  max-width: 720px;
  margin: 27px 0 0;
  font-size: 1.25rem;
  color: #565650
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 35px
}

.button {
  font-family: Arial, sans-serif;
  font-size: .83rem;
  text-decoration: none
}

.primary {
  padding: 14px 20px;
  background: var(--green);
  color: #fff
}

.text {
  color: var(--green2);
  font-weight: bold
}

.crest-card {
  margin: 0;
  text-align: center
}

.crest-card img {
  display: block;
  width: min(100%, 350px);
  max-height: 390px;
  object-fit: contain;
  margin: auto;
  mix-blend-mode: multiply
}

.crest-card figcaption,
.family-tree figcaption {
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 10px
}

.story {
  padding: 100px 0;
  background: #fff
}

.story h2,
.section-heading h2,
.research h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin: 0 0 28px;
  color: var(--green2)
}

.large {
  font-size: 1.28rem;
  color: #474a47
}

.family-tree {
  margin: 55px 0 0
}

.family-tree img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px
}

.discover {
  padding: 100px 0
}

.section-heading {
  max-width: 750px;
  margin-bottom: 45px
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}

.card {
  min-height: 285px;
  padding: 35px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: .2s;
  display: flex;
  flex-direction: column
}

.card:hover {
  transform: translateY(-3px);
  border-color: #a99b86
}

.number {
  font-family: Arial, sans-serif;
  color: var(--gold);
  font-size: .72rem
}

.card h3 {
  margin: 35px 0 12px;
  font-size: 1.75rem;
  color: var(--green2)
}

.card p {
  color: var(--muted)
}

.arrow {
  display: block;
  margin-top: auto;
  padding-top: 25px;
  font-family: Arial, sans-serif;
  font-size: .8rem;
  font-weight: bold;
  color: var(--green)
}

.books {
  padding: 100px 0;
  background: var(--green2);
  color: #f7f2e9
}

.books-intro {
  max-width: 760px;
  margin-bottom: 55px
}

.books h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0 0 22px
}

.books-intro>p:last-child {
  color: #d4cec3
}

.light {
  color: #caa36f
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px
}

.book {
  display: grid;
  gap: 22px
}

.cover-mock {
  height: 365px;
  background: #eee7da;
  color: #273b34;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 25px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .12)
}

.cover-mock small {
  font: 700 .6rem Arial, sans-serif;
  letter-spacing: .14em;
  color: #8c6841;
  margin-bottom: 32px
}

.cover-mock strong {
  font-weight: normal;
  font-size: 1.85rem;
  line-height: 1.05
}

.cover-mock span {
  font-size: .82rem;
  margin-top: 25px;
  color: #6a655c
}

.book-type {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .64rem;
  color: #caa36f
}

.book h3 {
  font-size: 1.6rem;
  margin: 5px 0 10px
}

.book div p:last-child {
  color: #d2ccc1;
  font-size: .92rem
}

.cover-note {
  margin-top: 40px;
  color: #aaa398;
  font-size: .77rem;
  font-style: italic
}

.research {
  padding: 95px 0;
  background: #fff
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start
}

.research-grid>div:last-child {
  padding-top: 25px
}

.inline-link {
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: .83rem;
  font-weight: bold;
  text-decoration: none
}

footer {
  padding: 42px 0;
  background: #e8e1d4;
  border-top: 1px solid var(--line);
  color: #55534d
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center
}

.footer-grid p {
  margin: .3rem 0;
  font-size: .83rem
}

.footer-quote {
  font-style: italic
}

@media(max-width:820px) {
  .hero {
    padding: 55px 0
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px
  }

  .crest-card {
    order: -1
  }

  .hero-grid .crest-card {
    margin-top: 0
  }

  .crest-card img {
    width: 210px
  }

  .cards,
  .book-grid,
  .research-grid {
    grid-template-columns: 1fr
  }

  .book-grid {
    gap: 55px
  }

  .cover-mock {
    height: 320px
  }

  .footer-grid {
    display: block
  }

  .story,
  .discover,
  .books,
  .research {
    padding: 70px 0
  }

  .wrap {
    width: min(100% - 30px, 1160px)
  }
}

.book .real-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 450/633;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .20);
  transition: transform .2s ease, box-shadow .2s ease
}

.cover-link:hover .real-cover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, .28)
}

.book h3 a {
  color: inherit;
  text-decoration: none
}

.book h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px
}

.book-link {
  display: inline-block;
  margin-top: 12px;
  color: #e1bd8a;
  font: 700 .78rem Arial, sans-serif;
  text-decoration: none
}

.book-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px
}

/* Persoonspagina */
.person-hero {
  padding: 58px 0 72px;
  background: linear-gradient(135deg, #f8f5ee 0%, #e9e1d3 100%);
  border-bottom: 1px solid var(--line)
}

.breadcrumb {
  font: .74rem Arial, sans-serif;
  color: #817b72;
  margin: 0 0 48px
}

.breadcrumb a {
  color: inherit;
  text-decoration: none
}

.breadcrumb span {
  padding: 0 8px;
  color: #b1a99d
}

/* Startpagina: dezelfde afstand onder de breadcrumb als op overzichtspagina's. */
.family-directory .breadcrumb {
  margin-bottom: 28px
}

.person-title-grid {
  display: grid;
  grid-template-columns: 1.4fr .75fr;
  gap: 70px;
  align-items: end
}

.person-title {
  font-size: clamp(3.3rem, 7vw, 6.4rem);
  margin: 0;
  color: var(--green2);
  letter-spacing: -.035em
}

.life-years {
  font-size: 1.5rem;
  color: var(--gold);
  margin: 7px 0 22px
}

.person-deck {
  font-size: 1.25rem;
  max-width: 720px;
  color: #55554f;
  margin: 0
}

.route-card {
  border-left: 1px solid #c7bdad;
  padding: 12px 0 12px 34px;
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-items: center;
  gap: 10px;
  color: var(--green2)
}

.route-card>span,
.route-card>small {
  grid-column: 1/-1;
  font: 700 .64rem Arial, sans-serif;
  letter-spacing: .13em;
  color: var(--gold)
}

.route-card>small {
  font-weight: normal;
  letter-spacing: 0;
  color: #777168;
  margin-top: 6px
}

.route-card i {
  font-style: normal;
  color: #9f978c
}

.person-body {
  padding: 85px 0;
  background: #fff
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, .72fr);
  gap: 85px;
  align-items: start
}

.article {
  max-width: 760px
}

.article .lead {
  font-size: 1.3rem;
  color: #424640;
  margin-top: 0
}

.article h2 {
  font-size: 2.25rem;
  color: var(--green2);
  margin: 55px 0 18px
}

.article p {
  margin: 0 0 20px
}

.article-callout {
  margin: 38px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--gold);
  background: var(--paper);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px
}

.article-callout span {
  font: 700 .8rem Arial, sans-serif;
  color: var(--gold)
}

.article-callout p {
  margin: 0;
  font-size: .92rem
}

.source-quote {
  margin: 32px 0;
  padding: 25px 32px;
  background: var(--green2);
  color: #f4ecdf;
  font-size: 1.35rem;
  font-style: italic
}

.facts {
  position: sticky;
  top: 105px
}

.facts-box {
  border-top: 4px solid var(--green);
  background: var(--paper);
  padding: 28px
}

.facts-box dl {
  margin: 20px 0 0
}

.facts-box dt {
  font: 700 .65rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8a8175;
  margin-top: 18px
}

.facts-box dd {
  margin: 3px 0 0;
  color: #343934
}

.facts-box dd small {
  color: #79756d
}

.facts-note {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  font-size: .83rem;
  color: #69655e
}

.facts-note strong {
  color: var(--green2);
  font-family: Arial, sans-serif
}

.facts-note p {
  margin: 8px 0 0
}

.timeline-section {
  padding: 85px 0;
  background: var(--paper)
}

.timeline-section h2 {
  font-size: 3rem;
  color: var(--green2);
  margin: 0 0 45px
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #bfb5a5
}

.timeline div {
  padding: 25px 20px 0 0;
  position: relative
}

.timeline div:before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  top: -5px;
  left: 0
}

.timeline b {
  display: block;
  color: var(--gold);
  font: 700 .78rem Arial, sans-serif;
  margin-bottom: 8px
}

.timeline span {
  font-size: .9rem;
  color: #56534e
}

.related-book {
  padding: 90px 0;
  background: #fff
}

.related-grid {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 65px;
  align-items: center;
  max-width: 850px
}

.related-grid img {
  width: 100%;
  display: block;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18)
}

.related-grid h2 {
  font-size: 3rem;
  color: var(--green2);
  margin: 0
}

.related-grid .subtitle {
  color: var(--gold);
  font-style: italic;
  margin-top: 4px
}

.related-grid .button {
  display: inline-block;
  margin-top: 12px
}

@media(max-width:820px) {

  .person-title-grid,
  .article-layout,
  .related-grid {
    grid-template-columns: 1fr
  }

  .route-card {
    border-left: 0;
    border-top: 1px solid #c7bdad;
    padding: 25px 0 0
  }

  .article-layout {
    gap: 50px
  }

  .facts {
    position: static
  }

  .timeline {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid #bfb5a5;
    margin-left: 5px
  }

  .timeline div {
    padding: 0 0 30px 25px
  }

  .timeline div:before {
    top: 5px;
    left: -5px
  }

  .related-grid {
    max-width: 100%
  }

  .related-grid>a {
    width: 190px
  }

  .person-body {
    padding: 60px 0
  }

  .person-hero {
    padding: 35px 0 55px
  }
}

.article a,
.facts a {
  color: var(--green);
  text-decoration-color: #b6aa98;
  text-underline-offset: 3px
}

/* Plaatsen-hiërarchie (boomstructuur) */
.hierarchy {
  margin-top: 55px;
  display: flex;
  flex-direction: column;
  align-items: center
}

.h-node {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform .2s, border-color .2s
}

.h-tier-label {
  display: block;
  font: 700 .63rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--gold);
  margin-bottom: 6px
}

.h-connector {
  width: 1px;
  height: 32px;
  background: var(--line)
}

.h-tier1 {
  width: min(100%, 440px);
  padding: 28px 32px;
  background: var(--green2);
  border: 1px solid var(--green2)
}

.h-tier1 .h-tier-label {
  color: #d9c19a
}

.h-tier1 h3 {
  margin: 0;
  font-size: 2rem;
  color: #fff
}

.h-tier1:hover {
  transform: translateY(-3px)
}

.h-tier2 {
  width: min(100%, 390px);
  padding: 24px 28px;
  background: var(--green);
  border: 1px solid var(--green)
}

.h-tier2 .h-tier-label {
  color: #d9c19a
}

.h-tier2 h3 {
  margin: 0;
  font-size: 1.6rem;
  color: #fff
}

.h-tier2:hover {
  transform: translateY(-3px)
}

.h-tier3 {
  width: min(100%, 340px);
  padding: 20px 26px;
  background: #fff;
  border: 1px solid var(--gold)
}

.h-tier3 h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--green2)
}

.h-tier3:hover {
  transform: translateY(-3px);
  border-color: var(--green)
}

.h-fan {
  position: relative;
  width: 100%;
  max-width: 840px;
  height: 38px
}

.h-fan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 18px;
  background: var(--line)
}

.h-fan::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 16.6667%;
  right: 16.6667%;
  height: 1px;
  background: var(--line)
}

.h-subheading {
  margin: 0 0 22px;
  font: 700 .68rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  text-align: center
}

.h-row4 {
  display: flex;
  gap: 22px;
  width: 100%;
  max-width: 840px
}

.h-row4>div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0
}

.h-row4>div::before {
  content: "";
  width: 1px;
  height: 18px;
  background: var(--line)
}

.h-row4 .h-node {
  width: 100%;
  padding: 26px 18px;
  background: #fff;
  border: 1px solid var(--line)
}

.h-row4 .h-node:hover {
  transform: translateY(-3px);
  border-color: var(--gold)
}

.h-row4 h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--green2)
}

.h-row5 {
  display: flex;
  gap: 22px;
  width: 100%;
  max-width: 840px;
  margin-top: 6px
}

.h-row5>div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0
}

.h-row5>div::before {
  content: "";
  width: 1px;
  height: 18px;
  background: var(--line)
}

.h-row5>div.empty::before {
  visibility: hidden
}

.h-row5 .h-node {
  width: 100%;
  padding: 16px 14px;
  background: var(--paper);
  border: 1px dashed #c7bdad
}

.h-row5 .h-node:hover {
  border-color: var(--gold)
}

.h-row5 h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: normal;
  color: var(--green2)
}

.h-row5 .h-tier-label {
  font-size: .58rem;
  margin-bottom: 4px
}

.hierarchy-note {
  max-width: 600px;
  margin: 38px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: .9rem
}

@media(max-width:820px) {
  .h-fan {
    display: none
  }

  .h-row4,
  .h-row5 {
    flex-direction: column;
    align-items: center;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto
  }

  .h-row4>div::before,
  .h-row5>div::before {
    content: "↓";
    width: auto;
    height: auto;
    background: none;
    color: #b1a99d;
    font-size: 1.1rem;
    line-height: 1;
    visibility: visible
  }

  .h-row5>div.empty {
    display: none
  }
}

.children-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 30px 0
}

.children-grid span {
  background: var(--paper);
  padding: 13px 16px;
  font-size: .86rem
}

.children-grid b {
  font: 700 .68rem Arial, sans-serif;
  color: var(--gold);
  display: block;
  margin-bottom: 2px
}

.editor-note {
  font-size: .78rem !important;
  color: #817b72;
  font-style: italic
}

.source-quote.latin small {
  display: block;
  margin-top: 10px;
  font-size: .7rem;
  font-style: normal;
  color: #cfc6b8;
  font-family: Arial, sans-serif
}

@media(max-width:820px) {
  .children-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}


/* Personenoverzicht V30 – schaalbare afstammingslijn */
.people-hero {
  padding: 62px 0 34px;
  background: linear-gradient(135deg, #f8f5ee 0%, #eee8dc 100%);
  border-bottom: 1px solid rgba(38, 58, 51, .12)
}

.people-hero .breadcrumb {
  margin-bottom: 28px
}

.people-hero h1 {
  margin: 8px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 500;
  color: var(--green2);
  letter-spacing: -.025em
}

.people-hero .large {
  max-width: 820px;
  margin-bottom: 0
}

.people-note-intro {
  max-width: 860px;
  margin: 30px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--green);
  background: #e7dfc9;
  color: #5c584f;
  font-size: .96rem;
  line-height: 1.75
}

.people-note-intro strong {
  color: var(--green2)
}

.people-route-section {
  padding: 30px 0 8px
}

.people-route-scroll {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch
}

.people-route-stop {
  flex: 0 0 auto;
  min-width: 160px;
  color: inherit;
  text-decoration: none
}

.people-route-stop .era {
  display: block;
  font: 400 .75rem Arial, sans-serif;
  color: var(--muted)
}

.people-route-stop .place {
  display: block;
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--green2)
}

.people-route-arrow {
  flex: 0 0 auto;
  padding: 0 18px;
  color: #c5b89c;
  font: 400 1.25rem Arial, sans-serif
}

.people-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding: 24px 0 10px;
  font: 400 .82rem Arial, sans-serif;
  color: var(--muted)
}

.people-legend-item {
  display: flex;
  align-items: center;
  gap: 10px
}

.people-legend-line {
  width: 30px;
  border-top: 2px solid var(--gold)
}

.people-legend-line.uncertain {
  border-top: 2px dashed #617a70
}

.people-lineage {
  padding: 18px 0 26px
}

.gen-row {
  display: flex;
  align-items: stretch;
  position: relative
}

.gen-spine {
  flex: 0 0 58px;
  display: flex;
  flex-direction: column;
  align-items: center
}

.gen-dot {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-top: 3px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .88rem;
  font-weight: bold;
  color: #7a5232;
  z-index: 2
}

.gen-line {
  flex: 1;
  width: 2px;
  margin-top: -1px;
  background: var(--gold)
}

.gen-row.uncertain-out .gen-line {
  width: 0;
  background: none;
  border-left: 2px dashed #617a70
}

.gen-row.uncertain-in .gen-dot {
  border-style: dashed;
  border-color: #617a70;
  color: #617a70
}

.gen-row.final .gen-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff
}

.gen-row:last-child .gen-line {
  display: none
}

.gen-card {
  flex: 1;
  min-width: 0;
  padding: 0 0 46px 26px;
  scroll-margin-top: 115px
}

.gen-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px
}

.gen-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.7vw, 1.85rem);
  font-weight: 600;
  color: var(--green2)
}

.gen-years {
  font: 400 .84rem Arial, sans-serif;
  color: var(--muted);
  white-space: nowrap
}

.gen-body {
  max-width: 760px;
  margin: 34px 0 0;
  color: #5c584f;
  line-height: 1.65
}

.gen-meta {
  margin: 9px 0 0;
  font: 400 .82rem Arial, sans-serif;
  color: var(--muted)
}

.gen-meta strong {
  color: var(--green2)
}

.gen-meta.uncertain {
  color: #617a70
}

.gen-link {
  display: inline-block;
  margin-top: 10px;
  color: #7a5232;
  font: 400 .84rem Arial, sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 82, 50, .45)
}

.gen-link:hover {
  border-bottom-color: currentColor
}

.gen-relation {
  position: absolute;
  left: 58px;
  top: 48px;
  padding: 2px 9px;
  background: var(--paper);
  font: 400 .72rem Arial, sans-serif;
  color: var(--muted);
  white-space: nowrap;
  z-index: 3
}

.gen-relation.uncertain {
  color: #617a70
}

.gen-row.final .gen-card {
  padding-bottom: 6px
}

.people-closing {
  padding: 46px 0 68px;
  border-top: 1px solid var(--line)
}

.people-closing h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--green2)
}

.people-closing p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75
}

.people-closing .button {
  display: inline-block;
  margin-top: 22px
}

@media(max-width:760px) {
  .people-hero {
    padding: 42px 0 30px
  }

  .people-hero .breadcrumb {
    margin-bottom: 22px
  }

  .people-note-intro {
    padding: 17px 18px
  }

  .people-route-section {
    padding-top: 22px
  }

  .people-route-stop {
    min-width: 142px
  }

  .people-route-arrow {
    padding: 0 12px
  }

  .people-legend {
    gap: 15px 22px
  }

  .gen-spine {
    flex-basis: 42px
  }

  .gen-dot {
    width: 34px;
    height: 34px;
    font-size: .76rem
  }

  .gen-card {
    padding-left: 15px;
    padding-bottom: 40px
  }

  .gen-relation {
    position: static;
    display: inline-block;
    margin: 8px 0 0 15px;
    padding: 0;
    background: transparent;
    transform: none;
    font-size: .7rem
  }

  .gen-top {
    display: block
  }

  .gen-years {
    display: block;
    margin-top: 4px
  }

  .gen-body {
    margin-top: 8px
  }
}


/* Jacobus kandidaten */
.candidate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 30px 0 36px
}

.candidate-card {
  border: 1px solid rgba(38, 58, 51, .18);
  background: #fff;
  padding: 24px 24px 20px
}

.candidate-card.preferred {
  border-top: 3px solid #9a7040
}

.candidate-label {
  display: block;
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
  font-size: .72rem;
  letter-spacing: .11em;
  color: #9a7040
}

.candidate-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #263a33
}

.candidate-card p {
  margin: 0;
  line-height: 1.65
}

@media(max-width:760px) {
  .candidate-grid {
    grid-template-columns: 1fr
  }
}


/* V13 – Kinderen: rustige labels en directe persoonslinks */
.child-card>span {
  text-transform: none;
  margin-right: .35em;
}

.child-card strong a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 112, 64, .45);
}

.child-card strong a:hover {
  border-bottom-color: currentColor;
}


/* V14 – Plaatsnamen met eigen achtergrondpagina */
.place-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(154, 112, 64, .5);
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}

.place-link:hover {
  text-decoration-color: currentColor;
}


/* V25 – plaatsenhiërarchie */
.h-tier-region {
  width: min(100%, 365px);
  padding: 22px 27px;
  background: #e9e2d6;
  border: 1px solid #b9aa94;
}

.h-tier-region h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--green2)
}

.h-tier-region:hover {
  transform: translateY(-3px);
  border-color: var(--gold)
}

.h-fan-v25 {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 42px
}

.h-fan-v25::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 20px;
  background: var(--line)
}

.h-fan-v25::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 16.6667%;
  right: 16.6667%;
  height: 1px;
  background: var(--line)
}

.h-places-v25 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 900px
}

.h-branch-v25 {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0
}

.h-branch-v25::before {
  content: "";
  width: 1px;
  height: 18px;
  background: var(--line)
}

.h-place-v25 {
  width: 100%;
  padding: 25px 16px;
  background: #fff;
  border: 1px solid var(--line)
}

.h-place-v25 h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--green2)
}

a.h-place-v25:hover {
  transform: translateY(-3px);
  border-color: var(--gold)
}

.h-static-v25 {
  color: inherit
}

.h-down-v25 {
  width: 1px;
  height: 24px;
  background: var(--line)
}

.h-area-v25 {
  width: 88%;
  padding: 18px 14px;
  background: #f1ece3;
  border: 1px solid #cbbda9
}

.h-area-v25 h4,
.h-local-v25 h4 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: normal;
  color: var(--green2)
}

.h-area-v25:hover {
  transform: translateY(-2px);
  border-color: var(--gold)
}

.h-local-v25 {
  width: 78%;
  padding: 17px 13px;
  background: var(--paper);
  border: 1px dashed #bcae99
}

.h-local-v25:hover {
  transform: translateY(-2px);
  border-color: var(--gold)
}

.family-mark {
  display: block;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(154, 112, 64, .28);
  font: 700 .62rem Arial, sans-serif;
  letter-spacing: .04em;
  color: var(--gold)
}

.h-branch-note {
  max-width: 230px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55
}

@media(max-width:820px) {
  .h-fan-v25 {
    display: none
  }

  .h-places-v25 {
    grid-template-columns: 1fr;
    max-width: 390px;
    gap: 26px
  }

  .h-branch-v25::before {
    content: "↓";
    width: auto;
    height: auto;
    background: none;
    color: #b1a99d;
    line-height: 1
  }

  .h-place-v25,
  .h-area-v25,
  .h-local-v25 {
    width: 100%
  }
}

/* V21 – mobiele hoofdnavigatie behouden */
@media (max-width:820px) {
  .topbar-inner {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 10px;
    display: block;
  }

  .brand {
    display: block;
    margin-bottom: 9px;
  }

  .topbar nav {
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding: 0 0 7px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .topbar nav a {
    flex: 0 0 auto;
    display: block;
    padding: 8px 11px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .45);
    font-size: .78rem;
    line-height: 1.2;
    white-space: nowrap;
  }
}


/* V26 – Voorouderlijke geslachten */
.lineages-intro {
  padding: 42px 0 10px
}

.lineage-route {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
  font-family: Arial, sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .035em
}

.lineage-route span {
  padding: 10px 14px;
  border: 1px solid rgba(38, 58, 51, .18);
  background: #fff;
  color: var(--green2)
}

.lineage-route i {
  font-style: normal;
  color: var(--gold)
}

.lineage-route-note {
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--muted);
  line-height: 1.7
}

.lineages-section {
  padding: 76px 0
}

.lineages-soft {
  background: #eee8dc;
  border-top: 1px solid rgba(38, 58, 51, .1);
  border-bottom: 1px solid rgba(38, 58, 51, .1)
}

.lineage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px
}

.lineage-card {
  background: #fff;
  border: 1px solid rgba(38, 58, 51, .14);
  padding: 29px 28px 27px;
  box-shadow: 0 12px 32px rgba(38, 58, 51, .045)
}

.lineage-card h3 {
  margin: 4px 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--green2)
}

.lineage-card p {
  margin: 0;
  line-height: 1.7
}

.lineage-kicker {
  display: block;
  font: 700 .67rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--gold)
}

.lineage-status {
  display: block;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid rgba(38, 58, 51, .11);
  font: 700 .7rem Arial, sans-serif;
  color: var(--green2)
}

.lineage-primary {
  border-top: 3px solid var(--gold)
}

.lineage-dynasty {
  background: #f7f4ed
}

.lineages-method {
  padding: 70px 0 82px;
  background: var(--green2);
  color: #f5f1e8
}

.lineages-method h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  color: #fff
}

.lineages-method p:not(.section-label) {
  font-size: 1.03rem;
  line-height: 1.8
}

.lineages-method .person-card-link {
  color: #fff
}

@media(max-width:900px) {
  .lineage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:620px) {
  .lineage-grid {
    grid-template-columns: 1fr
  }

  .lineage-route {
    align-items: stretch
  }

  .lineage-route span {
    width: 100%;
    text-align: center
  }

  .lineage-route i {
    width: 100%;
    text-align: center;
    line-height: .7
  }
}


/* V27 – detailpagina Van den Loe */
.lineage-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: .18s ease
}

.lineage-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold)
}

.lineage-link-card:hover h3 {
  color: var(--gold)
}

.lineage-facts {
  padding: 0 0 24px
}

.lineage-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -1px;
  border: 1px solid rgba(38, 58, 51, .14);
  background: #fff
}

.lineage-fact-grid div {
  padding: 20px 22px;
  border-right: 1px solid rgba(38, 58, 51, .12)
}

.lineage-fact-grid div:last-child {
  border-right: 0
}

.lineage-fact-grid span {
  display: block;
  margin-bottom: 6px;
  font: 700 .62rem Arial, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--gold)
}

.lineage-fact-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  color: var(--green2)
}

.lineage-route-wide {
  margin: 34px 0
}

.prose-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  max-width: 960px
}

.prose-columns p {
  margin: 0;
  line-height: 1.8
}

.lineage-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px
}

.lineage-feature {
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(38, 58, 51, .14)
}

.lineage-feature h3 {
  margin: 5px 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--green2)
}

.lineage-feature p {
  margin: 0;
  line-height: 1.72
}

.genealogy-strip {
  max-width: 720px;
  margin: 36px auto 26px;
  display: flex;
  flex-direction: column;
  align-items: center
}

.genealogy-strip>b {
  font: 400 1.1rem Arial, sans-serif;
  color: #aaa091;
  padding: 7px 0
}

.genealogy-person {
  width: min(100%, 560px);
  padding: 17px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(38, 58, 51, .16)
}

.genealogy-person small,
.genealogy-person span {
  display: block
}

.genealogy-person small {
  margin-bottom: 4px;
  font: 700 .62rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--gold)
}

.genealogy-person strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.13rem;
  color: var(--green2)
}

.genealogy-person span {
  margin-top: 4px;
  font-size: .82rem;
  color: var(--muted)
}

.source-caution {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 23px;
  border-left: 3px solid var(--gold);
  background: #eee8dc;
  line-height: 1.72
}

.lineage-bridge {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  max-width: 780px;
  margin: 34px auto 0
}

.bridge-person {
  padding: 27px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(38, 58, 51, .15)
}

.bridge-person span {
  display: block;
  margin-bottom: 7px;
  font: 700 .63rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold)
}

.bridge-person strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  color: var(--green2)
}

.bridge-person small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45
}

.bridge-x {
  align-self: center;
  font: 400 1.5rem Georgia, serif;
  color: var(--gold)
}

.detail-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 24px
}

@media(max-width:820px) {
  .lineage-fact-grid {
    grid-template-columns: 1fr 1fr
  }

  .lineage-fact-grid div {
    border-bottom: 1px solid rgba(38, 58, 51, .12)
  }

  .lineage-fact-grid div:nth-child(2) {
    border-right: 0
  }

  .prose-columns,
  .lineage-feature-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:560px) {
  .lineage-fact-grid {
    grid-template-columns: 1fr
  }

  .lineage-fact-grid div {
    border-right: 0
  }

  .lineage-bridge {
    grid-template-columns: 1fr
  }

  .bridge-x {
    text-align: center
  }
}


/* V27.1 – volledige Van den Loe / Van de Loo-reeks */
.genealogy-table {
  max-width: 900px;
  margin: 38px auto 30px
}

.genealogy-row {
  display: grid;
  grid-template-columns: 105px 1fr 1fr;
  align-items: stretch;
  border: 1px solid rgba(38, 58, 51, .25);
  background: #fff
}

.genealogy-row .gen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  font: 700 .66rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  background: var(--paper);
  border-right: 1px solid rgba(38, 58, 51, .16)
}

.genealogy-row .ancestor,
.genealogy-row .partner {
  padding: 15px 18px;
  text-align: center
}

.genealogy-row .ancestor {
  background: #fbf0e8;
  border-right: 1px solid rgba(38, 58, 51, .20)
}

.genealogy-row .partner {
  background: #f4f3f0
}

.genealogy-row.final-row .ancestor {
  background: #fbf0e8
}

.genealogy-row.final-row .partner {
  background: #edf1e7
}

.genealogy-row strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green2)
}

.genealogy-row small {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  color: var(--muted)
}

.genealogy-arrow {
  text-align: center;
  height: 18px;
  line-height: 18px;
  color: #aaa091
}

.name-variants {
  max-width: 820px;
  margin: 42px auto 0;
  padding: 27px 30px;
  background: #eee8dc;
  border-top: 3px solid var(--gold)
}

.name-variants h3 {
  margin: 3px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--green2)
}

.name-variants p:last-child {
  margin-bottom: 0;
  line-height: 1.75
}

@media(max-width:680px) {
  .genealogy-row {
    grid-template-columns: 1fr 1fr
  }

  .genealogy-row .gen {
    grid-column: 1/-1;
    border-right: 0;
    border-bottom: 1px solid rgba(38, 58, 51, .15);
    padding: 7px
  }

  .genealogy-row .ancestor,
  .genealogy-row .partner {
    padding: 13px 10px
  }

  .genealogy-row strong {
    font-size: .92rem
  }
}


/* V28 – detailpagina Van Groesbeeck */
.lineage-prose-top {
  margin-top: 34px
}

.groesbeeck-line {
  max-width: 700px;
  margin: 38px auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center
}

.groesbeeck-node {
  width: min(100%, 590px);
  padding: 20px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(38, 58, 51, .18)
}

.groesbeeck-node small {
  display: block;
  margin-bottom: 5px;
  font: 700 .63rem Arial, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--gold)
}

.groesbeeck-node strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  color: var(--green2)
}

.groesbeeck-node span,
.groesbeeck-node em {
  display: block;
  margin-top: 5px;
  font-size: .82rem;
  color: var(--muted)
}

.groesbeeck-node em {
  font-style: normal;
  color: var(--green2)
}

.natural-node {
  border-style: dashed;
  background: #f8f6f1
}

.highlight-node {
  border-top: 3px solid var(--gold);
  background: #fbf0e8
}

.dotted-arrow {
  height: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center
}

.dotted-arrow i {
  margin-top: 3px;
  font: 700 .58rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted)
}

.historical-person {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 26px;
  align-items: stretch;
  margin-top: 34px
}

.historical-person>div {
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(38, 58, 51, .14)
}

.historical-person h3 {
  margin: 5px 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--green2)
}

.historical-person p {
  margin-bottom: 0;
  line-height: 1.75
}

.historical-note {
  background: #f7f4ed !important
}

.historical-note strong {
  display: block;
  margin-bottom: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  color: var(--green2)
}

.bridge-person a {
  color: inherit;
  text-decoration: none
}

.bridge-person a:hover {
  color: var(--gold)
}

@media(max-width:720px) {
  .historical-person {
    grid-template-columns: 1fr
  }
}


/* V29 – detailpagina Van der Straten */
.straten-line {
  max-width: 700px;
  margin: 38px auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center
}

.straten-node {
  width: min(100%, 590px);
  padding: 20px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(38, 58, 51, .18)
}

.straten-node small {
  display: block;
  margin-bottom: 5px;
  font: 700 .63rem Arial, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--gold)
}

.straten-node strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  color: var(--green2)
}

.straten-node span {
  display: block;
  margin-top: 5px;
  font-size: .82rem;
  color: var(--muted)
}

.straten-node.highlight-node {
  border-top: 3px solid var(--gold);
  background: #fbf0e8
}

.kleef-node {
  background: #edf1e7
}

.transition-callout {
  max-width: 790px;
  margin: 38px auto 0;
  padding: 28px 30px;
  background: #eee8dc;
  border-left: 3px solid var(--gold)
}

.transition-callout h3 {
  margin: 5px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--green2)
}

.transition-callout p {
  margin: 0;
  line-height: 1.75
}

.route-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
  margin: 38px auto 0
}

.route-chain a,
.route-chain strong,
.route-chain span {
  padding: 10px 13px;
  border: 1px solid rgba(38, 58, 51, .16);
  background: #fff;
  color: var(--green2);
  text-decoration: none;
  font: 700 .76rem Arial, sans-serif
}

.route-chain strong {
  background: #fbf0e8;
  border-color: rgba(154, 112, 64, .45)
}

.route-chain a:hover {
  border-color: var(--gold);
  color: var(--gold)
}

.route-chain i {
  font-style: normal;
  color: var(--gold)
}

@media(max-width:620px) {
  .route-chain {
    flex-direction: column
  }

  .route-chain a,
  .route-chain strong,
  .route-chain span {
    width: 100%;
    text-align: center
  }

  .route-chain i {
    transform: rotate(90deg)
  }
}

/* V31 – Personenindex: twee genealogische sporen tussen Hendryck en Arnold */
.track-intro {
  max-width: 860px;
  margin: 22px 0 0;
  font: 400 .82rem Arial, sans-serif;
  color: var(--muted);
}

.track-intro strong {
  color: var(--green2)
}

.dual-track {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  margin: 0 0 0 0;
  padding: 8px 0 10px;
}

/* bovenste splitsing */
.dual-track::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 29px;
  right: calc(100% - 87px);
  height: 18px;
  border-left: 2px dashed #617a70;
  border-top: 2px dashed #617a70;
  border-radius: 12px 0 0 0;
  pointer-events: none;
}

.track2 {
  position: relative;
  padding: 2px 16px 22px 0;
}

.track2-label {
  margin: 0 0 15px 2px;
  font: 700 .64rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #617a70;
}

.track2-node {
  position: relative;
  margin-left: 8px;
  padding-left: 52px;
  min-height: 78px;
}

.track2-node+.track2-node {
  margin-top: 28px
}

.track2-node::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 38px;
  bottom: -28px;
  border-left: 2px dashed #617a70;
}

.track2-node:last-child::before {
  bottom: -54px
}

.track2-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border: 2px dashed #617a70;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: #617a70;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .76rem;
  font-weight: bold;
}

.track2-name {
  display: block;
  margin: 1px 0 2px;
  color: var(--green2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.track2-detail {
  display: block;
  color: var(--muted);
  font: 400 .72rem Arial, sans-serif;
  line-height: 1.45;
}

.track2-link {
  display: inline-block;
  margin-top: 5px;
  color: #617a70;
  font: 700 .68rem Arial, sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(97, 122, 112, .45);
}

.track2-link:hover {
  border-bottom-color: currentColor
}

/* spoor 1 binnen het vertakkingsgebied */
.track1 {
  min-width: 0
}

.track1-label {
  margin: 0 0 15px 84px;
  font: 700 .64rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
}

.track1 .gen-card {
  padding-bottom: 42px
}

/* samenkomst vóór 05 */
.track-merge {
  position: relative;
  height: 36px;
  margin: -6px 0 0;
}

.track-merge::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  width: calc(50% - 28px);
  height: 18px;
  border-left: 2px dashed #617a70;
  border-bottom: 2px dashed #617a70;
  border-radius: 0 0 0 12px;
}

.track-merge::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 18px;
  width: 2px;
  height: 18px;
  background: var(--gold);
}

/* 05 markeren als punt waar beide reconstructies weer samenkomen */
.gen-row.merge-target .gen-dot {
  box-shadow: 0 0 0 5px rgba(154, 112, 64, .10);
}

.merge-note {
  margin: 0 0 11px;
  font: 700 .66rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
}

@media(max-width:760px) {
  .dual-track {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 4px;
  }

  .dual-track::before {
    display: none
  }

  .track2 {
    order: 2;
    margin-left: 42px;
    padding: 18px 0 10px 14px;
    border-left: 2px dashed #617a70;
  }

  .track2-label {
    margin-left: 0
  }

  .track2-node {
    padding-left: 49px
  }

  .track2-node::before {
    left: 20px
  }

  .track1 {
    order: 1
  }

  .track1-label {
    margin-left: 42px
  }

  .track-merge {
    display: none
  }

  .track2-node:last-child::before {
    display: none
  }
}

/* V32 – uitlijning: hoofdspoor blijft één verticale lijn; spoor 2 links daarvan */
@media(min-width:761px) {

  /* Geef links ruimte aan het alternatieve spoor, zonder spoor 1 te verschuiven. */
  .people-lineage .wrap.narrow {
    max-width: 1080px;
  }

  .people-lineage .gen-row {
    padding-left: 180px;
  }

  /* Relatie-aanduidingen staan nu in de kaart en kunnen dus nooit meer
     over een lange naam of jaartal heen vallen. */
  .gen-relation {
    position: static;
    display: block;
    margin: 7px 0 0;
    padding: 0;
    background: transparent;
    font: 400 .72rem Arial, sans-serif;
    color: var(--muted);
    white-space: normal;
  }

  .gen-relation.uncertain {
    color: #617a70
  }

  .gen-body {
    margin: 8px 0 0;
  }

  /* Naam links, levensjaren consequent rechts — ook bij lange namen. */
  .gen-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 22px;
    align-items: baseline;
  }

  .gen-top h2 {
    min-width: 0;
  }

  .gen-years {
    justify-self: end;
    text-align: right;
  }

  /* Het vertakkingsgebied is geen tweekoloms-layout meer.
     Spoor 1 staat exact op dezelfde verticale as als 01, 05, 06 en 07. */
  .dual-track {
    position: relative;
    display: block;
    grid-template-columns: none;
    gap: 0;
    margin: 0;
    padding: 8px 0 10px;
  }

  .track1 {
    min-width: 0;
  }

  .track1-label {
    margin: 0 0 15px 264px;
  }

  /* Spoor 2 staat compact links van de hoofdroute. */
  .track2 {
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 14px;
    width: 155px;
    padding: 0;
  }

  .track2-label {
    margin: 0 0 15px 0;
  }

  .track2-node {
    margin-left: 0;
    padding-left: 52px;
    min-height: 82px;
  }

  .track2-node+.track2-node {
    margin-top: 118px;
  }

  .track2-node::before {
    left: 20px;
    top: 40px;
    bottom: -118px;
  }

  .track2-node:last-child::before {
    bottom: -190px;
  }

  /* Splitsing onder 01: van de hoofd-as naar spoor 2. */
  .dual-track::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 30px;
    width: 179px;
    height: 18px;
    border-left: 2px dashed #617a70;
    border-top: 2px dashed #617a70;
    border-radius: 12px 0 0 0;
    pointer-events: none;
  }

  /* Samenkomst vóór 05: spoor 2 sluit weer aan op dezelfde hoofd-as. */
  .track-merge {
    position: relative;
    height: 34px;
    margin: -5px 0 0;
  }

  .track-merge::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    width: 179px;
    height: 17px;
    border-left: 2px dashed #617a70;
    border-bottom: 2px dashed #617a70;
    border-radius: 0 0 0 12px;
  }

  .track-merge::after {
    content: "";
    position: absolute;
    left: 208px;
    top: 17px;
    width: 2px;
    height: 17px;
    background: var(--gold);
  }

  /* Het merge-label hoort bij de tekstkolom van 05. */
  .merge-note {
    margin-top: 0;
  }
}

/* V33 – spoor 2 doorlopend laten aansluiten op de samenkomst bij 05 */
@media(min-width:761px) {
  .track2-node:last-child::before {
    bottom: -278px;
  }
}

/* V35 – spoor 2: links klikbaar maken en onderste stippellijn exact laten eindigen */
@media(min-width:761px) {

  /* Spoor 2 ligt visueel links van spoor 1, maar spoor 1 stond in de
     stacking order erboven en onderschepte daardoor muisklikken. */
  .track2 {
    z-index: 5;
  }

  .track1 {
    position: relative;
    z-index: 1;
  }

  .track2-link {
    position: relative;
    z-index: 6;
    pointer-events: auto;
  }

  /* De verticale stippellijn van 03b eindigt nu precies bij de kwartboog. */
  .track2-node:last-child::before {
    bottom: -248px;
  }
}

/* V36 – besloten familie & contacten */
.private-hero {
  padding: 70px 0 54px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, #f1ece2 100%);
}

.private-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 50px;
  align-items: end;
}

.private-kicker {
  margin: 0 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.private-hero h1 {
  margin: 0;
  color: var(--green2);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.03;
}

.private-intro {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 1.12rem;
  color: var(--muted);
}

.private-lock {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .45);
}

.private-lock strong {
  display: block;
  color: var(--green2);
  font-size: 1.12rem;
}

.private-lock span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
  line-height: 1.5;
}

.private-section {
  padding: 62px 0;
}

.private-section+.private-section {
  border-top: 1px solid var(--line);
}

.private-section h2 {
  margin: 0 0 10px;
  color: var(--green2);
  font-size: 2.25rem;
}

.private-section-intro {
  margin: 0 0 30px;
  max-width: 820px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .42);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(154, 112, 64, .55);
  box-shadow: 0 10px 28px rgba(38, 58, 51, .08);
}

.contact-type {
  margin: 0 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-card h3 {
  margin: 0;
  color: var(--green2);
  font-size: 1.65rem;
  line-height: 1.12;
}

.contact-card p {
  margin: 13px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-card .read-more {
  margin-top: auto;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: .88rem;
}

.private-person-hero {
  padding: 56px 0 42px;
  border-bottom: 1px solid var(--line);
}

.private-person-hero h1 {
  margin: 8px 0 7px;
  color: var(--green2);
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1.04;
}

.private-person-deck {
  max-width: 840px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.private-person-body {
  padding: 52px 0 70px;
}

.private-article {
  max-width: 900px;
}

.private-article h2 {
  margin: 38px 0 10px;
  color: var(--green2);
  font-size: 1.8rem;
}

.private-article h2:first-child {
  margin-top: 0
}

.private-article p {
  margin: 0 0 16px;
  font-size: 1.04rem;
}

.private-source-note {
  margin: 34px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(154, 112, 64, .07);
  color: var(--muted);
}

.private-back {
  display: inline-block;
  margin-top: 28px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.private-placeholder {
  font-style: italic;
  color: var(--muted);
}

@media(max-width:900px) {
  .private-hero-grid {
    grid-template-columns: 1fr
  }

  .private-lock {
    max-width: 520px
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:620px) {
  .private-hero {
    padding: 46px 0 38px
  }

  .private-section {
    padding: 44px 0
  }

  .contact-grid {
    grid-template-columns: 1fr
  }
}


/* V38 – Personenindex: hoofdspoor visueel volledig doorlopend */
@media (min-width:761px) {

  /*
   * Eén doorlopende gouden hoofdas over het volledige vertakkingsgebied.
   * Daardoor verdwijnen zowel het gat tussen 01 en 02 als het gat onder 04.
   * De gen-dots hebben een papieren achtergrond en liggen erboven, zodat
   * de lijn netjes achter de genummerde cirkels doorloopt.
   */
  .dual-track::after {
    content: "";
    position: absolute;
    left: 208px;
    top: -18px;
    bottom: 0;
    width: 2px;
    height: auto;
    background: var(--gold);
    z-index: 0;
    pointer-events: none;
  }

  .track1 {
    position: relative;
    z-index: 1;
  }

  .track1 .gen-dot {
    position: relative;
    z-index: 3;
  }

  /*
   * De samenkomst tussen het einde van het vertakkingsgebied en 05
   * wordt eveneens volledig op dezelfde hoofdas getekend.
   */
  .track-merge::after {
    content: "";
    position: absolute;
    left: 208px;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    background: var(--gold);
    z-index: 2;
  }

  /*
   * Spoor 1 is de gevolgde werkhypothese: de lijn onder 04 hoort daarom
   * als onderdeel van de gouden hoofdroute zichtbaar te blijven.
   */
  .track1 .gen-row.uncertain-out .gen-line {
    width: 2px;
    border-left: 0;
    background: var(--gold);
  }
}


/* V39 – Personenindex: lijn 04 Jacobus → 05 Arnold expliciet doortrekken */
@media (min-width:761px) {

  /*
   * De verbinding onder generatie 04 wordt op de rij zelf getekend.
   * Zo is zij niet afhankelijk van de hoogte of stacking van dual-track.
   */
  #gen-4::after {
    content: "";
    position: absolute;
    left: 208px;
    top: 46px;
    bottom: -44px;
    width: 2px;
    background: var(--gold);
    z-index: 4;
    pointer-events: none;
  }

  #gen-4 .gen-dot {
    position: relative;
    z-index: 5;
    background: var(--paper);
  }

  /*
   * De korte verbinding van de samenkomst naar generatie 05 blijft
   * exact op dezelfde verticale hoofdas staan.
   */
  .track-merge::after {
    left: 208px;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    background: var(--gold);
    z-index: 4;
  }
}


/* V40 – Stamboom in de look & feel van personenindex */
.tree-people-look {
  background: var(--paper);
}

.tree-people-hero {
  padding: 62px 0 34px;
  background: linear-gradient(135deg, #f8f5ee 0%, #eee8dc 100%);
  border-bottom: 1px solid rgba(38, 58, 51, .12);
}

.tree-people-hero .breadcrumb {
  margin-bottom: 28px;
}

.tree-people-hero h1 {
  margin: 8px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 500;
  color: var(--green2);
  letter-spacing: -.025em;
}

.tree-people-hero .large {
  max-width: 860px;
  margin-bottom: 0;
}

.tree-legend-section {
  padding: 20px 0 4px;
  border-bottom: 1px solid rgba(38, 58, 51, .10);
}

.tree-family-legend {
  padding: 8px 0 12px;
  gap: 18px 28px;
}

.tree-swatch {
  display: inline-block;
  width: 30px;
  height: 0;
  border-top: 2px solid currentColor;
}

.tree-swatch.goossens {
  color: #344b42
}

.tree-swatch.horrick {
  color: #a45f50
}

.tree-swatch.thijssen {
  color: #617a70
}

.tree-swatch.sttrouckx {
  color: #8b6d42
}

.tree-section-people {
  padding: 30px 0 64px;
  background: var(--paper);
}

.tree-visual-shell {
  width: min(1460px, calc(100% - 48px));
  margin: auto;
}

.tree-scroll-people {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 28px 28px 18px;
  background: #fbf8f1;
  border: 1px solid rgba(38, 58, 51, .14);
  border-top: 3px solid var(--gold);
  box-shadow: 0 12px 34px rgba(38, 58, 51, .045);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tree-scroll-people:focus {
  outline: 2px solid rgba(154, 112, 64, .35);
  outline-offset: 3px;
}

.tree-scroll-people .genealogy-svg {
  display: block;
  width: 2050px;
  min-width: 2050px;
  height: auto;
  background: transparent;
}

.tree-scroll-people .genealogy-svg text {
  font-family: Arial, Helvetica, sans-serif;
}

.tree-scroll-people .genealogy-svg .name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 600;
}

.tree-scroll-people .genealogy-svg .ancestor-name {
  font-size: 23px;
  font-weight: 700;
}

.tree-scroll-people .genealogy-svg .name.thin {
  font-weight: 400;
}

.tree-scroll-people .genealogy-svg .dates {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  fill: #6d6a63;
}

.tree-scroll-people .genealogy-svg .marriage-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  fill: #6d6a63;
}

.tree-scroll-people .genealogy-svg .marriage-year {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  fill: #8a8175;
}

.tree-note-people {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 16px 20px;
  border-left: 3px solid var(--green);
  background: #e7dfc9;
  color: #5c584f;
  font-size: .88rem;
  line-height: 1.65;
}

.tree-note-people strong {
  color: var(--green2);
}

@media(max-width:820px) {
  .tree-people-hero {
    padding: 42px 0 30px;
  }

  .tree-legend-section {
    padding-top: 14px;
  }

  .tree-visual-shell {
    width: min(100% - 24px, 1460px);
  }

  .tree-scroll-people {
    padding: 18px 14px 12px;
  }
}


/* V41 – HTML/CSS-stamboom met personenindex-look */
.tree-html-page {
  background: var(--paper)
}

.tree-html-hero {
  padding: 62px 0 34px
}

.tree-html-legend-wrap {
  padding: 18px 0 6px;
  border-bottom: 1px solid rgba(38, 58, 51, .1)
}

.tree-html-legend {
  padding: 8px 0 10px
}

.tree-html-section {
  padding: 30px 0 64px;
  background: var(--paper)
}

.tree-html-viewport {
  width: min(1500px, calc(100% - 34px));
  margin: auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin
}

.tree-html-viewport:focus {
  outline: 2px solid rgba(154, 112, 64, .35);
  outline-offset: 3px
}

.tree-html-canvas {
  position: relative;
  width: 2280px;
  height: 980px;
  margin: 0 auto;
  background: #fbf8f1;
  border: 1px solid rgba(38, 58, 51, .14);
  border-top: 3px solid var(--gold);
  box-shadow: 0 12px 34px rgba(38, 58, 51, .045)
}

.ht-person {
  position: absolute;
  width: 190px;
  min-height: 72px;
  padding: 13px 15px 12px;
  background: #fff;
  border: 1px solid rgba(38, 58, 51, .18);
  border-top: 3px solid var(--gold);
  box-shadow: 0 6px 16px rgba(38, 58, 51, .035);
  z-index: 3
}

.ht-person h2 {
  margin: 0;
  color: var(--green2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.1
}

.ht-person p {
  margin: 5px 0 0;
  color: var(--muted);
  font: 400 .72rem Arial, sans-serif;
  line-height: 1.35
}

.ht-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font: 700 .58rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em
}

.ht-person.ancestor {
  background: #fdfaf3
}

.ht-person.focal {
  border-top-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(154, 112, 64, .08), 0 8px 20px rgba(38, 58, 51, .045)
}

.ht-person.child {
  width: 190px;
  min-height: 56px;
  padding-top: 15px;
  text-align: center
}

.ht-person.child h2 {
  font-size: 1.04rem
}

.ht-person.uncertain-person {
  border-style: dashed;
  background: #f7f5ef
}

.ht-person.goossens {
  border-top-color: #344b42
}

.ht-person.horrick {
  border-top-color: #a45f50
}

.ht-person.thijssen {
  border-top-color: #617a70
}

.ht-person.sttrouckx {
  border-top-color: #8b6d42
}

.ht-person.other {
  border-top-color: #8a8175
}

.ht-line {
  position: absolute;
  z-index: 1;
  pointer-events: none
}

.ht-line.goossens {
  background: #344b42
}

.ht-line.horrick {
  background: #a45f50
}

.ht-line.thijssen {
  background: #617a70
}

.ht-line.sttrouckx {
  background: #8b6d42
}

.ht-line.other {
  background: #8a8175
}

.ht-line.uncertain-v {
  position: absolute;
  border-left: 2px dashed #617a70;
  width: 0;
  z-index: 1
}

.ht-line.uncertain-h {
  position: absolute;
  border-top: 2px dashed #617a70;
  height: 0;
  z-index: 1
}

.ht-marriage-label {
  position: absolute;
  z-index: 4;
  padding: 2px 7px;
  background: #fbf8f1;
  color: var(--muted);
  font: 700 .64rem Arial, sans-serif;
  letter-spacing: .05em
}

@media(max-width:820px) {
  .tree-html-hero {
    padding: 42px 0 30px
  }

  .tree-html-viewport {
    width: calc(100% - 20px)
  }
}


/* V42 – responsive HTML-stamboom
   Desktop: automatisch passend binnen de beschikbare breedte.
   Tablet: beperkt verkleinen.
   Telefoon: leesbare minimumgrootte + horizontaal scrollen.
*/
.tree-html-viewport {
  --tree-scale: 1;
  width: min(1500px, calc(100% - 34px));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
}

.tree-html-canvas {
  /* V41 was 2280 × 980. De basisboom is nu compacter. */
  width: 2280px;
  height: 980px;
  transform-origin: top left;
}

/* Kaarten circa 17% kleiner en verfijnder */
.ht-person {
  width: 158px;
  min-height: 60px;
  padding: 10px 12px 9px;
}

.ht-person h2 {
  font-size: 1rem
}

.ht-person p {
  font-size: .66rem;
  margin-top: 4px
}

.ht-kicker {
  font-size: .52rem;
  margin-bottom: 4px
}

.ht-person.child {
  width: 158px;
  min-height: 46px;
  padding-top: 12px;
}

.ht-person.child h2 {
  font-size: .92rem
}

.ht-marriage-label {
  font-size: .58rem
}

/* Op grote desktopvensters: boom visueel passend schalen.
   zoom beïnvloedt ook de layoutbreedte, zodat geen 'lege' 2280px overblijft. */
@supports (zoom:1) {
  @media (min-width:1400px) {
    .tree-html-canvas {
      zoom: .82;
    }

    .tree-html-viewport {
      width: min(1500px, calc(100% - 34px));
      overflow-x: hidden;
    }
  }

  @media (min-width:1100px) and (max-width:1399px) {
    .tree-html-canvas {
      zoom: .70
    }
  }

  @media (min-width:900px) and (max-width:1099px) {
    .tree-html-canvas {
      zoom: .60
    }
  }
}

/* Mobiel/tablet: niet eindeloos verkleinen; horizontaal kunnen schuiven */
@media (max-width:899px) {
  .tree-html-viewport {
    width: calc(100% - 20px);
    overflow-x: scroll;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .tree-html-canvas {
    /* Houd tekst leesbaar. */
    zoom: .68;
  }
}

/* Telefoonmelding alleen tonen waar hij nuttig is */
.tree-mobile-advice {
  display: none;
}

@media (max-width:700px) {
  .tree-mobile-advice {
    display: block;
    margin: 0 auto 14px;
    padding: 12px 14px;
    border-left: 3px solid var(--gold);
    background: #e7dfc9;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
  }
}

/* Zichtbare, maar rustige scrollbar wanneer de browser die toont */
.tree-html-viewport::-webkit-scrollbar {
  height: 10px
}

.tree-html-viewport::-webkit-scrollbar-track {
  background: rgba(38, 58, 51, .06)
}

.tree-html-viewport::-webkit-scrollbar-thumb {
  background: rgba(38, 58, 51, .28);
  border-radius: 999px;
}

.tree-html-viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(38, 58, 51, .42);
}


/* V43 – compactere en verfijnde HTML/CSS-stamboom */
.tree-html-canvas-v43 {
  width: 2000px;
  height: 820px;
}

/* kaarten kleiner en compacter */
.tree-html-canvas-v43 .ht-person {
  width: 142px;
  min-height: 54px;
  padding: 8px 10px 8px;
}

.tree-html-canvas-v43 .ht-person h2 {
  font-size: .92rem;
  line-height: 1.06;
}

.tree-html-canvas-v43 .ht-person p {
  margin-top: 3px;
  font-size: .56rem;
  line-height: 1.28;
}

.tree-html-canvas-v43 .ht-kicker {
  margin-bottom: 3px;
  font-size: .46rem;
  letter-spacing: .11em;
}

.tree-html-canvas-v43 .ht-person.child {
  width: 142px;
  min-height: 40px;
  padding-top: 9px;
}

.tree-html-canvas-v43 .ht-person.child h2 {
  font-size: .84rem;
}

.tree-html-canvas-v43 .ht-marriage-label {
  font-size: .52rem;
  padding: 1px 5px;
}

/* minder verticale witruimte */
.tree-html-section {
  padding-top: 22px;
  padding-bottom: 42px;
}

/* V42 desktop zoom iets sterker zodat hij op iMac compacter oogt */
@supports (zoom:1) {
  @media (min-width:1400px) {
    .tree-html-canvas-v43 {
      zoom: .76
    }
  }

  @media (min-width:1100px) and (max-width:1399px) {
    .tree-html-canvas-v43 {
      zoom: .66
    }
  }

  @media (min-width:900px) and (max-width:1099px) {
    .tree-html-canvas-v43 {
      zoom: .58
    }
  }

  @media (max-width:899px) {
    .tree-html-canvas-v43 {
      zoom: .66
    }
  }
}


/* V37 – sloticoon bij besloten kaart op homepage */
.private-card {
  position: relative;
}

.private-card .lock-icon {
  position: absolute;
  top: 30px;
  right: 32px;
  width: 14px;
  height: 12px;
  border: 2px solid var(--gold);
  border-radius: 2px;
  box-sizing: border-box;
  pointer-events: none;
}

.private-card .lock-icon::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  border: 2px solid var(--gold);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  box-sizing: border-box;
}

@media(max-width:820px) {
  .private-card .lock-icon {
    top: 25px;
    right: 25px
  }
}


/* Centrale topbar – familiewapen */
.brand-crest {
  display: flex;
  align-items: center;
  margin: 0
}

.brand-crest img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  mix-blend-mode: multiply
}

@media (max-width:820px) {
  .brand-crest {
    display: flex;
    margin-bottom: 6px
  }

  .brand-crest img {
    height: 64px;
    max-width: 72px
  }
}

/* ==========================================================
   Centrale topbar – actieve rubriek en naam van het geslacht
   ========================================================== */
.brand-crest {
  gap: 14px;
}

.brand-section-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--green2);
  white-space: nowrap;
}

.topbar nav a.is-active {
  font-weight: 700;
  color: var(--green2);
}

@media (max-width:820px) {
  .brand-section-name {
    font-size: .98rem;
    white-space: normal;
  }
}

/* Uitlijning website: dezelfde buitenlijnen als de topbar.
   Smalle tekst blijft leesbaar, maar begint links op dezelfde lijn. */
.wrap.narrow>p:not(.breadcrumb):not(.section-label),
.wrap.narrow>.large {
  max-width: 820px;
}

/* ==========================================================
   V44 – dropdown voor het kiezen van een geslacht in de topbar
   ========================================================== */
.brand-home {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.lineage-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lineage-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 5px 8px 0;
  border: 0;
  background: transparent;
  color: var(--green2);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.lineage-toggle:hover .brand-section-name,
.lineage-toggle:focus-visible .brand-section-name {
  color: var(--gold);
}

.lineage-toggle:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.lineage-chevron {
  display: inline-block;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: .78rem;
  line-height: 1;
  transition: transform .18s ease;
}

.lineage-switcher.is-open .lineage-chevron {
  transform: rotate(180deg);
}

.lineage-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: -14px;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fbf8f1;
  box-shadow: 0 14px 30px rgba(38, 58, 51, .14);
}

.lineage-menu[hidden] {
  display: none !important;
}

.lineage-menu a {
  display: block;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  color: #4c4e4c;
  text-decoration: none;
  white-space: nowrap;
  font-family: Arial, sans-serif;
  font-size: .82rem;
  line-height: 1.25;
}

.lineage-menu a:hover,
.lineage-menu a:focus-visible {
  background: #f1eadf;
  color: var(--green2);
  outline: none;
}

.lineage-menu a.is-current {
  border-left-color: var(--gold);
  color: var(--green2);
  font-weight: 700;
  background: #f4eee4;
}

@media(max-width:820px) {
  .brand-crest {
    align-items: center;
  }

  .lineage-switcher {
    min-width: 0;
  }

  .lineage-toggle {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .lineage-menu {
    left: 0;
    min-width: 215px;
    max-width: calc(100vw - 46px);
  }
}

/* ==========================================================
   V45 – sfeerbanner boven de centrale topbar
   ========================================================== */
.section-banner {
  position: relative;
  min-height: 300px;
  background-position: center 58%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.section-banner[hidden] {
  display: none !important
}

.section-banner-inner {
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-top: 26px;
  padding-bottom: 22px;
}

.section-banner-home {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.section-banner-crest {
  display: block;
  width: auto;
  height: 84px;
  max-width: 92px;
  object-fit: contain;
  filter: drop-shadow(0 3px 9px rgba(0, 0, 0, .28));
}

.section-banner-copy {
  min-width: 0;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .58);
}

.section-banner-actions {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-banner-icon {
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(20, 26, 24, .28);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .14);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
  cursor: pointer;
}

.section-banner-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-banner-icon:hover,
.banner-search[open] > .section-banner-search {
  background: rgba(154, 112, 64, .78);
  border-color: rgba(255, 255, 255, .9);
  transform: translateY(-2px);
}

.section-banner-icon:focus-visible,
.banner-search > summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.banner-search {
  position: relative;
}

.banner-search > summary {
  list-style: none;
}

.banner-search > summary::-webkit-details-marker {
  display: none;
}

.banner-search-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(390px, calc(100vw - 48px));
  padding: 12px;
  background: rgba(247, 244, 237, .97);
  border: 1px solid rgba(38, 58, 51, .18);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 25;
}

.banner-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.banner-search-form input {
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #c9c0b2;
  background: #fff;
  color: var(--ink);
  font: .9rem Arial, sans-serif;
  outline: none;
}

.banner-search-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(154, 112, 64, .13);
}

.banner-search-form button {
  height: 42px;
  padding: 0 16px;
  border: 0;
  background: var(--green2);
  color: #fff;
  font: 700 .78rem Arial, sans-serif;
  cursor: pointer;
}

.banner-search-form button:hover {
  background: var(--green);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.section-banner-kicker {
  display: block;
  margin-bottom: 4px;
  font-family: Arial, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .9;
}

.section-banner-title {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.05;
}

.section-banner-subtitle {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .96rem;
  line-height: 1.3;
  opacity: .96;
}

/* Met banner blijft de navigatie zelf compact en rustig. */
#site-header.has-section-banner .topbar .brand-home {
  display: none;
}

#site-header.has-section-banner .topbar .brand-crest {
  gap: 0;
}

#site-header.has-section-banner .topbar-inner {
  min-height: 66px;
}

/* Subtiele hover-staat zoals in de mockup. */
.topbar nav a {
  position: relative;
  padding: 25px 13px 22px;
  transition: color .18s ease, background .18s ease;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width .18s ease;
}

.topbar nav a:hover {
  color: var(--green2);
  background: rgba(154, 112, 64, .055);
}

.topbar nav a:hover::after,
.topbar nav a.is-active::after {
  width: 52%;
}

@media(max-width:820px) {

  .section-banner,
  .section-banner-inner {
    min-height: 145px;
  }

  .section-banner-inner {
    align-items: flex-end;
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .section-banner-crest {
    height: 70px;
    max-width: 76px;
  }

  .section-banner-title {
    font-size: 1.65rem;
  }

  .section-banner-subtitle {
    font-size: .86rem;
  }

  .section-banner-actions {
    margin-bottom: 0;
    gap: 8px;
  }

  .section-banner-icon {
    width: 40px;
    height: 40px;
  }

  .section-banner-icon svg {
    width: 20px;
    height: 20px;
  }

  .banner-search-panel {
    right: -48px;
    bottom: calc(100% + 10px);
    width: min(360px, calc(100vw - 30px));
  }

  /* Bestaande mobiele pill-nav behouden; geen extra underline nodig. */
  .topbar nav a {
    padding: 8px 11px;
  }

  .topbar nav a::after {
    display: none;
  }
}

/* =========================================================
   Hoofdindex – panoramische heidebanner
   Afbeelding: /Goossens/afbeeldingen/banner-hoofdindex-heide.png
   ========================================================= */
.home-hero {
  position: relative;
  min-height: 300px;
  padding: 26px 0 22px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(24, 31, 26, .58) 0%,
      rgba(24, 31, 26, .32) 42%,
      rgba(24, 31, 26, .08) 75%
    ),
    url("/Goossens/afbeeldingen/banner-hoofdindex-heide.png") center center / cover no-repeat;
  border-bottom: 1px solid rgba(38, 58, 51, .18);
}

.home-hero .wrap {
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.home-hero .large {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

@media(max-width:720px) {
  .home-hero {
    min-height: 145px;
    padding: 18px 0;
    background-position: 43% center;
  }

  .home-hero h1 {
    margin-bottom: 8px;
    font-size: 1.65rem;
  }

  .home-hero .large {
    max-width: 520px;
    font-size: .86rem;
    line-height: 1.3;
  }
}



/* =========================================================
   Bannerfuncties op de algemene startpagina
   ========================================================= */
.home-hero .wrap {
  width: min(1160px, calc(100% - 48px));
  max-width: none;
}

.home-hero .home-hero-inner {
  position: relative;
  min-height: 252px;
  display: flex;
  align-items: center;
}

.home-hero .home-hero-copy {
  max-width: 760px;
  padding-right: 140px;
}

.home-hero .section-banner-actions {
  position: absolute;
  right: 0;
  bottom: 0;
}

.home-hero .banner-search-panel {
  bottom: calc(100% + 12px);
}

/* =========================================================
   Zoekpagina
   ========================================================= */
.search-page {
  padding: 72px 0 90px;
  background: #f2ede2;
  min-height: 58vh;
}

.search-page .search-wrap {
  width: min(960px, calc(100% - 48px));
  margin: auto;
}

.search-page h1 {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  color: var(--green2);
}

.search-intro {
  max-width: 720px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 28px;
}

.site-search-form input {
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #c9c0b2;
  background: #fff;
  color: var(--ink);
  font: 1rem Arial, sans-serif;
  outline: none;
}

.site-search-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(154, 112, 64, .12);
}

.site-search-form button {
  height: 52px;
  padding: 0 22px;
  border: 0;
  background: var(--green2);
  color: #fff;
  font: 700 .82rem Arial, sans-serif;
  cursor: pointer;
}

.search-status {
  min-height: 28px;
  margin: 0 0 16px;
  color: #706a61;
  font: .86rem Arial, sans-serif;
}

.search-results {
  display: grid;
  gap: 12px;
}

.search-result {
  display: block;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid rgba(38, 58, 51, .13);
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.search-result:hover,
.search-result:focus-visible {
  border-color: rgba(154, 112, 64, .75);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(38, 58, 51, .07);
  outline: none;
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 5px;
  color: var(--gold);
  font: 700 .66rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.search-result h2 {
  margin: 0 0 8px;
  color: var(--green2);
  font-size: 1.45rem;
}

.search-result p {
  margin: 0;
  color: #656158;
  line-height: 1.6;
}

.search-empty {
  padding: 25px;
  background: #fff;
  border: 1px solid rgba(38, 58, 51, .13);
  color: var(--muted);
}

@media(max-width:720px) {
  .home-hero .wrap {
    width: min(100% - 30px, 1160px);
  }

  .home-hero .home-hero-inner {
    min-height: 109px;
  }

  .home-hero .home-hero-copy {
    padding-right: 92px;
  }

  .home-hero .section-banner-actions {
    right: 0;
    bottom: 0;
  }

  .home-hero .banner-search-panel {
    right: -48px;
  }

  .search-page {
    padding: 48px 0 65px;
  }

  .search-page .search-wrap {
    width: min(100% - 30px, 960px);
  }

  .site-search-form {
    grid-template-columns: 1fr;
  }

  .site-search-form button {
    width: 100%;
  }
}
/* ==========================================================
   V46 – algemene bannerfuncties: Home · Gastenboek · Zoeken · Mail
   ========================================================== */

/* Op smalle schermen krijgen de vier ronde functies een eigen rij.
   Zo kunnen ze nooit over titel, wapen of elkaar heen schuiven. */
@media(max-width:560px) {
  .section-banner,
  .section-banner-inner {
    min-height: 190px;
  }

  .section-banner-inner {
    flex-wrap: wrap;
    align-content: flex-end;
    row-gap: 8px;
  }

  .section-banner-copy {
    flex: 1 1 150px;
  }

  .section-banner-subtitle {
    display: none;
  }

  .section-banner-actions {
    flex: 0 0 100%;
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
    gap: 7px;
  }

  .section-banner-icon {
    width: 38px;
    height: 38px;
  }

  .section-banner-icon svg {
    width: 19px;
    height: 19px;
  }

  .banner-search-panel {
    right: 0;
  }
}
