/* V34.2: keep logbook section headings clear of BOTH sticky ribbons.
   The existing navigation computes --logbook-ribbon-offset for the college header.
   The second ribbon's measured height is added only while staff reviews a student. */
:root{--pg-review-topbar-height:70px;--pg-review-height:0px}
@media screen and (min-width:881px){
  #pgReviewerIdentity{top:var(--pg-review-topbar-height)!important}
}
/* Includes the existing 16px safety spacing from the original nav offset. */
section.page,.an-page,#specialty-current-section,#specialtyRoot,#anatomyRoot{
  scroll-margin-top:calc(var(--logbook-ribbon-offset,86px) + var(--pg-review-height,0px))!important;
}
/* Anchor deep links should have the same breathing room as sidebar navigation. */
#main :is(h2.sec-title,h2.an-section-title){scroll-margin-top:calc(var(--logbook-ribbon-offset,86px) + var(--pg-review-height,0px))}
@media screen and (max-width:880px){
 /* Both ribbons flow normally on mobile, rather than obscuring the screen. */
 #pgReviewerIdentity{top:auto!important;position:relative!important}
 section.page,.an-page,#specialty-current-section,#specialtyRoot,#anatomyRoot{
   scroll-margin-top:16px!important;
 }
}
@media print{
 #pgReviewerIdentity{top:auto!important;position:static!important}
 section.page,.an-page,#specialty-current-section,#specialtyRoot,#anatomyRoot{scroll-margin-top:0!important}
}
