/* css/socialshare.css
 *
 * The share buttons (Ben, 2026-10-18): socialShareButtons() in
 * includes/socialshare.php. One row of round buttons, each in its network's
 * colour on hover, the same everywhere they appear.
 */

.soc-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.soc-share-label {
    margin-right: 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted, #8094ae);
}

.soc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border, #dbdfea);
    border-radius: 50%;
    background: #fff;
    color: #526484;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.soc-btn:hover,
.soc-btn:focus-visible {
    color: #fff;
    text-decoration: none;
    outline: none;
}

.soc-btn--x:hover,        .soc-btn--x:focus-visible        { background: #000;    border-color: #000; }
.soc-btn--facebook:hover, .soc-btn--facebook:focus-visible { background: #1877f2; border-color: #1877f2; }
.soc-btn--reddit:hover,   .soc-btn--reddit:focus-visible   { background: #ff4500; border-color: #ff4500; }
.soc-btn--linkedin:hover, .soc-btn--linkedin:focus-visible { background: #0a66c2; border-color: #0a66c2; }
.soc-btn--bluesky:hover,  .soc-btn--bluesky:focus-visible  { background: #1185fe; border-color: #1185fe; }
.soc-btn--threads:hover,  .soc-btn--threads:focus-visible  { background: #000;    border-color: #000; }
.soc-copy:hover,          .soc-copy:focus-visible          { background: var(--primary, #016ea9); border-color: var(--primary, #016ea9); }

.soc-copy.is-copied {
    background: #e8f6ed;
    border-color: #9fd3b0;
    color: #17683a;
}

/* Inside the green share boxes on a summary page and a coverage report:
   a line of its own under the address. */
.ps-shared .soc-share,
.cv-shared .soc-share {
    flex: 1 1 100%;
    margin-top: 2px;
}

/* Under "Make my profile public", with the address above it. */
.md-public-link .soc-share {
    flex: 1 1 100%;
    margin-top: 4px;
}

/* A block of its own: the foot of a blog post and the public pages. */
.soc-share-block {
    margin: 24px 0;
    padding: 16px 18px;
    border: 1px solid var(--border, #dbdfea);
    border-radius: 10px;
    background: #fff;
}

.soc-share-block .soc-share-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark, #364a63);
}
