.footer-link-groups {
    display: grid;
    gap: 8px;
}

.footer-link-group {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg) 58%, transparent);
}

.footer-link-group summary {
    display: flex;
    min-height: 38px;
    cursor: pointer;
    list-style: none;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    transition: color .2s, background-color .2s;
}

.footer-link-group summary::-webkit-details-marker {
    display: none;
}

.footer-link-group summary::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-inline-start: auto;
    border-right: 2px solid var(--gold-dark);
    border-bottom: 2px solid var(--gold-dark);
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform .2s;
}

.footer-link-group[open] summary {
    color: var(--gold-dark);
    background: rgba(212, 175, 55, .08);
}

.footer-link-group[open] summary::after {
    transform: rotate(225deg) translate(-1px, -1px);
}

.footer-link-group summary:is(:hover, :focus-visible) {
    color: var(--gold-dark);
    background: rgba(212, 175, 55, .08);
    outline: none;
}

.footer-link-group summary:focus-visible {
    box-shadow: inset 0 0 0 2px var(--gold);
}

.footer-link-group__count {
    display: inline-flex;
    min-width: 22px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding-inline: 6px;
    border-radius: 999px;
    background: rgba(212, 175, 55, .12);
    color: var(--gold-dark);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-weight: 800;
}

.footer-link-group__links {
    display: grid;
    gap: 8px;
    padding: 4px 12px 12px;
    border-top: 1px solid var(--border);
}

.footer-link-group__links a:first-child {
    padding-top: 8px;
}

.footer-social {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 0 auto 20px;
}

.footer-social__title {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.footer-social__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.footer-social__link {
    --social-color: var(--gold-dark);
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-muted);
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .05);
    transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}

.footer-social__link svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.footer-social__link:is(:hover, :focus-visible) {
    border-color: var(--social-color);
    background: var(--social-color);
    color: #fff;
    outline: none;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--social-color) 26%, transparent);
    transform: translateY(-2px);
}

.footer-social__link:focus-visible {
    box-shadow: 0 0 0 3px var(--bg2), 0 0 0 5px var(--social-color);
}

.footer-social__link--linkedin {
    --social-color: #0a66c2;
}

.footer-social__link--facebook {
    --social-color: #1877f2;
}

.footer-social__link--instagram {
    --social-color: #e1306c;
}

.footer-social__link--tiktok {
    --social-color: #fe2c55;
}

.footer-social__link--youtube {
    --social-color: #f00;
}

.footer-social__link--pinterest {
    --social-color: #bd081c;
}

.footer-social__link--x {
    --social-color: #111827;
}

html[data-theme="night"] .footer-social__link--x:is(:hover, :focus-visible) {
    --social-color: #e5e7eb;
    color: #111827;
}

@media (prefers-reduced-motion: reduce) {
    .footer-link-group summary::after,
    .footer-social__link {
        transition: none;
    }
}
