/* Ad slots for the Free Plugins pages. assets/ads.js shows and fills them. */

.ad-slot {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.ad-slot[hidden] {
  display: none;
}

/* Between About and Features: keeps the usual gap between panels */
.ad-rect {
  margin-top: 18px;
}

.ad-rect + .panel {
  margin-top: 18px;
}

/* After "Want more?" on product pages, and under the grid on the list */
.ad-banner {
  margin-top: clamp(32px, 5vw, 56px);
}

.ad-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.ad-box {
  max-width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

/* No ad to show: hide the whole slot */
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
}
