.home-standings-section {
    padding: 24px 12px;
    background: #0c1224;
}

.home-standings-panel {
    max-width: 1216px;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid #263748;
    border-radius: 14px;
    color: #fff;
    background: #060b1b;
}

.home-standings-panel h2 {
    margin: 0 0 6px;
    font: 400 clamp(23px, 2.5vw, 34px)/1.2 BannerAnton, Impact, sans-serif;
    text-transform: uppercase;
}
.home-standings-panel header { padding: clamp(16px, 2.5vw, 32px); }
.home-standings-panel header p { color: #ffc107; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.home-standings-panel header small { color: #a7bdcf; }
.home-standings-panel h2 small { font-size: .6em; }
.home-standings-panel .icon { width: 1em; height: 1em; fill: currentColor; }

.home-standings-table { width: 100%; font-size: 12px; color: #d5e3ed; }
.home-standings-table th,
.home-standings-table td { padding: 14px 6px; border-top: 1px solid #263748; text-align: center; }
.home-standings-table thead { background: #122230; color: #a7bdcf; }
.home-standings-table thead th { font-size: 10px; text-transform: uppercase; }
.home-standings-table tr > :nth-child(2) { text-align: left; }
.standings-leader > td:first-child { box-shadow: inset 4px 0 #009e7d; color: #24ddb0; }
.standings-leader > td:first-child::before,
.standings-featured > td:first-child::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #00ce9c;
}
.standings-featured { background: linear-gradient(90deg, #32251c, #1a1938 48%, #111a2c); }
.standings-featured > td:first-child { box-shadow: inset 4px 0 #ffc107; color: #ffc107; }
.home-standings-table abbr { text-decoration: none; }
.home-standings-table .standings-win { color: #61dfb2; }
.home-standings-table .standings-loss { color: #ff8295; }
.home-standings-table .standings-points-heading { color: #ffc107; }
.home-standings-table .standings-points { color: #fff; font-size: 15px; font-weight: 800; }
.standings-featured .standings-points span {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid #ffc10766;
    border-radius: 7px;
    background: #ffc10720;
    color: #ffc107;
}

.standings-team { display: flex; gap: 8px; align-items: center; }
.standings-team strong { display: inline; overflow-wrap: anywhere; color: #fff; font: 600 14px/1.5 Arial, sans-serif; }
.standings-team small { display: block; color: #8ba4bb; font-size: 11px; }
.standings-featured .standings-team strong { color: #ffc107; }
.standings-featured-label {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 5px;
    border-radius: 4px;
    background: #ffc107;
    color: #111827;
    font-size: 9px;
    text-transform: uppercase;
}
.standings-crest {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border: 1px solid currentColor;
    border-radius: 10px;
    font-size: 20px;
}
.crest-0 { color: #91f0cd; background: #135749; }
.crest-1 { color: #ffc107; background: #3a3020; }
.crest-2 { color: #91d8ff; background: #07577a; }
.crest-3 { color: #d3e0ef; background: #394453; }
.crest-4 { color: #a8bdff; background: #233d8b; }
.crest-5 { color: #ffb5c6; background: #781d3b; }
.crest-6 { color: #ffd28c; background: #884b18; }
.crest-7 { color: #dfb0ff; background: #54227c; }
.standings-compact { display: none; }
.standings-form { display: flex; justify-content: center; gap: 6px; }
.standings-form span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid; border-radius: 7px; font-size: 9px; font-weight: 700; }
.standings-form .form-G { color: #42e4b2; background: #07332c; border-color: #146650; }
.standings-form .form-B { color: #d2deea; background: #202d3d; border-color: #34485e; }
.standings-form .form-M { color: #ff90a9; background: #490e24; border-color: #82213e; }



@media (max-width: 575.98px) {
    .home-standings-table .standings-extra { display: none; }
    .standings-compact { display: block; margin-top: 4px; color: #a7bdcf; font-size: 10px; }
    .standings-crest { display: none; }
    .standings-form { gap: 2px; }
    .home-standings-table .standings-points { font-size: 13px; }
    .standings-form span { width: 12px; height: 18px; }
}

.home-schedule {
    max-width: 1216px;
    margin: 24px auto;
    padding: 12px;
    border: 1px solid #263f51;
    border-radius: 14px;
    color: #fff;
    background: #0b1c29;
}
.home-schedule .icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.12em; }
.home-schedule-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.home-schedule-heading p { margin: 0 0 4px; color: #ffdf00; font-size: .8rem; font-weight: 700; }
.home-schedule-heading h2 {
    margin: 0;
    padding-inline-start: 10px;
    border-inline-start: 5px solid #ffdf00;
    font: 400 clamp(1.4rem, 2.2vw, 2rem)/1.1 BannerAnton, Impact, sans-serif;
    text-transform: uppercase;
}
.home-schedule-leagues, .home-schedule-week {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 8px;
    background: #233d50;
}
.home-schedule a { color: #fff; text-decoration: none; }
.home-schedule a:focus-visible { outline: 2px solid #ffdf00; outline-offset: 2px; }
.home-schedule-leagues a { padding: 8px 10px; border-radius: 8px; font-size: .8rem; font-weight: 700; }
.home-schedule-leagues a[aria-current] { background: #baf8d8; color: #0b1c29; }
.home-schedule-week { width: fit-content; margin: 12px auto 16px; }
.home-schedule-week a { padding-inline: 12px; font-size: 1.35rem; }
.home-schedule-week strong { padding: 5px 12px; color: #ffdf00; background: #0a1b28; border-radius: 8px; }
.home-schedule-day {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #294354;
    border-radius: 9px;
    background: #0c1926;
}
.home-schedule-day h3 {
    margin: 0;
    padding: 8px 12px;
    background: #162737;
    font: 600 1rem/1.5 Arial, sans-serif;
}
.home-schedule-list { margin: 0; padding: 0; list-style: none; }
.home-schedule-list li {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr) max-content minmax(0, 1.35fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    font-size: .8rem;
    border-top: 1px solid #294354;
}
.home-schedule-meta { display: grid; border-inline-end: 1px solid #566675; }
.home-schedule-meta strong { font: 600 13px/1.5 Arial, sans-serif; text-transform: none; }
.home-schedule-day h3 .icon, .home-schedule-meta .icon,
.home-schedule-team .icon, .home-schedule-venue .icon { color: #c6f400; }
.home-schedule-team {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    font: 600 .9rem/1.5 Arial, sans-serif;
    text-transform: none;
    overflow-wrap: anywhere;
}
.home-schedule-team span { min-width: 0; }
.home-schedule-team-home { justify-content: flex-end; text-align: right; }
.home-schedule-team-home img, .home-schedule-team-home .icon { order: 1; }
.home-schedule-team-away { justify-content: flex-start; text-align: left; }
.home-schedule-team img, .home-schedule-team .icon { width: 30px; height: 30px; object-fit: contain; flex: none; }
.home-schedule-time {
    justify-self: center;
    padding: 3px 9px;
    border: 1px solid #c6f400;
    border-radius: 7px;
    font-weight: 700;
}
.home-schedule-venue { border-inline-start: 1px solid #65733b; padding-inline-start: 10px; }
.home-schedule-status {
    padding: 3px 8px;
    border: 1px solid #566675;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.home-schedule-status[data-status="Scheduled"] { color: #e2ffc8; background: #184706; border-color: #83bc24; }
@media (max-width: 767.98px) {
    .home-schedule-list li { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
    .home-schedule-meta { grid-column: 1 / -1; border: 0; }
    .home-schedule-venue { grid-column: span 2; border: 0; padding-inline-start: 0; }
    .home-schedule-status { justify-self: end; }
}.home-schedule-week { gap: 10px; padding: 0; background: transparent; flex-wrap: nowrap; max-width: 100%; }
.home-schedule-week a, .home-schedule-week .week-nav-disabled { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #395366; border-radius: 8px; background: #172b3a; font: 500 24px/1 Arial, sans-serif; flex-shrink: 0; }
.home-schedule-week a:hover { background: #233d50; border-color: #ffdf00; }
.home-schedule-week .week-nav-disabled { color: #63788a; opacity: .5; }
.home-schedule-week form { min-width: 0; }
.home-schedule-week select { min-height: 42px; width: 150px; max-width: 100%; padding: 8px 12px; border: 1px solid #395366; border-radius: 8px; background: #172b3a; color: #fff; font: 600 15px/1.4 Arial, sans-serif; cursor: pointer; }
.home-schedule-week select:focus-visible { outline: 2px solid #ffdf00; outline-offset: 2px; }
.home-schedule-week [hidden] { display: none; }
.home-schedule[aria-busy=true], .home-results[aria-busy=true] { cursor: progress; }

/* Approved homepage standings palette; scoped to avoid changing other sections. */
.home-standings-section { background: #ffffff; }
.home-standings-panel { background: #ffffff; color: #252b32; border-color: #dde4e8; }
.home-standings-panel header p { color: #526f88; }
.home-standings-panel header small,
.home-standings-panel .standings-team small,
.home-standings-panel .standings-compact { color: #657583; }
.home-standings-panel .btn-warning { background: #526f88; border-color: #526f88; color: #ffffff; }
.home-standings-panel .btn-warning:is(:hover, :focus-visible, :active) { background: #425e77; border-color: #425e77; color: #ffffff; }
.home-standings-panel .form-select { background-color: #ffffff; border-color: #bdcedd; color: #252b32; }
.home-standings-table { color: #252b32; }
.home-standings-table th,
.home-standings-table td { border-color: #dde4e8; }
.home-standings-table thead { background: #f6f8fa; color: #252b32; }
.home-standings-panel .standings-leader,
.home-standings-panel .standings-featured { background: #f1f6f8; }
.home-standings-panel .standings-leader > td:first-child,
.home-standings-panel .standings-featured > td:first-child { box-shadow: inset 4px 0 #8aa9bc; color: #3e5d78; }
.home-standings-panel .standings-leader > td:first-child::before,
.home-standings-panel .standings-featured > td:first-child::before { background: #8aa9bc; }
.home-standings-panel .standings-team strong,
.home-standings-panel .standings-featured .standings-team strong { color: #252b32; }
.home-standings-table .standings-win { color: #426c45; }
.home-standings-table .standings-loss { color: #a45852; }
.home-standings-table .standings-extra:nth-child(5) { color: #596e7d; }
.home-standings-table .standings-points-heading { color: #3e5d78; }
.home-standings-table .standings-points { color: #3e5d78; }
.home-standings-table .standings-points span { background: #dce7f0; }
.home-standings-panel .standings-featured .standings-points span { color: #3e5d78; background: #dce7f0; border-color: #bdcedd; }
.home-standings-panel .standings-featured-label { background: #dce7f0; color: #3e5d78; }
.home-standings-panel .standings-crest { background: #f1f6f8; color: #596e7d; border-color: #bdcedd; }
.home-standings-panel .standings-form .form-G { background: #d9e9d8; color: #426c45; border-color: #c1d8bf; }
.home-standings-panel .standings-form .form-B { background: #e0e7ec; color: #596e7d; border-color: #c8d3dc; }
.home-standings-panel .standings-form .form-M { background: #f0d8d5; color: #a45852; border-color: #e1bfba; }

/* Approved weekly schedule palette: color changes only. */
.home-schedule { background: #ffffff; color: #252b32; border-color: #dde4e8; }
.home-schedule-heading p { color: #526f88; }
.home-schedule-heading h2 { border-inline-start-color: #8aa9bc; }
.home-schedule-leagues { background: #f1f6f8; }
.home-schedule a { color: #3e5d78; }
.home-schedule a:focus-visible { outline-color: #526f88; }
.home-schedule-leagues a[aria-current] { background: #dce7f0; color: #3e5d78; }
.home-schedule-leagues a:hover { background: #e7eef4; }
.home-schedule-week strong { background: #dce7f0; color: #3e5d78; }
.home-schedule-week a,
.home-schedule-week .week-nav-disabled,
.home-schedule-week select { background: #ffffff; border-color: #bdcedd; color: #3e5d78; }
.home-schedule-week a:hover { background: #dce7f0; border-color: #8aa9bc; }
.home-schedule-week .week-nav-disabled { color: #657583; }
.home-schedule-week select:focus-visible { outline-color: #526f88; }
.home-schedule-week button { background: #526f88; border-color: #526f88; color: #ffffff; }
.home-schedule-week button:hover { background: #425e77; border-color: #425e77; }
.home-schedule-day { background: #fafbfc; border-color: #dde4e8; }
.home-schedule-day h3 { background: #f1f6f8; color: #252b32; }
.home-schedule-list li { border-color: #dde4e8; }
.home-schedule-meta,
.home-schedule-venue { border-color: #dde4e8; }
.home-schedule-meta small,
.home-schedule-venue { color: #657583; }
.home-schedule-day h3 .icon,
.home-schedule-meta .icon,
.home-schedule-team .icon,
.home-schedule-venue .icon { color: #526f88; }
.home-schedule-time { background: #dce7f0; color: #3e5d78; border-color: #bdcedd; }
.home-schedule-status { background: #e0e7ec; color: #596e7d; border-color: #c8d3dc; }
.home-schedule-status[data-status="Completed"] { background: #cde8e3; color: #2d6f68; border-color: #9ccdc3; }
.home-schedule-status[data-status="Scheduled"] { background: #dce7f0; color: #3e5d78; border-color: #bdcedd; }
.home-schedule-status[data-status="InProgress"],
.home-schedule-status[data-status="HalfTime"] { background: #d9e9d8; color: #426c45; border-color: #c1d8bf; }
.home-schedule-status[data-status="Postponed"] { background: #f3e7d2; color: #80633a; border-color: #e3cfac; }
.home-schedule-status[data-status="Cancelled"],
.home-schedule-status[data-status="Abandoned"] { background: #f0d8d5; color: #a45852; border-color: #e1bfba; }

/* More breathing room in the homepage weekly schedule. */
.home-schedule { padding: 20px; }
.home-schedule-heading { gap: 16px; }
.home-schedule-week { margin-block: 20px 24px; }
.home-schedule-day { margin-top: 20px; }
.home-schedule-day h3 { padding: 12px 16px; }
.home-schedule-list li { gap: 16px; padding: 16px; }
.home-schedule-meta { padding-inline-end: 12px; }
.home-schedule-meta small { margin-top: 4px; }
.home-schedule-team { gap: 12px; }
@media (max-width: 767.98px) {
    .home-schedule { padding: 16px; }
    .home-schedule-list li { gap: 12px; padding: 14px 12px; }
    .home-schedule-team { gap: 8px; }
}

/* Consistent weekly rows across leagues and wrapped team names. */
@media (min-width: 768px) {
    .home-schedule-list li {
        grid-template-columns: minmax(210px, 1fr) minmax(0, 1.35fr) 64px minmax(0, 1.35fr) minmax(145px, .85fr) auto;
        min-height: 92px;
        gap: 14px;
    }
    .home-schedule-meta strong { white-space: nowrap; }
    .home-schedule-time { min-width: 54px; }
}
.home-schedule-week { align-items: center; gap: 10px; }
.home-schedule-week form { display: flex; align-items: center; margin: 0; }
.home-schedule-week select { display: block; height: 42px; margin: 0; }
@media (min-width: 768px) and (max-width: 991.98px) {
    .home-schedule-list li { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); }
    .home-schedule-meta { grid-column: 1 / -1; border: 0; padding-inline-end: 0; }
    .home-schedule-team-home { grid-column: 1; }
    .home-schedule-time { grid-column: 2; }
    .home-schedule-team-away { grid-column: 3; }
    .home-schedule-venue { grid-column: 1 / 3; border: 0; padding-inline-start: 0; }
    .home-schedule-status { grid-column: 3; justify-self: end; }
}

/* Keep the week dropdown chevron inset and vertically centered. */
.home-schedule-week select.form-select {
    padding-inline: 14px 36px;
    background-position: right 12px center;
    background-size: 16px 12px;
}
