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


/* ViralNow responsive + readability standardization v1.1 */
:root {
  --vn-reading: 45rem;
  --vn-article: 55rem;
  --vn-wide: 70rem;
  --vn-touch: 44px;
}

html { overflow-x: clip; }
body {
  min-width: 0;
  overflow-wrap: anywhere;
  text-rendering: optimizeLegibility;
}

body .vn-shell {
  width: min(calc(100% - 2rem), var(--vn-wide)) !important;
  margin-inline: auto !important;
}

body .vn-main,
body .vn-article {
  min-width: 0;
}

body .vn-article {
  width: min(calc(100% - 2rem), var(--vn-article)) !important;
  max-width: var(--vn-article) !important;
  margin-inline: auto !important;
}

body .vn-article__header,
body .vn-article__content,
body .vn-article__tags {
  width: 100% !important;
  max-width: var(--vn-reading) !important;
  margin-inline: auto !important;
}

body .vn-article__title {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

body .vn-article__dek {
  max-width: 42rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
  line-height: 1.55 !important;
}

body .vn-article__content {
  font-size: 1.125rem !important;
  line-height: 1.76 !important;
}

body .vn-article__content p { margin: 0 0 1.25em !important; }
body .vn-article__content > p:first-of-type { font-size: 1.08em; }
body .vn-article__content h2,
body .vn-article__content h3,
body .vn-article__content h4 {
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  text-wrap: balance;
  scroll-margin-top: 5rem;
}
body .vn-article__content h2 {
  margin: 2.25em 0 .75em !important;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem) !important;
}
body .vn-article__content h3 {
  margin: 1.8em 0 .65em !important;
  font-size: clamp(1.3rem, 2.8vw, 1.65rem) !important;
}
body .vn-article__content ul,
body .vn-article__content ol {
  margin: 0 0 1.4em !important;
  padding-inline-start: 1.4em !important;
}
body .vn-article__content li + li { margin-top: .45em; }
body .vn-article__content a {
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

body .vn-article__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.1rem;
}
body .vn-article__hero img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

body .vn-article__content img,
body .vn-article__content video,
body .vn-article__content iframe,
body .vn-article__content embed,
body .vn-article__content object,
body .vn-card img,
body .hitmag-post img {
  max-width: 100% !important;
}
body .vn-article__content img,
body .vn-article__content video { height: auto !important; }
body .vn-article__content iframe {
  width: 100% !important;
  border: 0;
}

body .vn-article__content table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}
body .vn-article__content th,
body .vn-article__content td {
  padding: .65rem .8rem;
  border: 1px solid #d8dee8;
}

/* Normalize legacy inline-styled article blocks without changing post data. */
body .vn-article__content section[style*="linear-gradient"] {
  max-width: 100% !important;
  margin: 1.5rem 0 !important;
  padding: clamp(1rem, 3vw, 1.6rem) !important;
  border-radius: 1rem !important;
}
body .vn-article__content [style*="grid-template-columns"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)) !important;
  gap: .9rem !important;
}
body .vn-article__content section[style*="linear-gradient"] h2 {
  font-size: clamp(1.45rem, 4vw, 1.9rem) !important;
}

/* Ad scripts and IDs remain untouched; only their containers become responsive. */
body .vn-ad,
body .viralnow-ad,
body .code-block,
body .vn-ad__body,
body .adsbygoogle,
body [data-type="_mgwidget"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: clip;
  contain: layout;
}
body .vn-ad iframe,
body .vn-ad img,
body .vn-ad ins,
body .viralnow-ad iframe,
body .viralnow-ad img,
body [data-type="_mgwidget"] iframe {
  max-width: 100% !important;
}
body .vn-ad__label {
  font-size: .6875rem;
  letter-spacing: .08em;
}

/* Related stories added by the child single template. */
body .vn-related {
  width: min(calc(100% - 2rem), var(--vn-article));
  margin: 3rem auto;
}
body .vn-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
body .vn-related .vn-card { height: 100%; }

