/* DISCIPLON Ads Engine
   Empty slots are hidden from visitors. Active ads reserve space to reduce CLS. */

.dp-ad-slot {
  width: 100%;
  padding: 24px 0;
  background: var(--bg);
}

.dp-ad-slot__inner {
  position: relative;
  width: 100%;
  min-height: 108px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
}

.dp-ad-slot:not(.is-preview) .dp-ad-slot__inner {
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.dp-ad-slot__label {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dp-ad-slot__content {
  width: 100%;
  min-height: 90px;
  display: grid;
  place-items: center;
}

.dp-ad-slot__content > * {
  max-width: 100%;
}

.dp-ad-slot.is-preview .dp-ad-slot__inner {
  min-height: 108px;
  padding: 20px;
  border: 1px dashed color-mix(in srgb, var(--blue) 40%, var(--border));
  background:
    repeating-linear-gradient(
      -45deg,
      color-mix(in srgb, var(--blue) 3%, transparent) 0,
      color-mix(in srgb, var(--blue) 3%, transparent) 8px,
      transparent 8px,
      transparent 16px
    ),
    var(--surface);
  text-align: center;
}

.dp-ad-slot.is-preview .dp-ad-slot__preview-label {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dp-ad-slot.is-preview strong,
.dp-ad-slot.is-preview small {
  display: block;
}

.dp-ad-slot.is-preview strong {
  color: var(--fg);
  font-size: 13px;
  font-weight: 650;
}

.dp-ad-slot.is-preview small {
  max-width: 470px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.dp-ad-slot--home_after_featured {
  border-top: 1px solid color-mix(in srgb, var(--border) 64%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 64%, transparent);
}

.dp-ad-slot--home_after_latest {
  padding-top: 8px;
  padding-bottom: 32px;
}

@media (max-width: 639px) {
  .dp-ad-slot {
    padding: 18px 0;
  }

  .dp-ad-slot__inner,
  .dp-ad-slot__content {
    min-height: 100px;
  }

  .dp-ad-slot.is-preview .dp-ad-slot__inner {
    min-height: 100px;
    padding: 16px;
  }
}
