/*
 * Shared footer navigation.
 * Keep this file synchronized with ../footer-navigation.css.
 */
.site-footer-nav,
.site-footer-nav.site-footer-nav--course {
    width: min(100%, 920px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    margin: 0;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.site-footer-nav.site-footer-nav--course {
    width: min(100%, 1100px);
    gap: 4px 6px;
}

.site-footer-nav::before {
    content: none;
}

.site-footer-nav a,
.site-footer-nav a:first-child {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    flex-basis: auto;
    align-items: center;
    justify-content: center;
    order: 0;
    margin: 0;
    padding: 10px 13px;
    border: 0;
    border-radius: 6px;
    color: #263247;
    background: transparent;
    box-shadow: none;
    font-family: "DM Sans", Montserrat, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.055em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.16s ease, background-color 0.16s ease;
}

.site-footer-nav a::after,
.site-footer-nav a:first-child::after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: 5px;
    left: 13px;
    height: 2px;
    border-radius: 2px;
    background: #00b8d4;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.16s ease;
}

.site-footer-nav a:hover,
.site-footer-nav a:first-child:hover {
    color: #007f96;
    background: rgba(0, 184, 212, 0.07);
}

.site-footer-nav a:hover::after,
.site-footer-nav a:focus-visible::after {
    transform: scaleX(1);
}

.site-footer-nav a:focus-visible {
    color: #263247;
    background: #fff;
    outline: 3px solid rgba(0, 184, 212, 0.32);
    outline-offset: 2px;
}

.site-footer-nav a[aria-current] {
    color: #007f96;
    background: rgba(0, 184, 212, 0.08);
}

.site-footer-nav a[aria-current]::after {
    transform: scaleX(1);
}

.site-footer-nav a[href="/privacy-policy"],
.site-footer-nav a[href="/terms"] {
    color: #687386;
    font-size: 0.71rem;
    letter-spacing: 0.045em;
}

@media (max-width: 760px) {
    .site-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .site-footer-inner {
        gap: 18px;
    }

    .site-footer-nav,
    .site-footer-nav.site-footer-nav--course {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 14px;
        padding: 0;
        border-top: 1px solid #d7e0e8;
    }

    .site-footer-nav a,
    .site-footer-nav a:first-child,
    .site-footer-nav a:nth-last-child(-n+2) {
        min-height: 49px;
        justify-content: space-between;
        order: 0;
        margin: 0;
        padding: 10px 4px;
        border-bottom: 1px solid #d7e0e8;
        border-radius: 0;
        font-size: 0.73rem;
        letter-spacing: 0.035em;
        text-align: left;
    }

    .site-footer-nav a::after,
    .site-footer-nav a:first-child::after {
        content: "›";
        position: static;
        width: auto;
        height: auto;
        margin-left: 8px;
        color: #8a96a8;
        background: none;
        font-size: 1.15rem;
        line-height: 1;
        transform: none;
    }

    .site-footer-nav a:hover,
    .site-footer-nav a:focus-visible,
    .site-footer-nav a[aria-current] {
        color: #007f96;
        background: transparent;
        box-shadow: inset 3px 0 0 #00b8d4;
        padding-left: 10px;
    }

    .site-footer-nav a[href="/privacy-policy"],
    .site-footer-nav a[href="/terms"] {
        font-size: 0.69rem;
    }
}

@media (max-width: 350px) {
    .site-footer-nav.site-footer-nav--course {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer-nav a,
    .site-footer-nav a::after {
        transition: none;
    }
}