/* Visually standardize inherited HitMag archive/category/search templates. */
body.archive #primary.content-area,
body.category #primary.content-area,
body.search #primary.content-area {
  float: none !important;
  width: min(calc(100% - 2rem), var(--vn-wide)) !important;
  margin: 2rem auto 4rem !important;
  padding: 0 !important;
}
body.archive #secondary,
body.category #secondary,
body.search #secondary { display: none !important; }
body.archive #primary .page-header,
body.category #primary .page-header,
body.search #primary .page-header {
  margin: 0 0 1.5rem !important;
}
body.archive #primary .posts-wrap,
body.category #primary .posts-wrap,
body.search #primary .posts-wrap,
body.archive #primary .site-main,
body.category #primary .site-main,
body.search #primary .site-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
body.archive #primary .page-header,
body.category #primary .page-header,
body.search #primary .page-header,
body.archive #primary .navigation,
body.category #primary .navigation,
body.search #primary .navigation {
  grid-column: 1 / -1;
}
body .hitmag-post {
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 1.2rem !important;
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 36, 58, .07);
}
body .hitmag-post .archive-thumb { margin: 0 0 1rem !important; }
body .hitmag-post .archive-thumb img {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
body .hitmag-post .entry-header,
body .hitmag-post .entry-summary,
body .hitmag-post .entry-content,
body .hitmag-post .entry-footer {
  padding-inline: 1rem;
}
body .hitmag-post .entry-title {
  font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
  line-height: 1.2 !important;
}

body .vn-nav a,
body .vn-menu-toggle,
body .vn-card a,
body .nav-links a,
body button,
body input[type="submit"] {
  min-height: var(--vn-touch);
}

@media (max-width: 64rem) {
  body .vn-related__grid,
  body.archive #primary .posts-wrap,
  body.category #primary .posts-wrap,
  body.search #primary .posts-wrap,
  body.archive #primary .site-main,
  body.category #primary .site-main,
  body.search #primary .site-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  body .vn-shell,
  body .vn-article,
  body .vn-related,
  body.archive #primary.content-area,
  body.category #primary.content-area,
  body.search #primary.content-area {
    width: min(calc(100% - 1.25rem), var(--vn-wide)) !important;
  }

  body .vn-header__inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: .75rem !important;
  }
  body .vn-brand { min-width: 0; }
  body .vn-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  body .vn-topics { display: none; }
  body .vn-article__header,
  body .vn-article__content,
  body .vn-article__tags {
    padding-inline: clamp(.95rem, 4vw, 1.35rem) !important;
  }
  body .vn-article__content {
    font-size: 1.0625rem !important;
    line-height: 1.72 !important;
  }
}

@media (max-width: 30rem) {
  body .vn-article__title {
    font-size: clamp(1.85rem, 9vw, 2.45rem) !important;
  }
  body .vn-related__grid,
  body.archive #primary .posts-wrap,
  body.category #primary .posts-wrap,
  body.search #primary .posts-wrap,
  body.archive #primary .site-main,
  body.category #primary .site-main,
  body.search #primary .site-main {
    grid-template-columns: 1fr;
  }
  body .vn-article__hero { border-radius: .75rem; }
}
/* 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;
}



/* ViralNow responsive + readability standardization v1.1 */
:root {
  --vn-reading: 45rem;
  --vn-article: 55rem;
  --vn-wide: 70rem;
  --vn-touch: 44px;
}

html { overflow-x: clip; }
body {
  min-width: 0;
  overflow-wrap: anywhere;
  text-rendering: optimizeLegibility;
}

body .vn-shell {
  width: min(calc(100% - 2rem), var(--vn-wide)) !important;
  margin-inline: auto !important;
}

body .vn-main,
body .vn-article {
  min-width: 0;
}

body .vn-article {
  width: min(calc(100% - 2rem), var(--vn-article)) !important;
  max-width: var(--vn-article) !important;
  margin-inline: auto !important;
}

body .vn-article__header,
body .vn-article__content,
body .vn-article__tags {
  width: 100% !important;
  max-width: var(--vn-reading) !important;
  margin-inline: auto !important;
}

body .vn-article__title {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

body .vn-article__dek {
  max-width: 42rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
  line-height: 1.55 !important;
}

body .vn-article__content {
  font-size: 1.125rem !important;
  line-height: 1.76 !important;
}

body .vn-article__content p { margin: 0 0 1.25em !important; }
body .vn-article__content > p:first-of-type { font-size: 1.08em; }
body .vn-article__content h2,
body .vn-article__content h3,
body .vn-article__content h4 {
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  text-wrap: balance;
  scroll-margin-top: 5rem;
}
body .vn-article__content h2 {
  margin: 2.25em 0 .75em !important;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem) !important;
}
body .vn-article__content h3 {
  margin: 1.8em 0 .65em !important;
  font-size: clamp(1.3rem, 2.8vw, 1.65rem) !important;
}
body .vn-article__content ul,
body .vn-article__content ol {
  margin: 0 0 1.4em !important;
  padding-inline-start: 1.4em !important;
}
body .vn-article__content li + li { margin-top: .45em; }
body .vn-article__content a {
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

body .vn-article__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.1rem;
}
body .vn-article__hero img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

body .vn-article__content img,
body .vn-article__content video,
body .vn-article__content iframe,
body .vn-article__content embed,
body .vn-article__content object,
body .vn-card img,
body .hitmag-post img {
  max-width: 100% !important;
}
body .vn-article__content img,
body .vn-article__content video { height: auto !important; }
body .vn-article__content iframe {
  width: 100% !important;
  border: 0;
}

