
/* Top leaderboard lives outside .article-body (publisher article.html.j2).
   House OAS creatives are exactly 728×90. Scale that iframe to the column
   width and shrink-wrap the bordered band to the *visual* ad size so the
   image fills the border (transform:scale alone does not shrink layout). */
#gam-leaderboard,
[id="728x90-leaderboard"],
[id^="728x90-leaderboard"],
main .fleet-leaderboard-slot,
main .fleet-gam-slot[data-gam-slot="leaderboard"],
.article-main .fleet-leaderboard-slot {
  max-width: 100%;
  box-sizing: border-box;
}

/* AdSense units: Fil HTML still uses display:flex on the wrap, which
   collapses <ins class="adsbygoogle"> to 0×0 (flex: 0 1 auto). */
#adsense-leaderboard.fleet-leaderboard-slot,
.fleet-adsense-slot[data-adsense-slot="inarticle"] {
  display: block !important;
  box-sizing: border-box;
}
#adsense-leaderboard.fleet-leaderboard-slot {
  width: 100%;
  min-height: 90px;
}
#adsense-leaderboard.fleet-leaderboard-slot > ins.adsbygoogle,
.fleet-adsense-slot[data-adsense-slot="inarticle"] > ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  flex: none;
}

#gam-leaderboard.fleet-leaderboard-band,
[id="728x90-leaderboard"].fleet-leaderboard-band,
[id^="728x90-leaderboard"].fleet-leaderboard-band,
.fleet-leaderboard-band.fleet-gam-slot[data-gam-slot="leaderboard"],
.fleet-leaderboard-band[data-oas-slot="728x90-leaderboard"] {
  display: block;
  container-type: inline-size;
  container-name: fleet-lb;
  width: min(100%, 728px);
  max-width: 728px;
  box-sizing: content-box;
  margin: 28px auto 44px;
  padding: 0;
  /* Pre-JS: keep band aspect so scaled iframe fills; JS sets explicit height. */
  aspect-ratio: 728 / 90;
  height: auto;
  min-height: 0;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
  text-align: left;
}

#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"],
#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;
  border: 0;
  width: 728px;
  max-width: none;
  height: 90px;
  transform-origin: top left;
  transform: scale(var(--fleet-lb-scale, 1));
}

@supports (width: 1cqw) {
  #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"] {
    transform: scale(var(--fleet-lb-scale, min(1, calc(100cqw / 728))));
  }
}

@media (max-width: 759px) {
  #gam-leaderboard.fleet-leaderboard-band,
  [id^="728x90-leaderboard"].fleet-leaderboard-band,
  .fleet-leaderboard-band.fleet-gam-slot[data-gam-slot="leaderboard"],
  .fleet-leaderboard-band[data-oas-slot="728x90-leaderboard"] {
    margin: 16px auto 28px;
    width: min(100%, 728px);
    max-width: 100%;
  }
  #gam-leaderboard iframe,
  #gam-leaderboard.fleet-leaderboard-band iframe,
  .fleet-leaderboard-band iframe {
    width: 728px !important;
    height: 90px !important;
    max-width: none !important;
    transform: scale(var(--fleet-lb-scale, 1));
    transform-origin: top left;
    margin: 0;
  }
}

@supports (width: 1cqw) {
  @media (max-width: 759px) {
    #gam-leaderboard.fleet-leaderboard-band iframe,
    .fleet-leaderboard-band iframe {
      transform: scale(var(--fleet-lb-scale, min(1, calc(100cqw / 728))));
    }
  }
}

main .fleet-gam-slot[data-gam-slot="inarticle"] iframe,
#gam-inarticle iframe,
[id^="gam-inarticle"] iframe,
[id^="300x250-in-article"] iframe,
[data-oas-slot="300x250-in-article"] iframe {
  display: block;
  width: 300px;
  max-width: none;
  height: 250px;
  margin: 0;
  border: 0;
  transform-origin: top left;
  transform: scale(var(--fleet-mrec-scale, 1));
}

@supports (width: 1cqw) {
  main .fleet-gam-slot[data-gam-slot="inarticle"] iframe,
  #gam-inarticle iframe,
  [id^="gam-inarticle"] iframe,
  [id^="300x250-in-article"] iframe,
  [data-oas-slot="300x250-in-article"] iframe {
    transform: scale(var(--fleet-mrec-scale, min(1, calc(100cqw / 300))));
  }
}


/* 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:not(.fleet-oas-iframe),
.publisher-article-minimal .article-body iframe:not(.fleet-oas-iframe),
.article-body iframe:not(.fleet-oas-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: table;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  box-sizing: border-box;
}
.article-body table.ak-article-table {
  width: 100%;
  table-layout: fixed;
}
.article-body table th,
.article-body table td {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.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;
  }
}

.fleet-breadcrumbs {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #5b6570;
}
.fleet-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: baseline;
}
.fleet-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: #8b949e;
}
.fleet-breadcrumbs a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fleet-breadcrumbs [aria-current="page"] {
  color: #1c2430;
}
.publisher-article .eyebrow a,
.publisher-article-minimal .eyebrow a {
  color: inherit;
  text-decoration: none;
}
.publisher-article .eyebrow a:hover,
.publisher-article-minimal .eyebrow a:hover {
  text-decoration: underline;
}

/* GAM / OAS ad slots — fixed-size iframes. Do not let the generic
   .article-body iframe { height:auto } rule above touch .fleet-oas-iframe
   (that letterboxes 300×250 / 728×90 when the column is narrow). */
