/* .focus-ad supports existing pages that load this file through focus-guide.css. */
:is(.ad-slot, .focus-ad) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin-inline: auto;
    text-align: center;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
}

:is(.ad-slot, .focus-ad):focus-visible {
    outline: 3px solid var(--site-focus, currentColor);
    outline-offset: 3px;
}

/* Keep both edges reachable when an ad retains its original width after resizing. */
:is(.ad-slot, .focus-ad) .adsbygoogle {
    width: 100%;
    min-width: min-content;
    max-width: none;
    /* Keep the inline ad host's baseline from adding extra height. */
    line-height: 0;
}
