.imes-editorial-credits {
    display: grid;
    gap: 8px;
    max-width: 92rem;
    margin: 0 0 22px;
}

.imes-editorial-credits__byline,
.imes-editorial-credits .imes-editorial-article-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.imes-editorial-credits .imes-editorial-article-details {
    margin: 0;
    margin-inline-start: auto;
    justify-content: flex-end;
    color: #525c6b;
}

.imes-editorial-credits .imes-editorial-article-details__date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.imes-editorial-credits .imes-editorial-article-details__date,
.imes-editorial-credits .imes-editorial-article-details__date span,
.imes-editorial-credits .imes-editorial-article-details__date time {
    font-size: 13px;
    line-height: 1.4;
}

.imes-editorial-article-details__date svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
}

.imes-editorial-credit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.imes-editorial-credits__byline > .imes-editorial-credit {
    --imes-credit-avatar-size: 32px;
    box-sizing: border-box;
    max-width: 100%;
    gap: 7px;
    padding: 4px 11px 4px 4px;
    border: 1px solid #e6e6e6;
    border-radius: 8rem;
    background: #f5f5f5;
}

.imes-editorial-credit__avatar {
    --imes-credit-avatar-width: var(--imes-credit-avatar-size, 30px);
    display: grid;
    flex: 0 0 var(--imes-credit-avatar-width);
    width: var(--imes-credit-avatar-width);
    height: var(--imes-credit-avatar-width);
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #eaf0fa;
    color: #20437b;
    font-size: 11px;
    font-weight: 700;
}

.imes-editorial-credit__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imes-editorial-credit__avatar--logo {
    position: relative;
    background: #fff;
}

/* Show the institute logo from the left side of the header artwork. */
.imes-editorial-credit__avatar--logo img {
    position: absolute;
    inset: 50% auto auto 4px;
    width: calc(13px * 426 / 103);
    max-width: none;
    height: 13px;
    clip-path: inset(0 calc(100% - 25px) 0 0);
    transform: translateY(-50%);
}

.imes-editorial-credit__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.imes-editorial-credit__label {
    color: #525c6b;
    font-size: 12px;
    line-height: 1.35;
}

.imes-editorial-credits .imes-editorial-credit__name {
    color: #174e42;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.imes-editorial-credits__byline .imes-editorial-credit__label {
    color: #484848;
    font-size: 12px;
}

.imes-editorial-credits .imes-editorial-credits__byline .imes-editorial-credit__name {
    color: #181818;
    font-size: 13px;
}

a.imes-editorial-credit__name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.imes-editorial-credit__name:focus-visible {
    outline: 2px solid #174e42;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .imes-editorial-credits__byline {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .imes-editorial-credits__byline > .imes-editorial-credit {
        --imes-credit-avatar-size: 26px;
        gap: 6px;
        padding: 3px 9px 3px 3px;
    }

    .imes-editorial-credits__byline .imes-editorial-credit__avatar--logo img {
        inset-inline-start: 3px;
        width: calc(11px * 426 / 103);
        height: 11px;
        clip-path: inset(0 calc(100% - 21px) 0 0);
    }

    .imes-editorial-credits__byline .imes-editorial-credit__body {
        gap: 0;
    }

    .imes-editorial-credits__byline .imes-editorial-credit__label {
        font-size: 11px;
        line-height: 1.2;
    }

    .imes-editorial-credits .imes-editorial-credits__byline .imes-editorial-credit__name {
        font-size: 12px;
        line-height: 1.2;
    }

    .imes-editorial-credits .imes-editorial-article-details {
        max-width: 100%;
        margin-inline-start: 0;
        justify-content: flex-start;
        gap: 4px 12px;
    }

    .imes-editorial-credits .imes-editorial-article-details__date,
    .imes-editorial-credits .imes-editorial-article-details__date span,
    .imes-editorial-credits .imes-editorial-article-details__date time {
        font-size: 12px;
    }

    .imes-editorial-credits .imes-editorial-article-details__date svg {
        flex-basis: 13px;
        width: 13px;
        height: 13px;
    }
}

