/* Reserve before requesting: blocked and unfilled ads never collapse. */
.ad-space {
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  color: #75675f;
  text-align: center;
  clear: both;
}
.ad-label { display: block; margin-bottom: 4px; font: 12px/20px system-ui, sans-serif; }
.ad-reserved { width: 320px; max-width: 100%; height: 100px; margin: 0 auto; }
/* 274px inline + 100px anchor is gated by the 30% runtime check. */
@media (min-height: 1200px) {
  .ad-reserved { width: 300px; height: 250px; }
}
/* Only Google renders an anchor. Keep the SPA marker out of layout. */
#ad-anchor-host { display: none; }
.landing-page ~ .ad-space { margin-top: max(96px, 30vh); }

/* Let the inset result copy share its outer panel width with the fixed unit. */
@media (max-width: 760px) {
  .profile-list .ad-space { width: calc(100% + 46px); margin-left: -23px; }
}
@media (max-width: 360px) {
  .profile-list .ad-space { width: calc(100% + 38px); margin-left: -19px; }
}

.ad-reserved { background: var(--ad-paper, #f3eee5); }
/* Pending / explicitly unfilled frames use the reservation color. Filled ads are untouched. */
.ad-reserved ins:not([data-ad-status="filled"]) iframe { visibility: hidden; }
@media (prefers-color-scheme: dark) {
  .ad-space { color: #c9b7a4; --ad-paper: #352d27; }
}
