/* Social links for the Black History 2027 theme. All rules are scoped. */
.bhsm-social,
.bhsm-social * {
    box-sizing: border-box;
}
.bhsm-social {
    color: #71312f;
    font-family: var(--wp--preset--font-family--body, "DM Sans", sans-serif);
    margin: 0;
}
.bhsm-social .bhsm-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.bhsm-social .bhsm-links > li {
    padding: 0;
    margin: 0;
    list-style: none;
}
.bhsm-social a.bhsm-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #b7a59b;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    text-decoration: none;
    box-shadow: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.bhsm-social a.bhsm-link:hover {
    color: #f6f3ec;
    background: #71312f;
    border-color: #71312f;
    text-decoration: none;
}
.bhsm-social a.bhsm-link:focus-visible {
    outline: 3px solid #98681c;
    outline-offset: 4px;
    box-shadow: none;
}
.bhsm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.bhsm-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: currentColor;
}
.bhsm-icon-fallback {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}
.bhsm-header-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 13px;
    flex: 0 1 auto;
    max-width: 26rem;
    min-width: 0;
    margin: 0;
}
.bhsm-header-side > .bh-anniversary-note,
.bhsm-header-side > .bhsm-social {
    margin: 0;
}
.bhsm-header-side .bhsm-links {
    justify-content: flex-end;
}
.bhsm-social--footer {
    color: #f6f3ec;
    margin-top: 1.45rem;
}
.bhsm-social .bhsm-label {
    color: #d2a34d;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    line-height: 1.5;
    text-transform: uppercase;
    margin: 0 0 13px;
}
.bhsm-social--footer a.bhsm-link {
    border-color: #62675d;
}
.bhsm-social--footer a.bhsm-link:hover {
    color: #1e211f;
    background: #d2a34d;
    border-color: #d2a34d;
}
.bhsm-social--footer a.bhsm-link:focus-visible {
    outline-color: #d2a34d;
}
.bh-site-footer .bh-footer-links {
    overflow-wrap: anywhere;
}
.bhsm-fallback {
    padding: 1rem 0;
}
.bhsm-fallback--header {
    background: #f6f3ec;
}
.bhsm-fallback--header .bhsm-links {
    justify-content: flex-end;
}
.bhsm-fallback--footer {
    padding: 1.5rem 0;
    background: #1e211f;
}
.bhsm-fallback--footer .bhsm-social {
    margin-top: 0;
}
.bhsm-share,
.bhsm-share * {
    box-sizing: border-box;
}
.bhsm-share {
    clear: both;
    color: #71312f;
    font-family: var(--wp--preset--font-family--body, "DM Sans", sans-serif);
    border-block: 1px solid #d5d2c8;
    padding-block: 1rem;
    width: 100%;
    max-width: var(--wp--style--global--content-size, 760px);
    margin-inline: auto;
}
.bhsm-share--top {
    margin-block: 0 1.8rem;
}
.bhsm-share--bottom {
    margin-block: 2.2rem 0;
}
.bhsm-share--category,
.bhsm-share--home {
    max-width: none;
}
.bhsm-share-slot > .bhsm-share.bhsm-share--responsive {
    display: block;
}
.bhsm-share-label-short {
    display: none;
}
.bhsm-home-share-wrap {
    padding-block: 1.3rem;
}
.bhsm-home-share-wrap > .bhsm-share {
    margin-block: 0;
}
.bhsm-share .bhsm-share-label {
    color: #555b54;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 .7rem;
}
.bhsm-share .bhsm-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.bhsm-share .bhsm-share-buttons > li {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}
.bhsm-share .bhsm-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 9px 11px;
    margin: 0;
    border: 1px solid #b7a59b;
    border-radius: 4px;
    background: transparent;
    color: #71312f;
    font: inherit;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}
