/* Gospel Tools: Genealogies */
.gen-main{max-width:1400px;margin:0 auto;padding:0 14px 30px}
.gen-bar{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;justify-content:space-between;margin:14px 0 8px}
.gen-secs{display:flex;flex-wrap:wrap;gap:5px}
.gen-secs .g-tab{font-size:14px;padding:3px 9px}
.gen-tools{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.gen-tools .g-tab{min-width:38px}
.gen-find input{font:inherit;font-size:15px;padding:4px 8px;border:1px solid var(--rule);background:#fbf5e4;width:220px}
.gen-wrap{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px}
.gen-view{position:relative;height:min(76vh,820px);border:1px solid var(--rule);background:
  radial-gradient(circle at 50% 40%,#fbf5e4,#efe2c0);box-shadow:inset 0 0 18px rgba(138,106,60,.25);overflow:hidden;touch-action:none;cursor:grab;outline:none}
.gen-view:active{cursor:grabbing}
.gen-view:focus-visible{box-shadow:0 0 0 3px var(--gold)}
.gen-status{position:absolute;inset:40% 0 auto;text-align:center;font-style:italic}
.gen-hint{position:absolute;left:10px;bottom:10px;z-index:2;background:rgba(251,245,228,.92);border:1px solid var(--rule);padding:4px 10px;font-size:14px;font-style:italic;pointer-events:none;transition:opacity .4s}
.gen-hint.gone{opacity:0}
.gen-svg{width:100%;height:100%;display:block;user-select:none;-webkit-user-select:none}
.gen-svg .e{fill:none;stroke:#8a6a3c;stroke-width:2}
.gen-svg .e-desc{stroke-dasharray:9 7}
.gen-svg .e-legal{stroke-dasharray:3 5;stroke-width:2.5}
.gen-svg .e-daughter{stroke:#9b6a7a}
.gen-svg .e-luke{stroke:#4f7a4a}
.gen-svg .e-extra{stroke-dasharray:6 6;stroke-width:2.5}
.gen-svg .e.anc{stroke:#9b2d20;stroke-width:4}
.gen-svg .gn{cursor:pointer}
.gen-svg .box{fill:#f7eed6;stroke:#8a6a3c;stroke-width:1.4}
.gen-svg .gn.luke .box{fill:#eef1df;stroke:#4f7a4a}
.gen-svg .gn.major .box{stroke-width:2.6;fill:#f5e6bd}
.gen-svg .gn:hover .box{fill:#fff8e4}
.gen-svg .gn.anc .box{stroke:#9b2d20;stroke-width:2.5}
.gen-svg .gn.sel .box{stroke:#9b2d20;stroke-width:4;fill:#fff3d6}
.gen-svg .nm{font:bold 14.5px Georgia,"IM Fell English",serif;fill:#2b1a0e}
.gen-svg .sub{font:italic 8.6px Georgia,serif;fill:#5a3d22}
.gen-svg .q{font:4.1px Georgia,serif;fill:#3b2a18}
.gen-svg .medbg{fill:#e9d8ae;stroke:#8a6a3c;stroke-width:1.2}
.gen-svg .maj{font:calc(11.5px / var(--k, 1)) Georgia,serif;fill:#3b2a18;text-anchor:middle;dominant-baseline:middle;
  paint-order:stroke;stroke:#fbf5e4;stroke-width:calc(3px / var(--k, 1));stroke-linejoin:round;pointer-events:none;display:none}
.gen-svg .maj.big{font:bold calc(15px / var(--k, 1)) "IM Fell English SC",Georgia,serif;fill:#3a1d0c;text-anchor:middle;dominant-baseline:middle;
  paint-order:stroke;stroke:#fbf5e4;stroke-width:calc(4px / var(--k, 1));stroke-linejoin:round;pointer-events:none;display:none}
.gen-svg.lod0 .maj{display:block}
.gen-svg.lod0 .nm,.gen-svg.lod0 .d1,.gen-svg.lod0 .d2,.gen-svg.lod1 .d1,.gen-svg.lod1 .d2,.gen-svg.lod2 .d2{display:none}
.gen-svg.lod0 .gn.major .box{fill:#c9a227}
.gen-panel{border:1px solid var(--rule);background:linear-gradient(#f7eed6,#ecdcb4);padding:12px 14px;height:min(76vh,820px);overflow:auto;font-size:15px;box-sizing:border-box}
.gen-pick{font-style:italic;color:var(--ink2)}
.gen-ph{display:flex;gap:12px;align-items:center}
.gen-face{width:76px;height:76px;border-radius:50%;object-fit:cover;border:2px solid var(--rule);flex:none}
.gen-ph h3{font-family:var(--sc);font-weight:normal;font-size:21px;margin:0;color:#3a1d0c}
.gen-rel{margin:2px 0 0;font-style:italic}
.gen-facts{list-style:none;padding:0;margin:10px 0}
.gen-facts li{padding:3px 0;border-bottom:1px dotted var(--rule)}
.gen-facts li.lk{color:#355a31}
.gen-q{margin:10px 0;padding:8px 10px;border-left:3px solid var(--gold);background:rgba(255,250,235,.6);font-style:italic}
.gen-q cite{display:block;font-style:normal;font-size:13.5px;margin-top:4px}
.gen-also,.gen-n{font-size:14.5px}
.gen-credit{font-size:12px;font-style:italic;color:var(--ink2)}
.gen-key{list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px;padding:0;margin:10px 0 0;font-size:14px;color:var(--ink2)}
.gen-key i{display:inline-block;width:34px;height:0;border-top:3px solid #8a6a3c;vertical-align:middle;margin-right:6px}
.gen-key .k-desc{border-top-style:dashed}
.gen-key .k-luke{border-top-color:#4f7a4a}
.gen-key .k-legal{border-top-style:dotted}
.gen-note{font-size:14.5px;font-style:italic;color:var(--ink2);max-width:980px}
@media (max-width: 900px){
  .gen-wrap{grid-template-columns:1fr}
  .gen-view{height:62vh}
  .gen-panel{height:auto;max-height:none}
}
@media (max-width: 520px){
  .gen-find input{width:180px}
  .gen-secs .g-tab{font-size:13px;padding:2px 7px}
}

/* Richer visual redesign */
.gen-svg .sec-lab{font:bold 12px "IM Fell English SC",Georgia,serif;fill:#f7eed6;pointer-events:none;letter-spacing:.04em}
.gen-svg .accent{pointer-events:none}
.gen-svg .spouse{font:italic 11px Georgia,serif;fill:#7a4f5a}
.gen-svg .nm.big{font:bold 16px "IM Fell English SC",Georgia,serif}
.gen-svg .gn.major .box{fill:#f8e7b8;stroke:#6b4a22;stroke-width:2.4;filter:drop-shadow(0 1px 2px rgba(60,40,10,.18))}
.gen-svg .gn.has-med .box{fill:#faf0d4}
.gen-svg .life-bg,.gen-svg .life-fg{pointer-events:none}
.gen-face.lg{width:96px;height:96px}
.gen-face.ph{display:inline-flex;align-items:center;justify-content:center;background:#e9d8ae;color:#5a3d22;font:bold 28px "IM Fell English SC",Georgia,serif;border-radius:50%;border:2px solid var(--rule);width:76px;height:76px;flex:none}
.gen-secbadge{display:inline-block;font-size:11px;font-family:var(--sc);letter-spacing:.05em;color:#f7eed6;padding:1px 8px;border-radius:3px;margin-bottom:4px}
.gen-view{background:
  radial-gradient(ellipse at 30% 20%,rgba(201,162,39,.12),transparent 50%),
  radial-gradient(ellipse at 70% 80%,rgba(47,90,122,.08),transparent 45%),
  radial-gradient(circle at 50% 40%,#fbf5e4,#efe2c0)}
