/* Shop Rock Co v0.12 — isolated advertising styles. */
.sr-ad-section {
    padding: 28px 0;
}

.sr-ad-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--navy, #142f42);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sr-ad-heading small {
    color: var(--muted, #63717b);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
}

.sr-ad-grid {
    display: grid;
    gap: 18px;
}

.sr-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7e3dc;
    border-radius: 8px;
}

.sr-ad img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sr-ad-logos {
    padding: 14px 0;
    background: #fff;
    border-bottom: 1px solid #eeeae4;
}

.sr-ad-logos .sr-ad-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sr-ad-logos .sr-ad {
    height: 74px;
    padding: 10px;
    border: 0;
}

.sr-ad-wide {
    background: #fff;
}

.sr-ad-wide .sr-ad {
    width: 100%;
    aspect-ratio: 1200 / 250;
}

.sr-ad-squares {
    background: #fff;
}

.sr-ad-squares .sr-ad-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sr-ad-squares .sr-ad {
    width: 100%;
    aspect-ratio: 1;
}

.sr-ad-sponsors {
    background: var(--cream, #f7f4ef);
}

.sr-ad-sponsors .sr-ad-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sr-ad-sponsors .sr-ad {
    height: 115px;
    padding: 14px;
}

@media (max-width: 700px) {
    .sr-ad-section {
        padding: 20px 0;
    }

    .sr-ad-logos .sr-ad-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .sr-ad-logos .sr-ad {
        height: 60px;
        padding: 5px;
    }

    /* Keep the premier banner at its original 1200:250 proportions. */

    .sr-ad-squares .sr-ad-grid {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .sr-ad-squares .sr-ad-grid::-webkit-scrollbar {
        display: none;
    }

    .sr-ad-squares .sr-ad {
        flex: 0 0 100%;
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .sr-ad-squares .sr-ad-slider-controls {
        display: flex;
    }

    .sr-ad-sponsors .sr-ad-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Premier Sponsor - Full Width Banner */
.advertising-premier img,
.premier-sponsor img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.advertising-premier,
.premier-sponsor {
    width: 100%;
    max-width: 100%;
}
/* Mobile square-ad pagination. Controls are hidden on desktop. */
.sr-ad-slider-controls {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
}

.sr-ad-slider-prev,
.sr-ad-slider-next {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d9d6d0;
    border-radius: 50%;
    background: #fff;
    color: var(--navy, #142f42);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.sr-ad-slider-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sr-ad-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #bac4c9;
    cursor: pointer;
}

.sr-ad-slider-dot.is-active {
    background: var(--red, #b92c2e);
}

.sr-ad-slider-controls button:focus-visible {
    outline: 2px solid var(--navy, #142f42);
    outline-offset: 3px;
}

/* Keep only the premier sponsor's frame borderless. */
.sr-ad-wide .sr-ad {
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
