/**
 * About Author widget styles.
 *
 * Kept intentionally specific so it keeps its card look inside different themes.
 */

.tdd-about-author {
    line-height: 1.6;
    color: #444;
    border: 2px solid #fddace;
    padding: 20px 35px;
    text-align: center;
}

.tdd-about-author .widget-title {
    text-align: left;
}

.tdd-about-author__avatar {
    position: relative;
    /* width: 132px;
    height: 132px; */
    margin: 0 auto 1rem;
    /* border-radius: 50%; */
    overflow: hidden;
    background: #ececec;
    box-shadow:
        0 0 0 4px #fff,
        0 4px 16px rgba(0, 0, 0, 0.12);
}

.tdd-about-author .tdd-about-author__avatar .tdd-about-author__avatar-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    /* border-radius: 50%; */
}

.tdd-about-author__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    /* border-radius: 50%; */
    margin: 0;
}

.tdd-about-author .tdd-about-author__name {
    margin: 0 0 0.15rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
}

.tdd-about-author .tdd-about-author__name .tdd-about-author__name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tdd-about-author .tdd-about-author__name .tdd-about-author__name-link:hover,
.tdd-about-author .tdd-about-author__name .tdd-about-author__name-link:focus {
    color: #ff6b35;
    text-decoration: none;
}

.tdd-about-author__role {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ff6b35;
}

.tdd-about-author__bio {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #555;
}

.tdd-about-author__bio p {
    margin: 0 0 0.75rem;
}

.tdd-about-author__bio p:last-child {
    margin-bottom: 0;
}

.tdd-about-author__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e5e5e5;
}

.tdd-about-author .tdd-about-author__social .tdd-about-author__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e3e3e3;
    border-radius: 50%;
    background: #fff;
    color: #444;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.tdd-about-author .tdd-about-author__social .tdd-about-author__social-link:hover,
.tdd-about-author .tdd-about-author__social .tdd-about-author__social-link:focus {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.tdd-about-author__social-link svg {
    display: block;
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .tdd-about-author__avatar {
        width: 112px;
        height: 112px;
    }
}

/* Reminder for the writer when their own card is empty. */
.tdd-about-author--notice {
    border-style: dashed;
    background: #fff8f5;
}

.tdd-about-author--notice .tdd-about-author__notice-text {
    margin: 0 0 10px;
}

.tdd-about-author--notice .tdd-about-author__notice-action {
    margin: 0;
}

.tdd-about-author--notice .tdd-about-author__notice-link {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid #ff6b35;
    border-radius: 4px;
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.tdd-about-author--notice .tdd-about-author__notice-link:hover,
.tdd-about-author--notice .tdd-about-author__notice-link:focus {
    background: #ff6b35;
    color: #fff;
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .tdd-about-author .tdd-about-author__social .tdd-about-author__social-link,
    .tdd-about-author .tdd-about-author__name .tdd-about-author__name-link {
        transition: none;
    }

    .tdd-about-author .tdd-about-author__social .tdd-about-author__social-link:hover,
    .tdd-about-author .tdd-about-author__social .tdd-about-author__social-link:focus {
        transform: none;
    }
}
