/* Shared www + login footer chrome. Keep login/public/css/site-footer.css identical. */
footer.site-footer,
footer.site-footer.simple,
footer.site-footer.banner {
    --footer-max: 1120px;
    border-top: 1px solid var(--al-border, rgba(255, 255, 255, 0.08));
    background:
        linear-gradient(180deg, rgba(232, 122, 56, 0.16), transparent 22px),
        var(--al-card, #25101E);
    color: var(--al-muted, #B399AA);
    width: 100%;
    left: 0;
    right: 0;
    padding: 0 !important;
    position: relative;
    z-index: 2;
    font-size: 16px;
    line-height: 1.45;
}

footer.site-footer .inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 1fr);
    align-items: start;
    gap: 28px 56px;
    margin: 0 auto;
    padding: 32px 20px 20px;
    max-width: var(--footer-max);
    width: min(92%, var(--footer-max));
}

footer.site-footer .left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

footer.site-footer .footer-brand,
footer.site-footer .footer-tech,
footer.site-footer .footer-meta,
footer.site-footer .footer-note {
    margin: 0;
}

footer.site-footer .footer-brand {
    color: var(--al-ink, #FDF8FB);
    font-family: "Space Grotesk", Inter, "Helvetica Neue", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

footer.site-footer .footer-tech {
    color: var(--al-muted, #B399AA);
    font-size: 0.84rem;
    line-height: 1.5;
}

footer.site-footer .footer-credit-name {
    white-space: nowrap;
    color: var(--al-ink, #FDF8FB);
    font-weight: 600;
}

footer.site-footer .footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--al-neutral, #8A7380);
    font-size: 0.78rem;
}

footer.site-footer .footer-version {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid var(--al-border, rgba(255, 255, 255, 0.08));
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--al-muted, #B399AA);
    font-variant-numeric: tabular-nums;
    opacity: 1;
}

footer.site-footer a {
    color: var(--al-muted, #B399AA);
    text-decoration: none;
}

footer.site-footer a:hover,
footer.site-footer a:focus-visible {
    color: var(--al-ink, #FDF8FB);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

footer.site-footer a.is-external::after,
footer.site-footer a.no-external-icon::after {
    display: none !important;
}

footer.site-footer .right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    min-width: 0;
}

.footer-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.footer-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    border: 1px solid var(--al-border, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--al-muted, #B399AA);
    text-decoration: none;
    overflow: hidden;
}

.footer-icon-link svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex: 0 0 18px;
    display: block;
    fill: currentColor;
}

.footer-icon-link:hover,
.footer-icon-link:focus-visible {
    color: var(--al-ink, #FDF8FB);
    border-color: var(--al-accent, #E87A38);
    text-decoration: none;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    max-width: none;
    font-size: 0.86rem;
    line-height: 1.35;
}

.footer-legal a {
    white-space: nowrap;
}

footer.site-footer .footer-note {
    margin: 0 auto;
    padding: 14px 20px 24px;
    max-width: var(--footer-max);
    width: min(92%, var(--footer-max));
    border-top: 1px solid var(--al-border, rgba(255, 255, 255, 0.08));
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--al-neutral, #8A7380);
}

@media (max-width: 720px) {
    footer.site-footer .inner {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 26px 16px 16px;
    }

    footer.site-footer .right,
    .footer-icons,
    .footer-legal {
        align-items: flex-start;
        justify-content: flex-start;
        max-width: none;
    }

    footer.site-footer .footer-note {
        padding: 12px 16px 22px;
    }
}
