/* The Freer American footer — links are controlled by Ghost Secondary Navigation. */
.site-footer {
    position: relative;
    background: var(--navy-deep);
    color: #fff;
    border-top: 3px solid var(--red);
}

.footer-inner {
    width: min(1314px, calc(100% - 36px));
    min-height: 128px;
    margin: 0 auto;
    padding: 22px 0;
    display: grid;
    grid-template-columns: minmax(285px, 1fr) minmax(520px, 1.65fr) minmax(255px, 1fr);
    align-items: center;
}

.footer-brand,
.footer-navigation,
.footer-signoff {
    min-width: 0;
}

.footer-brand {
    padding-right: 34px;
}

.footer-title {
    display: inline-block;
    color: #fff;
    font-family: var(--serif);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.footer-title:hover,
.footer-title:focus {
    color: #fff;
}

.footer-brand-ornament {
    display: flex;
    align-items: center;
    width: 230px;
    max-width: 100%;
    margin: 10px 0 8px;
    color: var(--red);
}

.footer-brand-ornament::before,
.footer-brand-ornament::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
}

.footer-brand-ornament span {
    padding: 0 10px;
    font-size: .7rem;
    line-height: 1;
}

.footer-tagline,
.site-footer .footer-tagline {
    max-width: 300px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-family: var(--serif);
    font-size: .96rem;
    font-style: italic;
    line-height: 1.4;
}

.footer-navigation {
    min-height: 72px;
    padding: 0 34px;
    border-left: 1px solid rgba(255,255,255,.18);
    border-right: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-navigation .nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 26px;
    padding: 0;
    margin: 0;
}

.footer-navigation .nav-list li {
    margin: 0;
}

.footer-navigation .nav-list a {
    color: rgba(255,255,255,.9);
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-navigation .nav-list a:hover,
.footer-navigation .nav-list a:focus {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 5px;
}

.footer-signoff {
    padding-left: 34px;
    text-align: right;
}

.footer-flag {
    display: block;
    width: 38px;
    height: 24px;
    margin: 0 0 12px auto;
    box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}

.site-footer .copyright {
    margin: 0;
    color: rgba(255,255,255,.86);
    font-family: var(--serif);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .025em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .footer-inner {
        grid-template-columns: minmax(245px, .85fr) minmax(420px, 1.45fr) minmax(220px, .8fr);
    }
    .footer-brand { padding-right: 24px; }
    .footer-navigation { padding: 0 24px; }
    .footer-signoff { padding-left: 24px; }
    .footer-navigation .nav-list { gap: 10px 18px; }
}

@media (max-width: 900px) {
    .footer-inner {
        min-height: 0;
        padding: 28px 0 24px;
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-brand,
    .footer-signoff {
        padding: 0;
        text-align: center;
    }

    .footer-brand-ornament,
    .footer-tagline,
    .footer-flag {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-navigation {
        min-height: 0;
        padding: 20px 0;
        border-left: 0;
        border-right: 0;
        border-top: 1px solid rgba(255,255,255,.16);
        border-bottom: 1px solid rgba(255,255,255,.16);
    }

    .footer-navigation .nav-list {
        display: flex;
        gap: 12px 22px;
    }

    .footer-navigation .nav-list li {
        margin: 0;
    }

    .site-footer .copyright {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .footer-inner {
        width: min(100% - 30px, 420px);
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-navigation .nav-list {
        gap: 13px 20px;
    }

    .footer-navigation .nav-list a {
        font-size: .71rem;
    }
}
