/* LTS Core 0.15.240 — one legal footer row on pre-existing footer surfaces.
 * No additional footer hooks or routes are added by these styles.
 */
body.lts-global-footer-active { overflow-x: clip; }
body.lts-global-footer-active .site-footer:not(.lts-global-footer),
body.lts-global-footer-active #colophon:not(.lts-global-footer),
body.lts-global-footer-active footer.wp-block-template-part:not(.lts-global-footer) { display: none !important; }
body.lts-global-footer-active .lts-global-footer { display: block !important; }

body.lts-global-footer-active .lts-global-footer.lts-homepage__footer,
body.lts-global-footer-active .lts-global-footer.lts-homepage__footer.lts-global-footer--compact {
    box-sizing: border-box;
    width: 100vw !important;
    max-width: none !important;
    position: relative;
    left: 50%;
    margin: 0 0 0 -50vw !important;
    padding: 14px 0 !important;
    background: var(--lts-parchment, #F6F1E8) !important;
    color: var(--lts-ink, #20344D) !important;
    border: 0 !important;
    border-top: 2px solid var(--lts-blue, #4352A6) !important;
    box-shadow: none !important;
    font-family: var(--font-sans, Inter, ui-sans-serif, system-ui, sans-serif);
}
body.lts-global-footer-active .lts-global-footer .lts-homepage__container {
    box-sizing: border-box;
    width: min(calc(100% - 40px), var(--container-max, 1220px));
    margin-inline: auto;
    padding: 0;
}
body.lts-global-footer-active .lts-global-footer .lts-global-footer__row {
    /* Fix the homepage's formerly shrinkable middle navigation track.
       The logo and icon have fixed intrinsic space; links own the remaining
       width and can wrap between complete links, never within words. */
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) 36px !important;
    align-items: center !important;
    align-content: center;
    column-gap: clamp(12px, 2vw, 30px);
    row-gap: 8px;
    height: auto !important;
    min-height: 36px;
}
body.lts-global-footer-active .lts-global-footer .lts-global-footer__copyright {
    color: var(--lts-ink, #20344D);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 550;
    min-width: 0;
    white-space: nowrap;
    justify-self: start;
    grid-column: 1 !important;
    grid-row: 1 !important;
}
body.lts-global-footer-active .lts-global-footer .lts-global-footer__legal {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
}
body.lts-global-footer-active .lts-global-footer .lts-global-footer__legal ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.3vw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}
body.lts-global-footer-active .lts-global-footer .lts-global-footer__legal li {
    display: list-item;
    flex: 0 0 auto;
    min-width: max-content;
    padding: 0;
    margin: 0;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}
body.lts-global-footer-active .lts-global-footer .lts-global-footer__legal a {
    color: var(--lts-ink, #20344D) !important;
    font-size: 12px !important;
    font-weight: 550;
    line-height: 1.5;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}
body.lts-global-footer-active .lts-global-footer .lts-global-footer__legal a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.lts-global-footer-active .lts-global-footer a:focus-visible {
    outline: 2px solid var(--lts-blue, #4352A6) !important;
    outline-offset: 3px;
}
body.lts-global-footer-active .lts-global-footer .lts-global-footer__youtube {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    justify-self: end;
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 36px;
    height: 36px;
    margin-left: 0;
    padding: 4px;
    box-sizing: border-box;
    border-radius: 8px;
    color: var(--lts-blue, #4352A6) !important;
    line-height: 1;
    text-decoration: none;
    transition: background-color .18s ease;
}
body.lts-global-footer-active .lts-global-footer .lts-global-footer__youtube svg { display: block; width: 24px; height: 24px; }
body.lts-global-footer-active .lts-global-footer a.lts-global-footer__youtube:hover { background: rgba(67,82,166,.08); }
body.lts-global-footer-active .lts-global-footer .lts-global-footer__youtube--unlinked { opacity: .55; cursor: default; }
/* Additional FAQ destination: give legal links room before they overlap
 * the copyright or YouTube control on normal laptop widths. */
@media (min-width: 1091px) and (max-width: 1500px) {
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__row {
        column-gap: 18px;
    }
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__legal ul {
        flex-wrap: wrap;
        gap: 7px 14px;
    }
}
@media (min-width: 641px) and (max-width: 1090px) {
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__row {
        column-gap: 14px;
    }
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__legal ul { gap: 7px 11px; flex-wrap: wrap; }
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__copyright { font-size: 11px; }
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__legal a { font-size: 11px !important; }
}
@media (max-width: 640px) {
    body.lts-global-footer-active .lts-global-footer.lts-homepage__footer,
    body.lts-global-footer-active .lts-global-footer.lts-homepage__footer.lts-global-footer--compact {
        padding: 12px 0 !important;
    }
    body.lts-global-footer-active .lts-global-footer .lts-homepage__container {
        width: min(calc(100% - 28px), var(--container-max, 1220px));
    }
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__row {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) 36px !important;
        column-gap: 10px;
        row-gap: 7px;
    }
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__copyright {
        grid-column: 1 !important;
        grid-row: 1 !important;
        font-size: 11px;
    }
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__youtube {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end;
    }
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__legal {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
    }
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__legal ul { flex-wrap: wrap; gap: 6px 13px; justify-content: center; }
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__legal a { font-size: 11px !important; }
}
@media (prefers-reduced-motion: reduce) {
    body.lts-global-footer-active .lts-global-footer .lts-global-footer__youtube { transition: none; }
}
/* Preserve all three existing immersive-session footer exclusions. */
body.lts-global-footer-active.lts-story-v2-focus-mode .lts-global-footer,
body.lts-global-footer-active.lts-review-v1-study-active .lts-global-footer,
body.lts-global-footer-active.lts-story-v2-vocab-study-active .lts-global-footer { display: none !important; }


/* Core v0.15.262 — Mobile member Dashboard: suppress empty theme/footer
 * decoration without touching the canonical copyright, links or YouTube icon.
 * The actual Core footer renderer has exactly one content row; any additional
 * empty box or generated pseudo-element is not part of the legal navigation.
 * Scope tightly to the Dashboard so other website footers retain their layout. */
@media (max-width: 780px) {
    body.lts-global-footer-active.lts-profile-settings-v1-dashboard .lts-global-footer::before,
    body.lts-global-footer-active.lts-profile-settings-v1-dashboard .lts-global-footer::after,
    body.lts-global-footer-active.lts-profile-settings-v1-dashboard .lts-global-footer__row::before,
    body.lts-global-footer-active.lts-profile-settings-v1-dashboard .lts-global-footer__row::after,
    body.lts-global-footer-active.lts-profile-settings-v1-dashboard .lts-global-footer__legal::before,
    body.lts-global-footer-active.lts-profile-settings-v1-dashboard .lts-global-footer__legal::after {
        content: none !important;
        display: none !important;
        box-shadow: none !important;
    }
    body.lts-global-footer-active.lts-profile-settings-v1-dashboard .lts-global-footer > :not(.lts-global-footer__row),
    body.lts-global-footer-active.lts-profile-settings-v1-dashboard .lts-global-footer__row > :not(.lts-global-footer__copyright):not(.lts-global-footer__legal):not(.lts-global-footer__youtube) {
        display: none !important;
    }
    body.lts-global-footer-active.lts-profile-settings-v1-dashboard .lts-global-footer {
        padding-bottom: 12px !important;
        overflow: clip;
    }
}
