/* /assets/css/front-left-rail-v21.css
   WebNigerians reusable front-page left rail V21.2 — shared Event/Home
*/

.wnProfileOuter{
    width:min(1600px,calc(100% - 28px));
    margin:0 auto;
    padding:18px 0 50px;
    display:grid;
    grid-template-columns:245px minmax(0,1fr);
    gap:18px;
    align-items:start;
}

.wnProfileLeft{
    position:sticky;
    top:82px;
    align-self:start;
}

.wnProfileContent{
    min-width:0;
}

.wnProfileContent .liShell{
    max-width:none!important;
    width:100%;
    margin:0!important;
    padding:0!important;
}

.wnProfileContent .liGrid{
    grid-template-columns:minmax(0,1fr) 268px!important;
    gap:16px!important;
}

.wnflStack{
    display:grid;
    gap:14px;
}

.wnflCard{
    overflow:hidden;
    background:#fff;
    border:1px solid #d9e5f2;
    border-radius:18px;
    box-shadow:0 9px 28px rgba(11,40,77,.05);
}

.wnflHead{
    min-height:56px;
    padding:15px 16px;
    border-bottom:1px solid #e4edf6;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.wnflHead strong{
    color:#071d3d;
    font-size:14px;
    font-weight:900;
}

.wnflBadge{
    display:inline-flex;
    align-items:center;
    min-height:27px;
    padding:0 9px;
    border-radius:999px;
    border:1px solid #ccd9e8;
    background:#f5f8fc;
    color:#5a6c82;
    font-size:10px;
    font-weight:900;
    white-space:nowrap;
}

.wnflBadge.blue{
    color:#0867cf;
    border-color:#c7ddf6;
    background:#edf5ff;
}

.wnflBody{
    padding:16px;
}

.wnflIdentity{
    display:flex;
    align-items:center;
    gap:11px;
}

.wnflAvatar{
    width:54px;
    height:54px;
    flex:0 0 54px;
    position:relative;
    overflow:hidden;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#076bd5,#0ba5a8);
    color:#fff;
    font-size:15px;
    font-weight:950;
    box-shadow:0 0 0 3px #fff,0 5px 16px rgba(5,75,157,.16);
}

.wnflAvatar img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.wnflName{
    color:#071d3d;
    font-size:13.5px;
    line-height:1.25;
    font-weight:950;
}

.wnflHandle,
.wnflMuted{
    color:#6b7d92;
    font-size:10.5px;
    line-height:1.45;
    font-weight:730;
}

.wnflHeadline{
    margin-top:13px;
    color:#485d75;
    font-size:10.5px;
    line-height:1.55;
    font-weight:730;
}

.wnflStats{
    margin-top:14px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
}

.wnflStat{
    min-width:0;
    padding:10px;
    border:1px solid #e0e9f3;
    border-radius:12px;
    background:#f8fbff;
}

.wnflStat b{
    display:block;
    color:#071d3d;
    font-size:16px;
    line-height:1;
    font-weight:950;
}

.wnflStat span{
    display:block;
    margin-top:5px;
    color:#748398;
    font-size:8.5px;
    line-height:1.25;
    font-weight:820;
}

.wnflProfileLink{
    display:inline-flex;
    margin-top:12px;
    color:#0867cf;
    text-decoration:none;
    font-size:10px;
    font-weight:900;
}

.wnflProfileLink:hover{text-decoration:underline}

.wnflNav{
    padding:8px;
}

.wnflNav a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:9px 10px;
    border-radius:12px;
    color:#102746;
    text-decoration:none;
    transition:.15s ease;
}

.wnflNav a:hover{
    color:#0666c8;
    background:#f3f8ff;
}

.wnflNav a.active{
    color:#0867cf;
    background:#eaf4ff;
}

.wnflNav strong{
    display:block;
    font-size:11.5px;
    line-height:1.2;
    font-weight:900;
}

.wnflNav small{
    display:block;
    margin-top:3px;
    color:#78889c;
    font-size:8.5px;
    line-height:1.2;
    font-weight:700;
}

.wnflArrow{
    color:#8492a4;
    font-size:16px;
    line-height:1;
}

.wnflContextLinks{
    display:grid;
    gap:4px;
    padding:8px;
}

.wnflContextLinks a{
    display:block;
    padding:10px;
    border-radius:11px;
    text-decoration:none;
    transition:.15s ease;
}

.wnflContextLinks a:hover{
    background:#f3f8ff;
}

.wnflContextLinks b{
    display:block;
    color:#0c2447;
    font-size:10.5px;
    line-height:1.3;
    font-weight:900;
}

.wnflContextLinks span{
    display:block;
    margin-top:3px;
    color:#7a899b;
    font-size:8.5px;
    line-height:1.45;
}

.wnflGuestTitle{
    color:#071d3d;
    font-size:14px;
    line-height:1.35;
    font-weight:950;
}

.wnflGuestActions{
    display:grid;
    gap:8px;
    margin-top:14px;
}

.wnflAction{
    min-height:38px;
    padding:0 13px;
    border:1px solid #d3dfec;
    border-radius:12px;
    background:#fff;
    color:#17324f;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:10.5px;
    font-weight:900;
}

.wnflAction.primary{
    color:#fff;
    border-color:#086bd8;
    background:#086bd8;
}

.wnflMobileNav{
    display:none;
}

/* Preserve profile content priority before hiding the left rail. */
@media(max-width:1320px){
    .wnProfileOuter{
        grid-template-columns:220px minmax(0,1fr);
        gap:15px;
    }

    .wnProfileContent .liGrid{
        grid-template-columns:minmax(0,1fr) 240px!important;
    }
}

/* At this width, keep the left navigation and let the profile right rail go. */
@media(max-width:1160px){
    .wnProfileContent .liGrid{
        grid-template-columns:minmax(0,1fr)!important;
    }

    .wnProfileContent .liGrid > aside{
        display:none;
    }
}

/* Mobile/tablet uses compact shortcuts instead of a long rail. */
@media(max-width:920px){
    .wnProfileOuter{
        width:min(100% - 20px,1050px);
        display:block;
        padding-top:12px;
    }

    .wnProfileLeft{
        display:none;
    }

    .wnflMobileNav{
        display:flex;
        gap:8px;
        overflow-x:auto;
        padding:0 0 12px;
        scrollbar-width:none;
    }

    .wnflMobileNav::-webkit-scrollbar{display:none}

    .wnflMobileNav a{
        flex:0 0 auto;
        min-height:38px;
        padding:0 13px;
        border:1px solid #d7e3ef;
        border-radius:999px;
        background:#fff;
        color:#51647a;
        text-decoration:none;
        display:inline-flex;
        align-items:center;
        font-size:10.5px;
        font-weight:900;
        box-shadow:0 4px 14px rgba(15,42,74,.035);
    }

    .wnflMobileNav a.active{
        color:#fff;
        border-color:#086bd8;
        background:#086bd8;
    }
}

@media(max-width:560px){
    .wnProfileOuter{
        width:min(100% - 12px,760px);
        padding-bottom:28px;
    }
}
