.dl-toc {
  --dl-toc-accent: #598cff;
  --dl-toc-ink: #0f172a;
  --dl-toc-muted: #64748b;
  --dl-toc-paper: #f4f7fb;
  --dl-toc-line: #dbe4f0;
  direction: rtl;
  text-align: right;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 0;
  border: 1px solid var(--dl-toc-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--dl-toc-paper) 140px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.dl-toc *,
.dl-toc *::before,
.dl-toc *::after {
  box-sizing: border-box;
}
.dl-toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--dl-toc-line);
  background: #fff;
}
.dl-toc__title {
  margin: 0;
  flex: 1;
  color: var(--dl-toc-ink);
  font-family: IRANYekan, Tahoma, sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 800;
  line-height: 1.45;
}
.dl-toc__toggle {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 72px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--dl-toc-accent);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.dl-toc__toggle:hover,
.dl-toc__toggle:focus {
  filter: brightness(0.92);
  outline: 2px solid var(--dl-toc-accent);
  outline-offset: 2px;
}
.dl-toc.is-open .dl-toc__toggle-closed,
.dl-toc.is-closed .dl-toc__toggle-open {
  display: none;
}
.dl-toc.is-closed .dl-toc__toggle-closed,
.dl-toc.is-open .dl-toc__toggle-open {
  display: inline;
}
.dl-toc.is-closed .dl-toc__head {
  border-bottom: 0;
}
.dl-toc__panel {
  display: none;
  padding: 8px 8px 14px;
}
.dl-toc.is-open .dl-toc__panel {
  display: block;
}
.dl-toc__list,
.dl-toc__list li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}
.dl-toc__list li::marker {
  content: "" !important;
  display: none !important;
}
.dl-toc__item {
  margin: 0;
}
.dl-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 12px;
  color: var(--dl-toc-ink);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.7;
  transition: background 0.15s ease, color 0.15s ease;
}
.dl-toc__num {
  flex: 0 0 auto;
  min-width: 1.5em;
  color: var(--dl-toc-accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.dl-toc__text {
  flex: 1;
  min-width: 0;
}
.dl-toc__item--h3 > .dl-toc__link,
.dl-toc__item--h4 > .dl-toc__link,
.dl-toc__item--h5 > .dl-toc__link,
.dl-toc__item--h6 > .dl-toc__link {
  padding-right: 33px;
  color: #334155;
  font-size: 0.9rem;
}
.dl-toc__item--h4 > .dl-toc__link {
  padding-right: 45px;
}
.dl-toc__item--h5 > .dl-toc__link,
.dl-toc__item--h6 > .dl-toc__link {
  padding-right: 57px;
}
.dl-toc__link:hover,
.dl-toc__link:focus {
  background: rgba(89, 140, 255, 0.12);
  color: var(--dl-toc-accent);
}
.dl-toc__link.is-active {
  background: var(--dl-toc-accent);
  color: #fff;
}
.dl-toc__link.is-active .dl-toc__num {
  color: #fff;
}
.td-Post-description [id^="dl-toc-"] {
  scroll-margin-top: 120px;
}
@media (min-width: 768px) {
  .dl-toc {
    margin-bottom: 32px;
  }
  .dl-toc__head {
    padding: 16px 20px;
  }
  .dl-toc__panel {
    padding: 10px 12px 18px;
  }
  .dl-toc.is-sticky {
    position: sticky;
    top: 88px;
    z-index: 20;
    max-height: calc(100vh - 110px);
  }
  .dl-toc.is-sticky .dl-toc__panel {
    max-height: calc(100vh - 180px);
    overflow: auto;
  }
}
@media (max-width: 767px) {
  .dl-toc {
    margin: 0 0 20px;
    border-radius: 16px;
  }
  .dl-toc__head {
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .dl-toc__link {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .dl-toc--sheet {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 12px;
    z-index: 80;
    margin: 0;
    max-height: min(70vh, 520px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  }
  .dl-toc--sheet .dl-toc__panel {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dl-toc-fab {
    position: fixed;
    left: 16px;
    bottom: 18px;
    z-index: 81;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--dl-toc-accent, #598cff);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(89, 140, 255, 0.35);
  }
}
@media (min-width: 768px) {
  .dl-toc-fab {
    display: none !important;
  }
}
