
/* Keep TOC in the rail; never paint over the reading column */
html body .sc-preview article.sc-listicle {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 240px !important;
  column-gap: 40px !important;
  width: min(100% - 48px, 1000px) !important;
  max-width: 1000px !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}
html body .sc-preview article.sc-listicle > *:not(nav.sc-toc):not(style) {
  grid-column: 1 !important;
  min-width: 0 !important;
}
html body .sc-preview article.sc-listicle > nav.sc-toc {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 / span 80 !important;
  position: sticky !important;
  top: 88px !important;
  align-self: start !important;
  width: 240px !important;
  max-width: 240px !important;
  z-index: 2 !important;
}
@media (max-width: 979.98px) {
  html body .sc-preview article.sc-listicle {
    display: block !important;
    width: min(100% - 32px, 720px) !important;
  }
  html body .sc-preview article.sc-listicle > nav.sc-toc {
    display: none !important;
  }
}
