/* Author profile page (/autor/{slug}) */
.author-profile {
    padding: 3rem 0 1rem;
}

.author-profile-header {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.author-profile-avatar {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.author-profile h1 {
    font-family: 'Oswald', sans-serif !important;
    font-size: 2.4rem;
    color: var(--text-primary);
    margin: 0;
}

.author-profile-role {
    margin: 0.25rem 0 0;
    font-size: 1.1rem;
    color: var(--accent);
}

.author-profile-count {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #a5a5a5;
}

.author-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.author-profile-links a {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: 999px;
    text-decoration: none;
}

.author-profile-links a:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.author-profile-bio {
    max-width: 900px;
    margin: 2rem auto 0;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* The site's base styles zero paragraph margins; the bio needs visible paragraph breaks */
.author-profile-bio p {
    margin: 0 0 1rem;
}

.author-profile-bio p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .author-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .author-profile-links {
        justify-content: center;
    }

    .author-profile h1 {
        font-size: 2rem;
    }
}