/*! Amānah UFT · linked tree lines v1.1
 * Clear couple → children connectors; does not suppress registry
 * Educational only — not a legal pedigree
 */

#uft-preview.uft-orient-h .uft-zoom-layer,
#uft-preview.uft-orient-h #uft-zoom-layer,
#uft-preview.uft-orient-h .uft-zoom-sizer {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 1rem;
  min-width: max-content;
  padding: 0.85rem 1rem 1.35rem;
}

#uft-preview.uft-orient-h .uft-band,
#uft-preview.uft-orient-h section.uft-band {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto;
  min-width: 12.5rem;
  max-width: 19rem;
  margin: 0 !important;
}

#uft-preview .uft-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5rem 0.3rem;
  position: relative;
}

#uft-preview .uft-couple {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  position: relative;
  padding-bottom: 0.65rem;
}

/* Stem under couple */
#uft-preview .uft-couple::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 0.65rem;
  margin-left: -1px;
  background: rgba(212, 180, 90, 0.6);
}

#uft-preview .uft-kids-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  padding-top: 0.65rem;
}

/* Horizontal bar above kids */
#uft-preview .uft-kids-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: rgba(212, 180, 90, 0.5);
}

#uft-preview .uft-kids-row > .uft-person,
#uft-preview .uft-kids-row > .uft-card-sleek {
  position: relative;
  margin-top: 0.4rem;
}

#uft-preview .uft-kids-row > .uft-person::before,
#uft-preview .uft-kids-row > .uft-card-sleek::before {
  content: "";
  position: absolute;
  top: -0.65rem;
  left: 50%;
  width: 2px;
  height: 0.65rem;
  margin-left: -1px;
  background: rgba(212, 180, 90, 0.55);
}

/* Vertical outline (fallback richness) — keep readable with guide line */
#uft-preview .uft-vtree {
  margin: 0.4rem 0.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(212, 180, 90, 0.35);
}
#uft-preview .uft-vtree ul {
  margin: 0.2rem 0 0.2rem 0.75rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(212, 180, 90, 0.28);
}
#uft-preview .uft-vtree li {
  list-style: none;
  margin: 0.4rem 0;
  position: relative;
}
#uft-preview .uft-vtree li::before {
  content: "";
  position: absolute;
  left: -0.65rem;
  top: 1.1rem;
  width: 0.55rem;
  height: 1px;
  background: rgba(212, 180, 90, 0.4);
}

#uft-preview .uft-avatar {
  display: none !important;
}

/* Registry richness — ensure deep panel visible when present */
#uft-registry-deep {
  display: block !important;
}
#uft-registry-deep.uft-reg-collapsed .uft-deep-grid,
#uft-registry-deep.uft-reg-collapsed .uft-deep-actions,
#uft-registry-deep.uft-reg-collapsed .uft-deep-list-wrap {
  display: block !important;
}
