/**
 * Ad slot (includes/helpers/ads.php → ad_slot()).
 * A labelled, centred box for one responsive AdSense unit. The layout loads
 * this file only on pages that render a slot. Borders, not shadows; tokens only.
 */
.ad-slot {
    max-width: 728px;
    margin: 0 auto;
    padding: var(--space-16) 0;
    text-align: center;
}

/* The video section only pads its top; don't double the gap after an ad */
.ad-slot + .tutorial-video-section {
    padding-top: 0;
}

.ad-slot__label {
    display: block;
    margin-bottom: var(--space-2);
    font: var(--text-overline);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-500);
}

/* Reserve the unit's height so the page doesn't jump when the ad loads (CLS) */
.ad-slot .adsbygoogle,
.ad-slot__placeholder {
    min-height: 280px;
}

@media (min-width: 768px) {
    .ad-slot .adsbygoogle,
    .ad-slot__placeholder {
        min-height: 90px;
    }
}

/* Local development stand-in (no real ad requested) */
.ad-slot__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-md);
    background: var(--ink-50);
    color: var(--text-secondary);
    font: var(--text-small);
}

/* AdSense marks a slot it couldn't fill; collapse it rather than leave a gap */
.ad-slot:has(ins[data-ad-status="unfilled"]) {
    display: none;
}

@media print {
    .ad-slot {
        display: none;
    }
}
