.ld-share-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: #1d4ed8;
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(20, 32, 51, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ld-share-trigger:hover,
.ld-share-trigger:focus-visible {
    border-color: rgba(37, 99, 235, 0.52);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.ld-share-trigger:focus-visible,
.ld-share-action:focus-visible,
.ld-share-platforms button:focus-visible,
.ld-share-close:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: 3px;
}

.ld-share-trigger svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

.ld-share-backdrop[hidden] {
    display: none;
}

.ld-share-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(5px);
}

.ld-share-modal {
    width: min(100%, 760px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    background: #fffdf8;
    color: #334155;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}

.ld-share-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.ld-share-modal-title {
    margin: 0;
    color: #142033;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.15;
}

.ld-share-modal-copy {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ld-share-close {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.ld-share-preview {
    overflow: hidden;
    border: 1px solid rgba(20, 32, 51, 0.12);
    border-radius: 14px;
    background: #f7f4ec;
    box-shadow: 0 16px 36px rgba(20, 32, 51, 0.12);
}

.ld-share-preview canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
}

.ld-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ld-share-platforms {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.ld-share-platforms button {
    display: inline-grid;
    min-height: 52px;
    padding: 0.65rem;
    place-items: center;
    border: 1px solid rgba(20, 32, 51, 0.14);
    border-radius: 12px;
    background: #fff;
    color: #142033;
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.ld-share-platforms button:hover {
    transform: translateY(-1px);
}

.ld-share-platforms svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.ld-share-platforms [data-share-platform="linkedin"]:hover {
    border-color: #0a66c2;
    background: #eef6fc;
    color: #0a66c2;
}

.ld-share-platforms [data-share-platform="x"]:hover {
    border-color: #0f1419;
    background: #f2f2f2;
    color: #0f1419;
}

.ld-share-platforms [data-share-platform="bluesky"]:hover {
    border-color: #1185fe;
    background: #edf7ff;
    color: #1185fe;
}

.ld-share-platforms [data-share-platform="instagram"]:hover {
    border-color: #d62976;
    background: #fff1f6;
    color: #d62976;
}

.ld-share-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ld-share-platforms button:disabled,
.ld-share-action:disabled {
    cursor: wait;
    opacity: 0.48;
}

.ld-share-action {
    display: inline-flex;
    min-height: 46px;
    flex: 1 1 180px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 12px;
    background: #fff;
    color: #1d4ed8;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
}

.ld-share-action--primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.ld-share-action:hover {
    filter: brightness(0.98);
}

.ld-share-status {
    min-height: 1.4em;
    margin: 12px 0 0;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.4;
    text-align: center;
}

body.ld-share-modal-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .ld-share-backdrop {
        padding: 10px;
    }

    .ld-share-modal {
        max-height: calc(100vh - 20px);
        padding: 16px;
        border-radius: 16px;
    }

    .ld-share-modal-header {
        margin-bottom: 12px;
    }

    .ld-share-actions {
        gap: 8px;
    }

    .ld-share-platforms {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .ld-share-action {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ld-share-trigger {
        transition: none;
    }

    .ld-share-trigger:hover,
    .ld-share-trigger:focus-visible {
        transform: none;
    }
}
