/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/*
When the navbar is sticky, ensure that on footnote click,
the browser does not scroll to the ref behind the navbar
See https://github.com/facebook/docusaurus/issues/11232
See also headings case https://x.com/JoshWComeau/status/1332015868725891076
 */
.footnoteRefStickyNavbar {
  scroll-margin-top: calc(var(--ifm-navbar-height) + 0.5rem);
}

.footnoteRefHideOnScrollNavbar {
  scroll-margin-top: 0.5rem;
}
