/* Matches page: one original forest-green background, tournaments remain color coded.
   This stylesheet is intentionally linked LAST in matches.html. */
html body main section.content-section .container div.match-card,
html body main section.content-section .container div.match-card:hover {
    --egc-bg: #173B32 !important;
    --egc-card: #20463B !important;
    --accent: #FFFFFF !important;
    background: #20463B !important;
    background-color: #20463B !important;
    background-image: none !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    border: 1px solid rgba(255,255,255,.24) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 30px rgba(9,35,27,.16) !important;
}
/* Keep legacy colored side-stripes removed and inner elements transparent. */
html body main section.content-section .container div.match-card::before,
html body main section.content-section .container div.match-card::after {
    content: none !important;
    display: none !important;
}
html body main section.content-section .container div.match-card > .match-meta,
html body main section.content-section .container div.match-card > .match-line,
html body main section.content-section .container div.match-card > .el-fixture-meta {
    background: transparent !important;
    background-image: none !important;
}
html body main section.content-section .container div.match-card .match-line,
html body main section.content-section .container div.match-card .match-line *,
html body main section.content-section .container div.match-card .match-meta,
html body main section.content-section .container div.match-card .el-result-penalties,
html body main section.content-section .container div.match-card .el-result-round {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}
/* Tournament labels keep their existing distinctive competition colors. */
html body main section.content-section .container div.match-card .match-meta .el-fixture-tournament,
html body main section.content-section .container div.match-card .el-fixture-tournament {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,.38) !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-weight: 800 !important;
    background-image: none !important;
}
/* 3rd AFL division: blue tournament badge. */
html body main section.content-section .container div.match-card.el-match-competition--afl .el-fixture-tournament,
html body main section.content-section .container div.match-card .el-fixture-tournament--afl {
    background: #29568B !important;
    background-color: #29568B !important;
}
/* KCHR 11x11: dark red tournament badge. */
html body main section.content-section .container div.match-card.el-match-competition--kchr .el-fixture-tournament,
html body main section.content-section .container div.match-card .el-fixture-tournament--kchr {
    background: #873447 !important;
    background-color: #873447 !important;
}
/* AFL Cup: dark gold tournament badge. */
html body main section.content-section .container div.match-card.el-match-competition--cup .el-fixture-tournament,
html body main section.content-section .container div.match-card .el-fixture-tournament--cup {
    background: #8A6A25 !important;
    background-color: #8A6A25 !important;
}
