/* NOWN direct advertising: one shell, one PUBLICIDAD label, many creatives. */
.nown-widget-direct-ad {
  margin: 0;
}

.nown-direct-ad {
  --nown-direct-ad-ink: #070707;
  position: relative;
  width: 100%;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--nown-direct-ad-ink);
}

/* PUBLICIDAD stays as a compact tag above the creatives. */
.nown-direct-ad__header {
  display: block;
  min-height: 0;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
}

.nown-direct-ad__header span {
  display: inline-block;
  font-family: var(--nown-font-mono, "Geist Mono", monospace);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.12em;
}

/* The block grows naturally with the number of banners. */
.nown-direct-ad__list {
  display: grid;
  gap: 14px;
  padding: 0;
}

.nown-direct-ad__stage {
  min-width: 0;
}

.nown-direct-ad__creative {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.nown-direct-ad__creative img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(7, 7, 7, 0.08);
  image-rendering: auto;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nown-direct-ad__creative[href]:hover img,
.nown-direct-ad__creative[href]:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--nown-direct-ad-ink);
}

.nown-direct-ad__creative[href]:focus-visible {
  outline: 2px solid var(--nown-direct-ad-ink);
  outline-offset: 5px;
}

/* If several Direct Ad widgets are placed consecutively, make them read as one
   continuous advertising block and show PUBLICIDAD only on the first one. */
.nown-widget-direct-ad + .nown-widget-direct-ad {
  margin-top: 14px;
}

.nown-widget-direct-ad + .nown-widget-direct-ad .nown-direct-ad__header {
  display: none;
}

@media (max-width: 959px) {
  .nown-direct-ad__header {
    padding-bottom: 10px;
  }

  .nown-direct-ad__list {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nown-direct-ad__creative img {
    transition: none;
  }
}
