/* ---------------------------------------------------------
   Share Article
   --------------------------------------------------------- */

.article-share {
    display: block;
}

.article-share-trigger,
.article-share-copy {
    font: inherit;
    cursor: pointer;
}

.article-share-dialog[hidden] {
    display: none;
}

.article-share-dialog {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.article-share-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.article-share-dialog-panel {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100% - 2rem));
    max-height: calc(100vh - 4rem);
    margin: 2rem auto;
    padding: 1.5rem;
    overflow-y: auto;
    background: #fff;
    border-radius: 0.5rem;
}

.article-share-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-share-dialog-header h2 {
    margin: 0;
}

.article-share-dialog-close {
    border: 0;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.article-share-social-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.article-share-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    text-decoration: none;
}

.article-share-social svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.article-share-social:hover {
    text-decoration: none;
}

.article-share-social:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.article-share-copy-row {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.article-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.article-actions .article-citation {
    margin-top: 0;
}

.article-actions .article-share {
    display: block;
}

.share-dialog-open {
    overflow: hidden;
}