/* Shared clearance so a fixed .site-nav does not cover the top of a page hero.
   Uses margin-top (moves the photo, not only the type). Existing
   padding-top that only existed to clear the nav is reduced so typography
   does not get a second spacer. Pages whose heroes already sit below the
   nav via other layout (apostille, authorization) are left out of the
   margin rule. */
:root {
  --ss-nav-clear: 110px;
}

@media (width <= 1200px) {
  :root {
    --ss-nav-clear: 90px;
  }
}

.hero,
.ab-hero,
.afaq-hero,
.aoi-hero,
.cr-hero,
.faq-hero,
.mps-hero,
.nh-hero,
.nf-hero,
.nlsf-hero,
.mo-hero,
.oo-hero,
.ro-hero,
.pay-hero,
.psh-split,
.pso-hero,
.usp-hero,
.sa-hero,
.vr-hero,
.hub-hero,
.ct-hero,
.st-hero,
.div-tool.crh {
  margin-top: var(--ss-nav-clear) !important;
}

/* County pages have a breadcrumb above the hero; offset that bar, not the hero. */
.sa-breadcrumb {
  margin-top: var(--ss-nav-clear) !important;
}

/* Section padding that previously doubled as a nav spacer. Keep a normal
   typographic inset once the margin has moved the hero below the bar. */
.ab-hero,
.ab-hero--split,
.afaq-hero,
.aoi-hero,
.nh-hero,
.nf-hero,
.nlsf-hero,
.mo-hero,
.oo-hero,
.ro-hero,
.pay-hero,
.pso-hero,
.vr-hero {
  padding-top: 2.75rem !important;
}

.faq-hero-inner {
  padding-top: 3rem !important;
}

.cr-hero-inner {
  padding-top: 3rem !important;
}

.psh-split__text {
  padding-top: 3rem !important;
}

.hero-content {
  padding-top: 3rem !important;
}

.div-tool.crh {
  padding-top: 3rem !important;
}

@media (width <= 1200px) {
  .ab-hero,
  .ab-hero--split,
  .afaq-hero,
  .aoi-hero,
  .nh-hero,
  .nf-hero,
  .nlsf-hero,
  .mo-hero,
  .oo-hero,
  .ro-hero,
  .pay-hero,
  .pso-hero,
  .vr-hero {
    padding-top: 2.25rem !important;
  }

  .faq-hero-inner,
  .cr-hero-inner,
  .psh-split__text,
  .div-tool.crh {
    padding-top: 2.25rem !important;
  }
}

@media (width <= 899px) {
  .psh-split__text {
    padding-top: 2.25rem !important;
  }
}

@media (width <= 760px) {
  .hero-content {
    padding-top: 1.5rem !important;
  }
}

@media (width <= 640px) {
  .mps-hero {
    padding-top: 2rem !important;
  }
}

@media (width <= 540px) {
  .psh-split__text {
    padding-top: 1.6rem !important;
  }
}
