/* =====================================================
   NESTYIELD SITE-WIDE ANIMATED BACKGROUND
   Load AFTER all other stylesheets (style.css, home-redesign.css,
   article-theme.css, nestyield-final-pages-dark.css,
   about-dark-theme.css). Pairs with scroll-bg.js, which inserts
   <iframe class="ny-page-bg"> as the first child of <body>.

   - The iframe is fixed behind all content (z-index:-1 in the root
     stacking context; <body> creates no stacking context).
   - <html> keeps a solid #04142B (the wave's base color). Because
     <html> has its own background, it is the one painted on the root
     canvas, BELOW the iframe; <body> is made transparent so its own
     box background does not cover the iframe.
   - Page-level and section-level dark-blue backgrounds become the
     same colors at 0.7 opacity. Every selector below mirrors the
     original rule with a higher specificity (html prefix), and uses
     !important only where the original rule does (or where the
     original is an inline style).
   - Left solid on purpose: nav/header, .site-footer, .site-disclosure,
     .disc-outer-section and risk-disclosure blocks, cards, panels,
     tables, inputs, modals, the home stats bar and announcement bar.
===================================================== */

/* ---------- Background iframe ---------- */

iframe.ny-page-bg {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Large-viewport height: mobile toolbars showing/hiding do not resize
     the iframe (which would re-allocate the canvas mid-scroll). */
  height: 100vh;
  height: 100lvh;
  bottom: auto;
  margin: 0;
  padding: 0;
  border: 0;
  z-index: -1;
  pointer-events: none;
  display: block;
}

/* ---------- Root / body ---------- */

html {
  background-color: #04142B;
}

/* Beats body.<page-class> { background } (0,1,1) on every page */
html body,
html body[class] {
  background: transparent;
}

/* =====================================================
   HOMEPAGE (home-redesign.css)
===================================================== */

/* .home-redesign .hero { background:#061936 } */
html body.home-redesign .hero {
  background: rgba(6, 25, 54, 0.6);
}

/* .home-redesign main>.section { background:#04152e } (also covers .etf-suite-section) */
html body.home-redesign main > .section {
  background: rgba(4, 21, 46, 0.6);
}

/* .home-redesign .section-bg-navy { ... #061a35 !important } */
html body.home-redesign .section-bg-navy {
  background:
    radial-gradient(ellipse at 85% 85%, rgba(18, 77, 142, .42), transparent 55%),
    rgba(6, 26, 53, 0.6) !important;
}

/* .home-redesign .about-teaser { background:#061a35 !important } */
html body.home-redesign .about-teaser {
  background: rgba(6, 26, 53, 0.6) !important;
}

/* =====================================================
   FUND PAGES (body.fund-dark-theme) - style.css
===================================================== */

/* main had var(--fund-bg) under its sections; made transparent so the
   sections' 0.7 tint is not stacked on a second tint (would be ~0.91). */
html body.fund-dark-theme main {
  background: transparent;
}

/* body.fund-dark-theme main .section { background: var(--fund-bg) #08182e } */
html body.fund-dark-theme main .section {
  background: rgba(8, 24, 46, 0.7);
}

/* body.fund-dark-theme main .section-bg-off/.section-bg-gray { var(--fund-bg-alt) #0d213d } */
html body.fund-dark-theme main .section-bg-off,
html body.fund-dark-theme main .section-bg-gray {
  background: rgba(13, 33, 61, 0.7);
}

/* body.fund-dark-theme #buy-fund { linear-gradient(135deg,#0d213d,#08182e) !important } */
html body.fund-dark-theme #buy-fund {
  background: linear-gradient(135deg,
    rgba(13, 33, 61, 0.7), rgba(8, 24, 46, 0.7)) !important;
}

/* body.fund-dark-theme:is(.fund-eggq,.fund-eggy,.fund-eggs) .fund-hero { ... !important } */
html body.fund-dark-theme:is(.fund-eggq, .fund-eggy, .fund-eggs) .fund-hero {
  background:
    radial-gradient(
      ellipse 65% 85% at 82% 0%,
      var(--fund-glow) 0%,
      transparent 75%
    ),
    linear-gradient(
      115deg,
      rgba(11, 30, 61, 0.7) 0%,
      rgba(36, 27, 57, 0.7) 55%,
      rgba(11, 30, 61, 0.7) 100%
    ) !important;
}

/* body.fund-dark-theme.fund-eggy .fund-hero { gold-to-navy ... !important } */
html body.fund-dark-theme.fund-eggy .fund-hero {
  background:
    linear-gradient(
      115deg,
      rgba(51, 43, 21, 0.7) 0%,
      rgba(41, 43, 40, 0.7) 42%,
      rgba(11, 30, 61, 0.7) 100%
    ) !important;
}

