/* Each main destination has one accent; surfaces and football colours stay stable. */
:root,#explore [data-explore-category="domestic"]{--section-light:#255caa;--section-dark:#94c3ff;--section-fill:#91c1ff}
html[data-section="competitions"],#explore [data-explore-category="european"]{--section-light:#236b36;--section-dark:#9bd19a;--section-fill:#aed9a6}
html[data-section="global"],#explore [data-destination="global"],#explore [data-explore-category="supremacy"]{--section-light:#0b7566;--section-dark:#76d8c6;--section-fill:#8de4d1}
html[data-section="predict"],#explore [data-destination="predict"]{--section-light:#006a85;--section-dark:#7dd5e5;--section-fill:#a0e1ed}
html[data-section="method"]{--section-light:#985517;--section-dark:#f3bb6c;--section-fill:#f5c784}
body[data-palette="blue"]{
 --green:var(--section-light);--lime:var(--section-fill);
 --soft:color-mix(in srgb,var(--green) 9%,var(--panel));
 --column:color-mix(in srgb,var(--green) 12%,var(--panel));
}
body[data-palette="blue"].dark{
 --green:var(--section-dark);--lime:var(--section-fill);
 --soft:color-mix(in srgb,var(--green) 12%,var(--panel));
 --column:color-mix(in srgb,var(--green) 16%,var(--panel));
}
body[data-palette="blue"] .logo-mark{color:var(--green)}
body[data-palette="blue"] .brand .logo-mark{color:var(--section-dark)}
body[data-palette="blue"] .mobile-actions #menu-toggle{background:var(--lime);border-color:var(--lime)}
body[data-palette="blue"] :is(button,a,input,select,summary):focus-visible{outline-color:var(--green)}
.page>h2,.section-top h1,#method .model-intro h1{color:var(--green)}
/* Centre equal badge/name groups while lining up the names' starting edges. */
.competition-grid a{display:grid;grid-template-columns:40px minmax(0,210px);justify-content:center;gap:15px}
.competition-grid .league-badge{width:40px;justify-self:center}
.competition-grid .competition-name{text-align:left;min-width:0}

/* Blue actions and soft selections are shared; data keeps its section accent. */
html[data-theme] body[data-palette]{
 --green:var(--section-light);--lime:var(--section-fill);--focus:var(--section-light);
 --action:#255caa;--action-hover:#1b4786;--on-action:#fff;
 --selected:#dceaff;--on-selected:#173f78;
 --section-nav-bg:color-mix(in srgb,var(--section-fill) 30%,var(--panel));
 --section-nav-hover:color-mix(in srgb,var(--section-fill) 40%,var(--panel));
 --section-control-bg:color-mix(in srgb,var(--section-fill) 14%,var(--panel));
 --soft:#e8f0fb;
 --column:color-mix(in srgb,var(--section-fill) 16%,var(--panel));
 --table-selected:var(--column);--table-accent:var(--green);--table-bar:var(--section-dark);
 --table-row-hover:var(--soft);--surface-muted:var(--soft);--surface-hover:var(--selected);
}
html[data-theme=dark] body[data-palette]{
 --green:var(--section-dark);--focus:var(--section-dark);
 --action:#94c3ff;--action-hover:#c5ddff;--on-action:#102b4d;
 --selected:#244873;--on-selected:#edf4ff;
 --section-nav-bg:color-mix(in srgb,var(--section-light) 30%,var(--panel));
 --section-nav-hover:color-mix(in srgb,var(--section-light) 40%,var(--panel));
 --section-control-bg:color-mix(in srgb,var(--section-light) 14%,var(--panel));
 --soft:#182f4d;
 --column:color-mix(in srgb,var(--section-light) 20%,var(--panel));
}
html[data-theme] body[data-palette] .brand .logo-mark{color:var(--section-dark)}
html[data-theme] body[data-palette] #main :is(#strength-table,#global-table,.snapshot-table) td.main-metric{background:var(--table-selected)}
html[data-theme] body[data-palette] #main :is(#strength-table,#global-table,.snapshot-table) th.main-metric{background:var(--selected);color:var(--green);box-shadow:inset 0 -2px var(--green)}
html[data-theme] body[data-palette] #primary-nav button[data-page].active,
html[data-theme] body[data-palette] #primary-nav .nav-subpages a[aria-current=page]{background:color-mix(in srgb,var(--section-light) 42%,#091729);color:#edf4ff;box-shadow:inset 3px 0 var(--section-dark)}
/* Touch can leave :hover active after a long press. Override the legacy white
   navigation hover colour in both states, retaining the tab's resting colours. */
html[data-theme] body[data-palette] .app-bottom-nav :is(button,a):is(:hover,:active){background:transparent;color:var(--muted)}
html[data-theme] body[data-palette] .app-bottom-nav :is(button,a)[aria-current=page],
html[data-theme] body[data-palette] .app-bottom-nav :is(button,a)[aria-current=page]:is(:hover,:active){background:var(--selected);color:var(--green);box-shadow:inset 0 2px var(--green)}
html[data-theme] body[data-palette] :is(.column-switch,.performance-column-switch,.period-controls,.period-switch) button[aria-pressed=true]{background:var(--selected);border-color:var(--green);color:var(--on-selected);box-shadow:none}

/* The compact Explore menu uses each destination's own accent. */
html[data-theme] body[data-palette] #explore .explore-direct>:is(a,.explore-direct-branch){
 --branch-accent:var(--section-light);--branch-tint:var(--section-dark);
 --card-bg:color-mix(in srgb,var(--section-fill) 14%,var(--panel));
 --card-hover:color-mix(in srgb,var(--section-fill) 24%,var(--panel));
 --card-ink:#172a47;--card-detail:#324760;
 background:var(--card-bg);border:1px solid var(--line);border-left:3px solid var(--branch-accent);box-shadow:none;
}
html[data-theme=dark] body[data-palette] #explore .explore-direct>:is(a,.explore-direct-branch){
 --card-bg:color-mix(in srgb,var(--section-light) 20%,var(--panel));
 --card-hover:color-mix(in srgb,var(--section-light) 32%,var(--panel));
 --card-ink:#edf4ff;--card-detail:#d6e3f3;
 border-color:var(--line);border-left-color:var(--branch-tint);
}
html[data-theme] body[data-palette] #explore .explore-direct>a:hover,
html[data-theme] body[data-palette] #explore .explore-direct .explore-branch-toggle:hover{background:var(--card-hover);box-shadow:none}
html[data-theme] body[data-palette] #explore .explore-direct>a strong,
html[data-theme] body[data-palette] #explore .explore-branch-toggle strong{color:var(--card-ink)}
html[data-theme] body[data-palette] #explore .explore-direct>a small,
html[data-theme] body[data-palette] #explore .explore-branch-toggle small{color:var(--card-detail)}
html[data-theme] body[data-palette] #explore .explore-direct :is(.explore-category-icon,.explore-branch-arrow,.explore-destination-arrow){color:var(--branch-accent)}
html[data-theme=dark] body[data-palette] #explore .explore-direct :is(.explore-category-icon,.explore-branch-arrow,.explore-destination-arrow){color:var(--branch-tint)}

