.path-feature{background:#f5f1e9;border:1px solid #d8cfc4;border-radius:18px;padding:24px;margin-bottom:30px}.path-heading h2{font:700 32px Georgia,serif;margin:8px 0}.path-heading p{max-width:760px}.path-controls{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.path-controls label{flex:1 1 210px;font-weight:600}.path-controls label[hidden]{display:none}.path-controls input,.path-controls select{box-sizing:border-box;width:100%;display:block;min-height:48px;padding:10px;margin-top:7px;border:1px solid #9a8d7c;border-radius:7px;background:white;font:inherit}.path-controls button{min-height:48px}.path-canvas{overflow:auto;padding:18px 4px}.path-branches,.path-branches ul,.path-chain{list-style:none;padding:0;margin:0}.path-branches ul{border-left:2px solid #b6a68d;margin:18px 0 18px 22px;padding-left:22px}.path-branches li{margin:12px 0}.path-person{display:flex;gap:12px;align-items:center;width:280px;max-width:100%;box-sizing:border-box;padding:14px;background:white;border:1px solid #b7a992;border-radius:10px;text-decoration:none;color:#29231d;box-shadow:0 2px 6px #00000009}.path-person:hover,.path-person:focus-visible{border-color:#5a462b;outline:2px solid #9b805f}.path-person img,.path-initials{width:52px;height:62px;object-fit:cover;flex-shrink:0;border-radius:5px}.path-initials{display:grid;place-items:center;background:#eae1d4;font-weight:bold}.path-person small{display:block;margin-top:5px}.path-status{color:#66513b;font-size:12px}.path-edge{color:#6b543a;font-size:14px;display:block;padding:7px 0}.path-edge small{display:block;font-size:11px;color:#776d60;margin-top:3px}.path-edge span{display:block;font-size:25px}.path-stop{font-size:13px;color:#776d60;margin:10px}.path-branches summary{cursor:pointer;padding:12px 0;min-height:24px;font-size:14px}.path-chain{display:flex;flex-direction:column;align-items:center}.path-chain li{text-align:center}.path-unconnected{display:flex;gap:20px;flex-wrap:wrap}#path-message{margin-top:14px;color:#695331}.profile-relation-status{display:block;color:#6b543a;font-size:13px;margin:4px 0}.video-launch{display:grid;place-items:center;position:relative;width:min(100%,960px);background:#111;border:0;border-radius:10px;overflow:hidden;cursor:pointer;padding:0}.video-launch img{display:block;width:100%;max-height:65vh;object-fit:contain}.video-launch span{position:absolute;color:#fff;background:#372b20e8;padding:16px 24px;border-radius:8px;font-size:21px}.video-launch:focus-visible{outline:4px solid #ad864e}@media(max-width:600px){.path-feature{padding:16px}.path-controls{display:block}.path-controls label{display:block;margin-bottom:12px}.path-controls button{width:100%}.path-heading h2{font-size:27px}.path-branches ul{margin-left:10px;padding-left:12px}.path-person{width:260px}.path-canvas{max-width:100%}}

.video-launch{min-height:240px}
.path-status,.path-edge small,.path-stop,.profile-relation-status{font-size:14px}.path-person strong{overflow-wrap:anywhere}.path-branches ul{margin-left:12px;padding-left:12px}@media(max-width:600px){.path-branches ul{margin-left:5px;padding-left:6px}.path-person{width:100%;min-width:180px}.path-edge{overflow-wrap:anywhere}.path-canvas{padding:12px 0}.path-controls input,.path-controls select{font-size:16px}}
.generation-viewport{width:100%;overflow-x:auto;overflow-y:visible;border:1px solid #d8cfc4;border-radius:12px;background:#fff;overscroll-behavior-x:contain;padding:20px 0}.generation-chart{position:relative;min-width:100%;padding:0 12px}.generation-lines{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;overflow:visible}.generation-lines path{fill:none;stroke:#765b47;stroke-width:2.5}.generation-lines .connection-uncertain{stroke-dasharray:7 5}.generation-section{position:relative;margin:0 0 65px}.generation-section:last-child{margin-bottom:0}.generation-section h3{text-align:center;margin:0 0 20px;font:700 20px Georgia,serif;background:white;position:relative;z-index:1}.generation-row{display:flex;justify-content:center;align-items:stretch;gap:24px}.generation-person{flex:0 0 280px;min-width:0;position:relative;z-index:1;display:flex;flex-direction:column;align-items:stretch}.generation-person .path-person{width:280px;max-width:none;min-height:185px;background:#fff}.generation-person .path-person small{font-size:14px}.generation-evidence{font-size:14px;background:#fff;padding:5px 8px;max-width:280px;margin:8px 0;overflow-wrap:anywhere}.generation-evidence summary{cursor:pointer;min-height:32px}.generation-evidence p{margin:8px 0}.generation-toggle{min-height:44px;border:1px solid #9a8d7c;border-radius:7px;background:#f5f1e9;color:#29231d;margin-top:auto;padding:8px;font-size:14px}.generation-person .path-stop{background:white;padding:8px;margin:8px 0;font-size:14px}@media(max-width:600px){.generation-viewport{padding-top:16px}.generation-section{margin-bottom:55px}.generation-person .path-person{width:280px}.generation-section h3{font-size:18px}}

/* Keep controls visible throughout the chart, below the shared site header. */
.tree-navigation{position:sticky;top:var(--tree-navigation-top,90px);z-index:15;background:#f5f1e9;border:1px solid #d8cfc4;border-radius:10px;padding:8px;box-shadow:0 3px 8px #00000012}
/* Keep wide chart inside its own scroll surface; stacked view reveals every card. */
.path-feature,.path-canvas{min-width:0;max-width:100%;box-sizing:border-box}.path-canvas{overflow:visible}.generation-viewport{box-sizing:border-box;max-width:100%;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}.tree-navigation{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.tree-navigation button{min-height:48px;padding:10px 16px;border:1px solid #9a8d7c;border-radius:8px;background:white;color:#29231d;font:inherit}.tree-stacked .generation-chart{width:100%!important;min-width:0;box-sizing:border-box}.tree-stacked .generation-row{flex-wrap:wrap;justify-content:flex-start}.tree-stacked .generation-lines{display:none}.tree-stacked .generation-person{flex:1 1 260px;max-width:100%}.tree-stacked .path-person{width:100%;max-width:100%}.tree-stacked .generation-evidence{max-width:none}@media(max-width:600px){.tree-navigation button{flex:1 1 130px}.tree-stacked .generation-row{display:block}.tree-stacked .generation-person{margin-bottom:20px}.generation-viewport:focus-visible{outline:3px solid #765b47}}

/* Wrapped family groups keep every name within the page. */
.family-group{background:#f8f5ef;border:1px solid #d8cfc4;border-radius:12px;padding:12px;margin:12px 0}.family-group-label{font-size:17px;font-weight:650;margin:4px 0 14px}.family-units{display:flex;flex-wrap:wrap;gap:14px;align-items:stretch}.family-unit{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 360px;max-width:100%;padding:10px;background:#eee8de;border-radius:9px}.family-unit .generation-person{flex:1 1 185px;min-width:0;margin:0;max-width:100%}.family-unit .path-person{width:100%;max-width:100%;min-height:160px;padding:10px;gap:8px;align-items:flex-start}.family-unit .path-person strong{font-size:18px;line-height:1.25}.family-unit .path-person small{font-size:15px;line-height:1.3}.family-unit .path-person img,.family-unit .path-initials{width:34px;height:42px}.family-unit .path-status{font-size:13px!important}.generation-section{margin-bottom:28px}.generation-evidence{margin:5px 0;padding:3px;font-size:14px}.partner-label{margin:0 0 5px;font-size:14px;font-weight:600}.branch-buttons,.book-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}[data-book-branch].active{background:#403226;color:#fff;border:2px solid #403226;box-shadow:0 0 0 3px #cfbea5}.generation-viewport{overflow-x:hidden;padding:12px 0}.generation-chart{box-sizing:border-box;min-width:0!important}.tree-navigation{position:static}.tree-navigation a{padding:12px}.path-canvas{overflow:visible}.generation-toggle{font-size:16px}@media(max-width:600px){.family-unit{flex-basis:100%;padding:7px;gap:7px}.family-unit .generation-person{flex-basis:145px}.family-unit .path-person{display:block;min-height:200px}.family-unit .path-person img,.family-unit .path-initials{display:none}.path-feature{padding:12px}.generation-chart{padding:0 6px}.family-group{padding:8px}.family-group-label{font-size:16px}}

.tree-all-profiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px;margin:16px 0}.tree-all-profiles .generation-person{min-width:0;max-width:100%}.path-canvas details.panel>summary{cursor:pointer;padding:8px 0}.tree-all-profiles .path-person{width:100%;max-width:100%}

.overview-person.tree-spouse,.path-person.tree-spouse{background:#e5d1b4;border-color:#ae916b}.overview-person.tree-spouse:hover,.overview-person.tree-spouse:focus-visible,.path-person.tree-spouse:hover,.path-person.tree-spouse:focus-visible{background:#dcc29f;border-color:#79591e}.tree-color-key{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.tree-color-key i{display:inline-block;width:22px;height:18px;border:1px solid #ae916b;border-radius:4px}.blood-swatch{background:#fff}.spouse-swatch{background:#e5d1b4}

/* Sources follow the complete comparison instead of interrupting its names. */
.path-sources{max-width:760px;margin:24px auto;padding:12px 16px;border:1px solid #d8cfc4;border-radius:10px;background:#fff;overflow-wrap:anywhere}.path-sources>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}.path-sources li{margin:16px 0}.path-sources p{margin:6px 0}.path-chain .path-edge>span[aria-hidden]{display:block;margin-top:8px}