/* Fund-facts strip sits directly on <body> (between .fund-hero and <main>),
   where the body color #08182e used to show. Full-bleed tint drawn with a
   zero-width border-image (ink overflow only: no layout change, no
   horizontal scroll, no stacking context). */
html body.fund-dark-theme .fund-facts-band {
  /* Full-width band behind the fund facts strip (2026-11-25). A plain
     background on a full-width wrapper, so it fills above, below and
     both sides of the card. flow-root keeps the card's bottom margin
     inside the band. Replaces the box-shadow + clip-path band, which
     could not paint inside the strip's own box. */
  background: rgba(8, 24, 46, 0.7);
  display: flow-root;
}

/* =====================================================
   ETF COMPARISON PAGES (body.comparison-dark-theme) - style.css
===================================================== */

/* body.comparison-dark-theme.comparison-egg? .page-hero { ... !important } */
html body.comparison-dark-theme[class*="comparison-"] .page-hero {
  background:
    radial-gradient(
      ellipse at 85% 15%,
      var(--etf-glow) 0%,
      transparent 65%
    ),
    linear-gradient(
      120deg,
      rgba(8, 24, 46, 0.7) 0%,
      rgba(16, 43, 78, 0.7) 100%
    ) !important;
}

/* body.comparison-dark-theme main>.section { background:#081a32 } */
html body.comparison-dark-theme main > .section {
  background: rgba(8, 26, 50, 0.7);
}

/* body.comparison-dark-theme main>.section:nth-of-type(even) { background:#0b203b } */
html body.comparison-dark-theme main > .section:nth-of-type(even) {
  background: rgba(11, 32, 59, 0.7);
}

/* body.comparison-dark-theme main>.section.section-bg-navy { background:#091b34 } */
html body.comparison-dark-theme main > .section.section-bg-navy {
  background: rgba(9, 27, 52, 0.7);
}

/* =====================================================
   OUR ETFs (body.etfs-dark-page) - inline <style> in etfs.html
===================================================== */

/* .etfs-dark-page .page-hero */
html body.etfs-dark-page .page-hero {
  background:
    radial-gradient(ellipse at 85% 20%,
      rgba(217, 28, 123, .12), transparent 48%),
    radial-gradient(ellipse at 10% 90%,
      rgba(62, 111, 180, .17), transparent 55%),
    linear-gradient(135deg,
      rgba(8, 26, 52, 0.7),
      rgba(16, 39, 70, 0.7) 65%,
      rgba(8, 24, 46, 0.7));
}

/* .etfs-dark-page main > section.section:not(.section-bg-navy) */
html body.etfs-dark-page main > section.section:not(.section-bg-navy) {
  background:
    radial-gradient(ellipse at 100% 30%,
      rgba(217, 28, 123, .045), transparent 50%),
    linear-gradient(180deg, rgba(7, 23, 45, 0.7), rgba(11, 32, 59, 0.7));
}

/* .etfs-dark-page .section-bg-navy */
html body.etfs-dark-page .section-bg-navy {
  background:
    radial-gradient(ellipse at 10% 15%,
      rgba(217, 28, 123, .07), transparent 50%),
    linear-gradient(180deg, rgba(12, 34, 62, 0.7), rgba(7, 23, 45, 0.7));
}

/* =====================================================
   SUPPORT PAGES: CONTACT / FAQ / SUBSCRIBE
   (body.nest-support-dark) - style.css
===================================================== */

/* body.nest-support-dark .page-hero */
html body.nest-support-dark .page-hero {
  background:
    radial-gradient(
      ellipse at 88% 8%,
      rgba(255, 44, 145, .22),
      transparent 58%
    ),
    linear-gradient(
      112deg,
      rgba(8, 24, 45, 0.7) 0%,
      rgba(20, 36, 62, 0.7) 48%,
      rgba(56, 35, 69, 0.7) 100%
    );
}

/* body.nest-support-dark main > .section { var(--support-bg) #07172b } */
html body.nest-support-dark main > .section {
  background: rgba(7, 23, 43, 0.7);
}

/* body.nest-support-dark / body.contact-page main > .section.section-bg-off { #0b1d35 } */
html body.nest-support-dark main > .section.section-bg-off {
  background: rgba(11, 29, 53, 0.7);
}

