/* RBR Mobile Firstfold V2 | 2026-12-04
   Scope: Camera Room + three detail templates, all three languages.
   Preserve the existing image-overlay Heroes and V1 list-page repairs. */
@media (max-width: 950px) {
  /* Camera Room has languages INSIDE the hamburger menu, not a cloned
     second row. Reserve the real one-row header in normal document flow. */
  body[data-rbr-mobile-firstfold-v2="camera"] > #topbar.site-header {
    height: 76px !important;
    padding: 0 5.5% !important;
  }
  body[data-rbr-mobile-firstfold-v2="camera"] > #topbar.site-header > .rbr-mobile-language {
    display: none !important;
  }
  body[data-rbr-mobile-firstfold-v2="camera"] > main {
    padding-top: 76px;
  }
  /* The camera hero is a text panel followed by a photograph, not the
     homepage's full-viewport overlay. Intrinsic rows prevent clipping. */
  body[data-rbr-mobile-firstfold-v2="camera"] > main > section.hero {
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
  }
  body[data-rbr-mobile-firstfold-v2="camera"] > main > section.hero > .hero-copy {
    min-width: 0;
    padding-top: 32px;
    justify-content: flex-start;
  }
  body[data-rbr-mobile-firstfold-v2="camera"] .hero-copy h1 {
    overflow-wrap: break-word;
  }
  html:has(body[data-rbr-mobile-firstfold-v2="camera"]) {
    scroll-padding-top: 88px;
  }

  /* Detail pages have a shared, absolute header on first load. Give the
     first content a measured safe area; do not alter that header or its
     existing language/menu behavior, which differs from Camera Room. */
  body[data-rbr-mobile-firstfold-v2="critter"],
  body[data-rbr-mobile-firstfold-v2="dive-site"] {
    --rbr-v2-header-space: 76px;
  }
  body[data-rbr-mobile-firstfold-v2="story"] {
    --rbr-v2-header-space: 84px;
  }
  body[data-rbr-mobile-firstfold-v2="critter"] > main.critter-detail-page > .critter-detail-hero,
  body[data-rbr-mobile-firstfold-v2="dive-site"] > main.rbr-site-detail-page {
    padding-top: calc(var(--rbr-v2-header-space) + 24px) !important;
  }
  body[data-rbr-mobile-firstfold-v2="story"] > main.rbr-psv1-root {
    padding-top: var(--rbr-v2-header-space);
    display: flow-root;
  }
}
@media (max-width: 419px) {
  body[data-rbr-mobile-firstfold-v2="critter"],
  body[data-rbr-mobile-firstfold-v2="dive-site"],
  body[data-rbr-mobile-firstfold-v2="story"] {
    --rbr-v2-header-space: 116px;
  }
}