.bhsm-share .bhsm-share-button:hover {
    color: #f6f3ec;
    background: #71312f;
    border-color: #71312f;
    text-decoration: none;
}
.bhsm-share .bhsm-share-button:focus-visible {
    outline: 3px solid #98681c;
    outline-offset: 4px;
}
.bhsm-share .bhsm-share-button:disabled {
    cursor: wait;
    opacity: .7;
}
.bhsm-share .bhsm-icon svg {
    width: 17px;
    height: 17px;
}
.bhsm-share [hidden] {
    display: none !important;
}
.bhsm-share .bhsm-copy-status {
    color: #555b54;
    font-size: .75rem;
    line-height: 1.5;
    margin: 0;
}
.bhsm-share .bhsm-copy-status:not(:empty) {
    margin-top: .6rem;
}
.bhsm-copy-feedback {
    position: relative;
    min-width: 0;
    max-width: 400px;
    text-align: left;
}
.bhsm-copy-feedback.is-open {
    margin-top: .85rem;
    padding: 1rem;
    border: 1px solid #b7a59b;
    border-radius: 4px;
    background: #fffaf2;
    color: #1e211f;
}
.bhsm-copy-feedback .bhsm-copy-status:not(:empty) {
    margin: 0;
    padding-right: 2rem;
}
.bhsm-copy-feedback .bhsm-copy-close {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #71312f;
    font: 400 1.4rem/1 sans-serif;
    cursor: pointer;
}
.bhsm-copy-feedback .bhsm-copy-close:hover {
    background: #eee6dc;
}
.bhsm-copy-close:focus-visible,
.bhsm-copy-url:focus-visible {
    outline: 3px solid #98681c;
    outline-offset: 3px;
}
.bhsm-copy-fallback label {
    display: block;
    font-size: .75rem;
    color: #555b54;
    margin-top: .75rem;
}
.bhsm-copy-fallback .bhsm-copy-url {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin-top: .3rem;
    padding: .65rem;
    border: 1px solid #b7a59b;
    border-radius: 3px;
    background: #fff;
    color: #1e211f;
    font: inherit;
}
/* The same controls move into the measured desktop gutter; nothing is cloned. */
@media screen and (min-width: 1440px) and (min-height: 700px) {
    html.bhsm-side-sharing .bhsm-share-slot {
        height: 0;
        min-height: 0;
        margin-block: 0;
        padding-block: 0;
        border: 0;
    }
    html.bhsm-side-sharing .bh-article-content > .bhsm-share-slot:first-child + * {
        margin-block-start: 0;
    }
    html.bhsm-side-sharing .bhsm-share--responsive {
        position: fixed;
        z-index: 30;
        top: var(--bhsm-rail-top, 240px);
        left: var(--bhsm-rail-left, 8px);
        width: 56px;
        max-width: 56px;
        margin: 0;
        padding: 0;
        border: 0;
    }
    html.bhsm-side-sharing .bhsm-share--responsive .bhsm-share-label {
        margin: 0 0 12px;
        font-size: 10px;
        font-weight: 600;
        line-height: 16px;
        letter-spacing: .1em;
        text-align: center;
        text-transform: uppercase;
    }
    html.bhsm-side-sharing .bhsm-share--responsive .bhsm-share-label-short {
        display: inline;
    }
    html.bhsm-side-sharing .bhsm-share--responsive .bhsm-share-label-full,
    html.bhsm-side-sharing .bhsm-share--responsive .bhsm-button-text,
    html.bhsm-side-sharing .bhsm-share--responsive .bhsm-copy-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
    html.bhsm-side-sharing .bhsm-share--responsive .bhsm-share-buttons {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }
    html.bhsm-side-sharing .bhsm-share--responsive .bhsm-share-button {
        width: 44px;
        height: 44px;
        padding: 0;
        gap: 0;
        background: #f6f3ec;
    }
    html.bhsm-side-sharing .bhsm-share--responsive .bhsm-share-button:hover {
        background: #71312f;
    }
    html.bhsm-side-sharing .bhsm-share--responsive .bhsm-icon svg {
        width: 19px;
        height: 19px;
    }
    html.bhsm-side-sharing .bhsm-share--responsive .bhsm-copy-feedback {
        position: absolute;
        left: calc(100% + 14px);
        bottom: 0;
        width: 288px;
        max-width: calc(100vw - 100px);
        margin: 0;
    }
    html.bhsm-side-sharing .bhsm-share--responsive .bhsm-copy-feedback.is-open {
        box-shadow: 0 8px 24px #1e211f18;
    }
}
@media (max-width: 781px) {
    .bh-masthead.bhsm-has-header {
        flex-wrap: wrap;
    }
    .bhsm-header-side {
        flex: 1 0 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        max-width: none;
    }
    .bhsm-header-side > .bh-anniversary-note {
        text-align: left;
    }
}
@media (max-width: 599px) {
    .bhsm-header-side {
        flex-direction: column;
        align-items: flex-start;
        gap: .85rem;
    }
    .bhsm-header-side > .bh-anniversary-note {
        max-width: none;
        font-size: .65rem;
    }
    .bhsm-header-side .bh-anniversary-note br {
        display: none;
    }
    .bhsm-header-side .bh-anniversary-years {
        display: inline;
        margin-right: .5rem;
        font-size: .9rem;
        white-space: nowrap;
    }
    .bhsm-header-side .bhsm-links,
    .bhsm-fallback--header .bhsm-links {
        justify-content: flex-start;
    }
}
@media (prefers-reduced-motion: reduce) {
    .bhsm-social a.bhsm-link {
        transition: none;
    }
}
