/* =========================================================================
   Site footer
   ========================================================================= */

/* The box sits --edge from the viewport like the header; its contents keep
   to the page grid. */
.site-footer {
    margin-top: 6rem;
    padding: 0 var(--edge) var(--edge);
}

.site-footer-inner.wrap {
    max-width: none;
    padding-inline: calc(var(--page-margin) - var(--edge));
}

.site-footer-inner {
    padding-block: 6.875rem 3rem;
    border: 1px solid var(--c-rule);
    border-radius: var(--radius-card);
}

/* --- Contacts ---------------------------------------------------------- */

.site-footer-contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gutter);
    margin: 0;
}

.site-footer-contact dt {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--c-ink);
    font-size: var(--fs-label);
    text-transform: uppercase;
}

.site-footer-contact dd {
    margin: 0;
    padding-top: 0.9375rem;
    font-size: var(--fs-body);
}

/* --- Funders ----------------------------------------------------------- */

.site-footer-funding {
    margin-top: 6.5rem;
    text-align: center;
}

.site-footer-funders-note {
    margin: 0;
    font-size: var(--fs-nav);
    font-weight: 700;
}

.site-footer-funders {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem 4.5rem;
    margin-top: 3.5rem;
}

.site-footer-funder {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 298px;
}

.site-footer-funder img {
    width: auto;
    max-height: 168px;
    object-fit: contain;
}

.site-footer-disclaimer {
    max-width: var(--content-max);
    margin: 4rem auto 0;
    font-size: var(--fs-nav);
    line-height: 1.3;
}

.site-footer-disclaimer p {
    margin: 0;
}

/* --- Legal ------------------------------------------------------------- */

.site-footer-legal {
    margin-top: 6rem;
    font-size: var(--fs-card);
    text-align: center;
}

.site-footer-legal p {
    margin: 0;
}

.site-footer-legal p + p {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .site-footer {
        margin-top: 4rem;
    }

    .site-footer-inner {
        padding-block: 3rem 2.5rem;
    }

    .site-footer-contacts {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .site-footer-funding {
        margin-top: 3.5rem;
    }

    .site-footer-funders {
        gap: 2.5rem;
        margin-top: 2.5rem;
    }

    .site-footer-funder img {
        max-height: 110px;
    }

    .site-footer-disclaimer {
        margin-top: 2.5rem;
        font-size: var(--fs-body);
    }

    .site-footer-legal {
        margin-top: 3rem;
    }
}
