/* Editorial content below the TV schedule. */
.schedule-articles {
    margin-top: 20px;
    overflow-wrap: anywhere;
}
.schedule-articles .schedule-article {
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #bfc9c2;
    border-radius: 8px;
    background: #fff;
    color: #4f6057;
    font-size: 13px;
    line-height: 1.5;
}
.schedule-article h2,
.schedule-article h3 {
    margin: 0 0 5px;
    color: #25342b;
    font-size: 15px;
    line-height: 1.35;
}
.schedule-article p { margin: 0 0 7px; }
.schedule-article.topText .topText-content {
    padding-bottom: 0;
}
.schedule-article .schedule-article-date {
    margin: 0 0 5px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.5;
    text-align: right;
}
.schedule-article img { max-width: 100%; height: auto; }
.schedule-articles-more {
    display: block;
    margin: 20px auto;
    padding: 9px 18px;
    border: 1px solid #d1d8d3;
    border-radius: 4px;
    background: #fff;
    color: #17623a;
    font: inherit;
    cursor: pointer;
}
.schedule-articles-more:hover { background: #f2f6f3; }
.schedule-articles-more:focus-visible { outline: 2px solid #17623a; outline-offset: 3px; }

/* Sidebar: text videos, league rows and square station tiles. */
.schedule-sidebar .sidebar-video-row { margin: 0 0 10px; }
.schedule-sidebar .sidebar-video-row > a {
    display: flex; align-items: flex-start; gap: 8px;
    width: 100%; padding: 0; white-space: normal;
    font-size: 13px; line-height: 1.45; overflow-wrap: anywhere;
}
.schedule-sidebar .sidebar-video-row .bi { flex: 0 0 auto; font-size: 17px; line-height: 1.2; }
.schedule-sidebar .sidebar-league-row { padding-bottom: 10px; }
.schedule-sidebar .sidebar-league-row > a {
    display: flex; align-items: center; gap: 8px;
    white-space: normal; line-height: 1.35; overflow-wrap: anywhere;
}
.schedule-sidebar .sidebar-league-row img {
    flex: 0 0 24px; width: 24px; height: 24px;
    object-fit: contain; margin: 0; float: none;
}
.schedule-sidebar a:focus-visible { outline: 2px solid #17623a; outline-offset: 3px; }

/* Minimal card design matching the sidebar reference. */
.schedule-sidebar { color: #123421; }
.schedule-sidebar .list-group-item {
    border: 1px solid #cfd9d3; border-radius: 12px;
    background: #fff; padding: 16px !important;
    margin-top: 0 !important; margin-bottom: 18px !important;
    box-shadow: none !important; overflow: hidden;
}
.schedule-sidebar .sidebar-section-heading,
.schedule-sidebar .list-group-item > .panel-heading {
    position: relative; display: flex; align-items: center;
    min-height: 44px; margin: 0 0 16px; padding: 0 0 12px 54px !important;
    text-align: left !important; color: #123421;
    font-size: 20px !important; font-weight: 700; line-height: 1.25;
}
.schedule-sidebar .sidebar-section-heading::before,
.schedule-sidebar .list-group-item > .panel-heading::before {
    content: "\F194"; font-family: bootstrap-icons !important;
    position: absolute; left: 0; top: 0; width: 40px;
    border-right: 1px solid #9eafa5; color: #087335;
    font-size: 27px; font-weight: normal; line-height: 32px;
}
.schedule-sidebar .sidebar-section-heading::after,
.schedule-sidebar .list-group-item > .panel-heading::after {
    content: ""; position: absolute; left: 54px; bottom: 0;
    width: 58px; height: 4px; border-radius: 3px; background: #ffd02f;
}
.schedule-sidebar .sidebar-articles .sidebar-section-heading::before { content: "\F38A"; }
.schedule-sidebar .sidebar-videos .sidebar-section-heading::before { content: "\F21A"; }
.schedule-sidebar .sidebar-section-heading::before { content: "\F5E7"; }
.schedule-sidebar .sidebar-timezone .sidebar-section-heading::before { content: "\F293"; }
.schedule-sidebar .panel-body { padding: 0; }
.schedule-sidebar .sidebar-article-row {
    display: flex; align-items: baseline; gap: 12px; padding: 10px 0;
    font-size: 13px; line-height: 1.4;
}
.schedule-sidebar .sidebar-article-row + .sidebar-article-row,
.schedule-sidebar .sidebar-video-row + .sidebar-video-row,
.schedule-sidebar .sidebar-league-row + .sidebar-league-row { border-top: 1px solid #d7dfda; }
.schedule-sidebar .sidebar-article-row a { flex: 1; min-width: 0; color: #171c19; }
.schedule-sidebar .sidebar-article-row time { flex: 0 0 auto; color: #626962; font-size: 11px; }
.schedule-sidebar .sidebar-video-row { padding: 10px 0; margin: 0; }
.schedule-sidebar .sidebar-video-row a { color: #171c19; }
.schedule-sidebar .sidebar-video-row .bi { color: #087335; }
.schedule-sidebar .sidebar-leagues > .row { margin: 0; }
.schedule-sidebar .sidebar-league-row { width: 100%; padding: 10px 0; }
.schedule-sidebar .sidebar-league-row a { color: #171c19; font-size: 14px !important; font-weight: 600; }

.schedule-sidebar .sidebar-timezone { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.schedule-sidebar .sidebar-timezone .sidebar-section-heading { margin: 0; font-size: 17px !important; }
.schedule-sidebar .sidebar-timezone-value { font-size: 14px; color: #171c19; }
.schedule-sidebar .sidebar-timezone-change { margin-left: auto; border: 0; padding: 0; background: transparent; color: #087335; text-decoration: underline; font: inherit; cursor: pointer; }
.sidebar-app { display: flex; align-items: center; gap: 12px; background: #eaf7eb; }
.sidebar-app-icon { flex: 0 0 40px; font-size: 32px; color: #087335; border-right: 1px solid #9eafa5; }
.sidebar-app-copy { flex: 1; min-width: 0; }
.sidebar-app-copy strong { display: block; font-size: 17px; line-height: 1.25; }
.sidebar-app-copy span { display: block; margin-top: 5px; font-size: 12px; }
.sidebar-app-button { border: 2px solid #087335; border-radius: 9px; padding: 7px 10px; color: #123421; font-weight: 700; text-align: center; font-size: 13px; }
@media (min-width: 768px) and (max-width: 1199px) {
    .sidebar-app { flex-wrap: wrap; }
    .sidebar-app-button { margin-left: 52px; }
    .schedule-sidebar .sidebar-article-row { flex-wrap: wrap; gap: 3px; }
    .schedule-sidebar .sidebar-article-row a { flex-basis: 100%; }
}

/* The app card also appears above the schedule on mobile. */
.sidebar-app.list-group-item {
    border: 1px solid #cfd9d3; border-radius: 12px;
    padding: 16px !important; margin-top: 0 !important;
    margin-bottom: 18px !important; box-shadow: none !important;
    color: #123421;
}
@media (max-width: 575px) {
    .sidebar-app { flex-wrap: wrap; }
    .sidebar-app-copy { flex-basis: calc(100% - 52px); }
    .sidebar-app-button { margin-left: 52px; }
}

/* Keep timezone controls together at narrow sidebar widths. */
.schedule-sidebar .sidebar-timezone {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 10px 12px;
}
.schedule-sidebar .sidebar-timezone .sidebar-section-heading {
    grid-column: 1 / -1; min-height: 38px; font-size: 18px !important;
}
.schedule-sidebar .sidebar-timezone-value {
    min-width: 0; padding-left: 54px; font-size: 14px;
    line-height: 1.5; overflow-wrap: anywhere;
}
.schedule-sidebar .sidebar-timezone-change {
    margin: 0; align-self: center; font-size: 13px;
}
@media (max-width: 359px) {
    .schedule-sidebar .sidebar-timezone-value { padding-left: 0; }
}

/* Compact league headings within sidebar cards. */
.schedule-sidebar .hr-sect.mtb-5 {
    position: relative; display: flex; align-items: center;
    min-height: 34px; margin: 8px 0 12px !important;
    padding: 0 0 9px 40px; color: #123421;
    font-size: 15px; font-weight: 700; line-height: 1.3;
    text-align: left; letter-spacing: normal;
}
.schedule-sidebar .hr-sect.mtb-5::before {
    content: "\F5E7"; font-family: bootstrap-icons !important;
    position: absolute; left: 0; top: 0;
    display: block; width: 30px; height: 25px; flex: none;
    margin: 0; border: 0; border-right: 1px solid #9eafa5;
    background: transparent; color: #087335;
    font-size: 20px; font-weight: normal; line-height: 25px;
}
.schedule-sidebar .hr-sect.mtb-5::after {
    content: ""; position: absolute; left: 40px; bottom: 0;
    display: block; width: 44px; height: 3px; flex: none;
    margin: 0; border: 0; border-radius: 3px; background: #ffd02f;
}

.schedule-sidebar .hr-sect.sidebar-league-heading { padding-left: 40px; }
.schedule-sidebar .hr-sect.sidebar-league-heading::before { content: none; }
.schedule-sidebar .sidebar-heading-logo {
    position: absolute; left: 0; top: 0; width: 30px; height: 25px;
    object-fit: contain; padding-right: 6px; box-sizing: border-box;
    border-right: 1px solid #9eafa5;
}
.schedule-sidebar .sidebar-timezone .sidebar-section-heading {
    display: grid; grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px; padding: 0 0 12px !important;
    text-align: left !important;
}
.schedule-sidebar .sidebar-timezone .sidebar-section-heading::before {
    position: static; width: 40px; height: 32px;
    font-size: 27px; line-height: 32px; box-sizing: border-box;
}
.schedule-sidebar .sidebar-timezone .sidebar-section-heading::after { left: 54px; }

/* Reserve an explicit column for section icons. */
.schedule-sidebar .sidebar-section-heading,
.schedule-sidebar .list-group-item > .panel-heading {
    display: grid; grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px; padding: 0 0 12px !important;
    text-align: left !important;
}
.schedule-sidebar .sidebar-section-heading::before,
.schedule-sidebar .list-group-item > .panel-heading::before {
    position: static; width: 40px; height: 32px;
    line-height: 32px; box-sizing: border-box;
}
.schedule-sidebar .sidebar-timezone {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px; padding: 14px 16px !important;
}
.schedule-sidebar .sidebar-timezone-icon {
    font-size: 25px; line-height: 1; color: #087335;
}
.schedule-sidebar .sidebar-timezone-value {
    padding-left: 0; font-size: 13px; line-height: 1.4;
}
.schedule-sidebar .sidebar-timezone-change {
    padding: 6px 10px; border: 1px solid #b9cfc0;
    border-radius: 7px; background: #edf7ef; color: #145c30;
    text-decoration: none; font-size: 12px; font-weight: 600;
}
.schedule-sidebar .sidebar-timezone-change:hover,
.schedule-sidebar .sidebar-timezone-change:focus-visible {
    background: #dcefe1; border-color: #087335;
}

/* Compact headings shared by all sidebar sections. */
.schedule-sidebar .sidebar-section-heading,
.schedule-sidebar .list-group-item > .panel-heading {
    position: relative; grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 10px; min-height: 32px;
    margin-bottom: 8px !important; padding-bottom: 8px !important;
    font-size: 18px !important; line-height: 1.25;
}
.schedule-sidebar .sidebar-section-heading::before,
.schedule-sidebar .list-group-item > .panel-heading::before {
    width: 32px; height: 27px; font-size: 23px; line-height: 27px;
}
.schedule-sidebar .sidebar-section-heading::after {
    position: absolute; left: 42px; right: auto; top: auto; bottom: 0;
    width: 50px; height: 3px; margin: 0;
}

/* Underlines belong below heading text, outside the icon column. */
.schedule-sidebar .sidebar-section-heading::after,
.schedule-sidebar .list-group-item > .panel-heading::after {
    position: absolute; left: 42px; right: auto; top: auto; bottom: 0;
    grid-column: auto; grid-row: auto; justify-self: start; align-self: end;
    width: 58px; height: 3px; margin: 0; transform: none;
}
.schedule-sidebar .sidebar-section-heading::after {
    left: 42px; width: 50px;
}

/* Attach the yellow rule to the label itself, not the icon container. */
.schedule-sidebar .sidebar-section-heading:has(> .sidebar-heading-label) {
    padding-bottom: 0 !important;
}
.schedule-sidebar .sidebar-section-heading:has(> .sidebar-heading-label)::after {
    content: none; display: none;
}
.schedule-sidebar .sidebar-heading-label {
    display: block; grid-column: 2; min-width: 0;
    padding: 0 0 9px; margin: 0;
    background-image: linear-gradient(#ffd02f, #ffd02f);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 50px 3px;
}


/* Below Bootstrap's md breakpoint the sidebar stacks below the schedule. */


/* Channel grid is independent of Bootstrap row/col sizing. */
.channel-logo-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px; margin: 0; padding: 0;
}
.channel-logo-grid > .channel-logo-item { min-width: 0; margin: 0; padding: 0; }
.channel-logo-grid .channel-logo-link {
    display: block; width: 100%; height: auto; margin: 0; padding: 0;
    border: 0; border-radius: 0; background: transparent;
}
.channel-logo-grid .channel-logo-image {
    display: block; width: 100%; max-width: 100%; height: auto;
    margin: 0; padding: 0; border: 0; border-radius: 0;
    aspect-ratio: 1 / 1; object-fit: contain; background: transparent;
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .channel-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Subtle row banding connects each team with its points. */
.sidebar-standings > .sidebar-standing-row {
    align-items: center; padding: 5px 8px !important;
    border-radius: 7px; line-height: 1.4;
}
.sidebar-standings > .sidebar-standing-row:nth-child(even) { background-color: #f0f5f1; }
.sidebar-standings > .sidebar-standing-row > .eventText { min-width: 0; }
.sidebar-standings > .sidebar-standing-row > .text-end {
    flex: 0 0 28px; padding-right: 0 !important;
    font-variant-numeric: tabular-nums;
}

/* Match the subtle banding used in league standings. */
.schedule-sidebar .sidebar-leagues .sidebar-league-row {
    padding: 7px 8px !important; border: 0; border-radius: 7px;
}
.schedule-sidebar .sidebar-leagues .sidebar-league-row:nth-child(even) {
    background-color: #f0f5f1;
}

/* Popular teams: clean sport group labels and text-only links. */
.schedule-sidebar .sidebar-teams-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 12px; margin: 0; padding: 0;
}
.schedule-sidebar .sidebar-teams-group-heading {
    grid-column: 1 / -1; margin: 12px 0 5px;
    display: flex; align-items: center; justify-content: center;
    padding: 6px 10px; border: 0; border-radius: 6px;
    background: #00843d; color: #fff;
    font-size: 14px; font-weight: 600; line-height: 1.35;
    text-align: center; cursor: default;
}
.schedule-sidebar .sidebar-teams-group-heading:first-child { margin-top: 0; }
.schedule-sidebar .sidebar-team-item { min-width: 0; padding: 0; }
.schedule-sidebar .sidebar-team-item a {
    display: block !important; padding: 5px 4px;
    color: #25382d; font-size: 12px !important;
    line-height: 1.4; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; overflow-wrap: normal;
}

/* Australian players: two clear links to upcoming matches. */
.schedule-sidebar .sidebar-aussies-title {
    margin: 0 0 6px; color: #123421; font-size: 18px;
    font-weight: 600; line-height: 1.3;
}
.schedule-sidebar .sidebar-aussies-description {
    margin: 0 0 14px; color: #607066; font-size: 12px; line-height: 1.5;
}
.schedule-sidebar .sidebar-aussies-links { display: flex; gap: 8px; }
.schedule-sidebar .sidebar-aussies-links a {
    display: flex; flex: 1 1 0; min-width: 0; align-items: center;
    justify-content: center; gap: 6px; padding: 10px 6px;
    border: 0; border-radius: 7px; background: #eaf3ed;
    color: #17623a; font-size: 12px; font-weight: 600;
    line-height: 1.4; text-decoration: none;
}
.schedule-sidebar .sidebar-aussies-links a:hover,
.schedule-sidebar .sidebar-aussies-links a:focus-visible {
    background: #dcece1; color: #104529; text-decoration: none !important;
}
