/* -------------------------
MLM Pyramid Genealogy
-------------------------- */

.gene-tree,
.gene-tree ul{
list-style:none;
margin:0;
padding:0;
}


/* center whole tree */

.gene-tree{
display:flex;
justify-content:center;
margin-top:50px;
}


/* every branch */

.gene-tree li{
display:flex;
flex-direction:column;
align-items:center;
position:relative;
margin:0 18px;
}


/* child rows */

.gene-tree ul{
display:flex;
justify-content:center;
gap:24px;
margin-top:55px;
position:relative;
}


/* vertical line from parent */

.gene-tree ul::before{
content:"";
position:absolute;
top:-35px;
left:50%;
width:2px;
height:35px;
transform:translateX(-50%);
background:#38bdf8;
}


/* horizontal connector bar */

.gene-tree ul::after{
content:"";
position:absolute;
top:-35px;
left:15%;
right:15%;
height:2px;
background:#38bdf8;
}


/* node base */

.gene-node{
display:flex;
align-items:center;
justify-content:center;

padding:10px 16px;
border-radius:16px;

background:
linear-gradient(
135deg,
#38bdf8,
#6366f1
);

color:white;
font-weight:700;

box-shadow:
0 8px 20px rgba(0,0,0,.22);

transition:.2s;
}

.gene-node:hover{
transform:translateY(-3px);
}


/* Sponsor (largest) */

.gene-tree > li > .gene-node{
min-width:120px;
padding:18px 28px;
font-size:18px;
}


/* Level 1 recruits smaller */

.gene-tree > li > ul > li > .gene-node{
min-width:78px;
padding:12px 18px;
font-size:14px;
}


/* Level 2+ smallest */

.gene-tree ul ul .gene-node{
min-width:58px;
padding:8px 12px;
font-size:12px;
border-radius:12px;
}


/* line down into each child */

.gene-tree ul li::before{
content:"";
position:absolute;
top:-35px;
width:2px;
height:35px;
background:#38bdf8;
}


/* responsive */

@media(max-width:900px){

.gene-tree ul{
flex-direction:column;
gap:18px;
}

.gene-tree ul::after{
display:none;
}

}