/* --------------------------------------------------------------------------
   PADRONIZAÇÃO DAS ÁREAS DE ANÚNCIOS (ESPAÇAMENTO EQUILIBRADO & RESPONSIVO)
   -------------------------------------------------------------------------- */
:root {
  --ad-spacing-v: 44px;
}

/* Espaçamento vertical padronizado e simétrico para todas as seções de anúncio */
.ad-section {
  padding-top: var(--ad-spacing-v);
  padding-bottom: var(--ad-spacing-v);
}

/* Prevenção de acúmulo de espaçamento duplicado em elementos vizinhos */
.recommend:has(+ .ad-section),
.popular:has(+ .ad-section) {
  padding-bottom: 0;
}

.ad-slot {
  min-height: 150px;
  border: 1px dashed #aaa;
  background: #ede8dc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #777;
}

.ad-slot:before {
  content: 'PUBLICIDADE';
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.ad-slot strong {
  font: 700 28px var(--serif, serif);
  color: var(--ink, #111);
}

.ad-slot--compact {
  min-height: 105px;
}

/* Anúncio intercalado na listagem de matérias */
.ad-slot--article {
  margin: 16px 0;
  min-height: 180px;
}

@media (max-width: 768px) {
  :root {
    --ad-spacing-v: 26px;
  }

  .ad-section {
    padding-top: var(--ad-spacing-v);
    padding-bottom: var(--ad-spacing-v);
  }

  .ad-slot {
    min-height: 115px;
  }

  .ad-slot strong {
    font-size: 23px;
  }

  .ad-slot--article {
    margin: 12px 0;
    min-height: 140px;
  }
}
