/* Barama public footer / social row v1.0.5.
   Scoped to the footer bottom. IMPORTANT: app.css defines
   `.site-footer nav { flex-direction:column }` for navigation columns.
   The qualified selector below deliberately overrides that rule. */

.site-footer .site-footer__bottom nav.site-footer__social {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.site-footer .site-footer__bottom .site-footer__utility {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: .7rem;
    min-width: 0;
}

.site-footer .site-footer__bottom nav.site-footer__social a.site-footer__social-link {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    color: var(--barama-muted, #64748b);
    background: color-mix(in srgb, var(--barama-surface, #fff) 82%, transparent);
    border: 1px solid var(--barama-border, #d6deeb);
    border-radius: 11px;
    box-shadow: 0 2px 8px rgb(15 23 42 / 3%);
    text-decoration: none;
    font-size: 0;
    line-height: 1;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.site-footer .site-footer__bottom nav.site-footer__social a.site-footer__social-link svg {
    display: block;
    flex: none;
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    overflow: visible;
    pointer-events: none;
}

.site-footer .site-footer__bottom nav.site-footer__social a.site-footer__social-link:hover {
    color: var(--barama-primary, #2563eb);
    background: color-mix(in srgb, var(--barama-primary, #2563eb) 8%, var(--barama-surface, #fff));
    border-color: color-mix(in srgb, var(--barama-primary, #2563eb) 48%, var(--barama-border, #d6deeb));
    box-shadow: 0 6px 16px rgb(15 23 42 / 9%);
    transform: translateY(-2px);
}

.site-footer .site-footer__bottom nav.site-footer__social a.site-footer__social-link:focus-visible {
    outline: 2px solid var(--barama-primary, #2563eb);
    outline-offset: 3px;
}

.site-footer .site-footer__bottom nav.site-footer__social a.site-footer__social-link[data-social-platform="youtube"] svg path:last-child {
    fill: var(--barama-surface, #fff);
}

[data-bs-theme="dark"] .site-footer .site-footer__bottom nav.site-footer__social a.site-footer__social-link {
    background: color-mix(in srgb, var(--barama-surface, #172235) 78%, transparent);
    box-shadow: none;
}

[data-bs-theme="dark"] .site-footer .site-footer__bottom nav.site-footer__social a.site-footer__social-link:hover {
    color: #93c5fd;
    background: color-mix(in srgb, var(--barama-primary, #2563eb) 15%, var(--barama-surface, #172235));
}

@media (max-width: 767.98px) {
    .site-footer .site-footer__bottom {
        flex-wrap: wrap;
        row-gap: .75rem;
    }
    .site-footer .site-footer__bottom .site-footer__utility {
        width: 100%;
        flex-basis: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 380px) {
    .site-footer .site-footer__bottom nav.site-footer__social {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: .38rem;
        white-space: normal;
    }
    .site-footer .site-footer__bottom nav.site-footer__social a.site-footer__social-link {
        flex-basis: 34px;
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .site-footer__bottom nav.site-footer__social a.site-footer__social-link {
        transition: none;
    }
    .site-footer .site-footer__bottom nav.site-footer__social a.site-footer__social-link:hover {
        transform: none;
    }
}
