/* Three link columns and one brand column; the original mobile footer is restored by JS. */
/* Four homepage categories occupy all four tracks (the theme still has five). */
@media (min-width: 1081px) {
    body.home.tspa-native-shell .tspa-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1080px) {
    body.home.tspa-native-shell .tspa-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 768px) {
    body.tspa-native-shell footer.tspa-footer.tspa-footer--compact {
        padding: 16px 0 !important;
    }

    body.tspa-native-shell .tspa-footer--compact .tspa-footer-top {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: start;
        gap: 24px;
    }

    body.tspa-native-shell .tspa-footer--compact .tspa-footer-top > div {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    body.tspa-native-shell .tspa-footer--compact .tspa-footer-name {
        font-size: clamp(21px, 2vw, 26px);
        line-height: 1.1;
    }

    body.tspa-native-shell .tspa-footer--compact .tspa-footer-top > div > p {
        margin: 4px 0 0;
        font-size: 12px;
        line-height: 1.4;
    }

    body.tspa-native-shell .tspa-footer--compact .tspa-footer-top > nav {
        grid-column: 2 / -1;
        grid-row: 1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
        margin: 0;
        font-size: 14px;
        line-height: 1.4;
    }

    body.tspa-native-shell .tspa-footer--compact .tspa-footer-group {
        display: grid;
        align-content: start;
        gap: 0;
        min-width: 0;
    }

    body.tspa-native-shell .tspa-footer--compact nav a {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        width: fit-content;
        max-width: 100%;
        overflow-wrap: anywhere;
        text-decoration: none;
    }

    body.tspa-native-shell .tspa-footer--compact nav a:hover {
        color: #f2d38d;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    body.tspa-native-shell .tspa-footer--compact .tspa-footer-bottom {
        display: block;
        width: 100%;
        max-width: 100%;
        border: 0;
        margin: 6px 0 0;
        padding: 0;
        text-align: left;
        font-size: 12px;
        line-height: 1.4;
    }
}
