/* Public-site advertisement slots — rendered by the AdSlot view component. */

.ad-slot {
    position: relative;
    margin: 1.5rem 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    background: #f8fafc;
}

.ad-slot-label {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 2;
    font-size: .62rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .04em;
    background: rgba(0, 0, 0, .45);
    padding: .12rem .5rem;
    border-radius: 50px;
}

.ad-slot-link {
    display: block;
    line-height: 0;
    text-decoration: none;
}

    .ad-slot-link img {
        width: 100%;
        height: auto;
        display: block;
    }

.ad-slot-caption {
    display: block;
    padding: .6rem .85rem .7rem;
    line-height: 1.5;
    background: #fff;
}

.ad-slot-title {
    display: block;
    font-size: .85rem;
    font-weight: 800;
    color: #0f172a;
}

.ad-slot-desc {
    display: block;
    font-size: .74rem;
    color: #64748b;
}

/* Sits between cards in the article list, so it reads as one of them. */
.ad-slot--list {
    margin: 1rem 0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}

/* Dropped between paragraphs mid-article — a little tighter than a standalone block. */
.ad-slot--inline {
    margin: 1.25rem auto;
    max-width: 640px;
}
