/* Compact share menu */
ry-share-menu {
    display: inline-block;
    color: #1a1a1a;
    line-height: 1.2;
}

.share-menu {
    position: relative;
}

.share-menu-trigger {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.share-menu-trigger:hover,
ry-share-menu.open .share-menu-trigger {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.24);
}

.share-menu-trigger:focus-visible,
.share-menu-item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.share-menu-trigger svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.share-menu-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: max-content;
    min-width: 210px;
    padding: 6px;
    background: rgba(246, 245, 239, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.share-menu-popover[hidden] {
    display: none;
}

.share-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: 500 12px/1.2 'Geist Mono', monospace;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease;
}

.share-menu-item:hover,
.share-menu-item:focus-visible {
    background: rgba(0, 0, 0, 0.06);
}

.share-menu-item.is-copied {
    color: #147a4b;
}

.share-menu-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: currentColor;
}

.share-menu-divider {
    height: 1px;
    margin: 4px 8px;
    background: rgba(0, 0, 0, 0.1);
}

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

body.dark-mode ry-share-menu {
    color: #e6e5de;
}

body.dark-mode .share-menu-trigger {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .share-menu-trigger:hover,
body.dark-mode ry-share-menu.open .share-menu-trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .share-menu-popover {
    background: rgba(13, 19, 39, 0.98);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.46);
}

body.dark-mode .share-menu-item:hover,
body.dark-mode .share-menu-item:focus-visible {
    background: rgba(255, 255, 255, 0.09);
}

body.dark-mode .share-menu-item.is-copied {
    color: #62d9a0;
}

body.dark-mode .share-menu-divider {
    background: rgba(255, 255, 255, 0.12);
}
