/* The same 15 columns occur in every season and both second-stage groups. */
body.page-id-226 .nkl-full-table {
    width: 100%;
    table-layout: fixed;
}

body.page-id-226 .nkl-full-table th:nth-child(1) { width: 3% !important; }
body.page-id-226 .nkl-full-table th:nth-child(2) { width: 27% !important; }
body.page-id-226 .nkl-full-table th:nth-child(3) { width: 4.5% !important; }
body.page-id-226 .nkl-full-table th:nth-child(4) { width: 3.5% !important; }
body.page-id-226 .nkl-full-table th:nth-child(5) { width: 3.5% !important; }
body.page-id-226 .nkl-full-table th:nth-child(6) { width: 4.5% !important; }
body.page-id-226 .nkl-full-table th:nth-child(7) { width: 4.5% !important; }
body.page-id-226 .nkl-full-table th:nth-child(8) { width: 4% !important; }
body.page-id-226 .nkl-full-table th:nth-child(9) { width: 5% !important; }
body.page-id-226 .nkl-full-table th:nth-child(10) { width: 6% !important; }
body.page-id-226 .nkl-full-table th:nth-child(11) { width: 5% !important; }
body.page-id-226 .nkl-full-table th:nth-child(12) { width: 5% !important; }
body.page-id-226 .nkl-full-table th:nth-child(13) { width: 5.5% !important; }
body.page-id-226 .nkl-full-table th:nth-child(14) { width: 5% !important; }
body.page-id-226 .nkl-full-table th:nth-child(15) { width: 14% !important; }

body.page-id-226 .nkl-full-table th,
body.page-id-226 .nkl-full-table td {
    box-sizing: border-box;
}

body.page-id-226 .nkl-full-table .nkl-team-cell,
body.page-id-226 .nkl-full-table .nkl-team-cell a {
    min-width: 0;
}

@media (max-width: 1400px) {
    body.page-id-226 .nkl-full-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.page-id-226 .nkl-full-table {
        min-width: 1180px;
    }
}

/* The playoff plugin hides overflow on this shared wrapper at phone widths.
   Restore horizontal touch scrolling so every standings column is reachable. */
@media (max-width: 767px) {
    body.page-id-226 .elementor-widget-NKL_Tournament_Table .nkl-full-wrapper {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
    }

    body.page-id-226 .elementor-widget-NKL_Tournament_Table .nkl-full-table {
        min-width: 1180px !important;
    }
}

/* Homepage: keep the managed weekly-game advert in the left column above
   the six leader cards. The old static image is still emitted by the legacy
   leaders widget, so hide that one homepage copy without changing its plugin. */
body.home.page-id-20 .elementor-element-f10d416 .nkl-managed-ad--home_weekly_game {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start !important;
    min-width: 0;
}

body.home.page-id-20 .elementor-element-f10d416 .lmkl-top-game-ad {
    display: none !important;
}

body.home.page-id-20 .elementor-element-f10d416 .nkl-leaders-wrapper {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

body.home.page-id-20 .elementor-element-f10d416 .elementor-widget-NKL_Tournament_Table {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    align-self: stretch !important;
    height: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* The mini table has only one league tab (NKL); hide the redundant control. */
body.home.page-id-20 .elementor-element-f10d416 .elementor-widget-NKL_Tournament_Table .nkl-short-table-controls {
    display: none !important;
}

/* Match the height of four feature stories by removing the last two rows from
   the adjacent homepage news list. The complete news archive stays unchanged. */
body.home.page-id-20 .elementor-element-4e029b5 .nkl-combined-grid > .nkl-combined-card:nth-last-child(-n + 2) {
    display: none !important;
}

@media (max-width: 900px) {
    body.home.page-id-20 .elementor-element-f10d416 .nkl-managed-ad--home_weekly_game {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.home.page-id-20 .elementor-element-f10d416 .elementor-widget-NKL_Tournament_Table {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
}
