/* TOK Colaboradores - Public Profile & Collaboration Box Styles */

.tok-public-profile-body {
    margin: 0;
    padding: 0;
    background: #f8f9fb;
    color: #1a1a2e;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.tok-public-profile-body *,
.tok-public-profile-body *::before,
.tok-public-profile-body *::after {
    box-sizing: inherit;
}

/* Header */
.tok-public-header {
    background: #ffffff;
    border-bottom: 1px solid #d0d5dd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tok-public-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.tok-public-brand {
    font-size: 1rem;
    font-weight: 700;
    color: #0056a0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tok-public-brand-sub {
    font-size: 0.8125rem;
    color: #4a4a6a;
}

/* Main */
.tok-public-main {
    padding: 32px 16px 48px;
}

.tok-public-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cards */
.tok-public-card {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    max-width: 100%;
}

.tok-public-identity-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.tok-public-photo-wrap {
    display: flex;
    justify-content: center;
}

.tok-public-photo {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

.tok-public-photo-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #e8f0fa;
    color: #0056a0;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.tok-public-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.tok-public-role {
    font-size: 1.0625rem;
    color: #0056a0;
    font-weight: 600;
    margin: 0 0 16px;
}

.tok-public-bio {
    font-size: 1rem;
    color: #4a4a6a;
    margin: 0 0 20px;
    overflow-wrap: anywhere;
}

.tok-public-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tok-public-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #0056a0;
    background: #ffffff;
    border: 1px solid #0056a0;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    max-width: 100%;
    overflow-wrap: anywhere;
}

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

/* Contributions */
.tok-public-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 24px;
}

.tok-public-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tok-public-card-item {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    max-width: 100%;
}

.tok-public-card-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0056a0;
}

.tok-public-card-media {
    display: block;
    line-height: 0;
    background: #f8f9fb;
}

.tok-public-card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin: 0;
}

.tok-public-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.tok-public-card-date {
    font-size: 0.8125rem;
    color: #4a4a6a;
}

.tok-public-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.tok-public-card-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.tok-public-card-title a:hover,
.tok-public-card-title a:focus {
    color: #0056a0;
}

.tok-public-card-excerpt {
    font-size: 0.9375rem;
    color: #4a4a6a;
    margin: 0;
    flex: 1;
    overflow-wrap: anywhere;
}

.tok-public-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0056a0;
    text-decoration: none;
    margin-top: 4px;
}

.tok-public-card-link:hover,
.tok-public-card-link:focus {
    text-decoration: underline;
}

.tok-public-empty {
    margin: 0;
    padding: 32px 24px;
    text-align: center;
    color: #4a4a6a;
    background: #f8f9fb;
    border: 1px dashed #d0d5dd;
    border-radius: 8px;
    font-size: 0.9375rem;
}

/* Footer */
.tok-public-footer {
    padding: 24px 16px;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #d0d5dd;
}

.tok-public-footer p {
    margin: 0;
    font-size: 0.8125rem;
    color: #4a4a6a;
}

/* --------------------------------------------------
 * Collaboration box (reusable)
 * -------------------------------------------------- */
.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;
}

/* Responsive */
@media (max-width: 768px) {
    .tok-public-header-inner {
        padding: 16px;
        flex-direction: column;
        gap: 2px;
    }

    .tok-public-main {
        padding: 24px 12px 40px;
    }

    .tok-public-card {
        padding: 24px 18px;
    }

    .tok-public-identity-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .tok-public-photo-wrap {
        justify-content: center;
    }

    .tok-public-photo,
    .tok-public-photo-placeholder {
        width: 140px;
        max-width: 140px;
        height: 140px;
    }

    .tok-public-links {
        justify-content: center;
    }

    .tok-public-name {
        font-size: 1.5rem;
    }

    .tok-public-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tok-public-card-body {
        padding: 16px;
    }

    .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;
    }
}

@media print {
    .tok-public-header,
    .tok-public-footer {
        display: none;
    }

    .tok-public-profile-body {
        background: #ffffff;
    }

    .tok-public-card {
        box-shadow: none;
        border: 1px solid #000000;
        break-inside: avoid;
    }
}
