/* 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;
    }
}

/* ViralNow premium readability layer, v1.0.5. Keeps article pages bright but readable. */
:root {
    --vn-bg: #f6f8fc !important;
    --vn-surface: #ffffff !important;
    --vn-card: #ffffff !important;
    --vn-line: #e4e8f0 !important;
    --vn-text: #111827 !important;
    --vn-muted: #5f6b7a !important;
    --vn-accent: #2f63ff !important;
    --vn-yellow: #d99a00 !important;
}

html,
body,
body.custom-background,
.vn-main {
    background: linear-gradient(180deg, #fbfcff 0%, #f4f7fb 45%, #eef2f8 100%) !important;
    color: #111827 !important;
}

.vn-header,
.vn-topics,
.vn-footer {
    background: #101318 !important;
    color: #f8fafc !important;
}

.vn-article__header {
    background: linear-gradient(180deg, #ffffff, #f8faff) !important;
    border: 1px solid rgba(17, 24, 39, .08) !important;
    border-radius: 32px !important;
    box-shadow: 0 24px 80px rgba(17, 24, 39, .08) !important;
    padding: clamp(26px, 5vw, 52px) !important;
}

.vn-article__header h1,
.vn-panel__heading h2,
.vn-section-title h1,
.vn-section-title h2,
.vn-lead h2,
.vn-headline h3,
.vn-pick h3,
.vn-card h2,
.vn-card h3 {
    color: #101827 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.vn-article__dek,
.vn-lead p,
.vn-card p {
    color: #526071 !important;
    opacity: 1 !important;
}

.vn-article__content {
    background: #ffffff !important;
    border: 1px solid rgba(17, 24, 39, .08) !important;
    border-radius: 28px !important;
    box-shadow: 0 18px 60px rgba(17, 24, 39, .07) !important;
    color: #263244 !important;
    padding: clamp(22px, 4vw, 42px) !important;
}

.vn-article__content p,
.vn-article__content li {
    color: #303b4f !important;
}

.vn-article__content h2,
.vn-article__content h3 {
    color: #111827 !important;
}

.vn-article__hero img {
    border: 1px solid rgba(17, 24, 39, .08) !important;
    border-radius: 28px !important;
    box-shadow: 0 26px 80px rgba(17, 24, 39, .18) !important;
}

.vn-panel,
.vn-card {
    background: #ffffff !important;
    border: 1px solid rgba(17, 24, 39, .08) !important;
    box-shadow: 0 16px 52px rgba(17, 24, 39, .08) !important;
}

.vn-ad,
.vn-ad__widget,
.viralnow-ad {
    background: #f8fbff !important;
    border-color: #dfe7f2 !important;
    box-shadow: none !important;
}

.vn-ad__title,
.code-block:before,
.vn-ad:before {
    content: none !important;
    display: none !important;
}