/* body.faq-page main > .section.section-bg-navy { linear-gradient(135deg,#10243e,#1b2946) } */
html body.faq-page main > .section.section-bg-navy {
  background: linear-gradient(
    135deg,
    rgba(16, 36, 62, 0.7),
    rgba(27, 41, 70, 0.7)
  );
}

/* body.faq-page main > .section:not(.section-bg-navy) { #07172b !important } */
html body.faq-page main > .section:not(.section-bg-navy) {
  background: rgba(7, 23, 43, 0.7) !important;
}

/* =====================================================
   ABOUT PAGES (body.about-dark-theme) - about-dark-theme.css
===================================================== */

/* body.about-dark-theme main { #07172c } - transparent to avoid a double tint */
html body.about-dark-theme main {
  background: transparent;
}

/* body.about-dark-theme .page-hero, .ani-hero { ... !important } */
html body.about-dark-theme .page-hero,
html body.about-dark-theme .ani-hero {
  background:
    radial-gradient(ellipse 65% 100% at 83% 12%, rgba(92, 185, 245, .28), transparent 70%),
    radial-gradient(ellipse 55% 85% at 8% 85%, rgba(53, 155, 225, .12), transparent 75%),
    linear-gradient(115deg,
      rgba(7, 24, 46, 0.7) 0%,
      rgba(13, 41, 71, 0.7) 55%,
      rgba(21, 61, 92, 0.7) 100%) !important;
}

/* body.about-dark-theme main > .section { #091b32 !important } */
html body.about-dark-theme main > .section {
  background: rgba(9, 27, 50, 0.7) !important;
}

/* body.about-dark-theme main > .section:nth-of-type(even) { #0d223d !important } */
html body.about-dark-theme main > .section:nth-of-type(even) {
  background: rgba(13, 34, 61, 0.7) !important;
}

/* =====================================================
   ARTICLE PAGES (body.article-page) - article-theme.css
===================================================== */

/* body.article-page .article-hero */
html body.article-page .article-hero {
  background:
    radial-gradient(ellipse at 75% 0%, rgba(var(--article-rgb), .26), transparent 62%),
    linear-gradient(120deg, rgba(10, 28, 51, 0.7), rgba(23, 54, 81, 0.7));
}

/* body.article-page.fund-updates .article-hero */
html body.article-page.fund-updates .article-hero {
  background:
    radial-gradient(ellipse at 82% 0%, rgba(255, 44, 145, .32), transparent 62%),
    linear-gradient(120deg,
      rgba(16, 30, 57, 0.7),
      rgba(52, 32, 64, 0.7) 65%,
      rgba(22, 43, 69, 0.7));
}

/* Article text sat directly on the body color (#091a30). The column is
   max-width 820px, so the tint is drawn full-bleed with a zero-width
   border-image (ink overflow only: no layout change, no horizontal
   scroll, no stacking context). */
html body.article-page main > .article-body {
  border-image: linear-gradient(rgba(9, 26, 48, 0.7), rgba(9, 26, 48, 0.7)) fill 0 / 0 / 0 100vw;
}

/* =====================================================
   DOCUMENTS / PRIVACY / TAX DOCUMENTS / TERMS
   (body.ny-final-dark) - nestyield-final-pages-dark.css
===================================================== */

/* body.ny-final-dark .page-hero, .tax-hero */
html body.ny-final-dark .page-hero,
html body.ny-final-dark .tax-hero {
  background:
    radial-gradient(ellipse 65% 95% at 88% 12%, rgba(240, 207, 106, .15) 0%, rgba(240, 207, 106, .06) 38%, transparent 75%),
    linear-gradient(115deg,
      rgba(7, 24, 46, 0.7) 0%,
      rgba(11, 30, 61, 0.7) 48%,
      rgba(32, 47, 64, 0.7) 100%);
}

/* body.ny-final-dark main>.section, main>.section-bg-off, .tax-section { #091b32 } */
html body.ny-final-dark main > .section,
html body.ny-final-dark main > .section-bg-off,
html body.ny-final-dark .tax-section {
  background: rgba(9, 27, 50, 0.7);
}

/* body.ny-final-dark .tax-section:nth-child(even) { #0c213c } */
html body.ny-final-dark .tax-section:nth-child(even) {
  background: rgba(12, 33, 60, 0.7);
}

/* documents.html breadcrumb band:
   body.ny-final-dark main>div[style*="background:#F8F9FB"] { #112740 !important } */
html body.ny-final-dark main > div[style*="background:#F8F9FB"] {
  background: rgba(17, 39, 64, 0.7) !important;
}

/* "Need help accessing a document?" bands (documents.html, tax-documents.html):
   inline style="background:var(--navy)" (#0B1E3D) - !important needed to beat inline */
