.article-share {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.article-share__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #1f5eff;
    border-radius: 10px;
    background: #fff;
    color: #174fe2;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.article-share__trigger:hover {
    background: #f2f6ff;
}

.article-share__trigger svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

body.article-share-open {
    overflow: hidden;
}

.article-share-modal[hidden] {
    display: none;
}

.article-share-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(13, 24, 46, .58);
}

.article-share-dialog {
    width: min(680px, 100%);
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(9, 23, 50, .3);
}

.article-share-dialog__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 24px 78px;
    background: #2f65df;
    color: #fff;
}

.article-share-dialog__head h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.25;
    text-align: center;
}

.article-share-dialog__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(10, 34, 92, .25);
    color: #fff;
    cursor: pointer;
}

.article-share-dialog__close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.article-share-dialog__body {
    padding: 36px 40px 32px;
}

.article-share-channels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.article-share-channel {
    display: flex;
    min-width: 0;
    min-height: 104px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.article-share-channel:hover {
    filter: brightness(.96);
}

.article-share-channel svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.article-share-channel--facebook { background: #4267a9; }
.article-share-channel--x { background: #101010; }
.article-share-channel--kakao { background: #fee500; color: #241b00; }
.article-share-channel--copy { background: #18b8c8; }

.article-share-status {
    min-height: 24px;
    margin: 20px 0 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.article-share__trigger:focus-visible,
.article-share-dialog__close:focus-visible,
.article-share-channel:focus-visible {
    outline: 3px solid #86a8ff;
    outline-offset: 3px;
}

@media (max-width: 680px) {
    .article-share {
        margin-top: 24px;
    }

    .article-share__trigger {
        width: 100%;
    }

    .article-share-modal {
        align-items: end;
        padding: 14px;
    }

    .article-share-dialog {
        border-radius: 16px;
    }

    .article-share-dialog__head {
        min-height: 78px;
        padding: 20px 64px;
    }

    .article-share-dialog__head h2 {
        font-size: 20px;
        white-space: nowrap;
    }

    .article-share-dialog__close {
        top: 17px;
        right: 14px;
    }

    .article-share-dialog__body {
        padding: 24px 20px 20px;
    }

    .article-share-channels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .article-share-channel {
        min-height: 94px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-share-modal,
    .article-share-dialog {
        scroll-behavior: auto;
    }
}
