/* Scoped to this row; the surrounding section supplies its own background. */
.pp-social-links.pp-social-links {
    --pp-social-fg: #243c59;
    --pp-social-bg: #f4f6f9;
    --pp-social-border: #b8c4d2;
    --pp-social-hover-fg: #ffffff;
    --pp-social-hover-bg: #2e4c71;
    --pp-social-focus: #2e4c71;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: transparent;
}

.pp-social-links.pp-social-links--dark {
    --pp-social-fg: #dbe1e8;
    --pp-social-bg: rgba(255, 255, 255, 0.07);
    --pp-social-border: #94a3b8;
    --pp-social-hover-fg: #18212e;
    --pp-social-hover-bg: #dbe1e8;
    --pp-social-focus: #e2e8f0;
}

.pp-social-links.pp-social-links--center { justify-content: center; }
.pp-social-links.pp-social-links--right { justify-content: flex-end; }

.pp-social-links > .pp-social-links__item {
    box-sizing: border-box;
    display: block;
    flex: 0 0 44px;
    width: 44px;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
    background: transparent;
}

/* Three scoped classes outrank listing-container link colors, including the
   documents/agent container's !important gold rule, regardless of load order.
   Keep the override on these social links so ordinary listing links keep gold. */
.pp-social-links.pp-social-links .pp-social-links__link,
.pp-social-links.pp-social-links .pp-social-links__link:visited {
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--pp-social-border);
    border-radius: 50%;
    background: var(--pp-social-bg);
    color: var(--pp-social-fg) !important;
    box-shadow: none;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
    -webkit-tap-highlight-color: transparent;
}

.pp-social-links.pp-social-links .pp-social-links__link:hover,
.pp-social-links.pp-social-links .pp-social-links__link:focus-visible {
    border-color: var(--pp-social-hover-bg);
    background: var(--pp-social-hover-bg);
    color: var(--pp-social-hover-fg) !important;
    text-decoration: none;
}

.pp-social-links .pp-social-links__link:focus-visible {
    outline: 2px solid var(--pp-social-focus);
    outline-offset: 2px;
}

.pp-social-links .pp-social-links__icon {
    display: block;
    flex: none;
    width: 22px;
    height: 22px;
    max-width: none;
    max-height: none;
    color: inherit;
}

.pp-social-links .pp-social-links__label {
    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;
}

@media (max-width: 480px) {
    .pp-social-links.pp-social-links { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-social-links .pp-social-links__link { transition: none; }
}

@media (forced-colors: active) {
    .pp-social-links .pp-social-links__link { border-color: LinkText; }
    .pp-social-links .pp-social-links__link:focus-visible { outline-color: Highlight; }
}
