/* Override saved HitMag/Customizer colors when this child theme is active. */
html body,
body.custom-background,
.vn-main {
    background: var(--vn-bg) !important;
    color: var(--vn-text) !important;
}

.vn-main h1,
.vn-main h2,
.vn-main h3,
.vn-main h4,
.vn-main strong,
.vn-main p {
    color: inherit;
}

.vn-main .vn-lead h2 a,
.vn-main .vn-headline h3 a,
.vn-main .vn-pick h3 a,
.vn-main .vn-card h2 a,
.vn-main .vn-card h3 a {
    color: var(--vn-text) !important;
}

.vn-main .vn-lead h2 a:hover,
.vn-main .vn-headline h3 a:hover,
.vn-main .vn-pick h3 a:hover,
.vn-main .vn-card h2 a:hover,
.vn-main .vn-card h3 a:hover {
    color: var(--vn-accent) !important;
}

.vn-main .vn-eyebrow,
.vn-main .vn-kicker,
.vn-main .vn-kicker a,
.vn-main .vn-panel__heading h2 {
    color: var(--vn-accent) !important;
}

.vn-main .vn-date,
.vn-main .vn-meta {
    color: var(--vn-muted) !important;
}

.vn-main .vn-lead p,
.vn-main .vn-card p,
.vn-main .vn-article__dek {
    color: #bdc1c6 !important;
}

.vn-main .vn-briefing {
    border: 0 !important;
    background: transparent !important;
}

.vn-main .vn-briefing h1 {
    border: 0 !important;
    color: var(--vn-text) !important;
}

.vn-main .vn-briefing__badge,
.vn-main .vn-briefing__badge strong,
.vn-main .vn-panel,
.vn-main .vn-card {
    color: var(--vn-text) !important;
}

.vn-header {
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

.vn-panel,
.vn-card,
.vn-briefing__badge {
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.vn-card,
.vn-headline,
.vn-pick,
.vn-lead__image,
.vn-card__image {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.vn-card:hover,
.vn-pick:hover,
.vn-headline:hover {
    transform: translateY(-2px);
}

.vn-card:hover {
    border-color: rgba(138, 180, 248, .45);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .28);
}

.vn-image-fallback {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(138, 180, 248, .24), rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 78% 18%, rgba(251, 188, 4, .85), rgba(251, 188, 4, 0) 28%),
        radial-gradient(circle at 18% 82%, rgba(20, 184, 166, .62), rgba(20, 184, 166, 0) 34%),
        linear-gradient(145deg, #334155, #111827 62%);
}

.vn-image-fallback:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(135deg, transparent, #000 22%, #000 70%, transparent);
}

.vn-image-fallback span {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(15, 23, 42, .52);
    color: #f8fafc;
    font-size: 19px;
    letter-spacing: .08em;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}

.vn-card:nth-child(3n+2) .vn-image-fallback,
.vn-headline:nth-child(3n+2) .vn-image-fallback,
.vn-pick:nth-child(3n+2) .vn-image-fallback {
    background:
        radial-gradient(circle at 20% 22%, rgba(244, 114, 182, .72), rgba(244, 114, 182, 0) 30%),
        radial-gradient(circle at 82% 76%, rgba(74, 222, 128, .55), rgba(74, 222, 128, 0) 34%),
        linear-gradient(145deg, #3b2f58, #111827 62%);
}

.vn-card:nth-child(3n) .vn-image-fallback,
.vn-headline:nth-child(3n) .vn-image-fallback,
.vn-pick:nth-child(3n) .vn-image-fallback {
    background:
        radial-gradient(circle at 18% 22%, rgba(251, 146, 60, .74), rgba(251, 146, 60, 0) 30%),
        radial-gradient(circle at 82% 76%, rgba(96, 165, 250, .68), rgba(96, 165, 250, 0) 34%),
        linear-gradient(145deg, #463126, #111827 62%);
}

.vn-lead__image .vn-image-fallback span {
    width: 76px;
    height: 76px;
    font-size: 24px;
}

.vn-section-title a,
.vn-panel__heading span {
    color: var(--vn-yellow);
}

.vn-ad {
    clear: both;
    display: block;
    margin: 22px 0;
    color: var(--vn-text);
}

.vn-ad__label {
    display: block;
    margin: 0 0 7px;
    color: var(--vn-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vn-ad__body {
    overflow: hidden;
    min-height: 90px;
    border: 1px solid rgba(138, 180, 248, .22);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(138, 180, 248, .08), rgba(251, 188, 4, .05)),
        rgba(23, 24, 26, .92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 42px rgba(0, 0, 0, .18);
}

.vn-ad__widget {
    margin: 0;
}

.vn-ad__widget iframe,
.vn-ad__widget img,
.vn-ad__widget ins {
    max-width: 100%;
}

.vn-ad--home-leaderboard {
    margin-top: 20px;
    margin-bottom: 10px;
}

.vn-card-grid > .vn-ad--grid {
    grid-column: 1 / -1;
    margin: 4px 0;
}

.vn-picks .vn-ad--sidebar {
    margin: 16px 0 0;
}

.vn-picks .vn-ad--sidebar .vn-ad__body {
    min-height: 160px;
}

.vn-article .vn-ad {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.vn-ad--article-top {
    margin-top: -6px;
    margin-bottom: 30px;
}

.vn-ad--article-end {
    margin-top: 34px;
}

@media (prefers-reduced-motion: reduce) {
    .vn-card,
    .vn-headline,
    .vn-pick,
    .vn-lead__image,
    .vn-card__image {
        transition: none;
    }

    .vn-card:hover,
    .vn-pick:hover,
    .vn-headline:hover {
        transform: none;
    }
}
