/* ETW Author Box — bottom-of-post author credit.
   Colors come from theme CSS vars so a brand re-skin needs no plugin edit. */

.etw-author-box {
    margin: 3rem 0 0;
    padding-top: 1.75rem;
    border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--dark, #1F2937) 15%, transparent);
    text-align: left;
}

.etw-author-box__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.etw-author-box__link:hover .etw-author-box__name,
.etw-author-box__link:focus-visible .etw-author-box__name {
    color: var(--wp--preset--color--primary, #9D18B2);
}

.etw-author-box__link:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary, #9D18B2);
    outline-offset: 4px;
    border-radius: 4px;
}

.etw-author-box__avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: color-mix(in srgb, var(--wp--preset--color--primary, #9D18B2) 12%, transparent);
}

.etw-author-box__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.etw-author-box__initial {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--wp--preset--color--primary, #9D18B2);
}

.etw-author-box__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.etw-author-box__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

.etw-author-box__name {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.25;
    transition: color 0.15s ease;
}

.etw-author-box__role {
    font-size: 0.9375rem;
    line-height: 1.3;
    opacity: 0.75;
}

@media (max-width: 480px) {
    .etw-author-box__avatar { width: 56px; height: 56px; }
    .etw-author-box__name { font-size: 1rem; }
}
