/* CodeWave Studio — Public blog advertisement slots */

.ads-slot {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.25rem auto;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.ads-slot:empty,
.ads-slot:not(:has([data-ads-mount]:not(:empty))):not([data-ads-mounted="1"]) {
  /* Keep reserved height until mounted; hide fully if JS removes node */
}

.ads-slot__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: inherit;
}

.ads-slot__inner iframe,
.ads-slot__inner img {
  max-width: 100%;
  height: auto;
}

.ads-slot__label {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 1;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.ads-slot--size-728x90 {
  max-width: 728px;
}

.ads-slot--size-320x50 {
  max-width: 320px;
}

.ads-slot--size-300x250 {
  max-width: 300px;
}

.ads-slot--desktop-only {
  display: none;
}

.ads-slot--mobile-only {
  display: block;
}

@media (min-width: 768px) {
  .ads-slot--desktop-only {
    display: block;
  }

  .ads-slot--mobile-only {
    display: none;
  }
}

.ads-slot--sticky-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

@media (min-width: 768px) {
  .ads-slot--sticky-mobile {
    display: none !important;
  }
}

.blog-grid > .ads-slot {
  grid-column: 1 / -1;
}

.blog-article-aside .ads-slot,
.blog-sidebar .ads-slot {
  margin-inline: 0;
}

@media print {
  .ads-slot {
    display: none !important;
  }
}
