/* International shares the competition tables and controls; warm yellow identifies the section. */
html[data-section="international"]{--section-light:#896700;--section-dark:#f2cd4b;--section-fill:#f2d15a}
html[data-theme][data-section="international"] body[data-palette]{--matchday-nav-selected:#fff0af;--matchday-nav-selected-ink:#443300;--matchday-nav-selected-accent:#896700}
html[data-theme="dark"][data-section="international"] body[data-palette]{--matchday-nav-selected:#423918;--matchday-nav-selected-ink:#fff0af;--matchday-nav-selected-accent:#f2cd4b}
.tournament-filters{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:12px;padding:12px 0 16px;margin:0 16px;border-bottom:1px solid var(--line)}
.tournament-filter-label,.tournament-group-picker>span,.tournament-division-select>span{display:block;font:500 11px/1.4 var(--font-ui);color:var(--muted);margin-bottom:6px}
.tournament-divisions{margin:0;flex-wrap:wrap;gap:4px}.tournament-divisions button{min-height:36px;white-space:nowrap}
.tournament-division-select{display:none}
.tournament-group-picker{display:block;min-width:140px}.tournament-group-picker select,.tournament-division-select select,.tournament-round-label select{font:500 13px/1.3 var(--font-ui);border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--ink);min-height:38px;padding:6px 26px 6px 9px;max-width:100%}
/* One table keeps a single set of headings frozen across every group. */
html[data-theme][data-table-navigation] body[data-palette] #main #ratings #snapshot-view tr.tournament-group-heading{display:table-row}
html[data-theme][data-table-navigation] body[data-palette] #main #ratings #snapshot-view :is(caption.tournament-group-heading,.tournament-group-heading>th){width:auto;height:auto;min-height:0;text-align:left;color:var(--ink);background:color-mix(in srgb,var(--section-fill) 9%,var(--panel));font:650 12px/1.4 var(--font-ui);padding:6px 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
html[data-theme][data-table-navigation] body[data-palette] #main #ratings #snapshot-view caption.tournament-group-heading{display:table-caption;caption-side:top}
.tournament-group-table[hidden]{display:none!important}
html[data-theme][data-table-navigation] body[data-palette] #main #ratings .tournament-group-table>thead{position:sticky;top:calc(var(--table-heading-top,var(--journey-height)) + var(--table-heading-height,52px) - 1px);z-index:20;background:var(--panel);box-shadow:0 1px 0 var(--line)}
html[data-theme][data-table-navigation] body[data-palette] #main #ratings .tournament-group-table>thead th{position:static!important;top:auto!important}
html[data-theme][data-table-navigation] body[data-palette] #main #ratings .tournament-fixture-filters{position:sticky;top:calc(var(--table-heading-top,var(--journey-height)) + var(--league-tabs-height,52px) - 1px);z-index:35;margin-inline:0;padding-inline:16px;background:var(--panel);box-shadow:0 1px 0 var(--line)}
.tournament-group-label{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
html[data-theme][data-table-navigation] body[data-palette] #main #ratings #snapshot-view .snapshot-table[data-layout="grouped"] tr.tournament-group-heading{display:block;padding:0}
html[data-theme][data-table-navigation] body[data-palette] #main #ratings #snapshot-view .snapshot-table[data-layout="grouped"] .tournament-group-heading>th{display:block;grid-column:1 / -1}
/* Give each complete word its own line; never break Season, Attack or Defence. */
html[data-theme][data-table-navigation] body[data-palette] #main #ratings .snapshot-table.performance thead th .level-heading{display:inline-flex;flex-direction:column;align-items:center;max-width:none;line-height:1.3;overflow-wrap:normal}
html[data-theme][data-table-navigation] body[data-palette] #main #ratings .snapshot-table.performance thead th .level-heading>span{white-space:nowrap;overflow-wrap:normal;max-width:none}
.tournament-awaiting{padding:28px 18px 36px;line-height:1.6}
.tournament-awaiting p{margin:0;font-size:15px}
.tournament-awaiting p+p{margin-top:8px;color:var(--muted);font-size:13px}
.tournament-data-note{padding:0 16px;max-width:1000px;line-height:1.65}
.tournament-knockout{padding:8px 16px 20px;min-width:0}.tournament-round-label{display:grid;gap:6px;font-size:12px;padding-top:16px}
.tournament-team{display:flex;gap:7px;align-items:center;min-width:0}.tournament-team .club-badge{flex:0 0 24px}.tournament-team img{object-fit:contain}.tournament-team>span{overflow-wrap:break-word}
.tournament-muted{font-size:12px;color:var(--muted);line-height:1.5}
.tournament-pending,.tournament-notice{padding:20px 0;line-height:1.65;font-size:14px}.tournament-pending p{margin:6px 0;color:var(--muted)}
.tournament-subheading{font-size:20px;margin:24px 0 12px}.tournament-round-label{max-width:400px}.tournament-ties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tournament-tie{padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:10px}.tournament-tie-team{display:flex;justify-content:space-between;gap:14px;padding:8px 0}.tournament-tie-team>strong{color:var(--green);font-variant-numeric:tabular-nums;white-space:nowrap}.tournament-leg{font-size:12px;margin:5px 0}.tournament-tie>a{display:inline-block;margin-top:12px;color:var(--green);font-size:12px}

@media(min-width:761px){
 /* A percentage resolves reliably in fixed-layout tables, including groups
    with spanning headers. Reserve room for flags and full country names. */
 html[data-section="international"][data-theme][data-table-navigation] body[data-palette] #main #ratings #snapshot-view .snapshot-table[data-layout="table"] :is(th,td):nth-child(2){width:24%}
}
@media(max-width:760px){
 .tournament-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-inline:10px;gap:8px;padding:6px 0 8px;align-items:start}
 html[data-theme][data-table-navigation] body[data-palette] #main #ratings .tournament-fixture-filters{padding-inline:10px}
 .tournament-division-picker{display:none}
 .tournament-division-select,.tournament-group-picker{display:grid;gap:3px;min-width:0;width:100%}
 .tournament-division-select>span,.tournament-group-picker>span{margin:0}
 .tournament-division-select select,.tournament-group-picker select{min-width:0;width:100%;min-height:44px;font-size:16px}
 .tournament-filters:not(:has(.tournament-group-picker)),.tournament-filters:not(:has(.tournament-division-select)){grid-template-columns:minmax(0,1fr)}
 .tournament-group-label{padding-inline:10px}
 .tournament-ties{grid-template-columns:minmax(0,1fr)}.tournament-tie{padding:12px}.tournament-knockout{padding-inline:10px}
 .tournament-awaiting{padding:24px 12px 32px}
 html[data-theme][data-table-navigation] body[data-palette] .app-bottom-nav:not([hidden]){grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}
 html[data-theme][data-table-navigation] body[data-palette] .app-bottom-nav button>span{font:500 10px/1.2 var(--font-ui);min-height:2.4em;padding-inline:0;white-space:normal;overflow-wrap:anywhere}
 html[data-theme][data-table-navigation] body[data-palette] .app-bottom-nav button[data-app-page="international"]{--green:#896700;--selected:#fff0af;--dock-accent:#f2cd4b;--matchday-nav-selected:#fff0af;--matchday-nav-selected-ink:#443300;--matchday-nav-selected-accent:#896700}
 html[data-theme="dark"][data-table-navigation] body[data-palette] .app-bottom-nav button[data-app-page="international"]{--green:#f2cd4b;--selected:#423918;--matchday-nav-selected:#423918;--matchday-nav-selected-ink:#fff0af;--matchday-nav-selected-accent:#f2cd4b}
 html[data-theme][data-table-navigation] body[data-palette] .app-bottom-nav button[data-app-page="international"][aria-current="page"]{box-shadow:inset 0 0 0 1px var(--matchday-nav-selected-accent)}
 html[data-theme][data-table-navigation] body[data-palette] .app-bottom-nav button[data-app-page="predict"]{--dock-accent:#7dd5e5}
}

/* Four peer sections in the existing Explore navigation. */
html[data-theme] body[data-palette] #main #explore.competition-browser .browser-categories{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:760px){html[data-theme] body[data-palette] #main #explore.competition-browser .browser-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}}
.tournament-badge svg{display:block;color:var(--green)}

/* One continuous performance table across the selected edition's leagues. */
.tournament-all-leagues caption{padding:12px 14px;text-align:left;font-weight:600;color:var(--ink)}
.tournament-all-leagues .tournament-team-context{display:block;margin-top:3px;font:400 11px/1.3 var(--font-reading);color:var(--muted);white-space:normal}
.tournament-all-leagues .club-name{white-space:normal}

html[data-theme][data-table-navigation] body[data-palette] #main #ratings[data-studio-analysis] .tournament-group-table>thead {
  top:var(--studio-table-sticky-top);
}
html[data-theme][data-table-navigation] body[data-palette] #main #ratings[data-studio-analysis] .tournament-fixture-filters {
  top:var(--studio-table-sticky-top);
}

@media (max-width:760px) {
  #main #ratings .tournament-fixture-filters:has(.tournament-division-select):has(.tournament-group-picker) {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));
  }
}
