/*
 * Package 113A - Verified Badge + Profile Photo Path Fix
 */

/* Never allow verified badge to appear in or beside nav/header */
body > .profile-verified-inline,
body > .verified-badge,
header .profile-verified-inline,
header .verified-badge,
nav .profile-verified-inline,
nav .verified-badge,
.navbar .profile-verified-inline,
.navbar .verified-badge,
.top-nav .profile-verified-inline,
.top-nav .verified-badge,
.site-header .profile-verified-inline,
.site-header .verified-badge{
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    height:0!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
}

/* Profile image wrapper */
.sticky-profile-card .so113a-photo-wrap,
.so113a-photo-wrap{
    position:relative!important;
    display:inline-block!important;
    margin:0 auto 12px!important;
    line-height:0!important;
}

.so113a-photo-wrap .avatar-xl,
.sticky-profile-card .so113a-photo-wrap .avatar-xl{
    display:block!important;
    margin:0!important;
}

/* Verified badge on profile image: icon only */
.so113a-verified-icon,
.sticky-profile-card .so113a-verified-icon,
.sticky-profile-card .profile-verified-inline,
.sticky-profile-card .verified-badge{
    position:absolute!important;
    top:10px!important;
    left:10px!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:999px!important;
    background:linear-gradient(135deg,#2f80ed,#7b61ff)!important;
    color:#fff!important;
    border:3px solid #fff!important;
    box-shadow:0 12px 30px rgba(47,128,237,.34)!important;
    font-size:0!important;
    line-height:1!important;
    padding:0!important;
    margin:0!important;
    z-index:10!important;
    text-decoration:none!important;
    overflow:hidden!important;
    white-space:nowrap!important;
}

/* Hide any text inside; draw one checkmark icon */
.so113a-verified-icon *,
.sticky-profile-card .profile-verified-inline *,
.sticky-profile-card .verified-badge *{
    display:none!important;
}

.so113a-verified-icon::before,
.sticky-profile-card .profile-verified-inline::before,
.sticky-profile-card .verified-badge::before{
    content:"✓"!important;
    display:grid!important;
    place-items:center!important;
    width:100%!important;
    height:100%!important;
    color:#fff!important;
    font-size:1.32rem!important;
    font-weight:1000!important;
    line-height:1!important;
}

/* Remove leftover heading badge space/text */
.sticky-profile-card h1 .profile-verified-inline,
.sticky-profile-card h1 .verified-badge{
    display:none!important;
}

/* Photo grid path fix does not need CSS, but polish broken-image area */
.photo-grid img{
    object-fit:cover;
    background:#f8f7ff;
}
