.table-of-content {
  border-left: 1px solid var(--color-line-gray);
  max-height: 100%;
  overflow: auto;
  padding: 0 var(--layout-padding-horizontal);
  margin: var(--layout-padding-vertical) 0;
  box-sizing: border-box;

  --padding-x: 8px;

  &__header {
    font-size: 16px;
    font-weight: 600;
    line-height: 21px;
    letter-spacing: -0.01em;

    margin-bottom: 12px;
    padding: 0 var(--padding-x);
  }

  &__list {
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;

    list-style: none;

    gap: 2px;

    &-item {
      @apply --squircle;

      &:hover {
        background-color: var(--color-link-hover);
        cursor: pointer;
      }

      &--active {
        background-color: var(--color-link-hover);
      }

      &--indent-1x { margin-left: 6px; }
      &--indent-2x { margin-left: 12px; }
      &--indent-3x { margin-left: 18px; }
      &--indent-4x { margin-left: 24px; }

      & > a {
        padding: 4px var(--padding-x);
        display: block;
        font-size: 14px;
        letter-spacing: -0.01em;
        line-height: 150%;
      }
    }
  }
}
