.x24-league-wide main#primary.content-layout,
.x24-league-wide .xlc-entity-single .xlc-entity-shell {
    width: min(1330px, calc(100% - 30px));
    max-width: 1330px;
}

.x24-league-wide main#primary.content-layout > article.entry-shell {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.x24-league-wide .xls-leagues .xls-league-hero-title {
    margin: 0;
    color: #f5f6f5;
    font-size: clamp(26px, 2.5vw, 36px);
    line-height: 1.2;
}

/* League panel rules from the authorized competition.css reference, scoped to detail pages. */
.x24-league-wide .x24-reference-league .as-competition-detail__body {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0,1.9fr) minmax(20rem,.95fr);
}

.x24-league-wide .x24-reference-league .as-competition-detail__left,
.x24-league-wide .x24-reference-league .as-competition-detail__right {
    min-width: 0;
}

.x24-league-wide .x24-reference-league .as-competition-detail__right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.x24-league-wide .x24-reference-league .as-competition-panel {
    background: rgba(48,53,54,.5);
    background: var(--as-competition-panel-bg,rgba(48,53,54,.5));
    border-radius: .5rem;
    overflow: hidden;
}

.x24-league-wide .x24-reference-league .as-competition-panel__title {
    padding: .75rem .75rem 0;
}

.x24-league-wide .x24-reference-league .as-competition-panel--next-match,
.x24-league-wide .x24-reference-league .as-competition-panel--rounds,
.x24-league-wide .x24-reference-league .as-competition-panel--table {
    padding: 0;
}

.x24-league-wide .x24-reference-league .as-competition-panel__header {
    align-items: center;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: .75rem;
    margin-bottom: 1rem;
    min-height: 33px;
    text-align: center;
}

