/* Empty groundwork may fit a narrow viewport. A future live 320px Google unit
   must instead be suppressed below 320px; an ad creative may never be scaled. */
.reserved-ad { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; container: ad / inline-size; }
.reserved-ad-heading, .sponsor-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.reserved-ad-heading { width: min(728px, 100%); }
.reserved-ad-heading > span, .sponsor-heading > span { text-transform: uppercase; font-weight: 700; letter-spacing: .08em; }
/* Keep the full 44 px target in normal flow so the next creative cannot cover it. */
.reserved-ad-heading a, .sponsor-heading a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--teal); font-weight: 600; }
.reserved-ad-box { width: min(728px, 100%); height: 90px; border-radius: var(--radius-ad); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ad-note { font-size: 12px; color: var(--muted); text-align: center; }
.sponsor-slot { display: flex; flex-direction: column; gap: 6px; width: 300px; }
.workspace-support .sponsor-slot { justify-self: center; }
.sponsor-heading { width: 100%; }
.sponsor-frame { display: block; width: 100%; height: 250px; border: 0; border-radius: var(--radius-ad); background: var(--surface-sunken); }
.directory-ad:not(:has([data-ad-slot])), .help-ad:not(:has([data-ad-slot])), .about-ad:not(:has([data-ad-slot])) { display: none; }
/* Google creatives use their real size. Never scale/crop one to fit padding. */
[data-google-ad-mount] .reserved-ad-box { border-radius: 0; box-shadow: none; background: transparent; }
.google-ad-creative { display: inline-block; border: 0; }
.google-ad-wide, [data-google-ad-size="wide"] .reserved-ad-box { width: 728px; height: 90px; }
.google-ad-narrow, [data-google-ad-size="narrow"] .reserved-ad-box { width: 320px; height: 100px; }
[data-google-ad-size="suppressed"] .reserved-ad-box,
[data-google-ad-suppressed="true"] .reserved-ad-box { display: none; }
.google-ad-creative[hidden] { display: none; }
.advertising-choices-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.advertising-choices-status { margin-top: 12px; }
.ad-preference-prompt { width: min(728px, 100%); }
.ad-preference-prompt[hidden], [data-google-ad-mount] .reserved-ad-box[hidden] { display: none; }
@container ad (max-width: 760px) {
  .reserved-ad-box { width: min(320px, 100%); height: 100px; }
  .reserved-ad-heading { width: min(320px, 100%); }
}
