/* Prosjekt Deltagere */

.pd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Kort */
.pd-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: 1.1rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow .2s ease;
}

.pd-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.pd-card--manager {
    border-left: 4px solid var(--bct-btn-bg);
}

/* Avatar */
.pd-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bct-btn-bg);
    flex-shrink: 0;
}

.pd-avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-avatar__initials {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: .03em;
    line-height: 1;
    user-select: none;
}

/* Lenker i høyre kolonne */
.pd-card__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    font-size: 1rem;
    margin-top: .4rem;
}

.pd-card__links a {
    color: var(--bct-link);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35em;
}

.pd-card__links a:hover {
    text-decoration: underline;
}

/* Høyre kolonne: badge, navn, tilknytning */
.pd-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding-top: .1rem;
}

.pd-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.35;
}

.pd-card__affiliation {
    font-size: .82rem;
    color: #3a3a3a;
    margin: 0;
}

.pd-card__person-info {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

/* Badge – prosjektleder */
.pd-badge-manager {
    background-color: var(--bct-btn-bg);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    padding: .18em .5em;
    border-radius: .25rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: .2rem;
}