﻿/* ==========================================================================
   Contributor page (contributor.html)
   Builds on indiapulse.css: the card (.widget), photo (.pulse-author-photo), category
   badges (.cat-badge), buttons (.btn), the Latest Articles listing, "You may also be
   interested in" and the newsletter card are all reused as-is.
   ========================================================================== */

/* Profile card */
.contrib-profile {
    display: flex;
    align-items: flex-start;
    gap: clamp(20px,3vw,32px);
    margin-bottom: clamp(28px,4vw,40px);
    padding: clamp(20px,3vw,28px)
}

.contrib-photo {
    width: 120px;
    height: 120px;
    font-size: 34px
}

    .contrib-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.contrib-body {
    flex: 1;
    min-width: 0
}

.contrib-role {
    margin-top: 4px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--gray-500)
}

.contrib-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 20px;
    color: var(--gray-600)
}

    .contrib-stats strong {
        font-weight: 700;
        color: var(--gray-900)
    }

.contrib-bio {
    max-width: 70ch;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-600)
}

/* Specializations, key strengths, posts by category */
.contrib-detail {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200)
}

.contrib-label {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: var(--gray-900)
}

.contrib-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

    .contrib-chips li {
        display: inline-flex;
        align-items: center;
        height: 30px;
        padding: 0 12px;
        border-radius: var(--radius);
        background: var(--gray-100);
        font-size: 13px;
        font-weight: 500;
        color: var(--gray-800)
    }

.contrib-list {
    display: grid;
    gap: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-700)
}

    .contrib-list li {
        position: relative;
        padding-left: 18px
    }

        .contrib-list li::before {
            content: "";
            position: absolute;
            left: 2px;
            top: .65em;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--primary)
        }
/* Posts by category: tags (same chip as Specializations) with the category colour dot and post count, largest first */
.contrib-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.contrib-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 6px 0 12px;
    border-radius: var(--radius);
    background: var(--gray-100);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800)
}

    .contrib-tag::before {
        content: "";
        width: 8px;
        height: 8px;
        flex: none;
        border-radius: 50%;
        background: var(--cat-bg,var(--gray-400))
    }

.contrib-tag-count {
    min-width: 24px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: var(--radius);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-900)
}

.contrib-actions {
    margin-top: 20px
}

    .contrib-actions .btn .icon {
        width: 16px;
        height: 16px
    }

/* Newsletter: no top margin beside the listing; stays in view while the listing scrolls (desktop) */
.contrib-aside .pulse-nl {
    margin: 0
}

@media (min-width:992px) {
    .contrib-aside > .pulse-nl {
        position: sticky;
        top: 110px
    }
}

/* Narrower columns: smaller photo; tablets and phones: photo above the details so the text gets the full width */
@media (max-width:1199.98px) {
    .contrib-photo {
        width: 96px;
        height: 96px;
        font-size: 28px
    }
}

@media (max-width:768px) {
    .contrib-profile {
        flex-direction: column;
        gap: 16px
    }
}