html body.ny-final-dark section[style*="background:var(--navy)"] {
  background: rgba(11, 30, 61, 0.7) !important;
}

/* =====================================================
   HOW TO INVEST (body.how-invest-page) - style.css
===================================================== */

/* .how-invest-page .page-hero */
html body.how-invest-page .page-hero {
  background:
    radial-gradient(
      ellipse 65% 95% at 88% 12%,
      rgba(240, 207, 106, 0.15) 0%,
      rgba(240, 207, 106, 0.06) 38%,
      transparent 75%
    ),
    linear-gradient(
      115deg,
      rgba(7, 24, 46, 0.7) 0%,
      rgba(11, 30, 61, 0.7) 48%,
      rgba(32, 47, 64, 0.7) 100%
    );
}

/* .how-invest-page main > .section { #091B33 } */
html body.how-invest-page main > .section {
  background: rgba(9, 27, 51, 0.7);
}

/* .how-invest-page main > .section:nth-of-type(even) { #0D213C } */
html body.how-invest-page main > .section:nth-of-type(even) {
  background: rgba(13, 33, 60, 0.7);
}

/* .how-invest-page main > .section.section-bg-off { #0D213C } */
html body.how-invest-page main > .section.section-bg-off {
  background: rgba(13, 33, 60, 0.7);
}

/* .how-invest-page main > .section.section-bg-navy { radial..., #07182E } */
html body.how-invest-page main > .section.section-bg-navy {
  background:
    radial-gradient(
      ellipse 65% 85% at 50% 0%,
      rgba(240, 207, 106, 0.08),
      transparent 75%
    ),
    rgba(7, 24, 46, 0.7);
}

/* .how-invest-page main > .section.section-bg-off:last-child { #0B1E38 } */
html body.how-invest-page main > .section.section-bg-off:last-child {
  background: rgba(11, 30, 56, 0.7);
}

/* =====================================================
   MODEL PORTFOLIOS (body.model-portfolios-page) - style.css
===================================================== */

/* body.model-portfolios-page .page-hero { ... !important } */
html body.model-portfolios-page .page-hero {
  background:
    radial-gradient(
      ellipse at 88% 0%,
      rgba(243, 195, 67, 0.20) 0%,
      rgba(243, 195, 67, 0.07) 35%,
      transparent 68%
    ),
    linear-gradient(
      115deg,
      rgba(7, 23, 47, 0.7) 0%,
      rgba(11, 30, 61, 0.7) 55%,
      rgba(16, 35, 64, 0.7) 100%
    ) !important;
}

/* .model-portfolios-page main > .section { #07182E } */
html body.model-portfolios-page main > .section {
  background: rgba(7, 24, 46, 0.7);
}

/* .model-portfolios-page main > .section:nth-of-type(3) { #0A1E38 } */
html body.model-portfolios-page main > .section:nth-of-type(3) {
  background: rgba(10, 30, 56, 0.7);
}

/* .model-portfolios-page .section-bg-navy { #0A1E38 !important } */
html body.model-portfolios-page .section-bg-navy {
  background: rgba(10, 30, 56, 0.7) !important;
}

/* =====================================================
   INSIGHTS (body.insights-page) - style.css
===================================================== */

/* .page-hero.insights-hero */
html body.insights-page .page-hero.insights-hero {
  background: linear-gradient(
    110deg,
    rgba(8, 24, 46, 0.7) 0%,
    rgba(16, 43, 72, 0.7) 48%,
    rgba(27, 75, 112, 0.7) 100%
  );
}

/* body.insights-page #main-content > section.section */
html body.insights-page #main-content > section.section {
  background:
    radial-gradient(
      ellipse at 85% 10%,
      rgba(39, 91, 137, 0.20),
      transparent 48%
    ),
    linear-gradient(
      135deg,
      rgba(8, 24, 46, 0.7) 0%,
      rgba(13, 35, 64, 0.7) 50%,
      rgba(16, 43, 72, 0.7) 100%
    );
}

/* All pages: disclaimer and footer translucent (2026-11-25), fund-page values at 0.6.
   body[class] gives (0,2,2), above every page/theme rule for these (max 0,2,1). */
html body[class] .site-disclosure {
  background: rgba(13, 33, 61, 0.6) !important;   /* was #0d213d */
}
html body[class] .disc-outer-section {
  background: rgba(7, 23, 45, 0.6) !important;    /* was #07172d */
}
html body[class] .site-footer {
  background: rgba(11, 30, 61, 0.6) !important;   /* was #0b1e3d */
}
