/**
 * Module: article_author_box
 */

.t1-author-box {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--pearl);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.t1-author-box__photo {
    flex-shrink: 0;
    margin: 0;
}

.t1-author-box__photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s, transform 0.2s;
}

a.t1-author-box__photo {
    position: relative;
    display: block;
}

a.t1-author-box__photo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

a.t1-author-box__photo:hover img {
    transform: scale(1.05);
}

a.t1-author-box__photo:hover::before {
    opacity: 1;
}

.t1-author-box__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.t1-author-box__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jade);
    margin: 0;
    line-height: 1;
}

.t1-author-box__name {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    margin: 0.25rem 0 0;
}

.t1-author-box__name a {
    color: inherit;
    text-decoration: none;
}

.t1-author-box__name a:hover {
    color: var(--jade);
}

.t1-author-box__title {
    font-size: 0.9375rem;
    color: var(--stone);
    margin: 0.125rem 0 0;
}

.t1-author-box__bio {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--charcoal);
    margin: 0.75rem 0 0;
}

.t1-author-box__bio > :first-child {
    margin-top: 0;
}

.t1-author-box__bio > :last-child {
    margin-bottom: 0;
}

.t1-author-box__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.t1-author-box__social li {
    margin: 0;
}

.t1-author-box__social a {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--jade-dark);
    background: var(--jade-light);
    border-radius: 100px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.t1-author-box__social a:hover {
    background: var(--jade);
    color: #fff;
}

@media (max-width: 480px) {
    .t1-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .t1-author-box__content {
        min-height: auto;
    }
    
    .t1-author-box__photo img {
        width: 72px;
        height: 72px;
    }
    
    .t1-author-box__social {
        justify-content: center;
    }
}

/* ========================================
   LIGHT THEME OVERRIDE
   ======================================== */

.t1-author-box--light {
    background: var(--pearl);
}

.t1-author-box--light .t1-author-box__label {
    color: var(--jade);
}

.t1-author-box--light .t1-author-box__name {
    color: var(--ink);
}

.t1-author-box--light .t1-author-box__name a:hover {
    color: var(--jade);
}

.t1-author-box--light .t1-author-box__title {
    color: var(--stone);
}

.t1-author-box--light .t1-author-box__bio {
    color: var(--charcoal);
}

.t1-author-box--light .t1-author-box__social a {
    color: var(--jade-dark);
    background: var(--jade-light);
}

.t1-author-box--light .t1-author-box__social a:hover {
    background: var(--jade);
    color: #fff;
}