.article-body .fleet-gam-slot,
.article-body .fleet-oas-slot,
.article-body .fleet-leaderboard-slot {
  overflow: hidden;
  width: 100%;
  clear: both;
}

.article-body .fleet-gam-slot[data-gam-slot="inarticle"],
.article-body [data-oas-slot="300x250-in-article"] {
  container-type: inline-size;
  max-width: 300px;
  width: min(100%, 300px);
  box-sizing: content-box;
  aspect-ratio: 300 / 250;
  height: auto;
  min-height: 0;
  margin: 24px auto;
  padding: 0;
  overflow: hidden;
}

.article-body .fleet-leaderboard-slot,
.article-body .fleet-gam-slot[data-gam-slot="leaderboard"],
.article-body [data-oas-slot="728x90-leaderboard"] {
  container-type: inline-size;
  max-width: 728px;
  width: min(100%, 728px);
  box-sizing: content-box;
  aspect-ratio: 728 / 90;
  height: auto;
  min-height: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  overflow: hidden;
}

.article-body .fleet-gam-slot iframe,
.article-body .fleet-oas-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: none;
  width: 300px;
  height: 250px !important;
  min-height: 250px;
  transform-origin: top left;
  transform: scale(var(--fleet-mrec-scale, 1));
}

@supports (width: 1cqw) {
  .article-body .fleet-gam-slot[data-gam-slot="inarticle"] iframe,
  .article-body [data-oas-slot="300x250-in-article"] iframe {
    transform: scale(var(--fleet-mrec-scale, min(1, calc(100cqw / 300))));
  }
}

.article-body .fleet-leaderboard-slot iframe,
.article-body .fleet-gam-slot[data-gam-slot="leaderboard"] iframe,
.article-body [data-oas-slot="728x90-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;
  max-width: none;
  height: 90px !important;
  min-height: 90px;
  margin: 0;
  transform-origin: top left;
  transform: scale(var(--fleet-lb-scale, 1));
}

@supports (width: 1cqw) {
  .article-body .fleet-leaderboard-slot iframe,
  .article-body .fleet-gam-slot[data-gam-slot="leaderboard"] iframe,
  .article-body [data-oas-slot="728x90-leaderboard"] iframe {
    transform: scale(var(--fleet-lb-scale, min(1, calc(100cqw / 728))));
  }
}

@media (max-width: 728px) {
  .article-body .fleet-leaderboard-slot iframe,
  .article-body .fleet-gam-slot[data-gam-slot="leaderboard"] iframe,
  .article-body [data-oas-slot="728x90-leaderboard"] iframe {
    width: 728px !important;
    max-width: none !important;
    transform: scale(var(--fleet-lb-scale, 1));
    transform-origin: top left;
    margin: 0;
  }
}

@supports (width: 1cqw) {
  @media (max-width: 728px) {
    .article-body .fleet-leaderboard-slot iframe,
    .article-body .fleet-gam-slot[data-gam-slot="leaderboard"] iframe,
    .article-body [data-oas-slot="728x90-leaderboard"] iframe {
      transform: scale(var(--fleet-lb-scale, min(1, calc(100cqw / 728))));
    }
  }
}

/* Featured hero sits outside .article-body — still must fit phone width */
.publisher-article .article-featured,
.publisher-article-minimal .article-featured,
.article-featured {
  max-width: 100%;
  margin: 0 0 1.25rem;
}
.publisher-article .article-featured img,
.publisher-article-minimal .article-featured img,
.article-featured img {
  max-width: 100% !important;
  width: 100%;
  height: auto !important;
  display: block;
}

/* GenerateBlocks gc-linelist timeline lists (legacy article bodies) */
.article-body .gc-linelist {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-body .gc-linelist-item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 0.85rem;
  padding-bottom: 1.1rem;
}

.article-body .gc-linelist-item:last-child {
  padding-bottom: 0;
}

.article-body .gc-linelist-icon {
  grid-row: 1;
  grid-column: 1;
  z-index: 1;
}

.article-body .gc-linelist-icon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #fff;
}

.article-body .gc-linelist-icon svg {
  display: block;
  fill: currentColor;
}

.article-body .gc-linelist-line {
  grid-row: 2;
  grid-column: 1;
  justify-self: center;
  width: 0;
  min-height: 0.75rem;
  border-left: 2px solid var(--line, #e2ddd4);
}

.article-body .gc-linelist-item:last-child .gc-linelist-line {
  display: none;
}

.article-body .gc-linelist-content {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 0;
}

.article-body .gc-linelist-entry {
  margin: 0;
}

.article-body .gc-linelist-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--text, #1c2430);
  line-height: 1.35;
}

.article-body .gc-linelist-title strong {
  font-weight: inherit;
}

.article-body .gc-linelist-desc {
  margin: 0;
  color: var(--muted, #5c6773);
  line-height: 1.55;
}
