/* A companion uses existing margin space only. Never change a game or its
   containing layout to make room. Absolute positioning scrolls with content. */
:root { --cps-ad-placement-ready: 3; }
/* Native tags own their generated layout. These are minimum reservations,
   never a crop or a rejection boundary for the provider's content. */
html[data-ads="on"] .ad-slot[data-ad-slot="native"]:not([hidden]) {
  inline-size: max-content;
  max-inline-size: 100%;
  min-inline-size: var(--ad-w-m, 100px);
  margin-inline: auto;
  overflow: visible;
  contain: none;
}
/* A creative wider than the viewport is parked whole, never cropped. Its
   original provider node returns when a wider viewport can display it. */
html [data-ad-width-unavailable] { display: none !important; }
html[data-ads="on"] [data-ad-slot="native"] > .ad-slot__box {
  display: block;
  inline-size: max-content;
  min-inline-size: min(100%, var(--ad-w-m, 100px));
  max-inline-size: 100%;
  block-size: auto;
  min-block-size: var(--ad-h-m, 100px);
  overflow: visible;
  background: transparent;
  visibility: visible;
}
html[data-ad-layout="wide"][data-ads="on"] [data-ad-slot="native"] > .ad-slot__box {
  inline-size: max-content;
  min-inline-size: min(100%, var(--ad-w-d, 100px));
  block-size: auto;
  min-block-size: var(--ad-h-d, 100px);
}
/* Outrank the common full-width slot rule even when shared CSS loads later. */
html[data-ads="on"] [data-ad-slot="native"].ad-slot--companion:not([hidden]) {
  position: absolute;
  left: var(--ad-companion-x, 0px);
  top: var(--ad-companion-y, 0px);
  inline-size: var(--ad-companion-width);
  max-inline-size: none;
  min-inline-size: 0;
  margin: 0;
}
/* News keeps the reading measure and surrounding related-content grid intact. */
.nw-article > [data-ad-place="news-end"] { inline-size: 100%; min-inline-size: 0; }
.nw-home > [data-ad-place="news-list"] { grid-column: 1 / -1; }
/* Returning to the page leaves its existing below-play unit as the flow ad.
   Keep the focused result node so reopening never buys the same unit again. */
html [data-ad-flow-duplicate] { display: none !important; }
/* A visible no-fill reservation stays stable while its orphan label disappears. */
[data-ad-state="empty"] > .ad-slot__label { visibility: hidden; }
/* Let the provider inspect a visible reservation while it builds its layout. */
html[data-ads="on"] [data-ad-slot][data-ad-state="loading"] > .ad-slot__box { visibility: visible; }
