/* SerieAGoal v1.88 — white competition badge in day/night modes.
   Logo-only selectors; excludes club emblems and national flags.
   Both layouts (sg-body sports/news and slr-site legal/editorial) use this. */
:where(body) :is(
 .sg-sidebar-competition-logo,
 .sg-league-logo:not(.sg-league-friendly-icon),
 .sg-competition-logo,
 .sg-competition-profile-logo,
 .sg-competition-search-logo,
 .sg-compact-league-main>span,
 .sg-team-context-switch a>i,
 .sg-player-context-switch a>i,
 .sg188-competition-logo
){background:#fff!important;background-image:none!important;display:grid!important;place-items:center!important;overflow:hidden;isolation:isolate}
:where(body) :is(
 .sg-sidebar-competition-logo,
 .sg-league-logo:not(.sg-league-friendly-icon),
 .sg-competition-logo,
 .sg-competition-profile-logo,
 .sg-competition-search-logo,
 .sg-compact-league-main>span,
 .sg-team-context-switch a>i,
 .sg-player-context-switch a>i,
 .sg188-competition-logo
) > img{display:block!important;object-fit:contain!important;object-position:center!important;margin:auto!important;max-width:90%!important;max-height:90%!important;
 padding:0!important;background:transparent!important;background-image:none!important;border-radius:0!important}
/* Small logo on match hero, competition breadcrumb and player directories. */
:where(body) :is(
 .sg-match-center-head>a>img,
 .sg-page-intro-logo,
 .sg187-result-card__meta>img,
 .sg-competition-standing-row img[src*="/leagues/"],
 .slr-social-standings-competition img[src*="/leagues/"]
){background:#fff!important;background-image:none!important;border-radius:7px!important;padding:3px!important;box-sizing:border-box!important;object-fit:contain!important;object-position:center!important}
/* API-Football's dedicated league media path: covers unknown list/card
   templates without relying on positional selectors or changing team crests. */
:where(body) img[src*="/football/leagues/"],
:where(body) img[src*="/logos/leagues/"]{
 background:#fff!important;background-image:none!important;
 border-radius:7px!important;padding:2px!important;box-sizing:border-box!important;
 object-fit:contain!important;object-position:center!important;
}
:where(body) .sg187-result-card__meta .sg188-competition-logo img{
 width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
 padding:0!important;object-fit:contain!important;object-position:center!important;
}
