/**
 * Créditos de co-autores al final de la entrada.
 * Cada co-autor se renderiza como una "pill" con avatar + nombre.
 */

.ci-coauthors-credit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 16px;
    padding: 14px 18px;
    background: #f6f7f9;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.ci-coauthors-credit__label {
    font-weight: 600;
    color: #333;
}

.ci-coauthors-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ci-coauthor-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 4px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 999px;
    text-decoration: none !important;
    color: #1a1a2e !important;
    font-weight: 500;
    transition: border-color .15s, background .15s, color .15s, transform .1s;
    line-height: 1;
}

.ci-coauthor-pill:hover {
    border-color: #0f3460;
    background: #f0f4ff;
    color: #0f3460 !important;
}

.ci-coauthor-pill:active {
    transform: translateY(1px);
}

.ci-coauthor-pill img,
.ci-coauthor-pill .avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.ci-coauthor-pill__name {
    display: inline-block;
    white-space: nowrap;
}

/* Enlace "Editar" para co-autores */
.ci-coauthor-edit {
    margin: 8px 0;
    font-size: 13px;
}

.ci-coauthor-edit .post-edit-link {
    color: #0f3460;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .ci-coauthors-credit {
        padding: 12px 14px;
        gap: 8px;
    }
    .ci-coauthor-pill {
        padding: 3px 12px 3px 3px;
    }
    .ci-coauthor-pill img,
    .ci-coauthor-pill .avatar {
        width: 24px !important;
        height: 24px !important;
    }
}
