/* RBR Mobile First-Fold Safe Area V1 | 2026-12-04
   Fix: the existing <=419px two-row header is 116px tall while the
   editorial first-fold spacing still assumes the earlier 84px header.
   Scope: Critter Library, Photography Stories, Camera Room only.
   Does not change the header, source media, typefaces, CMS or desktop view.
*/
@media (max-width: 900px) {
  /* An absolute, non-scrolled header must not overlap the first text. */
  main.critters-page > section.critters-hero {
    padding-top: 126px !important;
  }
  body.rbr-psv1-body .rbr-psv1-list-intro,
  body.rbr-psv1-body .rbr-psv1-herohead {
    padding-top: 122px !important;
  }
  /* Camera Room: add space in normal document flow, not a transform.
     This also keeps text and the next photograph from overlapping. */
  body:has(figure.hero-media) main > :first-child :is(div,header):has(> h1) {
    padding-top: 32px !important;
  }
  body:has(figure.hero-media) main > :first-child > h1 {
    margin-top: 32px !important;
  }
}
@media (max-width: 419px) {
  /* 116px header + enough breathing space to restore the hidden kicker. */
  main.critters-page > section.critters-hero {
    padding-top: 158px !important;
  }
  body.rbr-psv1-body .rbr-psv1-list-intro,
  body.rbr-psv1-body .rbr-psv1-herohead {
    padding-top: 152px !important;
  }
  /* Camera Room uses a separately rendered hero. Shift only the hero
     text cluster, leaving the photo and its focal point untouched. */
  body:has(figure.hero-media) main > :first-child :is(div,header):has(> h1) {
    padding-top: 56px !important;
  }
  body:has(figure.hero-media) main > :first-child > h1 {
    margin-top: 56px !important;
  }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 124px; }
}
@media (min-width: 420px) and (max-width: 900px) {
  html { scroll-padding-top: 92px; }
}
