/* Scoped championship controls inherit the existing light/dark theme tokens. */
#sustt-root .sustt-championship { min-width: 0; width: 100%; letter-spacing: 0; color: var(--sustt-text-main); }
.sustt-championship [hidden] { display: none !important; }
.sustt-championship .ch-heading, .sustt-championship .ch-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sustt-championship .ch-heading { padding: 0 0 20px; }
.sustt-championship h1 { margin: 0; font-size: 26px; line-height: 1.3; }
.sustt-championship .ch-heading p { margin: 6px 0 0; font-size: 14px; color: var(--sustt-text-soft); }
.sustt-championship .ch-scope { font-size: 13px; color: var(--sustt-text-soft); white-space: nowrap; }
.sustt-championship .ch-navigation { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(140px, 1fr) auto minmax(230px, 1.8fr); align-items: end; gap: 12px; padding: 16px 0; border-block: 1px solid var(--sustt-border-main); margin: 0; }
.sustt-championship label { display: grid; gap: 6px; min-width: 0; margin: 0; color: var(--sustt-text-soft); font-size: 13px; font-weight: 600; }
#sustt-root .sustt-championship :is(select, input) { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; margin: 0; padding: 8px 10px; border: 1px solid var(--sustt-border-main); border-radius: 6px; background: var(--sustt-bg-input); color: var(--sustt-text-main); -webkit-text-fill-color: var(--sustt-text-main); font: inherit; font-size: 14px; line-height: 1.4; text-overflow: ellipsis; color-scheme: light; }
html.dark #sustt-root .sustt-championship :is(select, input) { color-scheme: dark; }
.sustt-championship input::placeholder { color: var(--sustt-text-muted); opacity: 1; }
#sustt-root .sustt-championship :is(button, a, input, select, [tabindex]):focus-visible { outline: 2px solid var(--sustt-focus); outline-offset: 3px; }
.sustt-championship button { cursor: pointer; font: inherit; letter-spacing: 0; }
.sustt-championship .ch-pool-arrows { display: flex; gap: 4px; }
#sustt-root .sustt-championship .ch-pool-arrows button { display: inline-grid; place-items: center; flex: 0 0 40px; width: 40px; height: 44px; padding: 0; border: 1px solid var(--sustt-border-main); border-radius: 6px; background: var(--sustt-bg-soft); color: var(--sustt-text-main); }
.sustt-championship button:disabled { opacity: .4; cursor: default; }
.sustt-championship .ch-submit, .sustt-championship [data-ch-retry] { min-height: 40px; padding: 8px 12px; border: 1px solid var(--sustt-border-main); border-radius: 6px; background: var(--sustt-bg-soft); color: var(--sustt-text-main); }
.sustt-championship .ch-search { position: relative; min-width: 0; }
.sustt-championship .ch-search-results { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: max(100%, 300px); max-width: min(440px, 85vw); max-height: 360px; overflow-y: auto; border: 1px solid var(--sustt-border-main); border-radius: 6px; box-shadow: var(--sustt-shadow-sm); background: var(--sustt-bg-soft); }
#sustt-root .sustt-championship .ch-search-results button { display: grid; gap: 4px; width: 100%; padding: 12px; border: 0; border-bottom: 1px solid var(--sustt-border-main); border-radius: 0; text-align: left; background: transparent; color: var(--sustt-text-main); font-size: 14px; overflow-wrap: anywhere; }
.sustt-championship .ch-search-results button:hover, .sustt-championship .ch-search-results button:focus-visible { background: var(--sustt-bg-table-alt); }
.sustt-championship .ch-search-results span, .sustt-championship .ch-search-results p { color: var(--sustt-text-soft); font-size: 12px; }
.sustt-championship .ch-search-results p { margin: 0; padding: 12px; }
.sustt-championship .ch-context { padding: 20px 0 14px; }
.sustt-championship .ch-context h2 { margin: 0; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.sustt-championship .ch-context > span { flex-shrink: 0; font-size: 13px; color: var(--sustt-text-soft); }
.sustt-championship .ch-tabs { display: flex; border-bottom: 1px solid var(--sustt-border-main); gap: 20px; }
#sustt-root .sustt-championship [role="tab"] { padding: 10px 2px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--sustt-text-soft); background: none; font-weight: 600; }
#sustt-root .sustt-championship [role="tab"][aria-selected="true"] { color: var(--sustt-text-main); border-bottom-color: var(--sustt-primary); }
.sustt-championship .ch-load-status { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 20px; margin: 8px 0; }
.sustt-championship .ch-load-status:has([data-ch-status]:not(:empty)) { min-height: 52px; }
.sustt-championship .ch-spinner { flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid var(--sustt-border-main); border-top-color: var(--sustt-primary); border-radius: 50%; animation: ch-spin 1s linear infinite; }
@keyframes ch-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sustt-championship .ch-spinner { animation: none; } }
.sustt-championship .ch-empty, .sustt-championship .ch-notice { padding: 24px 0; margin: 0; color: var(--sustt-text-soft); line-height: 1.6; }
.sustt-championship .ch-notice { border-bottom: 2px solid var(--sustt-error-border); }
.sustt-championship .ch-notice a { color: var(--sustt-text-main); text-decoration: underline; }
.sustt-championship .ch-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
#sustt-root .sustt-championship .ch-table { width: 100%; min-width: 580px; table-layout: fixed; border-collapse: collapse; font-size: 14px; margin: 0; color: var(--sustt-text-main); background: var(--sustt-bg-table); }
.sustt-championship .ch-table :is(td, th) { border: 0; border-bottom: 1px solid var(--sustt-border-main); padding: 12px 8px; text-align: center; font-variant-numeric: tabular-nums; }
.sustt-championship .ch-table thead th { color: var(--sustt-text-soft); font-size: 12px; font-weight: 600; }
.sustt-championship .ch-table :is(td, th):first-child { width: 56px; }
.sustt-championship .ch-table :is(td, th):nth-child(2) { width: 42%; text-align: left; overflow-wrap: anywhere; }
.sustt-championship .ch-table tbody tr:nth-child(even) { background: var(--sustt-bg-table-alt); }
/* Blogus loads after the plugin and paints all th cells; own both cell surfaces and text. */
#sustt-root .sustt-championship .ch-table :is(thead, tbody, tfoot) { background: var(--sustt-bg-table); color: var(--sustt-text-main); }
#sustt-root .sustt-championship .ch-table thead :is(tr, th, td) { background: var(--sustt-bg-input); color: var(--sustt-text-soft); }
#sustt-root .sustt-championship .ch-table tbody tr { background: var(--sustt-bg-table); color: var(--sustt-text-main); }
#sustt-root .sustt-championship .ch-table tbody tr:nth-child(even) { background: var(--sustt-bg-table-alt); }
#sustt-root .sustt-championship .ch-table tbody :is(th, td) { background: transparent; color: var(--sustt-text-main); }
.sustt-championship .ch-table tr.is-selected { outline: 2px solid var(--sustt-accent); outline-offset: -2px; }
#sustt-root .sustt-championship [data-ch-team-link] { display: inline; padding: 3px 0; border: 0; border-radius: 0; background: transparent; color: var(--sustt-text-main); text-align: left; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.sustt-championship [data-ch-team-link]:hover { text-decoration: underline; }
.sustt-championship .ch-rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; background: var(--sustt-bg-input); }
.sustt-championship .ch-rank-1 { background: #edd57a; color: #29240e; }
.sustt-championship .ch-rank-2 { background: #d5dce1; color: #172027; }
.sustt-championship .ch-rank-3 { background: #d3a980; color: #2c1c0b; }
.sustt-championship .ch-points { font-weight: 800; }
#sustt-root .sustt-championship .ch-table .ch-positive { color: var(--ch-win); font-weight: 600; }
#sustt-root .sustt-championship .ch-table .ch-negative { color: var(--ch-loss); }
.sustt-championship .ch-fixture-filters { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 16px; padding-bottom: 16px; }
.sustt-championship .ch-round { --ch-round-color: var(--sustt-primary); --ch-round-bg: var(--sustt-primary-soft); margin-bottom: 28px; border-top: 3px solid var(--ch-round-color); }
.sustt-championship .ch-round-even { --ch-round-color: var(--sustt-accent); --ch-round-bg: var(--sustt-accent-soft); }
#sustt-root .sustt-championship .ch-round h3 { font-size: 14px; line-height: 1.5; margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--sustt-border-main); background: var(--ch-round-bg); color: var(--sustt-text-main); }
.sustt-championship .ch-matches { list-style: none; margin: 0; padding: 0; }
.sustt-championship .ch-match { display: grid; grid-template-columns: 110px minmax(0, 1fr) 70px minmax(0, 1fr) 20px; gap: 12px; align-items: center; min-height: 74px; padding: 12px 0; border-bottom: 1px solid var(--sustt-border-main); margin: 0; font-size: 14px; }
.sustt-championship .ch-match[data-sustt-match-detail] { cursor: pointer; touch-action: manipulation; }
@media (hover: hover) {
    .sustt-championship .ch-match[data-sustt-match-detail]:hover { background: var(--sustt-bg-table-alt); }
}
#sustt-root .sustt-championship .ch-match[data-sustt-match-detail]:focus-visible { outline: 2px solid var(--sustt-focus); outline-offset: -2px; background: var(--sustt-bg-table-alt); }
.sustt-championship .ch-match-detail-icon { grid-column: 5; grid-row: 1; width: 20px; height: 20px; font-size: 20px; line-height: 1; color: var(--sustt-text-soft); pointer-events: none; }
.sustt-championship .ch-kickoff { display: grid; gap: 4px; font-size: 12px; color: var(--sustt-text-soft); }
.sustt-championship :is(.ch-home, .ch-away) { font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.sustt-championship .ch-home { text-align: right; }
.sustt-championship { --ch-win: var(--sustt-sport-positive, #10528f); --ch-loss: var(--sustt-sport-negative, #8c3809); --ch-draw: #854d0e; }
html.dark .sustt-championship { --ch-draw: #fde68a; }
#sustt-root .sustt-championship .ch-result-win { color: var(--ch-win); }
#sustt-root .sustt-championship .ch-result-loss { color: var(--ch-loss); }
#sustt-root .sustt-championship .ch-result-draw { color: var(--ch-draw); }
.sustt-championship .ch-result-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sustt-championship .ch-score { display: grid; place-items: center; width: 70px; min-height: 34px; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--sustt-text-muted); }
.sustt-championship .ch-score.is-played { color: var(--sustt-text-main); background: var(--sustt-bg-input); border-radius: 4px; }
.sustt-championship.is-enhanced .ch-nojs-heading { display: none; }
.sustt-championship .ch-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 820px) {
    .sustt-championship .ch-navigation { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
    .sustt-championship .ch-search { grid-column: 1 / -1; }
    .sustt-championship .ch-search-results { left: 0; right: auto; width: 100%; max-width: 100%; }
    .sustt-championship .ch-match { grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr) 20px; gap: 8px 12px; }
    .sustt-championship .ch-kickoff { grid-column: 1 / 4; grid-row: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 4px; }
    .sustt-championship .ch-home { grid-column: 1; grid-row: 2; }
    .sustt-championship .ch-score { grid-column: 2; grid-row: 2; }
    .sustt-championship .ch-away { grid-column: 3; grid-row: 2; }
    .sustt-championship .ch-match-detail-icon { grid-column: 4; grid-row: 1 / span 2; }
}
@media (max-width: 500px) {
    .sustt-championship .ch-heading { align-items: start; }
    .sustt-championship h1 { font-size: 23px; }
    .sustt-championship .ch-navigation { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 8px; }
    .sustt-championship .ch-pool-arrows { display: none; }
    .sustt-championship .ch-context { gap: 8px; align-items: start; }
    .sustt-championship .ch-context h2 { font-size: 16px; }
    #sustt-root .sustt-championship .ch-table { min-width: 0; display: block; }
    .sustt-championship .ch-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .sustt-championship .ch-table tbody { display: block; width: 100%; }
    .sustt-championship .ch-table tbody tr { display: grid; grid-template-columns: 32px repeat(5, minmax(0, 1fr)) 38px; gap: 10px 0; padding: 12px 8px; border-bottom: 1px solid var(--sustt-border-main); }
    .sustt-championship .ch-table tbody :is(td, th) { display: block; width: auto; padding: 0; border: 0; align-self: center; font-size: 12px; }
    .sustt-championship .ch-table tbody :is(td, th):first-child { width: auto; grid-column: 1; grid-row: 1; }
    .sustt-championship .ch-table tbody :is(td, th):nth-child(2) { width: auto; grid-column: 2 / 7; grid-row: 1; padding: 0 6px; }
    .sustt-championship .ch-table tbody td:nth-child(3) { grid-column: 2; grid-row: 2; }
    .sustt-championship .ch-table tbody td:nth-child(4) { grid-column: 3; grid-row: 2; }
    .sustt-championship .ch-table tbody td:nth-child(5) { grid-column: 4; grid-row: 2; }
    .sustt-championship .ch-table tbody td:nth-child(6) { grid-column: 5; grid-row: 2; }
    .sustt-championship .ch-table tbody td:nth-child(7) { grid-column: 7; grid-row: 1; font-size: 16px; }
    .sustt-championship .ch-table tbody td:nth-child(8) { grid-column: 6; grid-row: 2; }
    .sustt-championship .ch-table td[data-label]::before { content: attr(data-label); display: block; padding-bottom: 3px; font-size: 10px; font-weight: 400; color: var(--sustt-text-soft); }
    .sustt-championship .ch-fixture-filters { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .sustt-championship .ch-match { grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr) 20px; gap: 6px 8px; padding: 12px 0; }
    .sustt-championship .ch-kickoff { grid-column: 1 / 4; display: flex; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 4px; }
    .sustt-championship .ch-score { width: 58px; }
    .sustt-championship :is(.ch-home, .ch-away) { font-size: 12px; }
}
