:root {
  /* Adjust this to match/stay slightly larger than your sticky nav height */
  --header-offset: 6rem;
}

/* Easiest: apply to ANY element that can be an anchor target */
[id] {
  scroll-margin-top: var(--header-offset);
}
