/*
 * Izolovaná oprava rozložení spodního kalendáře.
 * Soubor je načten až po hlavním, responzivním i Swiper CSS a nezasahuje
 * do navigace ani do horního výpisu následujících zápasů.
 */

main .calendar-box .match-in-date-box.swiper-date-matches {
    width: 90%;
    height: auto;
    margin: 20px auto 0;
    overflow: visible;
}

main .calendar-box .match-in-date-box.swiper-date-matches > .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-evenly;
    width: 100%;
    height: auto !important;
    min-height: 0;
    row-gap: 30px;
    white-space: normal;
    transform: none !important;
}

main .calendar-box .match-in-date-box.swiper-date-matches .swiper-slide.filterDiv {
    display: none !important;
}

main .calendar-box .match-in-date-box.swiper-date-matches .swiper-slide.filterDiv.show {
    display: flex !important;
    flex: 0 1 30%;
    flex-direction: column;
    align-items: stretch;
    width: 30% !important;
    max-width: 520px;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    box-sizing: border-box;
    transform: none !important;
}

main .calendar-box .match-in-date-box.swiper-date-matches .league-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 62px;
    box-sizing: border-box;
}

main .calendar-box .match-in-date-box.swiper-date-matches .team-logo-box {
    display: flex;
    flex: 0 0 150px;
    align-items: center;
    width: 100%;
    height: 150px;
    min-height: 150px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-sizing: border-box;
}

main .calendar-box .match-in-date-box.swiper-date-matches .team-logo-box .logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 125px;
    object-fit: contain;
}

main .calendar-box .match-in-date-box.swiper-date-matches .match-info-box {
    width: 100%;
    margin-top: auto;
    box-sizing: border-box;
}

/* Větší bílý odstup mezi spodkem karet a navazujícím černým pozadím. */
main .calendar-box .date-navigation .calendar-box-main {
    padding-bottom: 48px;
    box-sizing: border-box;
}

/* Zlatá výroční položka STOLETÍ; nav80 je její stabilní ID v hlavním menu. */
header nav > ul > li#nav80 > a,
header nav > ul > li#nav80:hover > a,
header nav > ul > li#nav80 > a:hover {
    color: #d4af37 !important;
}

@media only screen and (min-width: 781px) and (max-width: 1100px) {
    main .calendar-box .match-in-date-box.swiper-date-matches .swiper-slide.filterDiv.show {
        flex-basis: 44%;
        width: 44% !important;
    }
}

@media only screen and (max-width: 780px) {
    main .calendar-box .match-in-date-box.swiper-date-matches {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    main .calendar-box .match-in-date-box.swiper-date-matches > .swiper-wrapper {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        row-gap: 24px;
    }

    main .calendar-box .match-in-date-box.swiper-date-matches .swiper-slide.filterDiv.show {
        flex: 0 0 auto;
        width: 92% !important;
        max-width: 560px;
    }

    main .calendar-box .match-in-date-box.swiper-date-matches .team-logo-box {
        flex-basis: 140px;
        height: 140px;
        min-height: 140px;
    }

    main .calendar-box .match-in-date-box.swiper-date-matches .team-logo-box .logo img {
        max-height: 115px;
    }

    main .calendar-box .date-navigation .calendar-box-main {
        padding-bottom: 38px;
    }
}
