.eab-box{
    margin:36px 0;
    padding:24px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    box-sizing:border-box;
}
.eab-person{
    display:flex;
    gap:18px;
    align-items:flex-start;
}
.eab-person+.eab-person{
    margin-top:24px;
    padding-top:24px;
    border-top:1px solid #e5e7eb;
}
.eab-avatar{
    width:82px;
    height:82px;
    min-width:82px;
    border-radius:50%;
    object-fit:cover;
    object-position:center;
    display:block;
    border:2px solid #f1f5f9;
    box-sizing:border-box;
}
.eab-avatar-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f1f5f9;
    color:#334155;
    font-size:28px;
    font-weight:700;
}
.eab-info{
    min-width:0;
    flex:1;
}
.eab-label{
    font-size:11px;
    line-height:1.3;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-weight:700;
    color:#64748b;
    margin:0 0 5px;
}
.eab-name{
    font-size:21px;
    line-height:1.3;
    margin:0 0 4px;
}
.eab-name a{
    text-decoration:none;
}
.eab-name a:hover{
    text-decoration:underline;
}
.eab-designation{
    font-size:14px;
    line-height:1.5;
    font-weight:600;
    color:#475569;
}
.eab-bio{
    font-size:15px;
    line-height:1.65;
    color:#334155;
    margin:10px 0 0;
}
.eab-bio p{
    margin:0 0 8px;
}
.eab-bio p:last-child{
    margin-bottom:0;
}
.eab-meta{
    font-size:14px;
    line-height:1.6;
    color:#475569;
    margin-top:10px;
}
.eab-profile-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:16px;
    padding:10px 17px;
    border-radius:7px;
    background:#0b7a4b;
    color:#fff !important;
    font-size:14px;
    line-height:1.35;
    font-weight:700;
    text-decoration:none !important;
    box-sizing:border-box;
    transition:background-color .18s ease,transform .18s ease;
}
.eab-profile-link:hover{
    background:#075d3a;
    color:#fff !important;
    text-decoration:none !important;
    transform:translateY(-1px);
}
.eab-box a:focus,
.eab-profile a:focus{
    outline:2px solid currentColor;
    outline-offset:3px;
}

/* Author profile page */
.eab-profile{
    width:100%;
    max-width:900px;
    margin:36px auto;
    box-sizing:border-box;
}
.eab-profile-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:32px;
    box-shadow:0 12px 32px rgba(15,23,42,.07);
    box-sizing:border-box;
}
.eab-profile-head{
    display:flex;
    align-items:center;
    gap:24px;
    padding-bottom:28px;
    border-bottom:1px solid #e5e7eb;
}
.eab-profile-avatar{
    width:120px;
    height:120px;
    min-width:120px;
    border-radius:50%;
    object-fit:cover;
    object-position:center;
    display:block;
    border:3px solid #f1f5f9;
    box-sizing:border-box;
}
.eab-profile-heading{
    min-width:0;
}
.eab-profile-name{
    font-size:34px;
    line-height:1.15;
    margin:0 0 7px;
}
.eab-profile-designation{
    font-size:17px;
    line-height:1.5;
    font-weight:600;
    color:#475569;
}
.eab-profile-organization{
    font-size:14px;
    line-height:1.5;
    color:#64748b;
    margin-top:3px;
}
.eab-profile-section{
    margin-top:28px;
}
.eab-profile-section h2{
    font-size:20px;
    line-height:1.3;
    margin:0 0 12px;
}
.eab-profile-bio,
.eab-profile-content{
    color:#334155;
    font-size:16px;
    line-height:1.75;
}
.eab-profile-bio p,
.eab-profile-content p{
    margin:0 0 12px;
}
.eab-profile-bio p:last-child,
.eab-profile-content p:last-child{
    margin-bottom:0;
}
.eab-profile-details{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}
.eab-detail{
    padding:16px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:12px;
}
.eab-detail strong{
    display:block;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.05em;
    color:#64748b;
    margin-bottom:6px;
}
.eab-detail span{
    display:block;
    color:#1e293b;
    font-size:14px;
    line-height:1.55;
}
.eab-profile-links{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}
.eab-profile-links a{
    display:inline-flex;
    align-items:center;
    padding:9px 13px;
    border:1px solid #e2e8f0;
    border-radius:9px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}
