/* Transparent header: pull the first section of each page up under the sticky header so its
   background (e.g. the striped hero) runs behind it. --fm-header-h is set by site-extras.js. */
.fm-page > header {
  margin-bottom: calc(-1 * var(--fm-header-h, 0px));
}
.fm-page > header + main > section:first-child {
  border-top: var(--fm-header-h, 0px) solid transparent;
}

/* Once the page is scrolled, give the header its background back so content doesn't show through. */
.fm-page header {
  transition: background-color 0.2s;
}
.fm-page header.fm-scrolled {
  background: #F3EFE4;
}

/* Mobile (burger menu, same breakpoint as site.css): keep the classic header band. */
@media (max-width: 960px) {
  .fm-page header {
    background: #F3EFE4;
    border-bottom: 1px solid #E6DFCC;
  }
  .fm-page > header {
    margin-bottom: 0;
  }
  .fm-page > header + main > section:first-child {
    border-top: 0;
  }
}
