.website-ad {
    --ad-ink: #172033;
    --ad-muted: #667085;
    --ad-line: #e1e7ee;
    --ad-soft: #f8fafc;
    --ad-accent: #2563eb;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.2rem;
    background: #fff;
    border: 1px solid var(--ad-line);
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(24, 38, 61, .035);
}

.website-ad__tracking {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.website-ad__sponsor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .48rem .7rem;
    color: #7a8494;
    background: var(--ad-soft);
    border-bottom: 1px solid #edf0f4;
    font-size: .6rem;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.website-ad__body {
    display: flex;
    gap: .72rem;
    padding: .78rem;
    color: inherit;
    text-decoration: none;
}

.website-ad__body:hover {
    color: inherit;
    background: #fbfcfe;
}

.website-ad__body:focus-visible,
.website-ad__image-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: -3px;
}

.website-ad__thumb {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    object-fit: cover;
    background: #eef2f6;
    border: 1px solid #e1e7ee;
    border-radius: 9px;
}

.website-ad__content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.website-ad__content strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ad-ink);
    font-size: .82rem;
    font-weight: 730;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.website-ad__copy {
    display: -webkit-box;
    overflow: hidden;
    margin-top: .28rem;
    color: var(--ad-muted);
    font-size: .68rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.website-ad__cta {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    margin-top: .5rem;
    color: var(--ad-accent);
    font-size: .66rem;
    font-weight: 700;
}

.website-ad__image-link {
    display: block;
    background: #f2f4f7;
}

.website-ad__image-link img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
}

.website-ad__custom {
    padding: .78rem;
    color: var(--ad-ink);
    font-size: .75rem;
    line-height: 1.5;
}

.website-ad__custom img {
    max-width: 100%;
    height: auto;
}

.website-ad__custom a {
    color: var(--ad-accent);
}

.website-ad--inventory .website-ad__body {
    padding: .85rem;
}

.website-ad-slot {
    min-width: 0;
}

.website-ad-slot:empty {
    display: none;
}

.website-ad-slot .website-ad:last-child {
    margin-bottom: 0;
}

.website-ad-slot--sidebar {
    margin-bottom: 1.25rem;
}

.website-ad-slot--inline,
.website-ad-slot--banner,
.website-ad-slot--after-content {
    width: 100%;
    margin: 1.25rem 0;
}

.website-ad-slot--inline .website-ad,
.website-ad-slot--banner .website-ad,
.website-ad-slot--after-content .website-ad {
    max-width: 970px;
    margin-right: auto;
    margin-left: auto;
}

.website-ad-slot--inline .website-ad__body,
.website-ad-slot--banner .website-ad__body,
.website-ad-slot--after-content .website-ad__body {
    align-items: center;
}

.website-ad-slot--inline .website-ad__copy,
.website-ad-slot--banner .website-ad__copy,
.website-ad-slot--after-content .website-ad__copy {
    -webkit-line-clamp: 2;
}

.website-ad-slot--banner .website-ad__image-link img,
.website-ad-slot--inline .website-ad__image-link img,
.website-ad-slot--after-content .website-ad__image-link img {
    max-height: 180px;
}

@media (max-width: 767.98px) {
    .website-ad {
        max-width: 34rem;
        margin-right: auto;
        margin-left: auto;
    }

    .website-ad-slot--sidebar,
    .website-ad-slot--inline,
    .website-ad-slot--banner,
    .website-ad-slot--after-content {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .website-ad *,
    .website-ad *::before,
    .website-ad *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}
