/* Article sharing uses the editorial theme's colors and rounded controls. */
.if-editorial .article-share {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin: 3rem 0 0;
    padding: 1.5rem 0 0;
    border: 0;
    border-top: 1px solid #e7e5e4;
}

.if-editorial .article-share__title {
    margin: 0;
    color: var(--if-ink);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.if-editorial .article-share__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The !important declarations override Site Core's legacy social colors. */
.if-editorial .article-share__link,
.if-editorial .article-share__link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: auto;
    height: auto;
    min-width: 44px;
    min-height: 46px;
    padding: .625rem 1rem;
    border: 1px solid #d6d3d1;
    border-radius: 9999px;
    background-color: var(--if-paper) !important;
    color: var(--if-ink) !important;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none !important;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease !important;
}

.if-editorial .article-share__link:hover,
.if-editorial .article-share__link:active {
    border-color: var(--if-accent-text);
    background-color: var(--if-accent-text) !important;
    color: #fff !important;
}

.if-editorial .article-share__link:focus-visible {
    outline: 3px solid var(--if-accent-text);
    outline-offset: 4px;
    background-color: var(--if-paper) !important;
    color: var(--if-ink) !important;
}

.if-editorial .article-share__icon {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
}

.if-editorial .article-share__label {
    white-space: nowrap;
}

.if-editorial .article-share__link--twitter {
    width: 46px;
    padding-inline: 0;
}

@media (min-width: 640px) {
    .if-editorial .article-share {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 639px) {
    .if-editorial .article-share__link {
        gap: .375rem;
        padding-inline: .75rem;
    }
    .if-editorial .article-share__icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 359px) {
    .if-editorial .article-share__link {
        padding-inline: .625rem;
        font-size: .8125rem;
    }
    .if-editorial .article-share__icon {
        width: 16px;
        height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .if-editorial .article-share__link {
        transition: none !important;
    }
}
