
/* Top leaderboard lives outside .article-body (publisher article.html.j2) */
#gam-leaderboard,
main .fleet-leaderboard-slot,
main .fleet-gam-slot[data-gam-slot="leaderboard"],
.article-main .fleet-leaderboard-slot {
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

#gam-leaderboard iframe,
main .fleet-leaderboard-slot iframe,
main .fleet-gam-slot[data-gam-slot="leaderboard"] iframe,
#gam-leaderboard [id^="google_ads_iframe"],
main .fleet-leaderboard-slot [id^="google_ads_iframe"] {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  height: 90px !important;
  min-height: 50px;
  max-height: 100px;
}

@media (max-width: 728px) {
  #gam-leaderboard,
  main .fleet-leaderboard-slot,
  main .fleet-gam-slot[data-gam-slot="leaderboard"] {
    min-height: 50px;
    max-height: 110px;
  }
}


/* Top leaderboard: full-width band, 728x90 creative centered (GAM publisher articles) */
#gam-leaderboard.fleet-leaderboard-band,
.fleet-leaderboard-band.fleet-gam-slot[data-gam-slot="leaderboard"] {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 28px 0 44px;
  padding: 14px 16px;
  min-height: 90px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
  text-align: center;
}

#gam-leaderboard.fleet-leaderboard-band iframe,
.fleet-leaderboard-band iframe,
#gam-leaderboard.fleet-leaderboard-band [id^="google_ads_iframe"],
.fleet-leaderboard-band [id^="google_ads_iframe"] {
  display: block;
  margin: 0 auto;
  border: 0;
  width: 728px;
  max-width: 100%;
  height: 90px !important;
  min-height: 90px;
  max-height: 90px;
}

@media (max-width: 728px) {
  #gam-leaderboard.fleet-leaderboard-band iframe,
  .fleet-leaderboard-band iframe {
    width: 100%;
    max-width: 100%;
  }
}

/* Top leaderboard (outside .article-body on publisher articles) */
#gam-leaderboard,
main .fleet-leaderboard-slot,
main .fleet-gam-slot[data-gam-slot="leaderboard"],
.article-main .fleet-leaderboard-slot {
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

#gam-leaderboard iframe,
main .fleet-leaderboard-slot iframe,
#gam-leaderboard [id^="google_ads_iframe"] {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  height: 90px !important;
  min-height: 50px;
  max-height: 100px;
}

/* Fleet article body — responsive media (minimal + full article templates) */
.publisher-article .article-body img,
.publisher-article-minimal .article-body img,
.article-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.publisher-article .article-body figure,
.publisher-article-minimal .article-body figure,
.article-body figure {
  max-width: 100%;
  margin: 1rem 0;
}

.publisher-article .article-body figure img,
.publisher-article-minimal .article-body figure img,
.article-body figure img {
  margin: 0 auto;
}

.publisher-article .article-body iframe,
.publisher-article-minimal .article-body iframe,
.article-body iframe,
.article-body video,
.article-body embed {
  max-width: 100%;
  height: auto;
}

.publisher-article .article-body table,
.publisher-article-minimal .article-body table,
.article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.publisher-article .article-body,
.publisher-article-minimal .article-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 640px) {
  .publisher-article .article-body img,
  .publisher-article-minimal .article-body img,
  .article-body img {
    width: 100% !important;
  }
}

/* GAM ad slots — fixed-size iframes; generic height:auto above clips 300x250 creatives */
.article-body .fleet-gam-slot,
.article-body .fleet-leaderboard-slot {
  overflow: hidden;
  width: 100%;
  clear: both;
}

.article-body .fleet-gam-slot[data-gam-slot="inarticle"] {
  max-width: 336px;
  min-height: 250px;
}

.article-body .fleet-leaderboard-slot,
.article-body .fleet-gam-slot[data-gam-slot="leaderboard"] {
  max-width: 728px;
  min-height: 90px;
}

.article-body .fleet-gam-slot iframe,
.article-body .fleet-leaderboard-slot iframe,
.article-body .fleet-gam-slot iframe[id^="google_ads_iframe"],
.article-body .fleet-leaderboard-slot iframe[id^="google_ads_iframe"] {
  display: block;
  margin: 0 auto;
  border: 0;
  max-width: 100%;
  width: 300px;
  height: 250px !important;
  min-height: 250px;
}

.article-body .fleet-leaderboard-slot iframe,
.article-body .fleet-gam-slot[data-gam-slot="leaderboard"] iframe,
.article-body .fleet-leaderboard-slot iframe[id^="google_ads_iframe"],
.article-body .fleet-gam-slot[data-gam-slot="leaderboard"] iframe[id^="google_ads_iframe"] {
  width: 728px;
  height: 90px !important;
  min-height: 90px;
}

@media (max-width: 728px) {
  .article-body .fleet-leaderboard-slot iframe,
  .article-body .fleet-gam-slot[data-gam-slot="leaderboard"] iframe {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .article-body .fleet-gam-slot[data-gam-slot="inarticle"] iframe {
    width: 100%;
  }
}
