/* JOSAR Editorial Team — academic profile links
   Scoped styles: only affect content inside .josar-editorial-team.
   An anchor is rendered only when its exact URL is supplied in the database.
*/

.josar-editorial-team {
    margin: 1rem 0;
    color: #263238;
    font-family: inherit;
}

.josar-editorial-team .josar-editorial-role {
    margin: 1.6rem 0 0.9rem;
    padding: 0 0 0.45rem;
    border-bottom: 2px solid #8e24aa;
    color: #24202a;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.josar-editorial-team .josar-editorial-member {
    margin: 0 0 1.15rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid #e9e4ec;
}

.josar-editorial-team .josar-editorial-name {
    margin: 0 0 0.55rem;
    color: #202124;
    font-size: 0.98rem;
    line-height: 1.6;
}

.josar-editorial-team .josar-profile-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.josar-editorial-team a.josar-profile-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    box-sizing: border-box;
    padding: 0.28rem 0.65rem;
    border: 1px solid #d9c8e0;
    border-radius: 4px;
    background: #faf7fc;
    color: #70218a !important;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.josar-editorial-team a.josar-profile-link:hover,
.josar-editorial-team a.josar-profile-link:focus {
    border-color: #8e24aa;
    background: #8e24aa;
    color: #ffffff !important;
    text-decoration: none !important;
}

.josar-editorial-team a.josar-profile-link:focus-visible {
    outline: 2px solid #5e1674;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .josar-editorial-team .josar-editorial-name {
        font-size: 0.94rem;
    }

    .josar-editorial-team .josar-profile-links {
        gap: 0.35rem;
    }

    .josar-editorial-team a.josar-profile-link {
        min-height: 30px;
        padding: 0.32rem 0.6rem;
        font-size: 0.76rem;
    }
}
