/* ACC share rows — quiet by default, color on hover. */

.acc-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.acc-share__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wp--preset--color--muted, #5b5847);
    margin-right: 0.15rem;
}
.acc-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--wp--preset--color--border, #c9c2ad);
    background: transparent;
    color: var(--wp--preset--color--primary, #1a3a1f) !important;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.acc-share__btn svg { flex: 0 0 auto; }
.acc-share__btn:hover {
    border-color: var(--wp--preset--color--primary, #1a3a1f);
    background: var(--wp--preset--color--primary, #1a3a1f);
    color: var(--wp--preset--color--background, #faf7f0) !important;
}
/* Facebook keeps its own color on hover so it reads instantly. */
.acc-share__btn--fb:hover {
    background: #1877f2;
    border-color: #1877f2;
}
.acc-share.is-copied .acc-share__btn--copy {
    background: var(--wp--preset--color--leaf, #3d6b3f);
    border-color: var(--wp--preset--color--leaf, #3d6b3f);
    color: var(--wp--preset--color--background, #faf7f0) !important;
}

/* Stacked variant — one full-width button per line. A sidebar column is
   ~270px and the three pills need ~375px, so left to itself the row wraps
   into a ragged block; stacking puts every icon and label on one edge. */
.acc-share--stack {
    display: grid;
    gap: 0.4rem;
}
.acc-share--stack .acc-share__label {
    margin: 0 0 0.1rem;
}
.acc-share--stack .acc-share__btn {
    width: 100%;
    justify-content: flex-start;
    padding-left: 0.9rem;
}

/* Icon-only variant for tight spots (event rows, cards). */
.acc-share--compact .acc-share__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.acc-share--compact .acc-share__btn { padding: 0.35rem 0.5rem; }

/* Where the OS sheet exists, one Share button replaces the row. */
.acc-share--native .acc-share__btn--fb,
.acc-share--native .acc-share__btn--mail,
.acc-share--native .acc-share__btn--copy { display: none; }

/* On dark backgrounds (issue modal footer, green bands). */
.acc-share--light .acc-share__label { color: rgba(246, 248, 246, 0.7); }
.acc-share--light .acc-share__btn {
    border-color: rgba(246, 248, 246, 0.35);
    color: #f6f8f6 !important;
}
.acc-share--light .acc-share__btn:hover {
    background: #f6f8f6;
    color: var(--wp--preset--color--primary, #1a3a1f) !important;
}
@media (prefers-reduced-motion: reduce) {
    .acc-share__btn { transition: none; }
}

/* Author `display` beats the UA rule for [hidden], so the native-share
   button needs this or it renders alongside the buttons it replaces. */
.acc-share__btn[hidden] { display: none; }
