/* —— Floating quick-nav: fixed to the viewport, upper-middle right —— */
.cle-toc {
  position: fixed;
  top: 300px;
  /* upper-middle of the viewport */
  right: 24px;
  background: #ffffffdb;
  border: 1px solid var(--cle-border);
  border-left: 3px solid var(--cle-secondary-light);
  border-radius: 4px;
  padding: 14px 24px 14px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  z-index: 3;
  max-width: 145px;
}

.cle-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cle-toc__list li {
  margin: 0 0 12px;
  line-height: 1.2;
}

.cle-toc__list li:last-child {
  margin-bottom: 0;
}

.cle-toc__list a {
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1080px) {

  /* viewport too narrow for a floating card beside the 1200px column:
     dock the nav to the top of the block instead */
  .cle-toc {
    position: sticky;
    top: var(--cle-toc-offset, 75px);
    width: auto;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid var(--cle-border);
    border-top: 1px solid var(--cle-border);
    border-radius: 0;
    background: #ffffff;
    padding: 0 clamp(1rem, 3.2vw, 2rem);
    z-index: 3;
    max-width: none;
    margin-top: 1rem;
    transition: top 0.3s;
  }

  .cle-toc.minimized {
    top: calc(var(--cle-toc-offset, 75px) - 30px);
  }

  .cle-toc.fixed {
    position: fixed;
    margin-top: 0;
    right: 0;
    left: 0;
  }

  .cle-toc__list li {
    display: inline-block;
    margin: 0 18px 8px 0;
  }
}

@media (min-width: 1081px) and (max-width: 1440px) {
  .cle-toc {
    right: 16px;
    font-size: 0.9rem;
  }
}

.mtpc-section .mtpc_standard {
  scroll-margin-top: 200px;
}

.mtpc_standard:has(.cle-toc-block) {
  padding: 0;
}