.eab-profile-links a:hover{
    text-decoration:underline;
}

@media(max-width:700px){
    .eab-box{
        margin:28px 0;
        padding:18px;
        border-radius:13px;
    }
    .eab-person{
        gap:13px;
    }
    .eab-avatar{
        width:64px;
        height:64px;
        min-width:64px;
    }
    .eab-name{
        font-size:18px;
    }
    .eab-profile{
        margin:24px auto;
    }
    .eab-profile-card{
        padding:20px;
        border-radius:14px;
    }
    .eab-profile-head{
        align-items:flex-start;
        gap:16px;
        padding-bottom:22px;
    }
    .eab-profile-avatar{
        width:82px;
        height:82px;
        min-width:82px;
    }
    .eab-profile-name{
        font-size:25px;
    }
    .eab-profile-designation{
        font-size:15px;
    }
    .eab-profile-details{
        grid-template-columns:1fr;
    }
}
@media(max-width:430px){
    .eab-person{
        flex-direction:column;
    }
    .eab-avatar{
        width:70px;
        height:70px;
        min-width:70px;
    }
    .eab-profile-head{
        flex-direction:column;
    }
    .eab-profile-avatar{
        width:92px;
        height:92px;
        min-width:92px;
    }
}


/* Hide theme post metadata on E-E-A-T author profile pages.
 * The profile itself remains accessible through the author name/link.
 */
body.single-eab_author .entry-meta,
body.single-eab_author .post-meta,
body.single-eab_author .post-info,
body.single-eab_author .post-details,
body.single-eab_author .entry-header .meta,
body.single-eab_author .entry-header .post-meta,
body.single-eab_author .entry-header .entry-meta,
body.single-eab_author .entry-meta-list,
body.single-eab_author .author-meta,
body.single-eab_author .published,
body.single-eab_author .posted-on,
body.single-eab_author .byline,
body.single-eab_author .cat-links{
    display:none !important;
}

/* Compact article author card matching PaisaPedia's navy + green visual language. */
.eab-box{
    border-color:#dfe7e3;
    box-shadow:0 7px 22px rgba(15,55,45,.055);
}
.eab-label{
    color:#0b7a4b;
}
.eab-name a{
    color:#0b7a4b;
}
.eab-name a:hover{
    color:#075d3a;
}
.eab-designation{
    color:#193b5d;
}
.eab-bio{
    color:#193b5d;
}


/* Do not show the theme's duplicate single-post title on E-E-A-T author profiles.
 * The plugin renders the author name once inside the profile card.
 */
body.single-eab_author .entry-header > .entry-title,
body.single-eab_author .entry-header .entry-title,
body.single-eab_author .entry-header h1.entry-title,
body.single-eab_author .page-header .page-title,
body.single-eab_author .page-header h1{
    display:none !important;
}

/* Keep the profile card as the first visible content after the site header. */
body.single-eab_author .entry-header{
    margin:0 !important;
    padding:0 !important;
}
body.single-eab_author .eab-profile{
    margin-top:28px;
}


/* Author Profiles archive: hide theme-generated email/author/date metadata.
 * The archive should show only the author profile card information.
 */
body.post-type-archive-eab_author .entry-meta,
body.post-type-archive-eab_author .post-meta,
body.post-type-archive-eab_author .post-info,
body.post-type-archive-eab_author .post-details,
body.post-type-archive-eab_author .entry-header .meta,
body.post-type-archive-eab_author .entry-header .post-meta,
body.post-type-archive-eab_author .entry-header .entry-meta,
body.post-type-archive-eab_author .entry-meta-list,
body.post-type-archive-eab_author .author-meta,
body.post-type-archive-eab_author .published,
body.post-type-archive-eab_author .posted-on,
body.post-type-archive-eab_author .byline,
body.post-type-archive-eab_author .cat-links,
body.post-type-archive-eab_author .entry-date,
body.post-type-archive-eab_author .post-date,
body.post-type-archive-eab_author .author-name{
    display:none !important;
}
