/* ==========================================================================
   Static-site additions (loaded after main.css)
   ========================================================================== */

/* Keep in-page anchor targets clear of the sticky header */
html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

/* The `hidden` attribute must win over display utilities (.flex, .grid …) */
[hidden] {
  display: none !important;
}

/* Lock page scroll while a drawer is open */
body.is-scroll-locked {
  overflow: hidden;
}
