.apc-news-author-trigger {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #A06CAD;
    font: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.apc-news-author-trigger:hover,
.apc-news-author-trigger:focus-visible {
    color: #62BB47;
}

.apc-news-author-trigger:focus-visible,
.apc-author-modal__close:focus-visible,
.apc-author-card__contact:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.apc-author-modal[hidden] {
    display: none !important;
}

.apc-author-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.58);
}

body.apc-author-modal-open {
    overflow: hidden;
}

.apc-author-modal__dialog {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid #cecece;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
    color: #222;
    font-family: Inter, Arial, sans-serif;
}

.apc-author-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.apc-author-modal__close:hover {
    background: #f3f3f3;
    color: #62BB47;
}

.apc-author-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.apc-author-card__image-wrap {
    width: 120px;
}

.apc-author-card__image {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.apc-author-card__name {
    margin: 0 42px 6px 0;
    color: #111;
    font-size: clamp(24px, 2.5vw, 28px);
    font-weight: 400;
    line-height: 1.2;
}

.apc-author-card__role {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.4;
}

.apc-author-card__job-title {
    color: #62BB47;
}

.apc-author-card__role-separator {
    color: #777;
}

.apc-author-card__division {
    color: #A06CAD;
}

.apc-author-card__bio {
    margin-top: 16px;
    color: #333;
    font-size: 14px;
    line-height: 1.55;
}

.apc-author-card__bio p {
    margin: 0 0 10px;
}

.apc-author-card__bio p:last-child {
    margin-bottom: 0;
}

.apc-author-card__contacts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 0;
}

.apc-author-card__contact,
.apc-author-card__contact:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid #A06CAD;
    border-radius: 999px;
    background: #A06CAD;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.apc-author-card__contact:hover,
.apc-author-card__contact:focus,
.apc-author-card__contact:focus-visible {
    border-color: #62BB47;
    background: #62BB47;
    color: #fff;
    text-decoration: none !important;
}

.apc-author-card__contact-icon {
    flex: 0 0 auto;
    width: 1em;
    margin-right: 8px;
    text-align: center;
}

@media (max-width: 620px) {
    .apc-author-modal {
        align-items: center;
        padding: 12px;
        overflow-y: auto;
    }

    .apc-author-modal__dialog {
        width: min(430px, 100%);
        max-height: calc(100vh - 24px);
        padding: 24px 18px 20px;
    }

    .apc-author-modal__close {
        top: 7px;
        right: 7px;
        width: 34px;
        height: 34px;
        font-size: 26px;
    }

    .apc-author-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
    }

    .apc-author-card__image-wrap,
    .apc-author-card__image {
        width: 82px;
        height: 82px;
    }

    .apc-author-card__name {
        margin-right: 30px;
        font-size: 23px;
    }

    .apc-author-card__role {
        gap: 4px;
        font-size: clamp(10.5px, 2.9vw, 13px);
        letter-spacing: -0.15px;
    }

    .apc-author-card__bio {
        margin-top: 14px;
        font-size: 13.5px;
        line-height: 1.5;
    }

    .apc-author-card__contacts {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 2px;
    }
}

@media (max-width: 390px) {
    .apc-author-modal__dialog {
        padding: 22px 14px 18px;
    }

    .apc-author-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
    }

    .apc-author-card__image-wrap,
    .apc-author-card__image {
        width: 72px;
        height: 72px;
    }

    .apc-author-card__name {
        font-size: 21px;
    }

    .apc-author-card__role {
        gap: 3px;
        font-size: 10px;
        letter-spacing: -0.2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .apc-news-author-trigger,
    .apc-author-modal__close,
    .apc-author-card__contact {
        transition: none;
    }
}
