/*
 * Safari scroll safeguard.
 * Keep exactly one scrolling root: the document element.
 */
html {
  min-height: 100%;
  height: auto !important;
  overflow-x: visible !important;
  overflow-y: scroll !important;
  scroll-behavior: auto !important;
}

body {
  min-height: 100%;
  height: auto !important;
  overflow: visible !important;
  position: relative;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
}

main {
  min-height: 100%;
  height: auto !important;
  overflow: visible !important;
}

/*
 * A fixed pseudo-element attached to a very tall main element can capture the
 * compositor layer used for scrolling in Safari. The grain is decorative, so
 * disable only that layer and preserve the rest of the design.
 */
main::before {
  display: none !important;
}

#begin,
#map,
#sound,
#scores,
#telectu,
#image,
#books,
#moving,
#opera,
#research,
#zoomusicologia,
#life,
#elsewhere {
  scroll-margin-top: 76px;
}