.x24-league-wide .x24-reference-league .as-competition-panel__title {
    color: #fff;
    color: var(--as-competition-text-primary,#fff);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.x24-league-wide .x24-reference-league .as-competition-panel__header .as-competition-panel__title {
    margin: 0;
}

.x24-league-wide .x24-reference-league .as-competition-panel__nav {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 62.4375rem;
    color: hsla(0,0%,100%,.8);
    cursor: pointer;
    display: inline-flex;
    height: 1.75rem;
    justify-content: center;
    padding: .75rem 0 0;
    width: 1.75rem;
    font: 600 17px/1 Barlow, Arial, sans-serif;
}

.x24-league-wide .x24-reference-league .as-competition-panel__nav:disabled {
    cursor: default;
    opacity: .35;
}

.x24-league-wide .x24-reference-league .as-competition-panel__empty {
    align-items: center;
    justify-content: center;
    padding: 1.875rem .75rem;
}

.x24-league-wide .x24-reference-league .as-competition-panel__empty,
.x24-league-wide .x24-reference-league .as-competition-shell {
    display: flex;
}

.x24-league-wide .x24-reference-league .as-competition-shell {
    flex-direction: column;
    gap: 1.125rem;
}

.x24-league-wide .x24-reference-league .as-competition-shell__match-time {
    color: #b8c2c5;
    font-family: Barlow;
    font-size: .875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.25rem;
    text-align: center;
}

.x24-league-wide .x24-reference-league .as-competition-shell__match-vs {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr 2.5rem 1fr;
}

.x24-league-wide .x24-reference-league .as-competition-shell__match-vs--team {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.x24-league-wide .x24-reference-league .as-competition-shell__match-vs--team-logo img {
    flex-shrink: 0;
    height: 3.125rem;
    object-fit: contain;
    width: 3.125rem;
}

.x24-league-wide .x24-reference-league .as-competition-shell__match-vs--team-name {
    color: #fff;
    flex: 1;
    font-family: Barlow;
    font-size: .875rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.25rem;
    max-width: 7.5rem;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x24-league-wide .x24-reference-league .as-competition-shell__match-vs--team-name-right {
    text-align: left;
}

.x24-league-wide .x24-reference-league .as-competition-shell__match-vs--team-left {
    justify-content: flex-end;
}

.x24-league-wide .x24-reference-league .as-competition-shell__match-vs--team-right {
    justify-content: flex-start;
}

.x24-league-wide .x24-reference-league .as-competition-shell__match-vs--text {
    align-items: center;
    display: flex;
    justify-content: center;
}

.x24-league-wide .x24-reference-league .as-competition-shell__match-vs--text span {
    background: url(x24-league-vs.svg) no-repeat center;
    background-size: 1.8125rem 1rem;
    color: transparent;
    width: 100%;
}

.x24-league-wide .x24-reference-league .as-competition-shell__footer {
    background: #323738;
    border-radius: 0 0 .375rem .375rem;
    height: 2.375rem;
    justify-content: center;
    padding: 0 .75rem;
}

.x24-league-wide .x24-reference-league .as-competition-shell__footer {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.x24-league-wide .x24-reference-league .as-competition-rounds {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 .75rem;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__selector {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    justify-content: center;
    padding: 0 .75rem .75rem;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__selector-item {
    background: transparent;
    border: .0625rem solid hsla(0,0%,100%,.1);
    border-radius: .5rem;
    color: hsla(0,0%,100%,.8);
    cursor: pointer;
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.2;
    padding: .375rem .5rem;
    transition: background .2s ease,color .2s ease,border-color .2s ease;
    width: 2rem;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__selector-item.is-active,
.x24-league-wide .x24-reference-league .as-competition-rounds__selector-item:hover {
    background: hsla(0,0%,100%,.12);
    border-color: hsla(0,0%,100%,.22);
    color: #fff;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__group {
    display: flex;
    flex-direction: column;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__group+.as-competition-rounds__group {
    margin-top: 1rem;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__group-title {
    background: #3a3a3a;
    border-radius: .5rem;
    color: #fff;
    font-size: .875rem;
    font-weight: 500;
    padding: .625rem;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__match {
    align-items: center;
    border-top: .0625rem solid hsla(0,0%,100%,.08);
    display: grid;
    gap: .625rem;
    grid-template-columns: 1fr auto 1fr;
    padding: .875rem 1rem;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__group-title+.as-competition-rounds__match {
    border-top: 0;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__team {
    align-items: center;
    display: flex;
    gap: .5rem;
    min-width: 0;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__team.as-home {
    justify-content: flex-end;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__team.as-away {
    justify-content: flex-start;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__team-name {
    color: #fff;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__team-logo {
    flex-shrink: 0;
    height: 1.75rem;
    object-fit: contain;
    width: 1.75rem;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__time {
    color: #afafaf;
    font-size: .8125rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Match the source grid and contrast within the site's own theme. */
.x24-league-wide .x24-reference-league {
    color: #fff;
    font: 400 14px/1.5 Barlow, Arial, sans-serif;
}

.x24-league-wide .x24-reference-league button {
    min-height: 0;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}

.x24-league-wide .x24-reference-league :is(button, a):focus-visible {
    outline: 2px solid #62dd91;
    outline-offset: -2px;
}

.x24-league-wide .x24-reference-league .as-competition-panel__title {
    text-transform: none;
    letter-spacing: normal;
}

.x24-league-wide .x24-reference-league .as-competition-shell__match-vs {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
}

.x24-league-wide .x24-reference-league .as-parent-standing {
    background: #2a2d2e;
}

.x24-league-wide .x24-reference-league .as-league_title {
    display: flex;
    align-items: center;
    min-height: 56px;
    margin: 0;
    padding: 12px;
    border-bottom: 1px solid #3f4040;
    background: rgba(40, 55, 77, .2);
    font: 500 13px/1 Barlow, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: normal;
}

.x24-league-wide .x24-reference-league .as-league_title span {
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(-90deg, #323839, #2f5a49);
    color: #00ff5e;
}

.x24-league-wide .x24-reference-league .as-standing__top {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 12px;
    background: rgba(40, 55, 77, .2);
}

.x24-league-wide .x24-reference-league .as-nav-tabs-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.x24-league-wide .x24-reference-league .as-nav-item {
    min-height: 27px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    background: #323738;
    color: #afb4ba;
    font: 500 13px/1 Barlow, Arial, sans-serif;
    text-transform: uppercase;
}

.x24-league-wide .x24-reference-league .as-nav-item.active {
    background: linear-gradient(-90deg, #323839, #2f5a49);
    color: #00ff5e;
}

.x24-league-wide .x24-reference-league .x24-standing-expand {
    display: none;
}

.x24-league-wide .x24-reference-league .as-standing__table-row {
    display: grid;
    grid-template-columns: 45px minmax(0, 2fr) repeat(7, minmax(0, .8fr)) 180px 50px;
    align-items: center;
    gap: 15px;
    min-height: 50px;
    padding: 0 12px;
    background: #2a2d2e;
    color: #fff;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.x24-league-wide .x24-reference-league .as-standing__table-row-head {
    min-height: 42px;
    font-weight: 600;
}

.x24-league-wide .x24-reference-league .as-standing__table-column {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.x24-league-wide .x24-reference-league .as-standing__table-column-team {
    justify-content: flex-start;
    gap: 4px;
}

.x24-league-wide .x24-reference-league .as-standing__table-text {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.x24-league-wide .x24-reference-league .as-match__team-logo {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.x24-league-wide .x24-reference-league .as-standing-tag__list {
    display: flex;
    gap: 5px;
}

.x24-league-wide .x24-reference-league .as-standing-tag {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 6px;
    background: linear-gradient(180deg, #0b540b, #069b3c 169.23%);
    color: #fff;
    font-weight: 600;
}

.x24-league-wide .x24-reference-league .as-standing-tag__d {
    background-image: linear-gradient(180deg, #545454, #777 169.23%);
}

.x24-league-wide .x24-reference-league .as-standing-tag__l {
    background-image: linear-gradient(180deg, #540b0b, #9b0606 169.23%);
}

.x24-league-wide .x24-reference-league .x24-standings-group {
    margin: 0;
    padding: 8px 12px;
    color: #fff;
    font: 600 15px/1.3 Barlow, Arial, sans-serif;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__group-title {
    margin: 0;
    line-height: 24px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__group:last-child {
    padding-bottom: 12px;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__match {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.x24-league-wide .x24-reference-league .as-competition-rounds__team-name {
    font-weight: 600;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__score {
    color: #fece73;
    font-weight: 600;
    white-space: nowrap;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__selector-item {
    box-sizing: border-box;
    padding: 6px 3px;
    font: 500 13px/1.2 Barlow, Arial, sans-serif;
}

.x24-league-wide .x24-reference-league .as-competition-rounds__selector-item[data-xls-round]:is(:hover, .is-active) {
    background: #444a49;
    color: #fff;
}

@media (max-width: 62rem) {
    .x24-league-wide .x24-reference-league .as-competition-detail__body {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 48rem) {
    .x24-league-wide .x24-reference-league .as-standing__top {
        justify-content: space-between;
        gap: 4px;
    }

    .x24-league-wide .x24-reference-league .x24-standing-expand {
        display: block;
        width: 27px;
        padding: 0;
        font-size: 18px;
    }

    .x24-league-wide .x24-reference-league .as-standing__table-row {
        grid-template-columns: 30px minmax(0, 3fr) repeat(5, minmax(0, 1fr));
        gap: 2px;
        min-height: 48px;
        padding: 0 10px 0 0;
    }

    .x24-league-wide .x24-reference-league .as-standing__table-row-head {
        min-height: 42px;
        font-size: 12px;
    }

    .x24-league-wide .x24-reference-league .as-coulumn-show-full {
        display: none;
    }

    .x24-league-wide .x24-reference-league .x24-standing-expanded {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .x24-league-wide .x24-reference-league .x24-standing-expanded .as-standing__table-row {
        min-width: 680px;
        grid-template-columns: 40px minmax(100px, 2fr) repeat(7, minmax(0, .8fr)) 160px 40px;
        padding-inline: 10px;
    }

    .x24-league-wide .x24-reference-league .x24-standing-expanded .as-coulumn-show-full {
        display: flex;
    }

    .x24-league-wide .x24-reference-league .as-standing__table-column-team {
        gap: 6px;
    }

    .x24-league-wide .x24-reference-league .as-competition-rounds__match {
        gap: 8px;
        padding-inline: 4px;
    }
}
