/* ProjectA 20260907-r5-unfilled — safe no-fill and profile-grid recovery.
 * Google data-ad-status is authoritative. Never hide pending, filled or
 * unfill-optimized units; never resize/crop an aswift host or creative iframe.
 * https://support.google.com/adsense/answer/10762946
 * Auto ads must still be excluded for /projecta/v2/ in the AdSense account.
 */

/* A 0x0 <ins> can still paint a nonzero descendant. Remove the confirmed
 * unfilled unit from layout instead of leaving its iframe free to overflow.
 */
body[data-ad-mode="manual"] ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

/* Remove the grid/flex footprint only when the wrapper's sole element is
 * the unfilled unit. Additional content or other ad states remain untouched.
 * Older browsers without :has still get the unit-level rule above.
 */
@supports selector(:has(*)) {
  body[data-ad-mode="manual"] .google-auto-placed:has(> ins.adsbygoogle[data-ad-status="unfilled"]:only-child) {
    display: none !important;
  }
}

/* If a pending or served Auto ad is still inserted before the account
 * exclusion propagates, give its wrapper a full grid row. It must not take
 * the player's or accessories' column. This does not change creative size.
 */
body[data-ad-mode="manual"] .profile-column > .google-auto-placed {
  grid-column: 1 / -1;
}
