.rb-ad-strip {
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0;
}
.rb-ad-strip--center {
    margin: 0 0 10px;
}
.rb-ad {
    position: relative;
    min-width: 0;
    line-height: 0;
}
.rb-ad-link {
    display: block;
    overflow: hidden;
    border-radius: 3px;
}
.rb-ad-link img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 728 / 90;
}
.rb-ad-close {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 0 3px 0 4px;
    background: #172b3d;
    color: #fff;
    font: 700 22px/1 Arial, sans-serif;
    cursor: pointer;
    touch-action: manipulation;
}
.rb-ad-close:hover {
    background: #b91c1c;
}
.rb-ad-close:focus-visible,
.rb-ad-link:focus-visible {
    outline: 3px solid #ff8b00;
    outline-offset: 2px;
}
.rb-ad-strip--top,
.rb-ad-strip--catfish {
    position: fixed;
    z-index: 80;
    right: 0;
    left: 0;
    width: calc(100% - 16px);
    max-width: 980px;
    margin: 0 auto;
    padding: 4px;
    border: 1px solid #dce4ea;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(23, 43, 61, .15);
}
.rb-ad-strip--top {
    top: env(safe-area-inset-top, 0px);
}
.rb-ad-strip--catfish {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.rb-ad-strip[hidden],
.rb-ad[hidden] {
    display: none !important;
}
.rb-ad-top-spacer,
.rb-ad-catfish-spacer {
    height: calc(100vw * 90 / 2184 + 28px);
    max-height: 70px;
}
html.menu-active .rb-ad-strip--top,
html.menu-active .rb-ad-strip--catfish {
    visibility: hidden;
}
@media (max-width: 640px) {
    .rb-ad-strip {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
    .rb-ad-close {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    .rb-ad-top-spacer,
    .rb-ad-catfish-spacer {
        height: calc(100vw * 270 / 728 + 42px);
        max-height: none;
    }
}
