.page-index {
  position: fixed;
  z-index: 30;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10.5rem;
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
}
.page-index nav { display: grid; }
.page-index a {
  position: relative;
  display: block;
  padding: .48rem .4rem .48rem 1.35rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 450;
  line-height: 1.4;
  text-decoration: none;
}
.page-index a[aria-current="location"] { color: var(--ink); font-weight: 600; }
.page-index a[aria-current="location"]::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: 50%;
  width: .78rem;
  border-top: 2px solid currentColor;
  color: color-mix(in srgb, var(--blue) 65%, var(--ink));
}
.page-index a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.page-index :is(a, summary):focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
@media (min-width: 1480px) {
  .page-index summary { display: none; }
}
@media (max-width: 1479.98px) {
  .page-index {
    left: auto;
    right: max(.8rem, env(safe-area-inset-right));
    top: auto;
    bottom: max(.75rem, env(safe-area-inset-bottom));
    transform: none;
    width: max-content;
    max-height: 70vh;
    background: var(--paper);
    border-radius: .4rem;
  }
  .page-index summary {
    cursor: pointer;
    padding: .75rem;
    font-size: .875rem;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: .2em;
  }
  .page-index[open] { min-width: 11rem; box-shadow: 0 2px 10px #0002; }
  .page-index nav { padding: 0 .45rem .45rem; }
  .footer { padding-bottom: 5.5rem; }
}
@media print { .page-index { display: none; } }
