/********************************************************************************************************/
/* TOURNAMENT CENTRAL - SHARED BY EVERY TENANT                                                          */
/*                                                                                                      */
/* Was seven near-identical copies under _Styles/<TenantID>/, differing by one accent colour and two     */
/* one-off tweaks. Those are variables now, read from the tenant's own Config.css.                       */
/*                                                                                                      */
/*     --tournament-accent-color        link and winner-underline colour. Independent of the site's      */
/*                                      primary: five of seven tenants set it to something else, so it   */
/*                                      is its own role. Falls back to --primary-dark-color.             */
/*     --sportinfo-heading-background    band behind .SportInfoWrapper h2. Optional; RIIL only.          */
/*     --sportinfo-link-display          .SportInfoLinks anchors. Optional; MPA only.                    */
/*                                                                                                      */
/* Loaded by Site.Master as /_Styles/TournamentCentral.css. Config.css is still per-tenant and must be   */
/* loaded alongside, or every var() here resolves to nothing.                                            */
/*                                                                                                      */
/* #mnuTournamentDashboardxx was dropped: the "xx" was someone switching the rule off, it matched no     */
/* element, and three tenants had already deleted it outright.                                           */
/********************************************************************************************************/

﻿#mnuTournament {
    background-color: #b12e34;
    color: white;
}

.TCTitle {
    background-color: #b12e34;
    color: white;
    padding: 8px;
    font-size: 24px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}


.SportInfoWrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

    .SportInfoWrapper h2 {
        /* Only RIIL bands this heading today; unset elsewhere means no band, as now. */
        background-color: var(--sportinfo-heading-background, transparent);
        margin: 20px 0 0 0;
        padding: 15px 10px 15px 10px;
        text-align: center;
        margin-top: 30px;
        font-size: 25px;
    }

    .SportInfoWrapper h3 {
        text-align: center;
        width: 100%;
        margin-top: 0;
    }



.SportInfoDetail {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    min-height: 80px;
    font-size: 14px;
}


.SportInfoDatesWrapper {
    width: Calc(65% - 40px);
    padding: 10px;
    display: block;
    float: left;
    line-height: 1.8;
}

.SportInfoLinksWrapper {
    width: Calc(35% - 40px);
    font-size: 16px;
    padding: 10px;
    display: block;
    float: left;
    line-height: 1.8;
}

.SportInfoLinks a:link, .SportInfoLinks a:visited {
    color: var(--tournament-accent-color, var(--primary-dark-color));
    /* MPA sets inline-block; everyone else has always rendered the anchor default.
       Promote to inline-block for all if it turns out to be the better rendering. */
    display: var(--sportinfo-link-display, inline);
    font-size: 20px;
    font-weight: bold;
}

.SportInfoTitle {
    font-weight: bold;
    margin-top: 4px;
}

.SportInfoIndent {
    padding-left: 10px;
    font-weight: bold;
}



.GameTickerWrapper {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

    .GameTickerWrapper a {
        flex: 0 0 30%;
        height: 150px;
        text-decoration: none;
        color: white;
        padding: 6px;
        background-color: white;
        border: 1px solid black;
    }

        .GameTickerWrapper a:visited {
            text-decoration: none;
            color: white;
        }

.GameTickerBlock {
    height: 100%;
    width: 100%;
    display: block;
    background-size: cover;
    background-attachment: local;
    background-position: center;
    background-color: white;
    color: black;
    text-align: center;
    padding: 0;
    position: relative;
}



.GameTickerDivision {
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
    background-color: white;
    color: black;
}

.GameTickerTeam {
    width: Calc(50% - 15px);
}

    .GameTickerTeam img {
        display: inline-block;
        vertical-align: middle;
        height: 65px;
        width: 65px;
        margin: 4px 0 0 0;
    }

.GameTickerWinner {
    border-bottom: 4px solid var(--tournament-accent-color, var(--primary-dark-color));
    background-color: white;
}

.GameTeamLeft {
    display: block;
    float: left;
}

.GameTeamRight {
    display: block;
    float: right;
}

.GameTickerScore {
    font-size: 18px;
    font-weight: bold;
    margin-top: 2px;
}

.GameTickerDetail {
    clear: both;
    text-align: left;
    line-height: 1;
    position: absolute;
    bottom: 8px;
    width: Calc(100% - 20px);
    overflow-x: hidden;
    white-space: nowrap;
    font-size: 11px;
    height: 12px;
}


@media (max-width: 1000px) {
    .GameTickerWrapper a {
        flex: 0 0 45%;
    }
}

@media (max-width: 700px) {
    .GameTickerWrapper {
        display: block;
        text-align: center;
    }

        .GameTickerWrapper a {
            display: block;
            width: 90%;
            margin: 0 auto 15px auto;
        }

    .SportInfoDetail {
        gap: 0px;
    }

    .SportInfoDatesWrapper,
    .SportInfoLinksWrapper {
        width: 100%;
    }
}



@media (max-width: 900px) {
    
    .SportInfoBlock {
        width: 100%;
    }

    .SportInfoDetail {
        height: auto;
        min-height: unset;
    }



}
