:root{--forest:#21493b;--ink:#2d3b34;--paper:#fcfaf5;--beige:#e9deca;--rule:#d5c6aa}*{box-sizing:border-box}
body{margin:0;background:#f6f1e8;color:var(--ink);font-family:Arial,Helvetica,sans-serif} .net-page{max-width:1500px;margin:auto;padding:0 20px 60px}
.net-head{padding:36px 10px 24px}.back{color:var(--forest);font-size:14px}.eyebrow{margin:22px 0 4px;text-transform:uppercase;font-size:11px;letter-spacing:.16em;color:#a2773f;font-weight:bold}
.net-head h1{font-family:Georgia,serif;font-size:clamp(31px,4vw,52px);margin:10px 0 16px;color:var(--forest)}.lead{max-width:870px;font:17px/1.55 Georgia,serif}.source-note{padding:10px 14px;max-width:900px;border-left:4px solid #a88b5e;background:#f2eadc;font:13px/1.5 Arial,sans-serif}
.network{background:#fffdf8;border:1px solid var(--rule);border-radius:15px;overflow:hidden;box-shadow:0 16px 45px #463d2a14}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:14px;background:#f7f2e8;border-bottom:1px solid var(--rule)}.toolbar-title{margin-right:auto;min-width:190px}.toolbar-title h2{font:24px Georgia,serif;margin:0 0 5px;color:var(--forest)}.toolbar-title p{font-size:12px;color:#685f54;margin:0}
.toolbar button,.search-label input{height:39px;padding:8px 11px;background:#fff;border:1px solid #c4b69d;border-radius:7px;font:13px Arial,sans-serif;color:var(--forest)}.toolbar button{cursor:pointer;font-weight:bold}.toolbar button:hover,.toolbar button:focus-visible{background:#e7efe8}.toolbar button[aria-pressed="false"]{opacity:.65}.search-label{font-size:12px;font-weight:bold;color:var(--forest);display:flex;gap:6px;align-items:center}.search-label input{width:180px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;height:660px}.viewport{position:relative;overflow:hidden;touch-action:none;cursor:grab;min-width:0;background:#f6f2e9;background-image:radial-gradient(#d9ccba 1px,transparent 1px);background-size:22px 22px}.viewport:active{cursor:grabbing}.viewport svg{display:block;width:100%;height:100%;user-select:none}.hint{position:absolute;bottom:5px;left:9px;right:9px;border-radius:5px;font-size:11px;color:#6f6659;background:#fffcf6e8;padding:8px 11px;pointer-events:none;width:max-content;max-width:95%}
.details{padding:24px 20px;border-left:1px solid var(--rule);background:#fffdf8;overflow:auto;font-size:14px;line-height:1.55}.details h3{margin:8px 0 8px;color:var(--forest);font:26px Georgia,serif}.details .family{font-size:11px;text-transform:uppercase;letter-spacing:.10em;color:#a47736;font-weight:bold}.details .route-count{margin:16px 0;padding:12px;background:#f3efe6;border-left:3px solid #a67836}.details ul{margin:5px 0 16px;padding-left:17px}.details a{font-weight:bold;color:#2b6547;text-decoration:underline;text-underline-offset:3px}.details .row{display:flex;align-items:center;gap:8px;margin-bottom:9px}
.legend{display:flex;flex-wrap:wrap;gap:12px 24px;padding:14px 20px;font-size:12px;border-top:1px solid var(--rule);color:#5b5e55}.legend span{display:flex;align-items:center;gap:7px}.swatch{width:23px;border-top:4px solid}.B{border-color:#428b62}.W{border-color:#4478ac}.A{border-color:#936ab4}.H{border-color:#c45051}
.edge{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;opacity:.33;pointer-events:stroke}.edge[data-status="B"]{stroke:#428b62}.edge[data-status="W"]{stroke:#4478ac}.edge[data-status="A"]{stroke:#936ab4}.edge[data-status="H"]{stroke:#c45051}.edge.active{stroke-width:5;opacity:1;filter:drop-shadow(0 1px 1px #fff)}.edge.muted{opacity:.12}
.person{cursor:pointer;outline:none}.person rect{fill:#fafbf7;stroke:#9dad9c;stroke-width:1.4;filter:drop-shadow(0px 2px 3px #4b403333)}.person.charlemagne rect{fill:#fff3da;stroke:#b18a51}.person.richard rect{fill:#e8f1e8;stroke:#2c7653}.person .stripe{fill:#7e9884}.person.charlemagne .stripe{fill:#bc9355}.person.richard .stripe{fill:#418364}.person .label{font:15px Georgia,serif;fill:#244335}.person .sub{font:10px Arial,sans-serif;fill:#7b6c52;letter-spacing:.025em}.person.highlight rect,.person:focus-visible rect{stroke:#cf7528;stroke-width:4}.person.muted{opacity:.35}.person.match rect{stroke:#be6227;stroke-width:3}.person text{pointer-events:none}
.below{padding:24px 12px 10px;max-width:950px;font-size:14px;line-height:1.68}.below h2{font:27px Georgia,serif;color:var(--forest)}.below code{font-size:12px}
@media(max-width:900px){.workspace{grid-template-columns:1fr;height:auto}.viewport{height:560px}.details{border-left:0;border-top:1px solid var(--rule);max-height:360px}.toolbar-title{width:100%}}
@media(max-width:600px){.net-page{padding:0 9px 30px}.viewport{height:480px}.toolbar button{flex:1}.toolbar .search-label{width:100%}.search-label input{flex:1;min-width:100px}.hint{font-size:10px}.details{padding:14px}.net-head{padding:25px 8px 10px}}

.toolbar-title p.audit-summary{font-size:11px;line-height:1.45;max-width:750px;margin:5px 0 0;color:#71644e}

/* Separate controls for optional route explorer, no changes to original viewer. */
.filter-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:14px 16px;background:#f0ebe1;border-bottom:1px solid var(--rule)}
.filter-bar .filter-field{display:flex;flex-direction:column;gap:5px;flex:1 1 220px;min-width:180px}
.filter-bar label{font:bold 12px Arial,sans-serif;color:#21493b}
.filter-bar input,.filter-bar select{min-height:39px;padding:7px 10px;border:1px solid #b4a790;border-radius:7px;color:#21493b;background:#fff;font:14px Arial,sans-serif;width:100%}
.filter-bar button{height:39px;border:1px solid #3e7655;background:#2c6448;color:#fff;font-weight:bold;border-radius:7px;padding:0 18px;cursor:pointer}
.filter-bar button:hover{background:#21493b}
.viewer-note{margin:0;padding:9px 18px;background:#fbf5e8;color:#60543e;font-size:12px;line-height:1.5;border-bottom:1px solid var(--rule)}
.message{font-size:13px;margin:0;padding:8px 16px;min-height:34px;color:#3c5c45}
.message.error{background:#fff0e9;color:#912e20}
.message.ok{background:#eff8ee;color:#275f36}
.details .small{font-size:12px;color:#665d4d;line-height:1.5}
.details .meta{font-size:12px;color:#665d4d}
.toolbar{align-items:center}
.toolbar-title{max-width:450px}
@media(max-width:900px){.filter-bar .filter-field{flex:1 1 180px}}
@media(max-width:600px){.filter-bar{gap:10px}.filter-bar .filter-field{flex:1 1 100%}.filter-bar button{width:100%}}

/* Navigator exclusively for the all-persons mode. Keeps the two other modes intact. */
.group-browser[hidden]{display:none!important}
.group-browser{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;padding:12px 18px;background:#e7efe7;border-bottom:1px solid #bcccb8;color:#21493b}
.group-browser-info{flex:1 1 360px;min-width:220px;font-size:13px;line-height:1.4}
.group-browser-info strong{font-size:14px}
.group-browser-info p{margin:4px 0 0;color:#485c4d;font-size:12px}
.group-browser label{font-size:12px;font-weight:bold}
.group-browser select{flex:1 1 300px;min-width:220px;max-width:610px;min-height:41px;padding:7px 10px;border:1px solid #8fa38d;border-radius:7px;background:white;color:#21493b;font-size:13px}
@media(max-width:600px){.group-browser{gap:7px}.group-browser-info{flex:1 1 100%}.group-browser select{width:100%;max-width:none}}

/* Third mode: conventional pedigree. Original network styles remain intact. */
.pedigree-browser[hidden],.register-panel[hidden]{display:none!important}
.pedigree-browser{background:#eef2eb;border-bottom:1px solid #c7d2c4;color:#21493b}
.pedigree-top{display:flex;flex-wrap:wrap;align-items:end;gap:12px 20px;padding:14px 18px}
.pedigree-top>div{flex:1 1 280px}.pedigree-top strong{font:21px Georgia,serif}.pedigree-top p{font-size:12px;margin:5px 0;color:#5a6357}
.pedigree-top label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:bold}
.pedigree-top select,.pedigree-top button{font:13px Arial,sans-serif;background:#fff;color:#21493b;border:1px solid #9eae9e;border-radius:6px;min-height:39px;padding:7px 10px}
.pedigree-top button{font-weight:bold;cursor:pointer}
.pedigree-explain{margin:0;padding:8px 18px 12px;font-size:12px;line-height:1.5;color:#536054;background:#f4f7f0}
.register-panel{padding:12px 18px 18px;background:#fffdf7;border-top:1px solid #cbd5c8}
.register-panel label{display:block;font-weight:bold;font-size:13px;margin:3px 0 8px}
.register-panel input{width:100%;max-width:460px;min-height:40px;padding:7px 11px;border:1px solid #a6b4a4;border-radius:6px;font-size:14px}
.register-count{font-size:12px;color:#657168;margin:8px 0 10px}
.register-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:7px;max-height:280px;overflow:auto}
.register-person{display:flex;flex-direction:column;text-align:left;gap:3px;min-height:53px;padding:8px 11px;background:#f6f5ee;border:1px solid #d6d8c9;border-radius:6px;color:#21493b;cursor:pointer}
.register-person:hover{background:#e5f0e6;border-color:#8ba68e}.register-person strong{font-size:12px}.register-person span{font-size:10px;color:#676e66}
.pedigree-edge{stroke-width:2.4;fill:none;stroke-linejoin:round;stroke-linecap:round;opacity:.95;pointer-events:stroke}
.pedigree-edge[data-status="B"]{stroke:#428b62}.pedigree-edge[data-status="W"]{stroke:#4478ac}
.pedigree-edge[data-status="A"]{stroke:#936ab4}.pedigree-edge[data-status="H"]{stroke:#c45051}
.pedigree-node rect{fill:#fbfdf9;stroke:#95a997;stroke-width:1.6}
.pedigree-node.pedigree-root rect{fill:#e8f3e6;stroke:#387454;stroke-width:2.8}
.pedigree-node.pedigree-repeat rect{stroke-dasharray:5 2}
.pedigree-node .repeat-symbol{font:bold 20px Arial,sans-serif;fill:#986f40}
.pedigree-new-root{display:block;margin:12px 0;border:1px solid #719b79;border-radius:6px;background:#e7f3e9;color:#22543d;padding:10px;cursor:pointer;font-weight:bold}
.toolbar button:disabled{opacity:.38;cursor:not-allowed}
@media(max-width:600px){.pedigree-top label{flex:1}.pedigree-top button{flex:1}.register-list{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}}
.filter-bar .filter-field[hidden]{display:none!important}

/* Tijdnavigatie: expliciete pijlknoppen buiten de persoonskaart. */
.pedigree-nav-arrow{cursor:pointer;outline:none}
.pedigree-nav-arrow circle{fill:#235f43;stroke:#fffef8;stroke-width:2.8;filter:drop-shadow(0 2px 3px #293b3355)}
.pedigree-nav-arrow .pedigree-arrow-glyph{text-anchor:middle;font:24px Arial,Helvetica,sans-serif;fill:#fff;pointer-events:none;font-weight:700}
.pedigree-nav-arrow:hover circle,.pedigree-nav-arrow:focus-visible circle{fill:#be6727;stroke:#f4c28d;stroke-width:3.5}
.pedigree-nav-arrow.is-disabled{cursor:not-allowed;opacity:.3}
.pedigree-nav-arrow.is-disabled circle{fill:#667e6d}
.pedigree-child-choices{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.pedigree-child-choices button{padding:10px;border:1px solid #a1b7a6;border-radius:6px;background:#f2f7f1;text-align:left;color:#21563d;cursor:pointer;font-weight:bold}
.pedigree-child-choices button:hover{background:#e5f1e5}

/* Exact route audit, separate from the pedigree navigation and viewer modes. */
.route-audit[hidden]{display:none!important}
.route-audit{background:#f5f8f3;border-bottom:1px solid #c2d1bd;padding:12px 17px;color:#244a37}
.route-audit strong{font-size:14px}.route-audit p{margin:5px 0 10px;font-size:12px;line-height:1.45;color:#52644f}
.route-audit-list{display:flex;gap:7px;flex-wrap:wrap;max-height:178px;overflow:auto}
.route-audit-choice{background:#fff;border:1px solid #a2b59d;border-radius:6px;font-size:12px;font-weight:bold;color:#27523a;padding:8px 9px;cursor:pointer}
.route-audit-choice[aria-pressed="true"]{background:#dbeee0;border-color:#356c49;box-shadow:inset 0 0 0 1px #356c49}
.route-audit-choice:hover,.route-audit-choice:focus-visible{outline:2px solid #c7a36a;outline-offset:1px}

/* Publieke, zelfstandige weergave: maximale ruimte op desktop en iPad. */
html,body.public-network{min-height:100%;}
body.public-network{margin:0;background:#f6f1e8}
.public-network .net-page{max-width:none;margin:0;padding:0 10px 10px;min-height:100dvh;display:flex;flex-direction:column}
.public-network .compact-head{display:flex;gap:17px;align-items:baseline;flex-wrap:wrap;padding:8px 8px 7px;flex:none}
.public-network .compact-head h1{font:500 clamp(20px,2.1vw,29px)/1.15 Georgia,serif;margin:0;color:#21493b}
.public-network .compact-head a{display:inline-block;padding:6px 2px;font-weight:600;text-decoration:none}
.public-network .network{border-radius:9px;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.public-network .filter-bar{flex:none;padding:9px 12px;gap:8px}
.public-network .filter-bar .filter-field{flex:1 1 180px;min-width:160px}
.public-network .filter-bar input,.public-network .filter-bar select,.public-network .filter-bar button{min-height:34px;height:36px}
.public-network .toolbar{flex:none;padding:7px 10px;gap:5px}
.public-network .toolbar-title h2{font-size:19px}
.public-network .toolbar-title p{font-size:11px}
.public-network .toolbar button{height:35px;padding:7px 9px}
.public-network .message{flex:none;padding:5px 12px;min-height:27px}
.public-network .workspace{flex:1;min-height:420px;height:auto;grid-template-columns:minmax(0,1fr) minmax(210px,265px)}
.public-network .viewport{min-height:420px;height:100%}
.public-network .details{padding:14px;max-height:none}
.public-network .details h3{font-size:22px}
.public-network .legend{flex:none;padding:8px 13px}
.public-network .route-audit{flex:none;padding:7px 12px}
.public-network .route-audit-list{max-height:95px}
.public-network .pedigree-top{padding:7px 12px;gap:8px}
.public-network .pedigree-explain{padding:4px 12px 6px}
@media(max-width:900px){.public-network .workspace{grid-template-columns:minmax(0,1fr) 225px;height:auto}.public-network .viewport{height:auto}.public-network .details{border-top:0;border-left:1px solid var(--rule);max-height:none}}
@media(max-width:650px){.public-network .net-page{padding:0 5px 6px}.public-network .filter-bar .filter-field{flex:1 1 100%}.public-network .workspace{display:flex;flex-direction:column;min-height:490px}.public-network .viewport{min-height:360px;flex:1;height:50dvh}.public-network .details{max-height:190px;flex:none;border-top:1px solid var(--rule);border-left:0}.public-network .toolbar-title{width:100%}.public-network .compact-head h1{font-size:20px}}
