/* Remove legacy fixed-header offsets now that the canonical header is in normal document flow. */
body > .ff-injected-nav + div[style*="height:70px"],
body > .ff-injected-nav + div[style*="height: 70px"],
body > .ff-injected-nav + div[style*="height:72px"],
body > .ff-injected-nav + div[style*="height: 72px"],
body > .ff-injected-nav + div[style*="height:80px"],
body > .ff-injected-nav + div[style*="height: 80px"],
body > .ff-injected-nav + div[style*="height:82px"],
body > .ff-injected-nav + div[style*="height: 82px"],
body > .ff-injected-nav + div[style*="height:84px"],
body > .ff-injected-nav + div[style*="height: 84px"] {
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}

/* Home and older pages reserved room for a position:fixed header. */
body > main[style*="padding-top:70px"],
body > main[style*="padding-top: 70px"],
body > main[style*="padding-top:72px"],
body > main[style*="padding-top: 72px"],
body > main[style*="padding-top:80px"],
body > main[style*="padding-top: 80px"],
body > main[style*="padding-top:82px"],
body > main[style*="padding-top: 82px"],
body > main[style*="padding-top:84px"],
body > main[style*="padding-top: 84px"],
body > main.pt-20,
body > main.pt-24 {
  padding-top:0!important;
}

/* Studies used header padding to clear its previous fixed navbar. */
body.ff-studies-page > header.hero-gradient.pt-24,
body.ff-studies-page > header.pt-24 {
  padding-top:0!important;
}

/* Canonical header should meet the first content block directly on every viewport. */
body > .ff-injected-nav { margin-bottom:0!important; }
