/* Shared mobile clearance for the fixed navigation and first-page H1. */
@media (min-width: 901px) {
  body.ds-page main#main-content > .project-case-header:first-child {
    padding-top: 140px;
  }
}

@media (max-width: 900px) {
  .hero-shell {
    padding-top: calc(114px + env(safe-area-inset-top, 0px));
  }

  body.ds-page main > section:first-of-type:not(#top) > .relative.z-10 {
    padding-top: calc(114px + env(safe-area-inset-top, 0px)) !important;
  }

  body.ds-page main > section:first-of-type:not(#top) > .relative.z-10:has(.t-meta + h1),
  body.ds-page main > section:first-of-type:not(#top) > .relative.z-10:has(.mb-6 + h1) {
    padding-top: calc(84px + env(safe-area-inset-top, 0px)) !important;
  }

  body.ds-page main#main-content[class*="pt-32"] > section:first-of-type:not(:has(> figure.article-hero-top-image)) {
    padding-top: calc(112px + env(safe-area-inset-top, 0px)) !important;
  }
}

@media (max-width: 560px) {
  .hero-shell {
    padding-top: calc(114px + env(safe-area-inset-top, 0px));
  }
}
