/* QuarryChain: parent link – size container for 80px logo */
header a[href="/"][aria-label="Link to main page"] {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 80px !important;
  height: 80px !important;
  gap: 0.5rem !important;
  margin: 0 auto;
}

/* QuarryChain: logo/icon images */
header a[href="/"] img.chakra-image,
header img[src="/assets/configs/network_logo.svg"],
header img[src="/assets/configs/network_icon.svg"],
header img[alt="QuarryChain network logo"],
header img[alt="QuarryChain network icon"] {
  height: 80px !important;
  max-height: 80px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* QuarryChain: hide testnet logo */
img[src*="testnet.svg"],
img[src="/static/labels/testnet.svg"],
.css-1o1cinb[src*="testnet"],
[class*="testnet"] img[src*="testnet"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
}

/* QuarryChain: hide all iframe ads in header/banner */
header iframe,
header .ad-container,
header .coinzilla,
header [class*="ad"],
header [id*="ad"],
iframe[src*="coinzilla"],
iframe[src*="ad"],
iframe[src*="ads"],
iframe[src*="advertisement"],
.coinzilla,
.ad-container {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
}

/* QuarryChain: hide Slise ads (adsbyslise) */
.adsbyslise,
ins.adsbyslise,
ins[data-ad-slot],
ins[data-ad-pub],
iframe[src*="slise.xyz"],
.chakra-skeleton [class*="css-u45bp0"],
.chakra-skeleton ins {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* QuarryChain: Custom Footer Branding */

/* Hide the first .css-0 (Blockscout branding) that follows .css-1fewije */
footer .css-1469qes > div:first-child > .css-1fewije + .css-0,
footer .css-1469qes .css-x56gql .css-0:first-of-type  {
  display: none !important;
}

/* Style the second .css-0 (the one after the hidden one) */
footer .css-1469qes > div:first-child > .css-1fewije + .css-0 + .css-0 {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

/* Inject "QuarryChain" title into the second .css-0 */
footer .css-1469qes > div:first-child > .css-1fewije + .css-0 + .css-0::before {
  content: "QuarryChain" !important;
  display: block !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: inherit !important;
}

/* Inject description into the second .css-0 */
footer .css-1469qes > div:first-child > .css-1fewije + .css-0 + .css-0::after {
  content: "Blockchain Explorer for QuarryChain Networks." !important;
  display: block !important;
  font-size: 0.875rem !important;
  opacity: 0.7 !important;
  color: inherit !important;
}