body .vn-article__content table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}
body .vn-article__content th,
body .vn-article__content td {
  padding: .65rem .8rem;
  border: 1px solid #d8dee8;
}

/* Normalize legacy inline-styled article blocks without changing post data. */
body .vn-article__content section[style*="linear-gradient"] {
  max-width: 100% !important;
  margin: 1.5rem 0 !important;
  padding: clamp(1rem, 3vw, 1.6rem) !important;
  border-radius: 1rem !important;
}
body .vn-article__content [style*="grid-template-columns"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)) !important;
  gap: .9rem !important;
}
body .vn-article__content section[style*="linear-gradient"] h2 {
  font-size: clamp(1.45rem, 4vw, 1.9rem) !important;
}

/* Ad scripts and IDs remain untouched; only their containers become responsive. */
body .vn-ad,
body .viralnow-ad,
body .code-block,
body .vn-ad__body,
body .adsbygoogle,
body [data-type="_mgwidget"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: clip;
  contain: layout;
}
body .vn-ad iframe,
body .vn-ad img,
body .vn-ad ins,
body .viralnow-ad iframe,
body .viralnow-ad img,
body [data-type="_mgwidget"] iframe {
  max-width: 100% !important;
}
body .vn-ad__label {
  font-size: .6875rem;
  letter-spacing: .08em;
}

/* Related stories added by the child single template. */
body .vn-related {
  width: min(calc(100% - 2rem), var(--vn-article));
  margin: 3rem auto;
}
body .vn-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
body .vn-related .vn-card { height: 100%; }

/* Visually standardize inherited HitMag archive/category/search templates. */
body.archive #primary.content-area,
body.category #primary.content-area,
body.search #primary.content-area {
  float: none !important;
  width: min(calc(100% - 2rem), var(--vn-wide)) !important;
  margin: 2rem auto 4rem !important;
  padding: 0 !important;
}
body.archive #secondary,
body.category #secondary,
body.search #secondary { display: none !important; }
body.archive #primary .page-header,
body.category #primary .page-header,
body.search #primary .page-header {
  margin: 0 0 1.5rem !important;
}
body.archive #primary .posts-wrap,
body.category #primary .posts-wrap,
body.search #primary .posts-wrap,
body.archive #primary .site-main,
body.category #primary .site-main,
body.search #primary .site-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
body.archive #primary .page-header,
body.category #primary .page-header,
body.search #primary .page-header,
body.archive #primary .navigation,
body.category #primary .navigation,
body.search #primary .navigation {
  grid-column: 1 / -1;
}
body .hitmag-post {
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 1.2rem !important;
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 36, 58, .07);
}
body .hitmag-post .archive-thumb { margin: 0 0 1rem !important; }
body .hitmag-post .archive-thumb img {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
body .hitmag-post .entry-header,
body .hitmag-post .entry-summary,
body .hitmag-post .entry-content,
body .hitmag-post .entry-footer {
  padding-inline: 1rem;
}
body .hitmag-post .entry-title {
  font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
  line-height: 1.2 !important;
}

body .vn-nav a,
body .vn-menu-toggle,
body .vn-card a,
body .nav-links a,
body button,
body input[type="submit"] {
  min-height: var(--vn-touch);
}

@media (max-width: 64rem) {
  body .vn-related__grid,
  body.archive #primary .posts-wrap,
  body.category #primary .posts-wrap,
  body.search #primary .posts-wrap,
  body.archive #primary .site-main,
  body.category #primary .site-main,
  body.search #primary .site-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  body .vn-shell,
  body .vn-article,
  body .vn-related,
  body.archive #primary.content-area,
  body.category #primary.content-area,
  body.search #primary.content-area {
    width: min(calc(100% - 1.25rem), var(--vn-wide)) !important;
  }

  body .vn-header__inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: .75rem !important;
  }
  body .vn-brand { min-width: 0; }
  body .vn-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  body .vn-topics { display: none; }
  body .vn-article__header,
  body .vn-article__content,
  body .vn-article__tags {
    padding-inline: clamp(.95rem, 4vw, 1.35rem) !important;
  }
  body .vn-article__content {
    font-size: 1.0625rem !important;
    line-height: 1.72 !important;
  }
}

@media (max-width: 30rem) {
  body .vn-article__title {
    font-size: clamp(1.85rem, 9vw, 2.45rem) !important;
  }
  body .vn-related__grid,
  body.archive #primary .posts-wrap,
  body.category #primary .posts-wrap,
  body.search #primary .posts-wrap,
  body.archive #primary .site-main,
  body.category #primary .site-main,
  body.search #primary .site-main {
    grid-template-columns: 1fr;
  }
  body .vn-article__hero { border-radius: .75rem; }
}
