/*
 * Clear the 106px fixed #main-header by 20px on pages whose top padding
 * was too small (content slid under the bar) or tighter than 16-24px.
 * Reflection posts already use 128px on small screens (~22px gap) and
 * are left alone.
 */
:root {
  --site-header-bar: 106px;
  --site-header-gap: 20px;
  --site-header-offset: calc(var(--site-header-bar) + var(--site-header-gap));
}

#experience-page {
  padding-top: var(--site-header-offset);
}

@media screen and (max-width: 800px) {
  #experience-page {
    padding-top: var(--site-header-offset);
  }

  #book-essay,
  #books-shelf {
    padding-top: var(--site-header-offset);
  }
}

#resume-page {
  padding-top: var(--site-header-offset);
}


/* Preview notices at wp_body_open sit under the fixed header if they stay in flow
   and open a large cream gap above the hero. Pin them so they cannot reserve space. */
.private-habits-preview-note {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  top: auto;
  z-index: 2000;
  margin: 0;
}
