/* Reserved advertising areas: empty, labelled, fixed IAB geometry from first paint (no JS, no network).
   The label sits outside the frame; the frame is the exact creative size (inset outline, no border).
   Top band: 970x90 / 728x90 / 320x50 chosen by the band's own width. Bottom: 300x250 + 250x250.
   At 850px and below the band is full bleed so 320 and 300 slots fit a 320px viewport unscaled. */

.ad-band {
    container-type: inline-size;
    width: min(1280px, 100% - 80px);
    margin: 24px auto;
    color: var(--dim, #596b7f);
    font: 500 12px/1.4 var(--mono, sans-serif)
}

.ad-band--top {
    margin-top: 16px
}

.ad-unit {
    margin: 0;
    width: var(--ad-w);
    max-width: 100%
}

.ad-label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    height: 20px;
    letter-spacing: .02em
}

.ad-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ad-w);
    height: var(--ad-h);
    background: var(--surface, #fff);
    box-shadow: inset 0 0 0 1px var(--line, #d5def0);
    overflow: hidden;
    text-align: center
}

/* Top band: only the variant that fits is displayed, centred. */
.ad-band--top .ad-slot {
    display: flex;
    justify-content: center
}

.ad-band--top .ad-unit {
    display: none
}

.ad-band--top .ad-unit[data-ad-format="320x50"] {
    display: block
}

@container (min-width: 728px) {
    .ad-band--top .ad-unit[data-ad-format="320x50"] {
        display: none
    }

    .ad-band--top .ad-unit[data-ad-format="728x90"] {
        display: block
    }
}

@container (min-width: 970px) {
    .ad-band--top .ad-unit[data-ad-format="728x90"] {
        display: none
    }

    .ad-band--top .ad-unit[data-ad-format="970x90"] {
        display: block
    }
}

/* Bottom: rectangle and square side by side, wrapping to a centred column. */
.ad-band--bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 32px;
    margin-top: 40px
}

@media(max-width:850px) {
    .ad-band {
        width: 100%
    }
}
