/* Mobile footer contrast; retain desktop styling and existing navigation. */
@media screen and (max-width: 1199px) {
    #footer,
    #footer .footer,
    #footer .subfooter,
    #footer .pg-footer-links,
    .pg-footer-links {
        background: #123b5d !important;
        color: #e8f2fb;
    }
    #footer nav a,
    #footer .footmenuBox a,
    .pg-footer-links a {
        color: #ffffff;
        font-weight: 700;
        line-height: 1.6;
        text-decoration: none;
    }
    #footer nav a:hover,
    #footer nav a:focus,
    .pg-footer-links a:hover,
    .pg-footer-links a:focus {
        color: #ffffff;
        background-color: #205579;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    #footer a:focus-visible,
    .pg-footer-links a:focus-visible {
        outline: 3px solid #ffd97a;
        outline-offset: -3px;
    }
    #footer #bottomFMenu.bfmWrap {
        background: #e6f3fc;
        border-top: 2px solid #238cb5;
        box-shadow: 0 -3px 12px rgba(18, 59, 93, 0.18);
    }
    #footer #bottomFMenu > a {
        color: #123b5d;
        border-top: 0;
        min-height: 56px;
        text-decoration: none;
    }
    #footer #bottomFMenu > a .iconfont { color: #123b5d; }
    #footer #bottomFMenu > a > span {
        color: #123b5d;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.4;
    }
    #footer #bottomFMenu > a:hover,
    #footer #bottomFMenu > a:focus-visible,
    #footer #bottomFMenu > a:active {
        background: #cce7f8;
    }
}

/* Compact wrapped footer menu rows on phones. */
@media screen and (max-width: 767px) {
    .pg-footer-links,
    #footer .pg-footer-links {
        row-gap: 0;
        padding-top: 6px;
        padding-bottom: 6px;
    }
    .pg-footer-links a,
    #footer .pg-footer-links a {
        min-height: 28px;
        line-height: 1.3;
        padding-top: 2px;
        padding-bottom: 2px;
        box-sizing: border-box;
    }
    #footer .footmenuBox ul {
        line-height: 28px;
        row-gap: 0;
    }
    #footer .footmenuBox ul li a {
        line-height: 1.3;
    }
}

/* Make footer text menus recognizable as links without increasing row height. */
#footer nav a,
#footer .footmenuBox ul li a,
.pg-footer-links a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-skip-ink: auto;
    cursor: pointer;
    border-radius: 3px;
}
#footer nav a:hover,
#footer nav a:focus-visible,
#footer nav a:active,
#footer .footmenuBox ul li a:hover,
#footer .footmenuBox ul li a:focus-visible,
#footer .footmenuBox ul li a:active,
.pg-footer-links a:hover,
.pg-footer-links a:focus-visible,
.pg-footer-links a:active {
    color: #ffffff;
    background-color: #205579;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Keep footer links above the fixed mobile navigation, including wrapped labels. */
@media screen and (max-width: 1199px) {
    #footer.lk-mobile-footer {
        position: static;
        width: 100%;
        margin-top: 0;
        padding-bottom: calc(var(--lk-bottom-menu-height, calc(80px + env(safe-area-inset-bottom, 0px))) + 8px);
    }
    .lk-has-mobile-footer .pg-shell {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    .lk-has-mobile-footer .pg-shell > :last-child {
        margin-bottom: 0;
    }
    .lk-has-mobile-footer .lc-profile {
        padding-bottom: 12px;
    }
}
