.tok-collaborator-publication .tok-colab-top {
    margin: 0 0 22px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e2e2e2;
}

.tok-collaborator-publication .tok-colab-top-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 6px;
}

.tok-collaborator-publication .tok-colab-top-name {
    margin: 0;
    padding: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
}

.tok-collaborator-publication .tok-colab-top-name a,
.tok-collaborator-publication .tok-colab-top-name a:visited {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.tok-collaborator-publication .tok-colab-top-name a:hover,
.tok-collaborator-publication .tok-colab-top-name a:focus {
    color: #0056a0;
    border-bottom-color: #0056a0;
}

.tok-collaborator-publication .tok-colab-top-role {
    font-weight: 400;
    color: #6c757d;
    white-space: normal;
}

.tok-collaborator-publication .tok-colab-image-credit {
    display: block;
    margin: 8px 0 0;
    font-size: 12px;
    font-style: italic;
    color: #6c757d;
    line-height: 1.4;
}

.tok-collaborator-publication figure .tok-colab-image-credit {
    position: static;
}

@media (max-width: 782px) {
    .tok-collaborator-publication .tok-colab-top {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .tok-collaborator-publication .tok-colab-top-name {
        font-size: 1rem;
    }

    .tok-collaborator-publication .tok-colab-image-credit {
        font-size: 11px;
    }
}

/* --------------------------------------------------
 * Box do colaborador dentro da matéria publicada.
 * Regras idênticas às de collaborator-public-profile.css
 * (.tok-profile-box), replicadas aqui para que o single
 * post vinculado ao TOK não dependa do enfileiramento
 * tardio de collaborator-public-profile.css via
 * render_box()/the_content.
 * -------------------------------------------------- */
.tok-profile-box {
    border: 1px solid #d0d5dd;
    padding: 28px 24px;
    border-radius: 10px;
    max-width: 540px;
    width: 100%;
    margin: 32px auto;
    font-family: inherit;
    background: #f8f9fb;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.tok-profile-box-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.tok-profile-box-photo {
    width: 104px;
    height: 104px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: block;
}

.tok-profile-box-name {
    display: block;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
}

.tok-profile-box-title {
    display: block;
    font-size: 0.9rem;
    color: #4a4a6a;
    margin-bottom: 15px;
    overflow-wrap: anywhere;
}

.tok-profile-box-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: center;
    overflow-wrap: anywhere;
}

.tok-profile-box-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tok-profile-box-link {
    font-size: 0.8rem;
    text-decoration: none;
    color: #0056a0;
    padding: 4px 8px;
    border: 1px solid #0056a0;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.tok-profile-box-link:hover,
.tok-profile-box-link:focus {
    background: #0056a0;
    color: #ffffff;
}

.tok-profile-box-link-strong {
    font-weight: 600;
}

.tok-profile-box-badge {
    display: inline-block;
    background: #e8f0fa;
    color: #0056a0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tok-profile-box-footer {
    font-size: 0.8rem;
    color: #4a4a6a;
    border-top: 1px solid #d0d5dd;
    padding-top: 10px;
    margin-top: 2px;
    font-style: italic;
    text-align: center;
}

@media (max-width: 768px) {
    .tok-profile-box {
        max-width: 100%;
        margin: 24px auto;
        padding: 20px;
    }

    .tok-profile-box-photo {
        width: 92px;
        height: 92px;
    }
}

@media (max-width: 480px) {
    .tok-profile-box {
        margin: 20px auto;
        padding: 16px;
    }

    .tok-profile-box-photo {
        width: 88px;
        height: 88px;
    }

    .tok-profile-box-links {
        gap: 8px;
    }

    .tok-profile-box-name {
        font-size: 1.1rem;
    }
}

/* --------------------------------------------------
 * Ajustes do box dentro da matéria publicada.
 * Especificidade maior (prefixo da body class) para
 * vencer regras genéricas do tema. O !important fica
 * restrito à forma do avatar porque o tema aplica
 * border-radius: 0 em imagens do conteúdo.
 * -------------------------------------------------- */
.tok-collaborator-publication .tok-profile-box .tok-profile-box-photo {
    width: 104px;
    height: 104px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50% !important;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: block;
    margin-bottom: 15px;
}

.tok-collaborator-publication .tok-profile-box-title {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .tok-collaborator-publication .tok-profile-box .tok-profile-box-photo {
        width: 92px;
        height: 92px;
    }
}

@media (max-width: 480px) {
    .tok-collaborator-publication .tok-profile-box .tok-profile-box-photo {
        width: 88px;
        height: 88px;
    }
}