/* Scoped new banner placements. Existing home/right-side ads remain unchanged. */
.wide-page-ad-slot {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  min-width: 0;
}
/* Wide ad fills its *actual parent content column*, without a fixed width cap.
   The old 588x70 GIF is scaled proportionally as a temporary placeholder. */
.wide-page-ad-slot .wide-page-ad {
  display: block;
  width: 100%;
  aspect-ratio: 588 / 70;
  height: auto;
}
.wide-page-ad-slot .wide-page-ad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.producer-card--advert {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 124px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  overflow: hidden;
}
.producer-card--advert img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
.producer-card--advert-label {
  position: absolute;
  bottom: 5px;
  right: 10px;
  background: rgba(255,255,255,.85);
  color: var(--color-ink-muted);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 3px;
}
/* Reduce only the white space around new wide ads. Normal sections unchanged. */
.page-stack > .wide-page-ad-slot {
  margin-block: -24px;
}
.page-stack--company > .wide-page-ad-slot {
  margin-block: -10px;
}
@media (max-width: 640px) {
  .page-stack > .wide-page-ad-slot { margin-block: -12px; }
  .page-stack--company > .wide-page-ad-slot { margin-block: -8px; }
}

/* Media hub only: 1056 x 91 banner; other ad placements unchanged. */
.home-main.media-hub--compact-ad .wide-page-ad-slot .wide-page-ad {
  aspect-ratio: 1056 / 91;
  height: auto;
}
.home-main.media-hub--compact-ad .wide-page-ad-slot .wide-page-ad img {
  /* The old 588 x 70 GIF is only a temporary preview; never crop its text. */
  object-fit: fill;
}

/* Only the supplier directory: align short company rows with normal rows. */
.producer-list--suppliers > .producer-card {
  box-sizing: border-box;
  min-height: 176px;
}
@media (max-width: 640px) {
  .producer-list--suppliers > .producer-card { min-height: 152px; }
}

/* SHR_AD_DETAIL_COMPACT_HEIGHT_20261020
   Detail pages only: use the whole approved width, with a shallower slot.
   The legacy 588x70 GIF is temporarily stretched (no clipping) until replaced.
   Media hub and directory listing adverts are deliberately excluded. */
@media (min-width: 641px) {
  .home-main > .container.page-stack > .wide-page-ad-slot .wide-page-ad {
    aspect-ratio: auto;
    height: 100px;
  }
}
@media (max-width: 640px) {
  .home-main > .container.page-stack > .wide-page-ad-slot .wide-page-ad {
    aspect-ratio: auto;
    height: 72px;
  }
}
.home-main > .container.page-stack > .wide-page-ad-slot .wide-page-ad img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
