/* Appfav detail ads v1: one in-flow banner; no overlays, rotation or cropping. */
.af-detail-ad { clear: both; box-sizing: border-box; width: 100%; min-width: 0; margin: 24px 0; }
.af-detail-ad .af-detail-ad__caption { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; color: #555; font-size: 12px; line-height: 1.5; }
.af-detail-ad__label { flex: 0 0 auto; padding: 1px 7px; border: 1px solid #aaa; border-radius: 3px; color: #444; background: #fff; }
.af-detail-ad__advertiser { overflow-wrap: anywhere; }
.af-detail-ad .af-detail-ad__link { display: block; width: 100%; max-width: 100%; aspect-ratio: 3 / 1; border-radius: 4px; background: #f5f5f5; }
.af-detail-ad .af-detail-ad__link:focus-visible { outline: 3px solid #2456a6; outline-offset: 4px; }
.af-detail-ad .af-detail-ad__image { display: block; box-sizing: border-box; width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; border: 0; border-radius: 4px; }

/* v2: desktop cap for the entire slot, including its label; mobile unchanged. */
@media (min-width: 768px) {
  .af-detail-ad { max-width: 600px; margin-left: auto; margin-right: auto; }
}
