/*
 * Ad slots take up no space until AdSense actually serves an ad.
 * AdSense marks each <ins class="adsbygoogle"> with data-ad-status="filled" or "unfilled" once it
 * has answered. Until it says "filled" (and forever when there is no ad, on localhost, or with an
 * ad blocker), the slot collapses to zero height with no margins. It keeps its width, because
 * AdSense measures the slot's width to choose an ad: display:none would stop ads from ever loading.
 */
.tikits-ad.adsense-banner:not(:has(ins.adsbygoogle[data-ad-status="filled"])),
.footer-ad:not(:has(ins.adsbygoogle[data-ad-status="filled"])) {
  height: 0 !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* An answered-but-empty slot also hides its inner element (AdSense's recommended rule). */
ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

/* The footer shrinks its top padding to make room for the footer ad (footer-ad.css); without an ad it
   keeps its own spacing. (:has() can't be nested, so "filled" is matched as a descendant instead.) */
.site-footer.network-footer.network-footer:has(> .footer-ad) {
  padding-top: 68px;
}
.site-footer.network-footer.network-footer:has(> .footer-ad ins.adsbygoogle[data-ad-status="filled"]) {
  padding-top: 12px;
}
