/* Refined source pedigree: natural curved links, balanced generation spacing.
   No changes to genealogy, verification or accepted-tree semantics. */
@media screen {
 :root[data-pitvu-theme] .profile-pedigree.pedigree-compact:not(.atlas-reading) .tree-node[data-density-generation]{
  border-radius:7px;
  overflow-wrap:normal;
  word-break:normal;
 }
 :root[data-pitvu-theme] .profile-pedigree.pedigree-compact:not(.atlas-reading) .tree-node.is-density-remote{
  padding:5px 7px!important;
  min-height:var(--pedigree-node-height)!important;
  grid-template-columns:minmax(0,1fr) 24px 24px;
  gap:4px;
 }
 :root[data-pitvu-theme] .profile-pedigree.pedigree-compact:not(.atlas-reading) .tree-node.is-density-remote>:is(.pedigree-node-name,strong){
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  grid-column:1!important;
  grid-row:1;
  min-height:0!important;
  max-height:2.65em!important;
  line-height:1.27!important;
  font-size:12px!important;
 }
 :root[data-pitvu-theme] .profile-pedigree.pedigree-compact:not(.atlas-reading) .atlas-connections path{
  stroke:var(--theme-control)!important;
  stroke-width:1.55px!important;
  opacity:.88!important;
  fill:none!important;
  stroke-linecap:round!important;
  vector-effect:non-scaling-stroke;
 }
 :root[data-pitvu-theme] .profile-pedigree.pedigree-compact:not(.atlas-reading) .atlas-connections path.is-highlight{
  stroke:var(--theme-link)!important;
  stroke-width:2.8px!important;
  opacity:1!important;
 }
 :root[data-pitvu-theme] .profile-pedigree.pedigree-compact.atlas-ready:not(.atlas-reading) .atlas-viewport{
  height:clamp(480px,70vh,760px);
 }
}
.profile-pedigree .pedigree-repeat-cue{
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 width:auto!important;
 height:auto!important;
 max-width:unset!important;
 padding:1px 4px!important;
 border-radius:4px;
 font:600 9px/1.25 system-ui,sans-serif!important;
 color:var(--theme-muted,var(--theme-text));
 background:var(--theme-soft,#eee);
 letter-spacing:.02em;
}
.profile-pedigree .pedigree-repeat-help{
 font-size:12px;
 margin:5px 0 10px;
 color:var(--theme-muted,var(--theme-text));
}
.profile-pedigree .pedigree-repeat-help summary{
 cursor:pointer;
 width:max-content;
 max-width:100%;
 text-decoration:underline;
 text-underline-offset:3px;
}
.profile-pedigree .pedigree-repeat-help p{max-width:76ch;margin:5px 0 0}
@media(max-width:700px){
 :root[data-pitvu-theme] .profile-pedigree.pedigree-compact.atlas-ready:not(.atlas-reading) .atlas-viewport{height:550px}
}

/* Repeated ancestors are abundant in deep pedigrees; avoid badge clutter.
   The visible help disclosure explains the marker in near generations. */
@media screen {
 :root[data-pitvu-theme] .profile-pedigree.pedigree-compact:not(.atlas-reading) .tree-node.is-density-remote > .pedigree-repeat-cue {
  display:none!important;
 }
}
