/* Hide ad zone label when no ad content rendered.
   Ad templates add .ad-rendered to their output element.
   CSS is render-blocking (loaded in <head>), so no CLS from :has() evaluation. */
:is(.ad-zone-header, .ad-zone-center):not(:has(.ad-zone-content .ad-rendered)) {
  display: none;
}

/* Hide the parent <li> when #pmLink is hidden */
li:has(> a#pmLink[style*="visibility: hidden"]) {
  display: none;
}

/* Hide the sibling <li> when #pmLink is hidden */
li:has(> a#pmLink[style*="visibility: hidden"]) + li.topbar-devider {
  display: none;
}
