/* SportDebates current logo, loaded on every public page.
   Keeps PMPro, account, Welcome, subscriptions, reseller, staking and debate pages consistent. */
body .custom-logo-link,
body .wp-block-site-logo a,
body header .site-branding a,
body header .site-logo a,
body header .navbar-brand,
body header .elementor-widget-theme-site-logo a,
body header a.custom-logo-link{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:min(620px,100%) !important;
  min-width:320px !important;
  height:clamp(84px,12vw,128px) !important;
  max-width:100% !important;
  overflow:visible !important;
}
body .custom-logo-link img,
body .wp-block-site-logo img,
body header.site-header img.custom-logo,
body header .site-branding img,
body header .site-logo img,
body header .navbar-brand img,
body header .elementor-widget-theme-site-logo img,
body header img[alt*="SportDebates" i],
body header img[src*="sportdebates" i]{
  opacity:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}
body .custom-logo-link::after,
body .wp-block-site-logo a::after,
body header .site-branding a::after,
body header .site-logo a::after,
body header .navbar-brand::after,
body header .elementor-widget-theme-site-logo a::after,
body header a.custom-logo-link::after{
  content:"";
  position:absolute;
  inset:0;
  background:url('../img/sportdebates-header-logo-sky-blue-v013.svg') center / contain no-repeat;
  pointer-events:none;
}
@media (max-width:900px){
  body .custom-logo-link,
  body .wp-block-site-logo a,
  body header .site-branding a,
  body header .site-logo a,
  body header .navbar-brand,
  body header .elementor-widget-theme-site-logo a,
  body header a.custom-logo-link{
    width:min(480px,100%) !important;
    min-width:240px !important;
    height:clamp(62px,13vw,96px) !important;
  }
}
@media (max-width:640px){
  body .custom-logo-link,
  body .wp-block-site-logo a,
  body header .site-branding a,
  body header .site-logo a,
  body header .navbar-brand,
  body header .elementor-widget-theme-site-logo a,
  body header a.custom-logo-link{
    width:min(360px,92vw) !important;
    min-width:180px !important;
    height:clamp(48px,14vw,76px) !important;
  }
}

/* SportDebates v0.1.3 native theme logo visibility repair. */
html body.sportdebates-theme .sd-site-header .sd-brand{
  position:relative !important;display:inline-flex !important;align-items:center !important;
  justify-content:flex-start !important;flex:0 1 420px !important;width:auto !important;
  min-width:240px !important;height:auto !important;max-width:420px !important;overflow:visible !important;
}
html body.sportdebates-theme .sd-site-header .sd-brand::before,
html body.sportdebates-theme .sd-site-header .sd-brand::after{content:none !important;display:none !important;background:none !important}
html body.sportdebates-theme .sd-site-header .sd-brand img,
html body.sportdebates-theme .sd-site-header .sd-brand img[alt*="SportDebates" i],
html body.sportdebates-theme .sd-site-header .sd-brand img[src*="sportdebates" i]{
  content:url('../img/sportdebates-header-logo-sky-blue-v013.svg') !important;
  display:block !important;visibility:visible !important;opacity:1 !important;
  width:min(410px,42vw) !important;min-width:0 !important;height:auto !important;
  min-height:0 !important;max-height:78px !important;object-fit:contain !important;object-position:left center !important;
}