/* One focus edge, on the element that owns the visible control surface. */
html[data-theme] body[data-palette] :is(#main,#site-navigation,.app-bottom-nav,dialog) :is(button,a,select,input,summary,[tabindex]):focus-visible{
 outline:3px solid var(--focus);outline-offset:-3px;box-shadow:none;
}

html[data-theme] body[data-palette] #main .search:focus-within{outline:3px solid var(--focus);outline-offset:-3px;box-shadow:none}
html[data-theme] body[data-palette] #main .search input:focus-visible{outline:none;border:0;box-shadow:none}
html[data-theme] body[data-palette] #site-navigation :is(button,a,select,input,summary):focus-visible{outline-color:var(--section-dark)}
html[data-theme] body[data-palette] #explore .explore-branch-toggle:focus-visible{outline:none;box-shadow:none}
html[data-theme] body[data-palette] #explore .explore-direct-branch:has(.explore-branch-toggle:focus-visible){outline:3px solid var(--branch-accent);outline-offset:-3px}
html[data-theme] body[data-palette] #explore .explore-direct>a:focus-visible{outline-color:var(--branch-accent)}
html[data-theme=dark] body[data-palette] #explore .explore-direct>a:focus-visible,
html[data-theme=dark] body[data-palette] #explore .explore-direct-branch:has(.explore-branch-toggle:focus-visible){outline-color:var(--branch-tint)}
@media(forced-colors:active){
 html[data-theme] body[data-palette]{--focus:Highlight}
 html[data-theme] body[data-palette] #explore .explore-direct>:is(a,.explore-direct-branch){--branch-accent:Highlight;--branch-tint:Highlight}
}
