/* Only publisher-owned mainpage units are positioned here. */
.wiki-ad { min-width: 0; margin: 1.5rem auto; text-align: center; grid-column: 1 / -1; }
.wiki-ad__label { display: block; margin-bottom: .35rem; color: #a9bdc7; font: 400 .65rem/1.4 system-ui, sans-serif; letter-spacing: .06em; }
.wiki-ad--banner, .wiki-ad--rectangle { display: none; }
@media (min-width: 1024px) {
  .wiki-ad--banner { display: block; width: 728px; margin-block: .9rem 1.1rem; }
  .wiki-ad--banner .wiki-ad__slot { width: 728px; min-height: 90px; }
  .wiki-ad--rectangle { display: block; width: 300px; margin-block: 1.75rem; }
  .wiki-ad--rectangle .wiki-ad__slot { width: 300px; min-height: 250px; }
  .wiki-ad--section-banner { margin-block: 2rem; }
}
.ad-device-mobile .wiki-ad--banner, .ad-device-mobile .wiki-ad--rectangle {
  display: block; position: relative; left: 50%; transform: translateX(-50%);
  width: 320px; margin-inline: 0;
}
.ad-device-mobile .wiki-ad__slot { width: 320px; min-height: 50px; }
@media (max-width: 319px) { .ad-device-mobile .wiki-ad { display: none; } }
.ad-free .wiki-ad, .ad-access-pending .wiki-ad { display: none !important; }

/* Opt-in samples show only the units we own, without ad demand or tracking. */
.ad-preview-notice { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; padding: .55rem 1rem; color: #d9edf4; background: #12364b; border-bottom: 1px solid #49788d; font-size: .8rem; }
.ad-preview-notice a { color: #b6ecff; text-decoration: underline; }
.ad-preview-creative { display: flex; flex-direction: column; justify-content: center; align-items: center; max-width: 100%; margin-inline: auto; box-sizing: border-box; color: #c7dce6; background: repeating-linear-gradient(135deg, #132b3d, #132b3d 12px, #162f41 12px, #162f41 24px); border: 1px dashed #6797ac; font: .85rem/1.4 system-ui, sans-serif; text-align: center; }
.ad-preview-creative strong { color: #e5f5fa; font-weight: 650; }
.ad-access-notice { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem; padding: .6rem 1rem; color: #d9edf4; background: #12364b; border-bottom: 1px solid #49788d; font-size: .85rem; }
.ad-access-notice button { min-height: 44px; padding: .5rem .8rem; color: #d9edf4; background: #183e54; border: 1px solid #6797ac; border-radius: 3px; font: inherit; cursor: pointer; }
@media print { .wiki-ad, .ad-preview-notice, .ad-access-notice { display: none !important; } }
