.league-forecast {
    min-width: 0;
    color: #243445;
    background: #fff;
    border: 1px solid #dce5eb;
    border-radius: .9rem;
    padding: clamp(.8rem, 2vw, 1.4rem);
}
.league-forecast-header h2 { color: #1d3444; font-size: 1.5rem; margin: .35rem 0; }
.league-forecast-header p { margin-bottom: .8rem; }
.league-forecast-eyebrow { color: #11675d; font-size: .85rem; font-weight: 700; }
.league-forecast-summary { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: #48596a; font-size: .85rem; }
.league-forecast-notice { margin: 1rem 0 0; padding: .65rem .8rem; border-left: 3px solid #c38c20; background: #fff7df; color: #58430e; font-size: .9rem; }
.league-forecast-group { margin-top: 1.3rem; min-width: 0; }
.league-forecast-group h3 { color: #243445; font-size: 1.15rem; }
.league-forecast .league-forecast-table {
    width: 100%;
    font-variant-numeric: tabular-nums;
}
.league-forecast-public .league-forecast-table.league-standings {
    table-layout: auto;
    min-width: 760px;
}
.league-forecast-table .league-forecast-team { text-align: left; }
.league-forecast-table .league-forecast-position { font-weight: 750; }
.league-forecast-movement { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 650; }
.forecast-up { color: #146c43; }
.forecast-down { color: #b42336; }
.forecast-level { color: #526070; }
.league-forecast-method { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #dce5eb; font-size: .9rem; }
.league-forecast-method summary { color: #11675d; font-weight: 700; cursor: pointer; }
.league-forecast-method p { color: #48596a; margin: .7rem 0 0; }
/* Public tables retain the same responsive scroll region as Overall/Home/Away. */
main .league-forecast-public .league-forecast-table { display: table; overflow: visible; }
/* The authenticated forecast uses the normal Tables card and Bootstrap table styling.
   There is no fixed-width or scrolling container around this table. */
.league-forecast-authenticated {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: #e9ecef;
}
.league-forecast-authenticated .league-forecast-group h3,
.league-forecast-authenticated .league-forecast-header h2,
.league-forecast-authenticated .league-forecast-eyebrow,
.league-forecast-authenticated .league-forecast-summary,
.league-forecast-authenticated .league-forecast-method summary,
.league-forecast-authenticated .league-forecast-method p { color: #e9ecef; }
.league-forecast-authenticated .league-forecast-table-container { overflow: visible; }
main .league-forecast-authenticated .league-forecast-table {
    display: table;
    table-layout: fixed;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    font-size: .8rem;
}
.league-forecast-authenticated .league-forecast-table th,
.league-forecast-authenticated .league-forecast-table td {
    padding: .5rem .3rem;
    overflow-wrap: anywhere;
}
.league-forecast-authenticated .league-forecast-table :is(th, td):nth-child(2) { width: 20%; min-width: 0; }
.league-forecast-authenticated .league-forecast-table :is(th, td):nth-child(6) { width: 17%; }
.league-forecast-authenticated .league-forecast-table .team { min-width: 0; }
.league-forecast-authenticated .league-forecast-table .team-name { white-space: normal; }
.league-forecast-authenticated .league-forecast-movement { white-space: normal; }
.league-forecast-authenticated .league-form-badges { flex-wrap: wrap; white-space: normal; max-width: 100%; }
@media (max-width: 767.98px) {
    /* Stack forecast cells into labelled rows on phones; every statistic stays visible. */
    main .league-forecast-authenticated .league-forecast-table,
    .league-forecast-authenticated .league-forecast-table tbody { display: block; }
    .league-forecast-authenticated .league-forecast-table thead { display: none; }
    .league-forecast-authenticated .league-forecast-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: .7rem; }
    .league-forecast-authenticated .league-forecast-table td { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; width: auto !important; }
    .league-forecast-authenticated .league-forecast-table td::before { content: attr(data-label); font-size: .65rem; font-weight: 600; margin-bottom: .15rem; }
    .league-forecast-authenticated .league-forecast-table .league-forecast-team { grid-column: 1 / -1; grid-row: 1; align-items: stretch; }
    .league-forecast-authenticated .league-forecast-table .league-forecast-team::before { display: none; }
}
