/* Template navigation repair, opt-in via this immutable stylesheet.
   Adopted only by the English best-prediction-markets page in this release.
   No JS dependency: native details and fragment anchors work with JS disabled. */
:root { --hf-nav-anchor-offset: 100px; }
.article-body [id] { scroll-margin-block-start: var(--hf-nav-anchor-offset); }
@media (min-width: 900px) {
  .sidebar-wrap { align-self: stretch; }
  .sidebar {
    inset-block-start: 90px;
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 1023px) {
  :root { --hf-nav-anchor-offset: 144px; }
}
@media (max-width: 899px) {
  .mobile-toc {
    position: static;
    inset-block-start: auto;
    z-index: auto;
  }
}
@media print {
  .mobile-toc, .sidebar-wrap { display: none !important; }
}
