/* Unenhanced notes remain readable if JavaScript is disabled. */
.footnote:not(.footnote-ready)::before { content: ' ['; }
.footnote:not(.footnote-ready)::after { content: ']'; }
.footnote-ref {
  display: inline-block;
  border: 0;
  margin: 0;
  padding: .15em .2em;
  background: transparent;
  color: #163da0;
  font: inherit;
  font-size: .75em;
  line-height: 1.2;
  vertical-align: super;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .12em;
  touch-action: manipulation;
}
.footnote-ref:focus-visible { outline: 2px solid #163da0; outline-offset: 2px; }
.footnote-inline { font-size: .95em; }
.footnote-inline[hidden], .footnote-preview[hidden] { display: none !important; }
.footnote-preview {
  position: fixed;
  z-index: 10000;
  width: max-content;
  max-width: min(24rem, calc(100vw - 24px));
  max-height: min(60vh, 30rem);
  overflow: auto;
  box-sizing: border-box;
  padding: .7rem .9rem;
  border: 1px solid #c9c9c9;
  border-radius: 2px;
  background: #fff;
  color: #161616;
  box-shadow: 0 3px 12px #0002;
  font: 1rem/1.5 'Computer Modern', serif;
  text-align: left;
  overflow-wrap: anywhere;
}
.footnote-preview-number { font-weight: normal; color: #163da0; }
@media (pointer: coarse) { .footnote-ref { padding: .3em .4em; } }
@media print {
  .footnote-ref, .footnote-preview { display: none !important; }
  .footnote-inline[hidden] { display: inline !important; }
}
