S000025838 [Member] Fees and Expenses - AMG GW&K Municipal Bond Fund |
Dec. 31, 2025 |
|---|---|
| Prospectus [Line Items] | |
| Expense Heading [Optional Text] | Fees and Expenses of the Fund |
| Expense Narrative [Text Block] | The table below describes the fees and expenses that you may pay if you buy, hold and sell shares of the Fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the tables and examples below.
|
| Operating Expenses Caption [Optional Text] | Annual Fund Operating Expenses (expenses that you pay each year as a percentage of the value of your investment) |
| Expense Example [Heading] | Expense Example |
| Expense Example Narrative [Text Block] | This Example will help you compare the cost of investing in the Fund to the cost of investing in other mutual funds. The Example makes certain assumptions. It assumes that you invest $10,000 as an initial investment in the Fund for the time periods indicated and then redeem all of your shares at the end of those periods. It also assumes that your investment has a 5% total return each year and the Fund’s operating expenses remain the same. The first year of each amount shown in the Example reflects the Fund’s contractual expense limitation through May 1, 2027. Although your actual costs may be higher or lower, based on the above assumptions, your costs would be:
|
| Portfolio Turnover [Heading] | Portfolio Turnover |
| Portfolio Turnover [Text Block] | The Fund pays transaction costs, such as commissions, when it buys and sells securities (or “turns over” its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when Fund shares are held in a taxable account. These costs, which are not reflected in Annual Fund Operating Expenses or in the Example, affect the Fund’s performance. During the most recent fiscal year, the Fund’s portfolio turnover rate was 61% of the average value of its portfolio.
|
| Portfolio Turnover, Rate | 61.00% |