/* Family exploration uses normal document flow and readable HTML names. */
.dd-concept-walker:has(.dd-family-explorer){padding-top:92px}
.dd-family-explorer{position:relative!important;top:0!important;height:auto!important;min-height:calc(100svh - 92px)!important;border:0!important}
.dd-family-explorer:before{display:none}
.dd-family-explorer .dd-tree-viewport{position:relative!important;inset:auto!important;margin:0!important;overflow:visible!important;border:0!important;background:none!important}
.dd-concept-walker:has(.dd-family-explorer) .dd-concept-journey{padding:0;margin:0}
.dd-family-explorer .dd-tree-stage-head{background:#050505}
.dd-family-explorer .dd-tree-stage-head:before{content:'';position:fixed;inset:0 0 auto;height:92px;background:#050505;z-index:-1;pointer-events:none}
body:has(.dd-family-explorer):has([data-view-panel="journey"][hidden]) .dd-header{background:#050505}
.fx-content{width:min(1120px,100%);margin:0 auto;padding:22px 32px 64px}
.fx-navigation{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;font-size:12px}
.fx-navigation button{background:none;border:1px solid #47402d;color:#d8c58e;border-radius:6px;padding:10px 16px;min-height:44px;cursor:pointer}
.fx-navigation button:disabled{opacity:.3;cursor:default}
.fx-map-link,.fx-profile{color:#d8c58e;text-decoration:underline;text-underline-offset:4px}
.fx-section{margin:22px 0}
.fx-label{font:11px Inter,sans-serif;letter-spacing:.16em;text-transform:uppercase;font-weight:400;color:#aaa99f;margin:0 0 12px}
.fx-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}
.fx-parent-grid{max-width:720px;margin:auto}
.fx-person{position:relative;display:flex;flex-direction:column;gap:7px;min-width:0;padding:16px 34px 16px 18px;border:1px solid #393528;border-radius:8px;background:#10100e;min-height:102px;transition:background .15s,border-color .15s}
.fx-person:hover,.fx-person:focus-visible{background:#1b1912;border-color:#b8a063;outline:2px solid transparent}
.fx-role{font:10px Inter,sans-serif;color:#b6a36f;line-height:1.5;letter-spacing:.04em}
.fx-name{font:400 25px/1.15 'Instrument Serif',Georgia,serif;color:#e6e3d9;overflow-wrap:anywhere}
.fx-life{font:11px/1.5 Inter,sans-serif;color:#a6a59d;margin:0}
.fx-arrow{position:absolute;right:14px;top:17px;color:#a89669;font-size:13px}
.fx-selected{position:relative;max-width:720px;margin:32px auto;text-align:center;padding:23px;border:1px solid #9e8954;border-radius:10px;background:#17150f}
.fx-selected:before,.fx-selected:after{content:'';position:absolute;left:50%;width:1px;height:24px;background:#9e8954}
.fx-selected:before{bottom:100%}.fx-selected:after{top:100%}
.fx-selected h2{font:400 clamp(30px,3vw,42px)/1.1 'Instrument Serif',Georgia,serif;color:#e8d49d;margin:5px 0 9px;outline:none}
.fx-selected .fx-role{margin:0}
.fx-profile{display:inline-block;margin-top:12px;font-size:12px}
.fx-child-group{padding:18px;margin-bottom:14px;border:1px solid #393528;border-left:3px solid #9e8954;border-radius:8px}
.fx-group-title{font:400 22px/1.3 'Instrument Serif',Georgia,serif;color:#d8c58e;margin:0 0 14px}
.fx-empty{color:#aaa99f;font:12px/1.5 Inter,sans-serif;margin:12px 0}
.fx-parents>.fx-empty{text-align:center}
.fx-other-parents{font:10px/1.5 Inter,sans-serif;color:#aaa99f}
.fx-search-results{position:absolute;top:78px;right:200px;width:min(400px,calc(100vw - 32px));max-height:60svh;overflow:auto;background:#141410;border:1px solid #8b794c;border-radius:8px;padding:12px;box-shadow:0 15px 40px #000}
.fx-search-results[hidden]{display:none}
.fx-search-results button{display:block;width:100%;background:none;border:0;border-top:1px solid #393528;text-align:left;color:#e6e3d9;padding:13px;min-height:44px;cursor:pointer;font:18px 'Instrument Serif',Georgia,serif}
.fx-search-results button:hover,.fx-search-results button:focus{background:#29251b}
.fx-search-count{font:11px Inter,sans-serif;color:#aaa99f;padding:0 12px}
.dd-concept-walker:has(.dd-family-explorer) .dd-index-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.dd-concept-walker:has(.dd-family-explorer) .dd-index-list .fx-person{display:flex;padding:16px 34px 16px 18px}
@media(max-width:700px){.dd-concept-walker:has(.dd-family-explorer){padding-top:148px}.dd-family-explorer .dd-tree-stage-head:before{height:148px}.fx-content{padding:16px 16px 40px}.fx-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}.fx-name{font-size:24px}.fx-selected{margin:30px auto}.fx-search-results{top:96px;right:16px}.fx-child-group{padding:14px}.dd-family-explorer{min-height:calc(100svh - 148px)!important}}
@media(prefers-reduced-motion:reduce){.fx-person{transition:none}}
