/* Nivata Wealth USA v3.8.100 — prevent the header from covering hero titles.
 * Root cause: the transparent/absolute header was layered above hero content,
 * while v3.8.90–3.8.99 compact hero overrides reduced the top padding below
 * the actual navigation height. Keep the header in normal flow so no route,
 * breakpoint, admin-bar state or font loading can cause that overlap.
 */
.site-header,
body.admin-bar .site-header {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
}
/* Header is now in flow. Remove compensation space from every hero type. */
body main > .hero.hero--home {
  padding-top: clamp(36px, 3.5vw, 58px) !important;
}
body main > .page-hero,
body main > .page-hero.page-hero--short,
body main > .page-hero.page-hero--calculator,
body main > .page-hero.page-hero--research {
  padding-top: clamp(26px, 2.5vw, 42px) !important;
}
/* Market Data uses the tighter India-reference hero rhythm. */
body main > .page-hero.market-data-hero {
  padding-top: clamp(20px, 2vw, 32px) !important;
}
body main.us-market-stories-parity > .market-stories-index-hero,
body main > .educate-hero,
body main > .educate-hero.educate-hero--academy,
body.nivata-results-page main > .results-hero {
  padding-top: clamp(30px, 3vw, 48px) !important;
}
body.guide-page-parity main > .guide-breadcrumb,
body main > .guide-breadcrumb {
  padding-top: clamp(14px, 1.6vw, 24px) !important;
}
body.guide-page-parity main > .guide-hero,
body main > .guide-hero,
body main > .trust-hero,
body main > .market-story-hero {
  padding-top: clamp(24px, 2.6vw, 40px) !important;
}
body main > .company-masthead {
  padding-top: clamp(28px, 3vw, 48px) !important;
}
body main .article-hero {
  padding-top: 0 !important;
}
body main .article-hero .article-hero__inner {
  padding-top: clamp(28px, 3vw, 46px) !important;
}
/* Maintain a comfortable separation on very narrow viewports. */
@media (max-width: 680px) {
  body main > .hero.hero--home {padding-top: 30px !important;}
  body main > .page-hero,
  body main > .page-hero.page-hero--short,
  body main > .page-hero.page-hero--calculator,
  body main > .page-hero.page-hero--research,
  body main > .page-hero.market-data-hero {padding-top: 28px !important;}
  body main.us-market-stories-parity > .market-stories-index-hero,
  body main > .educate-hero,
  body main > .educate-hero.educate-hero--academy,
  body.nivata-results-page main > .results-hero {padding-top: 30px !important;}
  body.guide-page-parity main > .guide-breadcrumb,
  body main > .guide-breadcrumb {padding-top: 16px !important;}
}
/* Anchor navigation should not land content behind the header if it later
 * becomes sticky via the browser or a non-theme integration. */
:where(.hero, .page-hero, .article-hero, .educate-hero, .guide-hero, .results-hero, .market-stories-index-hero, .company-masthead) {
  scroll-margin-top: 90px;
}
